summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-07 09:31:01 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-07 09:31:01 +0200
commit73b08cbd76d4471c9a6fddd05265d7d7fc4c45ff (patch)
tree9555352bed8b08d4c4d28ea5911144ecb5b0ae1a
parent0213eba25b05c1cdd8d11f936c77c85f25094120 (diff)
downloadnixos-73b08cbd76d4471c9a6fddd05265d7d7fc4c45ff.tar
nixos-73b08cbd76d4471c9a6fddd05265d7d7fc4c45ff.tar.gz
nixos-73b08cbd76d4471c9a6fddd05265d7d7fc4c45ff.tar.bz2
nixos-73b08cbd76d4471c9a6fddd05265d7d7fc4c45ff.tar.xz
nixos-73b08cbd76d4471c9a6fddd05265d7d7fc4c45ff.zip
...
-rw-r--r--accounts/gkleen@sif/xmonad/xmonad.hs2
-rw-r--r--flake.lock17
-rw-r--r--flake.nix6
-rw-r--r--hosts/sif/default.nix6
-rw-r--r--hosts/sif/hw.nix2
-rw-r--r--user-profiles/mpv/default.nix1
-rw-r--r--user-profiles/yt-dlp.nix5
7 files changed, 32 insertions, 7 deletions
diff --git a/accounts/gkleen@sif/xmonad/xmonad.hs b/accounts/gkleen@sif/xmonad/xmonad.hs
index d7a78a2d..a44d3bb7 100644
--- a/accounts/gkleen@sif/xmonad/xmonad.hs
+++ b/accounts/gkleen@sif/xmonad/xmonad.hs
@@ -931,7 +931,7 @@ myKeys' conf host = Map.fromList $
931 where 931 where
932 modm = XMonad.modMask conf 932 modm = XMonad.modMask conf
933 933
934 brCycle = [0, 1 % 100, 1 % 10, 1 % 4, 1 % 2, 3 % 4, 1] 934 brCycle = [0, 1 % 500, 1 % 250, 1 % 100, 1 % 10, 1 % 4, 1 % 2, 3 % 4, 1]
935 935
936 powerActWords = ["poweroff", "reboot", "hibernate", "suspend"] 936 powerActWords = ["poweroff", "reboot", "hibernate", "suspend"]
937 powerActCompl = mkComplFunFromList' xPConfigMonospace powerActWords 937 powerActCompl = mkComplFunFromList' xPConfigMonospace powerActWords
diff --git a/flake.lock b/flake.lock
index e7ade8b5..5bfe9859 100644
--- a/flake.lock
+++ b/flake.lock
@@ -434,6 +434,22 @@
434 "type": "github" 434 "type": "github"
435 } 435 }
436 }, 436 },
437 "nixos-hardware": {
438 "locked": {
439 "lastModified": 1722332872,
440 "narHash": "sha256-2xLM4sc5QBfi0U/AANJAW21Bj4ZX479MHPMPkB+eKBU=",
441 "owner": "NixOS",
442 "repo": "nixos-hardware",
443 "rev": "14c333162ba53c02853add87a0000cbd7aa230c2",
444 "type": "github"
445 },
446 "original": {
447 "owner": "NixOS",
448 "ref": "master",
449 "repo": "nixos-hardware",
450 "type": "github"
451 }
452 },
437 "nixpkgs": { 453 "nixpkgs": {
438 "locked": { 454 "locked": {
439 "lastModified": 1689261696, 455 "lastModified": 1689261696,
@@ -779,6 +795,7 @@
779 "home-manager": "home-manager", 795 "home-manager": "home-manager",
780 "home-manager-eostre": "home-manager-eostre", 796 "home-manager-eostre": "home-manager-eostre",
781 "nix-index-database": "nix-index-database", 797 "nix-index-database": "nix-index-database",
798 "nixos-hardware": "nixos-hardware",
782 "nixpkgs": "nixpkgs_2", 799 "nixpkgs": "nixpkgs_2",
783 "nixpkgs-eostre": "nixpkgs-eostre", 800 "nixpkgs-eostre": "nixpkgs-eostre",
784 "nixpkgs-pgbackrest": "nixpkgs-pgbackrest", 801 "nixpkgs-pgbackrest": "nixpkgs-pgbackrest",
diff --git a/flake.nix b/flake.nix
index 400762fa..c317f5c1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -157,6 +157,12 @@
157 poetry2nix.follows = "poetry2nix"; 157 poetry2nix.follows = "poetry2nix";
158 }; 158 };
159 }; 159 };
160 nixos-hardware = {
161 type = "github";
162 owner = "NixOS";
163 repo = "nixos-hardware";
164 ref = "master";
165 };
160 }; 166 };
161 167
162 outputs = { self, nixpkgs, home-manager, sops-nix, deploy-rs, nvfetcher, ... }@inputs: 168 outputs = { self, nixpkgs, home-manager, sops-nix, deploy-rs, nvfetcher, ... }@inputs:
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix
index 610d990d..3525015d 100644
--- a/hosts/sif/default.nix
+++ b/hosts/sif/default.nix
@@ -1,4 +1,4 @@
1{ flake, pkgs, customUtils, lib, config, path, ... }: 1{ flake, flakeInputs, pkgs, customUtils, lib, config, path, ... }:
2let 2let
3 mwnSubnetsPublic = 3 mwnSubnetsPublic =
4 [ "129.187.0.0/16" "141.40.0.0/16" "141.84.0.0/16" 4 [ "129.187.0.0/16" "141.40.0.0/16" "141.84.0.0/16"
@@ -15,6 +15,7 @@ in {
15 ./mail 15 ./mail
16 tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines 16 tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines
17 networkmanager 17 networkmanager
18 flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1
18 ]; 19 ];
19 20
20 config = { 21 config = {
@@ -59,7 +60,6 @@ in {
59 plymouth.enable = true; 60 plymouth.enable = true;
60 61
61 kernelPackages = pkgs.linuxPackages_latest; 62 kernelPackages = pkgs.linuxPackages_latest;
62 kernelParams = [ "i915.fastboot=1" "intel_pstate=no_hwp" "acpi_backlight=vendor" "thinkpad-acpi.brightness_enable=1" "quiet" ];
63 extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; 63 extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
64 kernelModules = ["v4l2loopback"]; 64 kernelModules = ["v4l2loopback"];
65 kernelPatches = [ 65 kernelPatches = [
@@ -536,7 +536,7 @@ in {
536 prime = { 536 prime = {
537 nvidiaBusId = "PCI:1:0:0"; 537 nvidiaBusId = "PCI:1:0:0";
538 intelBusId = "PCI:0:2:0"; 538 intelBusId = "PCI:0:2:0";
539 sync.enable = true; 539 reverseSync.enable = true;
540 }; 540 };
541 }; 541 };
542 542
diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix
index d01582e0..077d25a6 100644
--- a/hosts/sif/hw.nix
+++ b/hosts/sif/hw.nix
@@ -95,7 +95,5 @@
95 # High-DPI console 95 # High-DPI console
96 console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; 96 console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
97 97
98 hardware.cpu.intel.updateMicrocode = true;
99
100 hardware.enableRedistributableFirmware = true; 98 hardware.enableRedistributableFirmware = true;
101} 99}
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix
index 620be49d..bbb6d9ac 100644
--- a/user-profiles/mpv/default.nix
+++ b/user-profiles/mpv/default.nix
@@ -13,6 +13,7 @@
13 osd-font = "Fira Sans"; 13 osd-font = "Fira Sans";
14 sub-font = "Fira Sans"; 14 sub-font = "Fira Sans";
15 # vo = "gpu"; 15 # vo = "gpu";
16 vo = "gpu-next";
16 hwdec = "auto"; 17 hwdec = "auto";
17 force-window = "yes"; 18 force-window = "yes";
18 # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; 19 # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]";
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix
index 7d2a1082..550d6a78 100644
--- a/user-profiles/yt-dlp.nix
+++ b/user-profiles/yt-dlp.nix
@@ -12,7 +12,10 @@
12 "bestvideo*+bestaudio" 12 "bestvideo*+bestaudio"
13 "best" 13 "best"
14 ]; 14 ];
15 sub-langs = "all,-live_chat,-rechat"; 15 embed-subs = true;
16 # write-subs = true;
17 # write-auto-subs = true;
18 sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat";
16 prefer-free-formats = true; 19 prefer-free-formats = true;
17 embed-metadata = true; 20 embed-metadata = true;
18 # downloader = "${pkgs.axel}/bin/axel"; 21 # downloader = "${pkgs.axel}/bin/axel";