aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixos.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos.nix')
-rw-r--r--nixos.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/nixos.nix b/nixos.nix
index d67d3487..a26b3658 100644
--- a/nixos.nix
+++ b/nixos.nix
@@ -124,6 +124,7 @@ in
username = getsubname fid app.identity;
data = getsubhome fid app.identity;
+ inherit (cfg) shell;
inherit (app) identity groups;
container = {
@@ -177,23 +178,23 @@ in
auto_etc = true;
symlink = [
- [
- "*/run/current-system"
- "/run/current-system"
- ]
+ {
+ target = "/run/current-system";
+ linkname = "*/run/current-system";
+ }
]
++ optionals (isGraphical && config.hardware.graphics.enable) (
[
- [
- config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver"."L+".argument
- "/run/opengl-driver"
- ]
+ {
+ target = "/run/opengl-driver";
+ linkname = config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver"."L+".argument;
+ }
]
++ optionals (app.multiarch && config.hardware.graphics.enable32Bit) [
- [
- config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver-32"."L+".argument
- /run/opengl-driver-32
- ]
+ {
+ target = "/run/opengl-driver-32";
+ linkname = config.systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver-32"."L+".argument;
+ }
]
);
};