summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-11-09 23:07:17 +0100
committerQuentin Aristote <quentin@aristote.fr>2022-11-09 23:07:17 +0100
commit1f27213636579bea1178eac1c80afd9e58c55939 (patch)
tree2d0fe7cc9c84d4a09f6c9c40c415eca6a407e1d0 /nixos
parente8f45d9e5e94d74934cc930fe282e76bf237790e (diff)
nixos: enable flakes
Diffstat (limited to 'nixos')
-rw-r--r--nixos/configuration.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
index 085bcf2..9b29fec 100644
--- a/nixos/configuration.nix
+++ b/nixos/configuration.nix
@@ -22,11 +22,10 @@
nixpkgs.config = { allowUnfree = true; };
nix = {
- # package = pkgs.nixUnstable;
- # extraOptions = ''
- # experimental-features = nix-command flakes
- # '';
- settings.auto-optimise-store = true;
+ settings = {
+ auto-optimise-store = true;
+ experimental-features = [ "nix-command" "flakes" ];
+ };
gc = {
automatic = true;
dates = "daily";
@@ -37,7 +36,8 @@
enable = true;
flags = [ "--upgrade-all" ];
};
- systemd.services.nix-gc.after = lib.mkIf config.system.autoUpgrade.enable [ "nixos-upgrade.service" ];
+ systemd.services.nix-gc.after =
+ lib.mkIf config.system.autoUpgrade.enable [ "nixos-upgrade.service" ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.