edit home.nix @2025-12-11 12:38:54
This commit is contained in:
parent
6a4d493911
commit
4bfb8f9fce
2 changed files with 21 additions and 0 deletions
|
|
@ -72,6 +72,7 @@
|
||||||
"storage"
|
"storage"
|
||||||
"libvirtd"
|
"libvirtd"
|
||||||
"video"
|
"video"
|
||||||
|
"podman"
|
||||||
"render"
|
"render"
|
||||||
];
|
];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
|
|
|
||||||
|
|
@ -102,4 +102,24 @@
|
||||||
defaultCacheTtlSsh = 28800;
|
defaultCacheTtlSsh = 28800;
|
||||||
sshKeys = [ ];
|
sshKeys = [ ];
|
||||||
};
|
};
|
||||||
|
let
|
||||||
|
staticDir = ../../static;
|
||||||
|
|
||||||
|
staticEntries = builtins.readDir staticDir;
|
||||||
|
|
||||||
|
# filter only directories
|
||||||
|
dirNames = builtins.attrNames
|
||||||
|
(lib.attrsets.filterAttrs (_name: type: type == "directory") staticEntries);
|
||||||
|
in {
|
||||||
|
xdg.configFile =
|
||||||
|
builtins.listToAttrs (map
|
||||||
|
(name: {
|
||||||
|
name = name; # becomes ~/.config/${name}
|
||||||
|
value = {
|
||||||
|
source = "${staticDir}/${name}";
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
dirNames);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue