edit home.nix @2025-12-11 12:38:54

This commit is contained in:
Narrator 2025-12-11 12:38:54 +01:00
parent 6a4d493911
commit 4bfb8f9fce
Signed by: Narrator
SSH key fingerprint: SHA256:vVtKn4QxRw+5lhRxGf6CeaA4Dgnsl7DMlQEzwkcMPV0
2 changed files with 21 additions and 0 deletions

View file

@ -72,6 +72,7 @@
"storage"
"libvirtd"
"video"
"podman"
"render"
];
shell = pkgs.fish;

View file

@ -102,4 +102,24 @@
defaultCacheTtlSsh = 28800;
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);
}