mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
profile/sync: init from legacy
This commit is contained in:
parent
09ffed6661
commit
3c3fc6f527
5 changed files with 21 additions and 11 deletions
|
@ -1,10 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
croc
|
||||
magic-wormhole
|
||||
nextcloud-client
|
||||
syncthing
|
||||
vdirsyncer
|
||||
];
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -10,5 +10,6 @@ in
|
|||
clean.enable = true;
|
||||
latex.enable = true;
|
||||
printing.enable = true;
|
||||
sync.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
./clean
|
||||
./latex
|
||||
./printing
|
||||
./sync
|
||||
];
|
||||
}
|
||||
|
|
19
profiles/sync/default.nix
Normal file
19
profiles/sync/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue