profile/sync: init from legacy

This commit is contained in:
Felix Buehler 2023-02-15 20:51:39 +01:00
parent 09ffed6661
commit 3c3fc6f527
5 changed files with 21 additions and 11 deletions

View file

@ -1,10 +0,0 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
croc
magic-wormhole
nextcloud-client
syncthing
vdirsyncer
];
}

View file

@ -22,7 +22,6 @@
../../legacy/modules/power.nix
../../legacy/modules/screen-sharing.nix
../../legacy/modules/sway.nix
../../legacy/modules/sync.nix
../../legacy/modules/systemd-user.nix
../../legacy/modules/systemduefi.nix
../../legacy/modules/webcam.nix

View file

@ -10,5 +10,6 @@ in
clean.enable = true;
latex.enable = true;
printing.enable = true;
sync.enable = true;
};
}

View file

@ -7,5 +7,6 @@
./clean
./latex
./printing
./sync
];
}

19
profiles/sync/default.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.sync;
in
{
options.my.profiles.sync = with lib; {
enable = mkEnableOption "sync profile";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
croc
magic-wormhole
nextcloud-client
syncthing
vdirsyncer
];
};
}