edit home.nix @2025-12-11 13:05:43
This commit is contained in:
parent
b29bcaa74b
commit
4c560af2e3
2 changed files with 6 additions and 6 deletions
2
edit.sh
2
edit.sh
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue