From e318dfd2f6c3aa684a80498fa39e33dd2a4be31c Mon Sep 17 00:00:00 2001 From: William P Date: Sun, 27 Jul 2025 11:11:40 -0400 Subject: [PATCH] shrink boot media footprint --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a54fa61..cde6f45 100644 --- a/flake.nix +++ b/flake.nix @@ -75,10 +75,20 @@ boot.initrd.kernelModules = ["hv_vmbus" "hv_storvsc"]; # Hyper-V Support # Disable unneeded features - documentation.enable = false; + documentation.enable = nixpkgs.lib.mkForce false; + documentation.nixos.enable = nixpkgs.lib.mkForce false; fonts.fontconfig.enable = false; services.udisks2.enable = false; + users.allowNoPasswordLogin = true; + users.mutableUsers = false; + + security.sudo.enable = false; + + services.getty.helpLine = nixpkgs.lib.mkForce ""; + + nix.enable = false; + networking.firewall.enable = false; # Technically we COULD use the firewall, but given that this is a network-dependent, one-time-use service, it would cause more issues services.getty.autologinUser = nixpkgs.lib.mkForce "root";