Use flake-utils-plus

This commit is contained in:
Charlotte Van Petegem 2021-03-24 11:07:32 +01:00
parent 809457c8f9
commit eb385040a7
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 53 additions and 62 deletions

View file

@ -43,10 +43,6 @@ in
default = true;
example = false;
};
enableFlakes = lib.mkOption {
default = true;
example = false;
};
unfreePackages = lib.mkOption {
default = [ ];
example = [ "teams" ];
@ -82,17 +78,11 @@ in
'' + (lib.optionalString config.chvp.nix.enableDirenv ''
keep-outputs = true
keep-derivations = true
'') + (lib.optionalString config.chvp.nix.enableFlakes ''
experimental-features = nix-command flakes
'');
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.chvp.nix.unfreePackages;
nixpkgs.overlays = lib.mkIf config.chvp.nix.enableFlakes [
(self: super: {
nix = super.nixUnstable;
})
];
nixpkgs.overlays = [ (self: super: { nix = super.nixUnstable; }) ];
home-manager.users.charlotte = { ... }:
lib.recursiveUpdate