From 1e80edd3f78069c17a7798908f428eb86afa6d26 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 9 Dec 2023 03:54:26 +0000 Subject: [PATCH] Add ssh module, minify more --- flake.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 353941e..9a7788d 100644 --- a/flake.nix +++ b/flake.nix @@ -28,15 +28,37 @@ nixosModules.minify = { ... }: { disabledModules = [ "profiles/base.nix" ]; config = { + boot.bcache.enable = false; + environment.defaultPackages = [ ]; + fonts.fontconfig.enable = false; + networking.firewall.enable = false; nix.enable = false; - programs.nano.enable = true; + programs.nano.enable = false; + services.lvm.enable = false; + + # We could theoretically disable system-path.nix so we don't have + # requiredPackages, but that seems like a lot of work. + + # Leave networking.useDHCP = true since we would reenable it anyway + + # Just set this to something, we probably don't care + system.stateVersion = "23.11"; }; }; + nixosModules.insecureRemote = { ... }: { + services.openssh = { + enable = true; + settings.PermitRootLogin = "yes"; + }; + users.users.root.initialPassword = "ohnowo"; + }; + nixosConfigurations.aarch64-rpi = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ self.nixosModules.minify + self.nixosModules.insecureRemote "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ]; };