diff --git a/flake.nix b/flake.nix index 7083a01..ddd5a74 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,10 @@ username ? "samw", }: inputs.home-manager.lib.homeManagerConfiguration { - pkgs = inputs.nixpkgs.legacyPackages.${system}; + pkgs = (import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; # Yes I know it's bad for me + }); modules = [ { home = { inherit username; @@ -41,7 +44,18 @@ then "/Users/${username}" else "/home/${username}"; stateVersion = "21.11"; - };}] ++ profiles ++ [{nixpkgs.overlays = overlays;}]; + };}] ++ profiles ++ [ + {nixpkgs.overlays = overlays;} + # See comment in home/default.nix. + ({ pkgs, ... }: { + nix = { + enable = true; + package = pkgs.nix; + settings.experimental-features = "nix-command flakes"; + settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel) + }; + }) + ]; extraSpecialArgs = {inherit system;}; }; }; diff --git a/home/default.nix b/home/default.nix index 1075735..ae4a54a 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,12 +11,16 @@ in { "EDITOR" = "vim"; "WORDCHARS" = "\${WORDCHARS//[\\/.=]/}"; # ctrl-w on paths without make angery }; + /* + # For some reason this doesn't play nice when using home manager config from inside + # a nixos configuration. nix = { enable = true; package = pkgs.nix; settings.experimental-features = "nix-command flakes"; settings.max-jobs = "auto"; # Gotta go fast (build derivations in parallel) }; + */ programs = { home-manager.enable = true;