Finish modularizing nix config

This commit is contained in:
Michael Thomas 2022-01-17 05:08:17 +00:00
parent a8b3f865b7
commit 9f301190be
3 changed files with 18 additions and 41 deletions

View File

@ -10,24 +10,6 @@
./hardware-configuration.nix
];
# Auto cleanup
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
nixpkgs.config = {
allowUnfree = true;
};
networking.hostName = "nixos"; # Define your hostname.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.

View File

@ -10,24 +10,6 @@
./hardware-configuration.nix
];
# Auto cleanup
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
nixpkgs.config = {
allowUnfree = true;
};
# Set your time zone.
time.timeZone = "America/New_York";

View File

@ -1,8 +1,21 @@
{ pkgs, ... }:
{
nix.extraOptions = ''
experimental-features = flakes nix-command
'';
# this is required until nix 2.4 is released
nix.package = pkgs.nixUnstable;
nix = {
extraOptions = ''
experimental-features = flakes nix-command
'';
# this is required until nix 2.4 is released
package = pkgs.nixUnstable;
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
nixpkgs.config = {
allowUnfree = true;
};
}