edit home.nix @2025-12-11 13:05:43

This commit is contained in:
Narrator 2025-12-11 13:05:43 +01:00
parent b29bcaa74b
commit 4c560af2e3
Signed by: Narrator
SSH key fingerprint: SHA256:vVtKn4QxRw+5lhRxGf6CeaA4Dgnsl7DMlQEzwkcMPV0
2 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@
set - euo pipefail
REPO_ROOT="$(dirname "$(realpath "$0")")"
HOSTS_DIR="$REPO_ROOT/"
HOSTS_DIR="$REPO_ROOT"
EDITOR="vim"
NIXOS_REBUILD_CMD="sudo nixos-rebuild switch --flake"

View file

@ -5,10 +5,10 @@ let
cfgDirs =
let
entries = builtins.readDir staticDir; # { nvim = "directory"; foo = "regular"; ... }
entries = builtins.readDir staticDir; # { nvim = "directory"; foo = "regular"; ... }
onlyDirs = lib.attrsets.filterAttrs (_name: type: type == "directory") entries;
in
builtins.attrNames onlyDirs; # [ "nvim" "kitty" ... ]
builtins.attrNames onlyDirs; # [ "nvim" "kitty" ... ]
in
{
imports = [
@ -114,14 +114,14 @@ in
};
xdg.configFile =
builtins.listToAttrs (map
(name: {
inherit name; # attr name, e.g. "nvim"
inherit name; # attr name, e.g. "nvim"
value = {
source = "${staticDir}/${name}"; # /nix/store/...-source/static/nvim
source = "${staticDir}/${name}"; # /nix/store/...-source/static/nvim
recursive = true;
};
})