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