diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2023-12-03 17:07:48 +0100 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-12-06 12:56:35 +0100 |
commit | bd8839836974816f42c940c1dfe3e193b7381aae (patch) | |
tree | b6f0ee440b5423121ba5daf77e603527ac4730a1 /nixos | |
parent | 625d82720e78535c43a23472797b396ec42f8c4f (diff) | |
download | nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.tar nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.tar.gz nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.tar.bz2 nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.tar.lz nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.tar.xz nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.tar.zst nixlib-bd8839836974816f42c940c1dfe3e193b7381aae.zip |
nixos/harmonia: allocate user
DynamicUser seem to broken in combination with the nix-daemon.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/harmonia.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/harmonia.nix b/nixos/modules/services/networking/harmonia.nix index beaa7d00b6ce..d0f4a8a6e633 100644 --- a/nixos/modules/services/networking/harmonia.nix +++ b/nixos/modules/services/networking/harmonia.nix @@ -29,6 +29,11 @@ in config = lib.mkIf cfg.enable { nix.settings.extra-allowed-users = [ "harmonia" ]; + users.users.harmonia = { + isSystemUser = true; + group = "harmonia"; + }; + users.groups.harmonia = { }; systemd.services.harmonia = { description = "harmonia binary cache service"; @@ -50,7 +55,6 @@ in ExecStart = lib.getExe cfg.package; User = "harmonia"; Group = "harmonia"; - DynamicUser = true; PrivateUsers = true; DeviceAllow = [ "" ]; UMask = "0066"; |