Iterative Linking on config/ folder
This commit is contained in:
13
home.nix
13
home.nix
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user