From 2be33911a431ebb6c9b4e930b05564b299e2a6ba Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Fri, 17 Apr 2026 19:07:24 +0200 Subject: [PATCH] fix: set orion linger directly in host nixos config --- modules/hosts/orion/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/modules/hosts/orion/default.nix b/modules/hosts/orion/default.nix index 566c621..e5b8efd 100644 --- a/modules/hosts/orion/default.nix +++ b/modules/hosts/orion/default.nix @@ -1,21 +1,24 @@ -{ lux, ... }: +{ den, lib, lux, ... }: let - lingerForUsers = { - user.linger = true; - }; + lingerForUsers = den.lib.perHost ( + { host, ... }: + { + nixos.users.users = lib.mapAttrs (_: _: { + linger = true; + }) host.users; + } + ); in { den.aspects.orion = { - provides.to-users = lingerForUsers; - - includes = with lux.services._; [ + includes = (with lux.services._; [ caddy openssh vaultwarden radicale actual gitea - ]; + ]) ++ [ lingerForUsers ]; nixos = { pkgs, ... }: