diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 01:50:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 04:24:45 +0900 |
| commit | 9e48d7f5626aa966a23754534f3120855d6a7c32 (patch) | |
| tree | ade6eb09abd52b4c64bb5eb9dfb5246ee93454fe /nixos.nix | |
| parent | f280994957bdc1c6defdd4bd9dcc44dd83a5cfd5 (diff) | |
hst/config: move container fields from toplevel
This change also moves pd behaviour to cmd/hakurei, as this does not belong in the hst API.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'nixos.nix')
| -rw-r--r-- | nixos.nix | 32 |
1 files changed, 15 insertions, 17 deletions
@@ -105,27 +105,11 @@ in isGraphical = if app.gpu != null then app.gpu else app.enablements.wayland || app.enablements.x11; conf = { - path = - if app.path == null then - pkgs.writeScript "${app.name}-start" '' - #!${pkgs.zsh}${pkgs.zsh.shellPath} - ${script} - '' - else - app.path; - args = if app.args == null then [ "${app.name}-start" ] else app.args; - inherit id; - + inherit (app) identity groups enablements; inherit (dbusConfig) session_bus system_bus; direct_wayland = app.insecureWayland; - username = getsubname fid app.identity; - home = getsubhome fid app.identity; - - inherit (cfg) shell; - inherit (app) identity groups enablements; - container = { inherit (app) wait_delay @@ -219,6 +203,20 @@ in ensure = true; } ]; + + username = getsubname fid app.identity; + inherit (cfg) shell; + home = getsubhome fid app.identity; + + path = + if app.path == null then + pkgs.writeScript "${app.name}-start" '' + #!${pkgs.zsh}${pkgs.zsh.shellPath} + ${script} + '' + else + app.path; + args = if app.args == null then [ "${app.name}-start" ] else app.args; }; }; |
