Update scripts for flakes

This commit is contained in:
Charlotte Van Petegem 2020-07-22 11:14:42 +02:00
parent ef64f8bc5d
commit 74573c6eb0
7 changed files with 24 additions and 40 deletions

View file

@ -18,7 +18,7 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix --experimental-features 'nix-commnand flakes' print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
'';
};

View file

@ -5,14 +5,6 @@
extraOptions = ''
experimental-features = nix-command flakes
'';
package = pkgs.nixUnstable.overrideAttrs (oldAttrs: {
src = pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "ff314f186e3f91d87af6ad96c0ae3b472494b940";
hash = "sha256-QibpLo4/gf2xYGoeQcgjZzH/qy5TBRVH+QCHgqOwur0=";
};
});
gc = {
automatic = true;
dates = "hourly";
@ -25,6 +17,19 @@
trustedUsers = [ "@wheel" ];
};
nixpkgs.overlays = [
(self: super: {
nix = super.nixUnstable.overrideAttrs (oldAttrs: {
src = self.fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "ff314f186e3f91d87af6ad96c0ae3b472494b940";
hash = "sha256-QibpLo4/gf2xYGoeQcgjZzH/qy5TBRVH+QCHgqOwur0=";
};
});
})
];
nixpkgs.config = import ./nix-store/config.nix;
home-manager.users.charlotte = { ... }: {