From 0de15ae2403694b02de584ed5eee38d7c6e27b8b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 25 Nov 2026 09:48:16 +0100 Subject: ... --- _sources/generated.json | 28 +-- _sources/generated.nix | 28 +-- accounts/gkleen@skadhi/default.nix | 7 +- .../shell/quickshell/BatteryWidget.qml | 6 +- .../quickshell/Services/WallpaperSelector.qml | 2 +- .../shell/quickshell/WallpaperBackground.qml | 2 +- flake.lock | 125 ++++-------- flake.nix | 15 -- hosts/eostre/default.nix | 108 ----------- hosts/eostre/ruleset.nft | 101 ---------- hosts/skadhi/default.nix | 5 + hosts/vidhar/default.nix | 2 - hosts/vidhar/network/dhcp/default.nix | 102 +++------- system-profiles/core/default.nix | 2 +- system-profiles/initrd-ssh/default.nix | 47 ----- .../initrd-ssh/host-keys/vidhar-private.yaml | 31 --- .../initrd-ssh/host-keys/vidhar-public.yaml | 4 - system-profiles/initrd-ssh/module.nix | 216 --------------------- 18 files changed, 108 insertions(+), 723 deletions(-) delete mode 100644 hosts/eostre/default.nix delete mode 100644 hosts/eostre/ruleset.nft delete mode 100644 system-profiles/initrd-ssh/default.nix delete mode 100644 system-profiles/initrd-ssh/host-keys/vidhar-private.yaml delete mode 100644 system-profiles/initrd-ssh/host-keys/vidhar-public.yaml delete mode 100644 system-profiles/initrd-ssh/module.nix diff --git a/_sources/generated.json b/_sources/generated.json index 5b9149fb..dc6aa7b3 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -111,11 +111,11 @@ "passthru": null, "pinned": false, "src": { - "sha256": "sha256-LYDoTs7mZOHI85B7k59YZYGM30o9RSiNnQudF33zJ7c=", + "sha256": "sha256-GVIzn8cJx5VtbQ9YDZpBe2RhuWdNFwLXb2cyO/Wh2fw=", "type": "tarball", - "url": "https://github.com/wofr06/lesspipe/archive/refs/tags/v2.28.tar.gz" + "url": "https://github.com/wofr06/lesspipe/archive/refs/tags/v2.29.tar.gz" }, - "version": "2.28" + "version": "2.29" }, "mpv-autosave": { "cargoLock": null, @@ -355,7 +355,7 @@ }, "quickshell": { "cargoLock": null, - "date": "2026-10-16", + "date": "2026-10-21", "extract": null, "name": "quickshell", "passthru": null, @@ -365,13 +365,13 @@ "fetchSubmodules": false, "leaveDotGit": false, "name": null, - "rev": "2b4501a282689792b62e94f3fb30d8f512324fe6", - "sha256": "sha256-tq6x6CRG8Qikrjri59tzu9+b2gri8TjnShkGeh8kUgQ=", + "rev": "9b0f339b19057f4731bf3b48293307d7ef241671", + "sha256": "sha256-TiCGqLMpNIy7FERewgfKVluPsLVF96uc6x6xwZnMjdQ=", "sparseCheckout": [], "type": "git", "url": "https://git.outfoxxed.me/quickshell/quickshell.git" }, - "version": "2b4501a282689792b62e94f3fb30d8f512324fe6" + "version": "9b0f339b19057f4731bf3b48293307d7ef241671" }, "scutiger": { "cargoLock": null, @@ -437,7 +437,7 @@ }, "v4l2loopback": { "cargoLock": null, - "date": "2026-08-18", + "date": "2026-10-29", "extract": null, "name": "v4l2loopback", "passthru": null, @@ -449,12 +449,12 @@ "name": null, "owner": "umlaeute", "repo": "v4l2loopback", - "rev": "e27cd86c924112ab1fb5e792a7ea43a37ab2903f", - "sha256": "sha256-kCarEHsYxXyZSDVh+z/H7WIJ5EtJ3GT2jH67NuKEfB0=", + "rev": "442d720262e150084e7923068fb3c01acc42a253", + "sha256": "sha256-J8cPcFvCcppC8kO6TeaMkPS/NBR1U5dbCYWYW79W1jM=", "sparseCheckout": [], "type": "github" }, - "version": "e27cd86c924112ab1fb5e792a7ea43a37ab2903f" + "version": "442d720262e150084e7923068fb3c01acc42a253" }, "xcompose": { "cargoLock": null, @@ -491,12 +491,12 @@ "name": null, "owner": "yt-dlp", "repo": "yt-dlp", - "rev": "2026.08.19", - "sha256": "sha256-BM5ZeGTmHq+1xH6G/zsuCtjLgYgfRA11ya0zIHK5p4g=", + "rev": "2026.10.26", + "sha256": "sha256-0gX99Q45+1L4eH0YK0942DVTq5Wwscq3Qkj+N/EjHek=", "sparseCheckout": [], "type": "github" }, - "version": "2026.08.19" + "version": "2026.10.26" }, "yt-dlp-ejs": { "cargoLock": null, diff --git a/_sources/generated.nix b/_sources/generated.nix index 75d24d09..8c33f4af 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -72,10 +72,10 @@ }; lesspipe = { pname = "lesspipe"; - version = "2.28"; + version = "2.29"; src = fetchTarball { - url = "https://github.com/wofr06/lesspipe/archive/refs/tags/v2.28.tar.gz"; - sha256 = "sha256-LYDoTs7mZOHI85B7k59YZYGM30o9RSiNnQudF33zJ7c="; + url = "https://github.com/wofr06/lesspipe/archive/refs/tags/v2.29.tar.gz"; + sha256 = "sha256-GVIzn8cJx5VtbQ9YDZpBe2RhuWdNFwLXb2cyO/Wh2fw="; }; }; mpv-autosave = { @@ -223,17 +223,17 @@ }; quickshell = { pname = "quickshell"; - version = "2b4501a282689792b62e94f3fb30d8f512324fe6"; + version = "9b0f339b19057f4731bf3b48293307d7ef241671"; src = fetchgit { url = "https://git.outfoxxed.me/quickshell/quickshell.git"; - rev = "2b4501a282689792b62e94f3fb30d8f512324fe6"; + rev = "9b0f339b19057f4731bf3b48293307d7ef241671"; fetchSubmodules = false; deepClone = false; leaveDotGit = false; sparseCheckout = [ ]; - sha256 = "sha256-tq6x6CRG8Qikrjri59tzu9+b2gri8TjnShkGeh8kUgQ="; + sha256 = "sha256-TiCGqLMpNIy7FERewgfKVluPsLVF96uc6x6xwZnMjdQ="; }; - date = "2026-10-16"; + date = "2026-10-21"; }; scutiger = { pname = "scutiger"; @@ -275,15 +275,15 @@ }; v4l2loopback = { pname = "v4l2loopback"; - version = "e27cd86c924112ab1fb5e792a7ea43a37ab2903f"; + version = "442d720262e150084e7923068fb3c01acc42a253"; src = fetchFromGitHub { owner = "umlaeute"; repo = "v4l2loopback"; - rev = "e27cd86c924112ab1fb5e792a7ea43a37ab2903f"; + rev = "442d720262e150084e7923068fb3c01acc42a253"; fetchSubmodules = true; - sha256 = "sha256-kCarEHsYxXyZSDVh+z/H7WIJ5EtJ3GT2jH67NuKEfB0="; + sha256 = "sha256-J8cPcFvCcppC8kO6TeaMkPS/NBR1U5dbCYWYW79W1jM="; }; - date = "2026-08-18"; + date = "2026-10-29"; }; xcompose = { pname = "xcompose"; @@ -299,13 +299,13 @@ }; yt-dlp = { pname = "yt-dlp"; - version = "2026.08.19"; + version = "2026.10.26"; src = fetchFromGitHub { owner = "yt-dlp"; repo = "yt-dlp"; - rev = "2026.08.19"; + rev = "2026.10.26"; fetchSubmodules = false; - sha256 = "sha256-BM5ZeGTmHq+1xH6G/zsuCtjLgYgfRA11ya0zIHK5p4g="; + sha256 = "sha256-0gX99Q45+1L4eH0YK0942DVTq5Wwscq3Qkj+N/EjHek="; }; }; yt-dlp-ejs = { diff --git a/accounts/gkleen@skadhi/default.nix b/accounts/gkleen@skadhi/default.nix index 610fa551..a5a49419 100644 --- a/accounts/gkleen@skadhi/default.nix +++ b/accounts/gkleen@skadhi/default.nix @@ -78,6 +78,8 @@ in { (lib.removePrefix (config.home.homeDirectory + "/") config.services.unison.pairs."documents".stateDirectory) ".aqbanking" ".gnupg" + ".config/remmina" ".local/share/remmina" + ".local/share/gnucash" ]; }; @@ -225,11 +227,6 @@ in { export XDG_DATA_DIRS="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}''${XDG_DATA_DIRS:+:''${XDG_DATA_DIRS}}" ''; - xdg.configFile."systemd/user/home-manager.service.d/before-graphical-session.conf".text = '' - [Unit] - Before=graphical-session-pre.target - ''; - fonts = { fontconfig.enable = true; }; diff --git a/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml b/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml index b3c9173e..3a5abd24 100644 --- a/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml +++ b/accounts/gkleen@skadhi/shell/quickshell/BatteryWidget.qml @@ -46,11 +46,11 @@ Item { if (!root.batteryDevice?.ready) return "#555"; - if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 20 * 60) + if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.75) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 20 * 60) return "#f2201f"; - if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 40 * 60) + if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.75) && root.batteryDevice.state != UPowerDeviceState.Charging && root.batteryDevice.timeToEmpty < 40 * 60) return "#f28a21"; - if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.78)) + if (root.batteryDevice.state != UPowerDeviceState.FullyCharged && (root.batteryDevice.state != UPowerDeviceState.PendingCharge || root.batteryDevice.percentage < 0.75)) return "#fff"; return "#555"; } diff --git a/accounts/gkleen@skadhi/shell/quickshell/Services/WallpaperSelector.qml b/accounts/gkleen@skadhi/shell/quickshell/Services/WallpaperSelector.qml index c71a9cca..2cefdf87 100644 --- a/accounts/gkleen@skadhi/shell/quickshell/Services/WallpaperSelector.qml +++ b/accounts/gkleen@skadhi/shell/quickshell/Services/WallpaperSelector.qml @@ -4,5 +4,5 @@ Custom.FileSelector { id: root directory: @wallpapers@ - epoch: 79200000 + epoch: 158400000 } diff --git a/accounts/gkleen@skadhi/shell/quickshell/WallpaperBackground.qml b/accounts/gkleen@skadhi/shell/quickshell/WallpaperBackground.qml index 4f85a900..ee1cc8f1 100644 --- a/accounts/gkleen@skadhi/shell/quickshell/WallpaperBackground.qml +++ b/accounts/gkleen@skadhi/shell/quickshell/WallpaperBackground.qml @@ -76,7 +76,7 @@ Item { duration: { if (img === one && two.source == "" || img === two && one.source == "") return 0; - return 5000; + return 15000; } easing.type: Easing.OutCubic } diff --git a/flake.lock b/flake.lock index a7eadaf9..dbd47fae 100644 --- a/flake.lock +++ b/flake.lock @@ -502,11 +502,11 @@ ] }, "locked": { - "lastModified": 1792495086, - "narHash": "sha256-TyoYH983Nsc++1scw0SoOEKshPSJWJDxK7tTmuZ974M=", + "lastModified": 1793193205, + "narHash": "sha256-X6xa6sGA7RnJQuZGbFMC+K+KToWAlBDCCjJXfTwEPsw=", "owner": "nix-community", "repo": "home-manager", - "rev": "ec80131710bffcdf3b8498cf41f3a0579833b023", + "rev": "095fef2f265c3c0da4fe315efba8f8a04495ab34", "type": "github" }, "original": { @@ -516,27 +516,6 @@ "type": "github" } }, - "home-manager-eostre": { - "inputs": { - "nixpkgs": [ - "nixpkgs-eostre" - ] - }, - "locked": { - "lastModified": 1749562430, - "narHash": "sha256-M5MqsIsf+o7yngakVUW4poBGZaghB6sUpw7SsWA55kU=", - "owner": "gkleen", - "repo": "home-manager", - "rev": "dca5a2df9f8a00cc34bea6ead249a8446f5f069e", - "type": "github" - }, - "original": { - "owner": "gkleen", - "ref": "nixos-late-start-25.05", - "repo": "home-manager", - "type": "github" - } - }, "home-manager_2": { "inputs": { "nixpkgs": [ @@ -564,11 +543,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1792503832, - "narHash": "sha256-WsqPR04nPS1bi5bYva04cJJcJyHw7x/rbaJmoXMzF04=", + "lastModified": 1792739756, + "narHash": "sha256-s0TeXWG5Ci75Y/Hzon0Z7NrN/fG773Rc54/z6oPFszQ=", "owner": "nix-community", "repo": "impermanence", - "rev": "936ced36ecd25fcbd9b4789184b88aa2e4c2a901", + "rev": "fa627f4c8b8e92f58f58a73d99ee4e1304e64eb2", "type": "github" }, "original": { @@ -647,11 +626,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1792528076, - "narHash": "sha256-nzLrw3rEoDdqBrAfvUmQUhoSuui2jZc71iIQB7d/qoI=", + "lastModified": 1793693570, + "narHash": "sha256-HkkONRW4ziBLRrrG8PwrEPLU9zJWwlypiqoXDUpVdig=", "owner": "epireyn", "repo": "niri-flake", - "rev": "d62f632829c081ad44eb24b4be788fefde2686b2", + "rev": "7e37a989d1d81a7a0fa8ede4ca6ce7f1da81ff16", "type": "github" }, "original": { @@ -681,11 +660,11 @@ "niri-unstable": { "flake": false, "locked": { - "lastModified": 1787137621, - "narHash": "sha256-Brg8uuW8g2b5sr9HKYjW2P49ZQq7JhQPEJs/zmRUGko=", + "lastModified": 1793531598, + "narHash": "sha256-oDBKgWLot4/Ac9VuRdCMB6vIxRIMCYc8B9kIjp6M+bs=", "owner": "gkleen", "repo": "niri", - "rev": "fd66d564956584a3cca0e1ff7fd57d3b7fddfa70", + "rev": "42f5ccd7adf0de4416d66a5cd10183f2fb2a3658", "type": "github" }, "original": { @@ -723,11 +702,11 @@ ] }, "locked": { - "lastModified": 1792309949, - "narHash": "sha256-2DAEMk8YkV8OF6N2uw9jQ016cYoNkcgnq50AShwWxNw=", + "lastModified": 1793543282, + "narHash": "sha256-PHtGxKYM99f8WhGR5YD7iiCiwemKa2wUD4yVI2oALFg=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "1b4d1758fa6053c5d6284254a793134fa602fbff", + "rev": "cee0f879d338cf08f814210fa6c2b280594ade0a", "type": "github" }, "original": { @@ -807,11 +786,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1792491056, - "narHash": "sha256-6n1Dn+WYtD8lprnSi+0k4FjbKfIVNG8lblpJ5MiiqXs=", + "lastModified": 1793355509, + "narHash": "sha256-/Zs18x+IW4LuVH0rKxra0WPRgsk0DQsi0Bwkf8sOC5c=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "efb6d0d5e2394c3c5416a18652808aba206c0988", + "rev": "04c6b94fa104bc23650983a4513aea196794d321", "type": "github" }, "original": { @@ -837,22 +816,6 @@ "type": "github" } }, - "nixpkgs-eostre": { - "locked": { - "lastModified": 1748026580, - "narHash": "sha256-rWtXrcIzU5wm/C8F9LWvUfBGu5U5E7cFzPYT1pHIJaQ=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "11cb3517b3af6af300dd6c055aeda73c9bf52c48", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "25.05", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs-lib": { "locked": { "lastModified": 1722555339, @@ -932,11 +895,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1792503283, - "narHash": "sha256-vhe2jyvRCgufWPqDuDq1S3t3ypE+ka46IFutV02xKso=", + "lastModified": 1793633738, + "narHash": "sha256-tItrb9M8eYA6WhFgmT9tpGKueri3+wRuVA952o/2xSU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cd4ea8d57de16f4810bc5f14207bac45fbf19f67", + "rev": "7dcdd87373d72e7a2173e4db02e20d3d7f495cfd", "type": "github" }, "original": { @@ -1025,11 +988,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1792502884, - "narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=", + "lastModified": 1793540411, + "narHash": "sha256-fiPJ88izTVucjeo2EQ3jk4aWmLg03I1D4vxnX2QjEgE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "02c087f3fe673c9e317f206a627cb6b910336dbe", + "rev": "0bb2eedc20e4739f29e8045034f2828ad7054f8f", "type": "github" }, "original": { @@ -1295,11 +1258,11 @@ ] }, "locked": { - "lastModified": 1792499785, - "narHash": "sha256-mGOkvueuMGSRiD75ccxFzfEvSlIU9ztjFluHMKOtogY=", + "lastModified": 1793585423, + "narHash": "sha256-Fzdew7s0V4PHsBX0GDQ+1Zcd4HejuqAh9rAjSP9M6JQ=", "owner": "pyproject-nix", "repo": "build-system-pkgs", - "rev": "a17819c85163988e063806ffc4f6d2716bc8ead8", + "rev": "461a6a8540307fb9c05b8f6ad29e9720d2a621db", "type": "github" }, "original": { @@ -1315,11 +1278,11 @@ ] }, "locked": { - "lastModified": 1791657700, - "narHash": "sha256-vcCAvhtA7hG+/gOge29hYHy7I/dLkIsr5nLx4sFEQic=", + "lastModified": 1793240426, + "narHash": "sha256-NPWgb6H4arnWyTKvYIys5U0xqd5QY74Z+lyTJA+7XGY=", "owner": "pyproject-nix", "repo": "pyproject.nix", - "rev": "ddc400a6883b042646d0940e65971bb7f7e96107", + "rev": "bf7d4b1d6de61db02fd4e748395634f03006e5de", "type": "github" }, "original": { @@ -1339,7 +1302,6 @@ "flake-utils": "flake-utils", "gitignore": "gitignore_3", "home-manager": "home-manager", - "home-manager-eostre": "home-manager-eostre", "impermanence": "impermanence", "lanzaboote": "lanzaboote", "niri-autoselect-portal": "niri-autoselect-portal", @@ -1350,7 +1312,6 @@ "nixVirt": "nixVirt", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_5", - "nixpkgs-eostre": "nixpkgs-eostre", "nixpkgs-pgbackrest": "nixpkgs-pgbackrest", "nixpkgs-stable": "nixpkgs-stable_3", "nvfetcher": "nvfetcher", @@ -1390,11 +1351,11 @@ ] }, "locked": { - "lastModified": 1792056300, - "narHash": "sha256-YU1LjDe1o2Ymg5zEiCHbmMXLkDCtxHQRiVqZ3nC5GGk=", + "lastModified": 1793657466, + "narHash": "sha256-GoOvpdsjO5hqZuO6T6ok9u6sJEjO0iPli2zRr9oNUNw=", "owner": "Mic92", "repo": "sops-nix", - "rev": "44931708c62937c2b1bf7953902989fa5bb9ee1b", + "rev": "b18e01ce148eb3efff5de2f2d3181ca53b2b2a54", "type": "github" }, "original": { @@ -1465,11 +1426,11 @@ ] }, "locked": { - "lastModified": 1792151315, - "narHash": "sha256-PMtgvHuGijoIAtPtrBm7kJOI6fxzX4LYPAIK+QVGY+Y=", + "lastModified": 1793272761, + "narHash": "sha256-3CE1CEwprYlHRlRVkXDkhqec0jjF9Cti7tdk8vVDsCM=", "owner": "pyproject-nix", "repo": "uv2nix", - "rev": "7aba73a3d85454f1118f8cf9de97979b4d26bcac", + "rev": "c361746c7d630d98b972378290547c8d35542a7a", "type": "github" }, "original": { @@ -1481,16 +1442,16 @@ "xwayland-satellite-stable": { "flake": false, "locked": { - "lastModified": 1784679892, - "narHash": "sha256-Mb7jpqnrcYCfNSItIkkHpuR3YxWFxPuIBfcwNKlRBkk=", + "lastModified": 1790226849, + "narHash": "sha256-eFEjCCniMCKeWU0PcZNv+tDYe08SLFPjRplyPY8OFt4=", "owner": "Supreeeme", "repo": "xwayland-satellite", - "rev": "8d135d3b2854b30fd01ea6cd6c27e523dd50a839", + "rev": "b83eab900644e4c7c77982ce3d44cb490f0c5e1d", "type": "github" }, "original": { "owner": "Supreeeme", - "ref": "v0.8.2", + "ref": "v0.8.3", "repo": "xwayland-satellite", "type": "github" } @@ -1498,11 +1459,11 @@ "xwayland-satellite-unstable": { "flake": false, "locked": { - "lastModified": 1792070459, - "narHash": "sha256-qGSyMXPHiXWp9/nE5Zs1DJN5NmZFvoxaBS5Y9i7p0Pc=", + "lastModified": 1793192392, + "narHash": "sha256-yOM2nAiwSxeeb3X4FYQwLIQtGN9GHgfKyGT6/FqHJ/Q=", "owner": "Supreeeme", "repo": "xwayland-satellite", - "rev": "97a89cec53eb4f8788386a574450dd94c0538754", + "rev": "7bf5e0dcb0d4250860b24b04a6cb3ddeada515d0", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 9f573db8..87cb25a9 100644 --- a/flake.nix +++ b/flake.nix @@ -31,12 +31,6 @@ repo = "nixpkgs"; ref = "25.05"; }; - nixpkgs-eostre = { - type = "github"; - owner = "NixOS"; - repo = "nixpkgs"; - ref = "25.05"; - }; home-manager = { type = "github"; owner = "nix-community"; @@ -46,15 +40,6 @@ nixpkgs.follows = "nixpkgs"; }; }; - home-manager-eostre = { - type = "github"; - owner = "gkleen"; - repo = "home-manager"; - ref = "nixos-late-start-25.05"; - inputs = { - nixpkgs.follows = "nixpkgs-eostre"; - }; - }; sops-nix = { type = "github"; owner = "Mic92"; diff --git a/hosts/eostre/default.nix b/hosts/eostre/default.nix deleted file mode 100644 index f8b48665..00000000 --- a/hosts/eostre/default.nix +++ /dev/null @@ -1,108 +0,0 @@ -{ flake, config, pkgs, lib, ... }: - -with lib; - -{ - imports = with flake.nixosModules.systemProfiles; [ - default-locale nfsroot openssh - ]; - - config = { - nixpkgs = { - system = "x86_64-linux"; - externalConfig = { - allowUnfree = true; - }; - extraOverlays = [ - (final: prev: { - upower = prev.upower.overrideAttrs (oldAttrs: { - doCheck = false; - }); - }) - ]; - }; - - boot = { - initrd = { - availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "sd_mod" "sr_mod" ]; - kernelModules = [ "igb" ]; - }; - kernelModules = [ "kvm-amd" ]; - extraModulePackages = [ ]; - - plymouth.enable = true; - - tmp.useTmpfs = true; - }; - - hardware = { - enableRedistributableFirmware = true; - cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware; - - nvidia = { - modesetting.enable = true; - powerManagement.enable = true; - }; - - graphics.enable = true; - }; - - networking = { - domain = "lan.yggdrasil"; - search = [ "lan.yggdrasil" "yggdrasil" ]; - - hosts = { - "127.0.0.1" = [ "eostre.lan.yggdrasil" "eostre" ]; - "::1" = [ "eostre.lan.yggdrasil" "eostre" ]; - }; - - firewall.enable = false; - nftables = { - enable = true; - rulesetFile = ./ruleset.nft; - }; - }; - - services.resolved = { - llmnr = "false"; - }; - - zramSwap.enable = true; - - system.stateVersion = "22.11"; - - - console.keyMap = "us"; - time.hardwareClockInLocalTime = true; - - - environment.systemPackages = with pkgs; [ cifs-utils ]; - - security.pam.mount = { - enable = true; - extraVolumes = [ - "" - "" - ]; - }; - - services.displayManager.sddm = { - enable = true; - wayland.enable = true; - settings = { - Users.HideUsers = "gkleen"; - }; - }; - services.desktopManager.plasma6.enable = true; - - - services.openssh = { - enable = true; - startWhenNeeded = true; - settings = { - PasswordAuthentication = true; - KbdInteractiveAuthentication = true; - }; - }; - }; -} diff --git a/hosts/eostre/ruleset.nft b/hosts/eostre/ruleset.nft deleted file mode 100644 index 7b38a059..00000000 --- a/hosts/eostre/ruleset.nft +++ /dev/null @@ -1,101 +0,0 @@ -define icmp_protos = {ipv6-icmp, icmp, igmp} - -table arp filter { - limit lim_arp { - rate over 50 mbytes/second burst 50 mbytes - } - - chain input { - type filter hook input priority filter - policy accept - - limit name lim_arp counter drop - - counter - } - - chain output { - type filter hook output priority filter - policy accept - - limit name lim_arp counter drop - - counter - } -} - -table inet filter { - limit lim_reject { - rate over 1000/second burst 1000 packets - } - - limit lim_icmp { - rate over 50 mbytes/second burst 50 mbytes - } - - - chain forward { - type filter hook forward priority filter - policy drop - - - ct state invalid log level debug prefix "drop invalid forward: " counter drop - - - iifname lo counter accept - - - limit name lim_reject log level debug prefix "drop forward: " counter drop - log level debug prefix "reject forward: " counter - meta l4proto tcp ct state new counter reject with tcp reset - ct state new counter reject - - - counter - } - - chain input { - type filter hook input priority filter - policy drop - - - ct state invalid log level debug prefix "drop invalid input: " counter drop - - - iifname lo counter accept - iif != lo ip daddr 127.0.0.1/8 counter reject - iif != lo ip6 daddr ::1/128 counter reject - - meta l4proto $icmp_protos limit name lim_icmp counter drop - meta l4proto $icmp_protos counter accept - - tcp dport 22 counter accept - udp dport 60000-61000 counter accept - - - ct state {established, related} counter accept - - - limit name lim_reject log level debug prefix "drop input: " counter drop - log level debug prefix "reject input: " counter - meta l4proto tcp ct state new counter reject with tcp reset - ct state new counter reject - - - counter - } - - chain output { - type filter hook output priority filter - policy accept - - - oifname lo counter accept - - meta l4proto $icmp_protos limit name lim_icmp counter drop - meta l4proto $icmp_protos counter accept - - - counter - } -} \ No newline at end of file diff --git a/hosts/skadhi/default.nix b/hosts/skadhi/default.nix index cf25777b..ee65bbbe 100644 --- a/hosts/skadhi/default.nix +++ b/hosts/skadhi/default.nix @@ -114,5 +114,10 @@ }; restartIfChanged = false; }; + nixpkgs.externalConfig = { + problems.handlers = { + "gtk+".broken = "warn"; # or "ignore" + }; + }; }; } diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index e97eb20b..90e08a5a 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -8,7 +8,6 @@ with lib; tmpfs-root zfs initrd-all-crypto-modules default-locale openssh rebuild-machines build-server - initrd-ssh ]; config = { @@ -35,7 +34,6 @@ with lib; initrd = { systemd = { - enable = true; network = { enable = true; networks = { diff --git a/hosts/vidhar/network/dhcp/default.nix b/hosts/vidhar/network/dhcp/default.nix index e4c3f16e..2efabd23 100644 --- a/hosts/vidhar/network/dhcp/default.nix +++ b/hosts/vidhar/network/dhcp/default.nix @@ -48,12 +48,6 @@ in { }; client-classes = [ - # { name = "ipxe-eostre"; - # test = "hexstring(pkt4.mac, ':') == '00:d8:61:79:c5:40' and option[77].hex == 'iPXE-yggdrasil'"; - # next-server = tftpIp; - # boot-file-name = "${nfsrootBaseUrl}/eostre.menu.ipxe"; - # only-if-required = true; - # } { name = "ipxe-yggdrasil"; test = "option[77].hex == 'iPXE-yggdrasil'"; next-server = tftpIp; @@ -294,43 +288,46 @@ in { name = "installer-${system}"; paths = [ (builtins.addErrorContext "while evaluating installer-${system}-nfsroot" (let - installerBuild' = (flake.nixosConfigurations.${"installer-${system}-nfsroot"}.extendModules { - modules = [ - ({ ... }: { - config.nfsroot.storeDevice = "${nfsIp}:nix-store"; - config.nfsroot.registrationUrl = "${nfsrootBaseUrl}/installer-${system}/registration"; - config.system.nixos.label = "installer-${system}"; - }) - ]; - }); - installerBuild = installerBuild'.config.system.build; + # installerBuild' = (flake.nixosConfigurations.${"installer-${system}-nfsroot"}.extendModules { + # modules = [ + # ({ ... }: { + # config.nfsroot.storeDevice = "${nfsIp}:nix-store"; + # config.nfsroot.registrationUrl = "${nfsrootBaseUrl}/installer-${system}/registration"; + # config.system.nixos.label = "installer-${system}"; + # }) + # ]; + # }); + # installerBuild = installerBuild'.config.system.build; + + # install -m 0444 -t $out/installer-${system} \ + # ${installerBuild.initialRamdisk}/initrd \ + # ${installerBuild.kernel}/bzImage \ + # ${installerBuild.netbootIpxeScript}/netboot.ipxe \ + # ${pkgs.closureInfo { rootPaths = installerBuild.storeContents; }}/registration + + # item installer ${with installerBuild'; "${config.system.nixos.distroName} ${config.system.nixos.codeName} ${config.system.nixos.label} (Linux ${config.boot.kernelPackages.kernel.modDirVersion})"} + + # :installer + # chain installer-${system}/netboot.ipxe + # goto start + in builtins.toPath (pkgs.runCommandLocal "installer-${system}" {} '' mkdir -p $out/installer-${system} - install -m 0444 -t $out/installer-${system} \ - ${installerBuild.initialRamdisk}/initrd \ - ${installerBuild.kernel}/bzImage \ - ${installerBuild.netbootIpxeScript}/netboot.ipxe \ - ${pkgs.closureInfo { rootPaths = installerBuild.storeContents; }}/registration install -m 0444 ${pkgs.writeText "installer-${system}.menu.ipxe" '' #!ipxe :start menu iPXE boot menu for installer-${system} - item installer ${with installerBuild'; "${config.system.nixos.distroName} ${config.system.nixos.codeName} ${config.system.nixos.label} (Linux ${config.boot.kernelPackages.kernel.modDirVersion})"} item memtest memtest86plus item netboot netboot.xyz item shell iPXE shell - choose --timeout 0 --default installer selected || goto shell + choose --timeout 0 --default netboot selected || goto shell goto ''${selected} :shell shell goto start - :installer - chain installer-${system}/netboot.ipxe - goto start - :netboot iseq ''${platform} efi && chain --autofree netboot.xyz.efi || chain --autofree netboot.xyz.lkrn goto start @@ -351,57 +348,6 @@ in { install -m 0444 ${sources.netbootxyz-efi.src} $out/netboot.xyz.efi install -m 0444 ${sources.netbootxyz-lkrn.src} $out/netboot.xyz.lkrn '') - # (builtins.addErrorContext "while evaluating eostre" (let - # eostreBuild' = (flake.nixosConfigurations.eostre.extendModules { - # modules = [ - # ({ ... }: { - # config.nfsroot.storeDevice = "${nfsIp}:nix-store"; - # config.nfsroot.registrationUrl = "${nfsrootBaseUrl}/eostre/registration"; - # config.system.nixos.label = "eostre"; - # }) - # ]; - # }); - # eostreBuild = eostreBuild'.config.system.build; - # in builtins.toPath (pkgs.runCommandLocal "eostre" {} '' - # mkdir -p $out/eostre - # install -m 0444 -t $out/eostre \ - # ${eostreBuild.initialRamdisk}/initrd \ - # ${eostreBuild.kernel}/bzImage \ - # ${eostreBuild.netbootIpxeScript}/netboot.ipxe \ - # ${pkgs.closureInfo { rootPaths = eostreBuild.storeContents; }}/registration - # install -m 0444 ${pkgs.writeText "eostre.menu.ipxe" '' - # #!ipxe - - # set menu-timeout 5000 - - # :start - # menu iPXE boot menu for eostre - # item eostre ${with eostreBuild'; "${config.system.nixos.distroName} ${config.system.nixos.codeName} ${config.system.nixos.label} (Linux ${config.boot.kernelPackages.kernel.modDirVersion})"} - # item memtest memtest86plus - # item netboot netboot.xyz - # item shell iPXE shell - # choose --timeout ''${menu-timeout} --default eostre selected || goto shell - # set menu-timeout 0 - # goto ''${selected} - - # :shell - # set menu-timeout 0 - # shell - # goto start - - # :eostre - # chain eostre/netboot.ipxe - # goto start - - # :netboot - # iseq ''${platform} efi && chain --autofree netboot.xyz.efi || chain --autofree netboot.xyz.lkrn - # goto start - - # :memtest - # chain --autofree mt86plus.efi - # goto start - # ''} $out/eostre.menu.ipxe - # ''))) ]; }; }; diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix index 710b57e0..7b8fdc68 100644 --- a/system-profiles/core/default.nix +++ b/system-profiles/core/default.nix @@ -193,7 +193,7 @@ in { systemd.sysusers.enable = lib.mkDefault true; }) ++ (optional (options ? system.etc) { - boot.initrd.systemd.enable = lib.mkDefault true; + # boot.initrd.systemd.enable = lib.mkDefault true; system.etc.overlay.enable = lib.mkDefault true; system.etc.overlay.mutable = lib.mkDefault (!config.systemd.sysusers.enable); diff --git a/system-profiles/initrd-ssh/default.nix b/system-profiles/initrd-ssh/default.nix deleted file mode 100644 index ef469343..00000000 --- a/system-profiles/initrd-ssh/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ hostName, config, pkgs, lib, ... }: - -with lib; - -{ - config = { - boot.initrd = { - network = { - enable = true; - ssh = { - enable = true; - hostKeys = [ "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_rsa_key" ]; - authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys ++ map (kF: builtins.readFile kF) config.users.users.root.openssh.authorizedKeys.keyFiles; - - extraConfig = '' - ForceCommand cryptsetup-askpass - ''; - }; - }; - - secrets = with config.sops.secrets; { - "/etc/ssh/ssh_host_ed25519_key" = mkForce initrd_ssh_host_ed25519_key.path; - "/etc/ssh/ssh_host_rsa_key" = mkForce initrd_ssh_host_rsa_key.path; - }; - - extraFiles = let - mkPubkey = typ: pkgs.runCommand "ssh_host_${typ}_key.pub" { buildInputs = with pkgs; [ yq ]; } '' - yq -r '.${typ}' ${./host-keys + "/${hostName}-public.yaml"} > $out - ''; - in { - "/etc/ssh/ssh_host_rsa_key.pub".source = mkPubkey "rsa"; - "/etc/ssh/ssh_host_ed25519_key.pub".source = mkPubkey "ed25519"; - }; - }; - - sops.secrets = { - initrd_ssh_host_rsa_key = { - key = "rsa"; - sopsFile = ./host-keys + "/${hostName}-private.yaml"; - }; - initrd_ssh_host_ed25519_key = { - key = "ed25519"; - sopsFile = ./host-keys + "/${hostName}-private.yaml"; - }; - }; - }; -} diff --git a/system-profiles/initrd-ssh/host-keys/vidhar-private.yaml b/system-profiles/initrd-ssh/host-keys/vidhar-private.yaml deleted file mode 100644 index 2254f7b6..00000000 --- a/system-profiles/initrd-ssh/host-keys/vidhar-private.yaml +++ /dev/null @@ -1,31 +0,0 @@ -rsa: ENC[AES256_GCM,data:u5NbMQLLIHzcH1oUvGbxNRiK0DUX84tQ/sIaUae370jkTdiRTrwTSOX+TielSgwEyLo7KAOVO0olbEheJjP6tLlOExDZZCO09YBqvZksSkT+0irn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GI4ue6MgwlHhFVaiGa5dT+tjU6tYDVCaL8DeHj7UZDEs2NJo4+v5lwv6JjZMAZfbPFY150KSlHV2u0ll64pF7sJjKF7pEaSYYmdRhEjCjFpMCmtJ0rxJtgIyuzA==,iv:r/ksbyC44RrP2BCUUdmOHPfIhi9LPCF+fs1/urWz6Ss=,tag:Zk3xJw1tcf+/YQpAYwVt+w==,type:str] -ed25519: ENC[AES256_GCM,data:PE0UKLLThNwkdi2oz38HlgslJD5i9c9cL4ZBSBxSMcz7bXzLMv58Z9vucJ4WPtBxKSvFx5ksl/alRUyh2WTxuGNgut9vcgcNSG2qXzb8jdxb5CbFK1yVglVX7wtQkaOwmlc1Pty64sA0jwucaQQhEMeVXA/kxwe5uagCIupjP6lqnkzAuf4Dc1jIfXdEoEV0jtVUSjgeXHPymSPkg1J95VUMEIfVbncFxvzSQngv5kuE/XoH3adujuKR9fC/Z5u08hSjTzGQzMdgZk5BYvy7AWYN8SmfWcyAkClywj9DCzgaw8KY+MzSxQWrhAt3rqobmtVoJoJ5oc1/l6m5pPsyb/Ex2wwFh/rWm7SNfhW/Ev/ZuIX7llL7HCgXxhiCJIl9X4jkwF6OvslvK1wYgJ6rvGQwyM+/7Q8/rX1KJnq3qA93SfDi/fPLuJxcMYj/mZ/bluG4bsTFaUzDf1l6C251p24JJt3F0o1RTF1zgACrdhKK1BN79sQt4xDnHawCCwEkBbdeE0pmml1i3aUy5thl,iv:6cYTjmJd44Uc+uwnIZI1CUuKhYNGHuWa8wr7CYJY3RY=,tag:+PGy7aVeHyLH+B04Nj8BRQ==,type:str] -sops: - kms: [] - gcp_kms: [] - azure_kv: [] - hc_vault: [] - age: - - recipient: age1rmmhetcmllq0ahl5qznlr0eya2zdxwl9h6y5wnl97d2wtyx5t99sm2u866 - enc: | - -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBiem1qTmo4bjhUUDFDM2ds - Y3dRc3RJT1YvYkJXblZsbHF4NTRWUGsvWTE4CnRDV1IwSjdVUUttWXVETElQYXRJ - SmxvL0dDQ3E5ZEpCMFZ1T3EvU3Y4Vm8KLS0tIFlVMnorMGdCZFJWYkp6bFV6eUVB - Vjd5dXd3a1UrSnAyd2xGbXVyVFN1bWcKYm8yCZdvyNn9DzAyGrVt8U25KPk8eXD2 - 051EQi99DS0U3BYRI+hhL41cm26nai1USU6Oo2PvxswYmObMDfKrPg== - -----END AGE ENCRYPTED FILE----- - - recipient: age1qffdqvy9arld9zd5a5cylt0n98xhcns5shxhrhwjq5g4qa844ejselaa4l - enc: | - -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAra0FydFJpbHBXNms0aVUw - T3U4OXFJck1Ta0dvMHJ4ckRVaFQvcnhlQ1ZJCmx5UjhZNGNEb0N5NUJ5cFdCc2Nq - anRrc1BOb2NHVFY1cG5xMUY0WGx2cDAKLS0tIFQ3aU1hM1BlOWw2RkZPYlp3SkYx - d0Fhd0tKVnFkc0dOTXFaaG1OcmY2YVkKb0xFefYhjcjZ+wL9oGoN52hqvLPeXtkT - xOinOyzi2Cm+wsZu4BZlTabVoAU8uu810D315Ex7+bFL8f8KROEaOg== - -----END AGE ENCRYPTED FILE----- - lastmodified: "2021-08-03T14:47:32Z" - mac: ENC[AES256_GCM,data:gWbmGMZ+/Ts7NP9J1q/kjQmJ7V6lJ5xFpjZNJ+aTOmkz7a6sG8SRvNEW/qrpJfCzEFdQJYhOW3X9FhWpb5U6j4gINrgqUGdusQpw0PmIieC5tCPQPlTPHMReK0xaZ3NViMdHJhGdtehGfPqAtA3Bifn2ZZzOrzTOaPN2fH11fZw=,iv:FhKERfmDPmWn5ZKkuHWMc/vINpmJTr0jZ1iCkSgAUEs=,tag:ibe+m8vz6b+a+as5mz4+eA==,type:str] - pgp: [] - unencrypted_suffix: _unencrypted - version: 3.7.1 diff --git a/system-profiles/initrd-ssh/host-keys/vidhar-public.yaml b/system-profiles/initrd-ssh/host-keys/vidhar-public.yaml deleted file mode 100644 index af521564..00000000 --- a/system-profiles/initrd-ssh/host-keys/vidhar-public.yaml +++ /dev/null @@ -1,4 +0,0 @@ -rsa: | - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCs0bzHfJBgG5AP0nSUgkGBoxRLRDu9FMfwJN3NFLeUf1axmKPja0mO+ddUQeLobDcl4zU4VyBxdd5qrrSkAufM76GJJFqXGJs98WudELXD5I4/o99Fh7xSf6QtafftTbjUfcTzX9t30Cb109Ppv1sKANcfLOx5EWH4TX3WK0vWTZHlS/OHvojwx7Y8/8dYbA96neMSBK5ceDu/VAG/JHYz5JgtDczSKUnbh026xav8rv9Sd3paC42XNlWSkjvpXxXoJ+ta5SuOXAl+4gPDvjgxK+QJ+yglhJma7LdHt7tqQjy/R0v5+wMzbNCKdQ1E9GiCw+hSE3mbCj/PVFy+J1oadBta+qF5SKCSurFeCRaehTTz6Qynxu0OxLQV/OHX6yC2i9OVJOs0PNGiot9pjxoSKyKrlT7gshP6MRfC1F330oVDSOPAkFLFFkTJtzb0ifJ5s1LyM0LyJAPso+5ytCcSOoQpcKd54VbSTYXBcnWtRFtEzUDIeLDeRWgQ0zJsef8= -ed25519: | - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBb+RVaConednm1DsYh18ttUEs/FJ7+E3g0YGbZcJthp diff --git a/system-profiles/initrd-ssh/module.nix b/system-profiles/initrd-ssh/module.nix deleted file mode 100644 index db973b72..00000000 --- a/system-profiles/initrd-ssh/module.nix +++ /dev/null @@ -1,216 +0,0 @@ -{ flakeInputs, config, lib, pkgs, ... }: - -with lib; - -let - - cfg = config.boot.initrd.network.ssh; - -in - -{ - disabledModules = [ "system/boot/initrd-ssh.nix" ]; - - options.boot.initrd.network.ssh = { - enable = mkOption { - type = types.bool; - default = false; - description = '' - Start SSH service during initrd boot. It can be used to debug failing - boot on a remote server, enter pasphrase for an encrypted partition etc. - Service is killed when stage-1 boot is finished. - - The sshd configuration is largely inherited from - {option}`services.openssh`. - ''; - }; - - port = mkOption { - type = types.port; - default = 22; - description = '' - Port on which SSH initrd service should listen. - ''; - }; - - shell = mkOption { - type = types.str; - default = "/bin/ash"; - description = '' - Login shell of the remote user. Can be used to limit actions user can do. - ''; - }; - - hostKeys = mkOption { - type = types.listOf (types.either types.str types.path); - default = []; - example = [ - "/etc/secrets/initrd/ssh_host_rsa_key" - "/etc/secrets/initrd/ssh_host_ed25519_key" - ]; - description = '' - Specify SSH host keys to import into the initrd. - - To generate keys, use - {manpage}`ssh-keygen(1)` - as root: - - ``` - ssh-keygen -t rsa -N "" -f /etc/secrets/initrd/ssh_host_rsa_key - ssh-keygen -t ed25519 -N "" -f /etc/secrets/initrd/ssh_host_ed25519_key - ``` - - ::: {.warning} - Unless your bootloader supports initrd secrets, these keys - are stored insecurely in the global Nix store. Do NOT use - your regular SSH host private keys for this purpose or - you'll expose them to regular users! - - Additionally, even if your initrd supports secrets, if - you're using initrd SSH to unlock an encrypted disk then - using your regular host keys exposes the private keys on - your unencrypted boot partition. - ::: - ''; - }; - - manageHostKeySecrets = mkEnableOption "automatically managing initrd secrets for configured hostkeys"; - - authorizedKeys = mkOption { - type = types.listOf types.str; - default = config.users.users.root.openssh.authorizedKeys.keys; - defaultText = literalExpression "config.users.users.root.openssh.authorizedKeys.keys"; - description = '' - Authorized keys for the root user on initrd. - ''; - }; - - extraConfig = mkOption { - type = types.lines; - default = ""; - description = "Verbatim contents of {file}`sshd_config`."; - }; - }; - - imports = - map (opt: mkRemovedOptionModule ([ "boot" "initrd" "network" "ssh" ] ++ [ opt ]) '' - The initrd SSH functionality now uses OpenSSH rather than Dropbear. - - If you want to keep your existing initrd SSH host keys, convert them with - $ dropbearconvert dropbear openssh dropbear_host_$type_key ssh_host_$type_key - and then set options.boot.initrd.network.ssh.hostKeys. - '') [ "hostRSAKey" "hostDSSKey" "hostECDSAKey" ]; - - config = let - # Nix complains if you include a store hash in initrd path names, so - # as an awful hack we drop the first character of the hash. - initrdKeyPath = path: if isString path - then path - else let name = builtins.baseNameOf path; in - builtins.unsafeDiscardStringContext ("/etc/ssh/" + - substring 1 (stringLength name) name); - - sshdCfg = config.services.openssh; - - sshdConfig = '' - Port ${toString cfg.port} - - PasswordAuthentication no - KbdInteractiveAuthentication no - - ${flip concatMapStrings cfg.hostKeys (path: '' - HostKey ${initrdKeyPath path} - '')} - - KexAlgorithms ${concatStringsSep "," sshdCfg.settings.KexAlgorithms} - Ciphers ${concatStringsSep "," sshdCfg.settings.Ciphers} - MACs ${concatStringsSep "," sshdCfg.settings.Macs} - - LogLevel ${sshdCfg.settings.LogLevel} - - ${if sshdCfg.settings.UseDns then '' - UseDNS yes - '' else '' - UseDNS no - ''} - - ${cfg.extraConfig} - ''; - in mkIf (config.boot.initrd.network.enable && cfg.enable) { - assertions = [ - { - assertion = cfg.authorizedKeys != []; - message = "You should specify at least one authorized key for initrd SSH"; - } - - { - assertion = cfg.hostKeys != []; - message = '' - You must now pre-generate the host keys for initrd SSH. - See the boot.initrd.network.ssh.hostKeys documentation - for instructions. - ''; - } - ]; - - boot.initrd.extraUtilsCommands = '' - copy_bin_and_libs ${pkgs.openssh}/bin/sshd - cp -pv ${pkgs.glibc.out}/lib/libnss_files.so.* $out/lib - ''; - - boot.initrd.extraUtilsCommandsTest = '' - # sshd requires a host key to check config, so we pass in the test's - tmpkey="$(mktemp initrd-ssh-testkey.XXXXXXXXXX)" - cp ${escapeShellArg (flakeInputs.nixpkgs.outPath + "/nixos/tests/initrd-network-ssh/ssh_host_ed25519_key")} "$tmpkey" - # keys from Nix store are world-readable, which sshd doesn't like - chmod 600 "$tmpkey" - echo -n ${escapeShellArg sshdConfig} | - $out/bin/sshd -t -f /dev/stdin \ - -h "$tmpkey" - rm "$tmpkey" - ''; - - boot.initrd.network.postCommands = '' - echo '${cfg.shell}' > /etc/shells - echo 'root:x:0:0:root:/root:${cfg.shell}' > /etc/passwd - echo 'sshd:x:1:1:sshd:/var/empty:/bin/nologin' >> /etc/passwd - echo 'passwd: files' > /etc/nsswitch.conf - - mkdir -p /var/log /var/empty - touch /var/log/lastlog - - mkdir -p /etc/ssh - echo -n ${escapeShellArg sshdConfig} > /etc/ssh/sshd_config - - echo "export PATH=$PATH" >> /etc/profile - echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> /etc/profile - - mkdir -p /root/.ssh - ${concatStrings (map (key: '' - echo ${escapeShellArg key} >> /root/.ssh/authorized_keys - '') cfg.authorizedKeys)} - - ${flip concatMapStrings cfg.hostKeys (path: '' - # keys from Nix store are world-readable, which sshd doesn't like - chmod 0600 "${initrdKeyPath path}" - '')} - - /bin/sshd -e - ''; - - boot.initrd.postMountCommands = '' - # Stop sshd cleanly before stage 2. - # - # If you want to keep it around to debug post-mount SSH issues, - # run `touch /.keep_sshd` (either from an SSH session or in - # another initrd hook like preDeviceCommands). - if ! [ -e /.keep_sshd ]; then - pkill -x sshd - fi - ''; - - boot.initrd.secrets = mkIf cfg.manageHostKeySecrets (listToAttrs - (map (path: nameValuePair (initrdKeyPath path) path) cfg.hostKeys)); - }; - -} -- cgit v1.2.3