diff --git a/home/home.nix b/home/home.nix index 1691f5b..56f90a6 100644 --- a/home/home.nix +++ b/home/home.nix @@ -43,7 +43,13 @@ let gpx-viewer gpxsee cawbird - subsurface + #(subsurface.overrideAttrs (oldAttrs: { + # patches = (if (oldAttrs ? "patches") then oldAttrs.patches else []) ++ [ + # pkgs.fetchpatch { + # url = "https://github.com/subsurface/subsurface/commit/944165ea06e2f5edb70d64ce9a0bae4ab21017ba.patch"; + # hash = "1111111111111111111111111111111111111111111111111111"; + # }]; + # })) yate # split and merge PDFs in a GUI pdfarranger diff --git a/nixos/configuration.nix b/nixos/configuration.nix index ba0d81e..363eebc 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -45,7 +45,7 @@ in # powermanagement services.tlp = { - enable = true; + enable = false; settings = { "SATA_LINKPWR_ON_BAT" = "medium_power"; "SATA_LINKPWR_ON_AC" = "max_performance"; @@ -245,14 +245,15 @@ in boot.kernel.sysctl."kernel.sysrq" = 1; # NixOS default: 16 (only the sync command) # keep build-time deps around for offline-rebuilding - nix.extraOptions = '' - keep-outputs = true - keep-derivations = true - trusted-users = spiollinux - experimental-features = nix-command - ''; - # use all cores for building - nix.buildCores = 0; + nix.settings = { + # keep around all inputs necessary for offline-rebuilding the system + keep-outputs = true; + keep-derivations = true; + trusted-users = [ "spiollinux" ]; + experimental-features = [ "nix-command" "flakes" ]; + # use all cores for building + cores = 0; + }; # override tmpdir for daemon #systemd.services.nix-daemon.environment.TMPDIR = "/var/tmp"; diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index e1128d6..dd7f080 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -11,7 +11,7 @@ in ( builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware"; - rev = "d38958a6aa5bdbf3239f26a04689f3d9ae7da0c0"; + rev = "7883883d135ce5b7eae5dce4bfa12262b85c1c46"; } + "/lenovo/thinkpad/t440s" ) ]; @@ -84,7 +84,7 @@ in { device = "/dev/disk/by-uuid/bf928178-4e92-4e7e-8df2-18fbd658eecf"; } ]; - nix.maxJobs = lib.mkDefault 4; + nix.settings.max-jobs = lib.mkDefault 4; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.trackpoint = {