smol refactor

This commit is contained in:
Tao Tien 2024-07-17 15:25:57 -07:00
parent 49c038644a
commit 79a2a85bd8
3 changed files with 16 additions and 19 deletions

View file

@ -153,6 +153,14 @@
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = ["root" "@wheel"]; trusted-users = ["root" "@wheel"];
system-features = [
"benchmark"
"big-parallel"
"gccarch-znver3"
"gccarch-znver4"
"kvm"
"nixos-test"
];
}; };
nixpkgs.config = {allowUnfree = true;}; nixpkgs.config = {allowUnfree = true;};

View file

@ -4,15 +4,6 @@
lib, lib,
... ...
}: { }: {
nix.settings.system-features = [
"benchmark"
"big-parallel"
"gccarch-znver3"
"gccarch-znver4"
"kvm"
"nixos-test"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# egl-wayland # egl-wayland
# gpt4all-chat # gpt4all-chat

View file

@ -15,14 +15,6 @@
# }); # });
# }) # })
# ]; # ];
nix.settings.system-features = [
"benchmark"
"big-parallel"
"gccarch-znver3"
"gccarch-znver4"
"kvm"
"nixos-test"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
fw-ectool fw-ectool
@ -51,7 +43,13 @@ AttrKeyboardIntegration=internal";
{ {
hostName = "nocomputer"; hostName = "nocomputer";
systems = ["x86_64-linux" "i686-linux"]; systems = ["x86_64-linux" "i686-linux"];
supportedFeatures = ["gccarch-znver4" "big-parallel" "kvm" "nixos-test" "benchmark"]; supportedFeatures = [
"benchmark"
"big-parallel"
"gccarch-znver4"
"kvm"
"nixos-test"
];
} }
]; ];
nix.extraOptions = '' nix.extraOptions = ''
@ -86,7 +84,7 @@ AttrKeyboardIntegration=internal";
# framework-laptop-kmod # framework-laptop-kmod
# ]; # ];
powerManagement.cpuFreqGovernor = "powersave"; powerManagement.cpuFreqGovernor = "powersave";
systemd.sleep.extraConfig = "HibernateDelaySec=180m"; systemd.sleep.extraConfig = "HibernateDelaySec=360m";
fileSystems."/home/tao/games" = { fileSystems."/home/tao/games" = {
device = "/dev/disk/by-uuid/d97a81dc-669c-41d1-912b-829f88fd6f69"; device = "/dev/disk/by-uuid/d97a81dc-669c-41d1-912b-829f88fd6f69";