From 1f27213636579bea1178eac1c80afd9e58c55939 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Wed, 9 Nov 2022 23:07:17 +0100 Subject: nixos: enable flakes --- nixos/configuration.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nixos') 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. -- cgit v1.2.3