diff --git a/home.nix b/home.nix index 1d20477..5d5b323 100644 --- a/home.nix +++ b/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 ]; }