[NixOS] Control what is enabled per machine with module options

This commit is contained in:
2023-08-20 04:25:58 -06:00
parent a50a05640f
commit 8638d05595
26 changed files with 126 additions and 271 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, makeEnable, config, ... }:
let
devices = {
biskcomp = {
@@ -13,7 +13,7 @@ let
};
allDevices = builtins.attrNames devices;
in
{
makeEnable config "modules.syncthing" true {
system.activationScripts.syncthingPermissions = {
text = ''
chown -R syncthing:syncthing /var/lib/syncthing