shrink boot media footprint
This commit is contained in:
12
flake.nix
12
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";
|
||||
|
||||
Reference in New Issue
Block a user