Extra lines to ensure flakes work

This commit is contained in:
Emmet 2023-10-29 16:32:06 -05:00
parent a2658e0140
commit 2774c0bc08
2 changed files with 10 additions and 4 deletions

View file

@ -15,8 +15,11 @@
"/nix/var/nix/profiles/per-user/root/channels"
];
# Experimental features
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Ensure nix flakes are enabled
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# I'm sorry Stallman-taichou
nixpkgs.config.allowUnfree = true;

View file

@ -29,8 +29,11 @@
"/nix/var/nix/profiles/per-user/root/channels"
];
# Experimental features
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Ensure nix flakes are enabled
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# I'm sorry Stallman-taichou
nixpkgs.config.allowUnfree = true;