From 79a2a85bd8b74878b6c58f9f7b117ee5618e6598 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:25:57 -0700 Subject: [PATCH] smol refactor --- systems/BASED.nix | 8 ++++++++ systems/NOcomputer.nix | 9 --------- systems/NOlaptop.nix | 18 ++++++++---------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/systems/BASED.nix b/systems/BASED.nix index c0f964c..f57081f 100644 --- a/systems/BASED.nix +++ b/systems/BASED.nix @@ -153,6 +153,14 @@ experimental-features = "nix-command flakes"; auto-optimise-store = true; trusted-users = ["root" "@wheel"]; + system-features = [ + "benchmark" + "big-parallel" + "gccarch-znver3" + "gccarch-znver4" + "kvm" + "nixos-test" + ]; }; nixpkgs.config = {allowUnfree = true;}; diff --git a/systems/NOcomputer.nix b/systems/NOcomputer.nix index 87149c9..fe0d1fd 100644 --- a/systems/NOcomputer.nix +++ b/systems/NOcomputer.nix @@ -4,15 +4,6 @@ lib, ... }: { - nix.settings.system-features = [ - "benchmark" - "big-parallel" - "gccarch-znver3" - "gccarch-znver4" - "kvm" - "nixos-test" - ]; - environment.systemPackages = with pkgs; [ # egl-wayland # gpt4all-chat diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index 51e2a38..abfa43f 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -15,14 +15,6 @@ # }); # }) # ]; - nix.settings.system-features = [ - "benchmark" - "big-parallel" - "gccarch-znver3" - "gccarch-znver4" - "kvm" - "nixos-test" - ]; environment.systemPackages = with pkgs; [ fw-ectool @@ -51,7 +43,13 @@ AttrKeyboardIntegration=internal"; { hostName = "nocomputer"; 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 = '' @@ -86,7 +84,7 @@ AttrKeyboardIntegration=internal"; # framework-laptop-kmod # ]; powerManagement.cpuFreqGovernor = "powersave"; - systemd.sleep.extraConfig = "HibernateDelaySec=180m"; + systemd.sleep.extraConfig = "HibernateDelaySec=360m"; fileSystems."/home/tao/games" = { device = "/dev/disk/by-uuid/d97a81dc-669c-41d1-912b-829f88fd6f69";