diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-11-09 23:07:17 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-11-09 23:07:17 +0100 |
| commit | 1f27213636579bea1178eac1c80afd9e58c55939 (patch) | |
| tree | 2d0fe7cc9c84d4a09f6c9c40c415eca6a407e1d0 /nixos | |
| parent | e8f45d9e5e94d74934cc930fe282e76bf237790e (diff) | |
nixos: enable flakes
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/configuration.nix | 12 |
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. |
