about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-12-03 17:07:48 +0100
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-12-06 12:56:35 +0100
commitbd8839836974816f42c940c1dfe3e193b7381aae (patch)
treeb6f0ee440b5423121ba5daf77e603527ac4730a1 /nixos
parent625d82720e78535c43a23472797b396ec42f8c4f (diff)
downloadnixlib-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.nix6
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";