Compare commits
2 commits
81ded02e19
...
a641d8bb4c
| Author | SHA1 | Date | |
|---|---|---|---|
| a641d8bb4c | |||
| 1328e16181 |
5 changed files with 33 additions and 0 deletions
|
|
@ -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
7
roles/school/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./services
|
||||||
|
];
|
||||||
|
}
|
||||||
7
roles/school/services/default.nix
Normal file
7
roles/school/services/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./syncthing.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
12
roles/school/services/syncthing.nix
Normal file
12
roles/school/services/syncthing.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.syncthing.folders = {
|
||||||
|
"school-things" = {
|
||||||
|
label = "School things";
|
||||||
|
id = "z6alc-nfoqr";
|
||||||
|
devices = [ "steamdeck" "server" ];
|
||||||
|
path = "~/Documents/School things";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue