adding the final touches to a better nixos setup for TFC
This commit is contained in:
parent
46dcc769b3
commit
7210c8d8b1
0
scripts/update-nix
Normal file → Executable file
0
scripts/update-nix
Normal file → Executable file
0
scripts/upgrade-nix
Normal file → Executable file
0
scripts/upgrade-nix
Normal file → Executable file
|
@ -13,7 +13,24 @@
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 20d";
|
||||||
};
|
};
|
||||||
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
system.autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
dates = "02:00";
|
||||||
|
allowReboot = true;
|
||||||
|
flake = "${config.users.users.chris.home}/conf";
|
||||||
|
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnFree = true;
|
nixpkgs.config.allowUnFree = true;
|
||||||
|
|
||||||
|
@ -74,6 +91,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
|
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
|
||||||
|
environment.homeBinInPath = true;
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
@ -349,13 +367,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
system.autoUpgrade = {
|
|
||||||
enable = true;
|
|
||||||
dates = "01:00";
|
|
||||||
allowReboot = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
fileSystems."/storage" =
|
fileSystems."/storage" =
|
||||||
{ device = "/dev/disk/by-label/STORAGE";
|
{ device = "/dev/disk/by-label/STORAGE";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=@" "noatime" "nodiratime" "compress=zstd" ];
|
options = [ "noatime" "nodiratime" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
|
|
Loading…
Reference in a new issue