From 61457328916cef7dd4ff6c3e5da59e621553ff5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Tue, 2 Sep 2025 10:17:05 +0200 Subject: [PATCH] update system --- flake.nix | 21 ++++++++++++++++++++- hosts/MONSTER/default.nix | 12 ------------ hosts/aero/default.nix | 12 ------------ hosts/shark/default.nix | 12 ------------ modules/nixos/hardware/fv43u.nix | 6 +++--- modules/nixos/usecases/gaming.nix | 2 ++ 6 files changed, 25 insertions(+), 40 deletions(-) diff --git a/flake.nix b/flake.nix index dfc359c..71479d4 100644 --- a/flake.nix +++ b/flake.nix @@ -101,7 +101,21 @@ { inherit username hostname gpu-offload; }; - nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; + nix = { + nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; + settings = { + auto-optimise-store = true; + experimental-features = [ + "nix-command" + "flakes" + ]; + }; + gc = { + automatic = true; + randomizedDelaySec = "14m"; + options = "--deleteOlderThan 10d"; + }; + }; networking.hostName = hostname; services.flatpak.enable = true; home-manager = { @@ -117,6 +131,11 @@ ./modules/home-manager/modules/nixvim ]; users.${username} = { + nix.gc = { + automatic = true; + randomizedDelaySec = "14m"; + options = "--deleteOlderThan 10d"; + }; imports = [ ./modules/home-manager ./hosts/${hostname}/home.nix diff --git a/hosts/MONSTER/default.nix b/hosts/MONSTER/default.nix index 6595a97..0e7bd40 100644 --- a/hosts/MONSTER/default.nix +++ b/hosts/MONSTER/default.nix @@ -2,18 +2,6 @@ { imports = [ ./hardware-configuration.nix ]; - nix = { - settings.experimental-features = [ - "nix-command" - "flakes" - ]; - gc = { - automatic = true; - randomizedDelaySec = "14m"; - options = "--deleteOlderThan 10d"; - }; - }; - boot = { quiet.enable = true; diff --git a/hosts/aero/default.nix b/hosts/aero/default.nix index ddc8713..fbece9d 100644 --- a/hosts/aero/default.nix +++ b/hosts/aero/default.nix @@ -7,18 +7,6 @@ { imports = [ ./hardware-configuration.nix ]; - nix = { - settings.experimental-features = [ - "nix-command" - "flakes" - ]; - gc = { - automatic = true; - randomizedDelaySec = "14m"; - options = "--deleteOlderThan 10d"; - }; - }; - boot = { quiet.enable = true; diff --git a/hosts/shark/default.nix b/hosts/shark/default.nix index 1647cc4..5f04fd5 100644 --- a/hosts/shark/default.nix +++ b/hosts/shark/default.nix @@ -7,18 +7,6 @@ { imports = [ ./hardware-configuration.nix ]; - nix = { - settings.experimental-features = [ - "nix-command" - "flakes" - ]; - gc = { - automatic = true; - randomizedDelaySec = "14m"; - options = "--deleteOlderThan 10d"; - }; - }; - boot = { quiet.enable = true; diff --git a/modules/nixos/hardware/fv43u.nix b/modules/nixos/hardware/fv43u.nix index 9e9fe51..de1504d 100644 --- a/modules/nixos/hardware/fv43u.nix +++ b/modules/nixos/hardware/fv43u.nix @@ -15,7 +15,7 @@ in enable = mkEnableOption "Enable optimisations for the Gigabyte FV43U monitor"; hdr = mkOption { type = types.bool; - default = true; + default = false; description = "Enable HDR support for the Gigabyte FV43U monitor."; }; }; @@ -64,7 +64,7 @@ in slave_count_for_center_master = 0; mfact = 0.4; }; - render.direct_scanout = 1; + render.direct_scanout = 0; /* monitor = [ "${monitorline},sdrbrightness,1.3" @@ -78,7 +78,7 @@ in scale = 1; bitdepth = 10; addreserved = "340,0,0,0"; - cm = "hdr"; + cm = if cfg.hdr then "hdr" else "srgb"; sdr_min_luminance = 0.25; sdr_max_luminance = 400; }; diff --git a/modules/nixos/usecases/gaming.nix b/modules/nixos/usecases/gaming.nix index c4345d7..b4b989f 100644 --- a/modules/nixos/usecases/gaming.nix +++ b/modules/nixos/usecases/gaming.nix @@ -38,7 +38,9 @@ in ]; }) rpcs3 + bottles wineWowPackages.stagingFull + wineWow64Packages.stagingFull winetricks protontricks mangohud