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 = {
chezmoi.apply = true;
kitty.enable = true;
};
services = {
samba-client.enable = true;
ssh.enable = true;
syncthing = {
enable = true;
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;
kitty.enable = true;
virt-manager.enable = true;
};
services = {
samba-client.enable = true;
ssh.enable = true;
syncthing = {
enable = true;
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
./kitty.nix
./nvim.nix
./syncthing.nix
./virt-manager.nix
./yt-dlp.nix
];

View File

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

View File

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