Iterative Linking on config/ folder

This commit is contained in:
2026-06-28 19:39:33 +02:00
parent 74c0c7cc71
commit 11df63fc71

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
home.username = "marvin";
@@ -52,10 +52,12 @@
};
};
home.file = {
".config/qtile".source = ./config/qtile;
".config/nvim".source = ./config/nvim;
};
home.file = lib.mapAttrs'
(name: _: lib.nameValuePair ".config/${name}" {
source = config.lib.file.mkOutOfStoreSymlink
"${config.home.homeDirectory}/nixos-dotfiles/config/${name}";
})
(lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./config));
home.packages = with pkgs; [
neovim
@@ -67,5 +69,6 @@
rofi
xwallpaper
steam
unzip
];
}