diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-02-11 18:34:12 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-02-11 18:34:12 +0100 |
| commit | 1f0a1359730f90949f56254551ce85a92de97abc (patch) | |
| tree | 8eee927eb425dedf4612105ac686333dfb8244c5 /profiles | |
| parent | 3cc299a59572c8c9c09b67fc26cfc699355447fd (diff) | |
first working version
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/core/configuration.nix | 2 | ||||
| -rw-r--r-- | profiles/core/syncthing.nix | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/profiles/core/configuration.nix b/profiles/core/configuration.nix index d8ad29f..a17fde4 100644 --- a/profiles/core/configuration.nix +++ b/profiles/core/configuration.nix @@ -29,7 +29,7 @@ time.timeZone = "Europe/Amsterdam"; users.users = { ${ivi.username} = { - uid = 1000; + uid = mkIf (!machine.isDarwin) 1000; description = ivi.realName; openssh.authorizedKeys.keys = ivi.sshKeys; extraGroups = ["wheel" "networkmanager" "docker" "transmission"]; diff --git a/profiles/core/syncthing.nix b/profiles/core/syncthing.nix index a1767a6..7135fad 100644 --- a/profiles/core/syncthing.nix +++ b/profiles/core/syncthing.nix @@ -1,8 +1,10 @@ -{config, lib,...}: with lib; { +{machine, config, lib,...}: with lib; let + group = if machine.isDarwin then (builtins.toString config.ivi.gid) else config.ivi.group; +in { services.syncthing = { enable = true; user = ivi.username; - inherit (config.ivi) group; + inherit group; dataDir = config.ivi.home; overrideDevices = true; overrideFolders = true; |
