fix: set orion linger directly in host nixos config
This commit is contained in:
@@ -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, ... }:
|
||||
|
||||
Reference in New Issue
Block a user