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";
|
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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user