Compare commits

...

2 commits

Author SHA1 Message Date
a641d8bb4c Syncthing: add school things folder to server 2023-09-18 22:29:23 +02:00
1328e16181 Flake: add school role 2023-09-18 22:28:45 +02:00
5 changed files with 33 additions and 0 deletions

View file

@ -113,6 +113,7 @@ outputs = { self, nixpkgs, nixpkgs-unstable, agenix, home-manager, home-manager-
./roles/desktop ./roles/desktop
./roles/kde ./roles/kde
./roles/gaming ./roles/gaming
./roles/school
./machines/SteamDeck ./machines/SteamDeck
]; ];
}; };

7
roles/school/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./services
];
}

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./syncthing.nix
];
}

View file

@ -0,0 +1,12 @@
{ config, ... }:
{
services.syncthing.folders = {
"school-things" = {
label = "School things";
id = "z6alc-nfoqr";
devices = [ "steamdeck" "server" ];
path = "~/Documents/School things";
};
};
}

View file

@ -15,6 +15,12 @@
"passwords" = { "passwords" = {
path = "${config.services.syncthing.dataDir}/passwords"; path = "${config.services.syncthing.dataDir}/passwords";
}; };
"school-things" = {
label = "School things";
id = "z6alc-nfoqr";
devices = [ "steamdeck" "server" ];
path = "${config.services.syncthing.dataDir}/school-things";
};
}; };
}; };
systemd.services.syncthing.serviceConfig = { systemd.services.syncthing.serviceConfig = {