Browse Source

Use user packages for home-manager

main
Sam Hatfield 3 months ago
parent
commit
c9b44e2aaa
  1. 3
      flake.nix
  2. 15
      home.nix

3
flake.nix

@ -33,6 +33,7 @@
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${username} = import ./home.nix;
};
}
@ -72,6 +73,8 @@
autoOptimiseStore = true;
extraOptions = ''
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
'';
gc.automatic = true;
package = pkgs.nixUnstable;

15
home.nix

@ -38,20 +38,7 @@
sessionVariables = { EDITOR = "kak"; };
};
nix = {
package = pkgs.nixUnstable;
settings = {
experimental-features = "nix-command flakes";
keep-derivations = "true";
keep-outputs = "true";
};
};
nixpkgs.overlays = [
(final: prev: {
nix-direnv = prev.nix-direnv.override { enableFlakes = true; };
})
];
nixpkgs.config = builtins.readFile ./nixpkgs-config.nix;
programs.afew = {
enable = true;

Loading…
Cancel
Save