move syncthing to services

This commit is contained in:
Tyler Starr 2024-10-26 19:35:43 -07:00
parent 593268d6ba
commit 5e10a2c3c9
5 changed files with 11 additions and 11 deletions

View File

@ -31,6 +31,10 @@
programs = { programs = {
chezmoi.apply = true; chezmoi.apply = true;
kitty.enable = true; kitty.enable = true;
};
services = {
samba-client.enable = true;
ssh.enable = true;
syncthing = { syncthing = {
enable = true; enable = true;
keyPath = ../../secrets/syncthing/bulwark/key.pem.age; keyPath = ../../secrets/syncthing/bulwark/key.pem.age;
@ -40,9 +44,5 @@
}; };
}; };
}; };
services = {
samba-client.enable = true;
ssh.enable = true;
};
}; };
} }

View File

@ -53,6 +53,10 @@
chezmoi.apply = true; chezmoi.apply = true;
kitty.enable = true; kitty.enable = true;
virt-manager.enable = true; virt-manager.enable = true;
};
services = {
samba-client.enable = true;
ssh.enable = true;
syncthing = { syncthing = {
enable = true; enable = true;
keyPath = ../../secrets/syncthing/kestrel/key.pem.age; keyPath = ../../secrets/syncthing/kestrel/key.pem.age;
@ -62,9 +66,5 @@
}; };
}; };
}; };
services = {
samba-client.enable = true;
ssh.enable = true;
};
}; };
} }

View File

@ -10,7 +10,6 @@
./chezmoi.nix ./chezmoi.nix
./kitty.nix ./kitty.nix
./nvim.nix ./nvim.nix
./syncthing.nix
./virt-manager.nix ./virt-manager.nix
./yt-dlp.nix ./yt-dlp.nix
]; ];

View File

@ -3,5 +3,6 @@
imports = [ imports = [
./samba-client.nix ./samba-client.nix
./ssh.nix ./ssh.nix
./syncthing.nix
]; ];
} }

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, user, ... }: { config, lib, pkgs, user, ... }:
let cfg = config.modules.programs.syncthing; let cfg = config.modules.services.syncthing;
in { in {
options.modules.programs.syncthing = with lib; { options.modules.services.syncthing = with lib; {
enable = lib.mkOption { enable = lib.mkOption {
type = types.bool; type = types.bool;
default = false; default = false;