diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2025-02-07 11:49:33 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2025-02-07 11:49:33 -0800 |
commit | cca5cb79d3912a025b57e89c715450a380d4532b (patch) | |
tree | 09e18556067702e3106c9bb5999d74d15d0919c7 | |
parent | 04c303de0bd3a39a7ba242561a6a72fe02e03708 (diff) | |
download | nix-cca5cb79d3912a025b57e89c715450a380d4532b.tar nix-cca5cb79d3912a025b57e89c715450a380d4532b.tar.gz nix-cca5cb79d3912a025b57e89c715450a380d4532b.tar.bz2 nix-cca5cb79d3912a025b57e89c715450a380d4532b.tar.lz nix-cca5cb79d3912a025b57e89c715450a380d4532b.tar.xz nix-cca5cb79d3912a025b57e89c715450a380d4532b.tar.zst nix-cca5cb79d3912a025b57e89c715450a380d4532b.zip |
Add iperf to custom NixOS ISO and enable SSH
-rw-r--r-- | flake.nix | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -130,10 +130,29 @@ # from https://nixos.wiki/wiki/Creating_a_NixOS_live_CD and https://chengeric.com/homelab/ iso = nixpkgs.lib.nixosSystem { modules = [ - "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" - ({ + ({ modulesPath, pkgs, ... }: { + environment.systemPackages = with pkgs; [ + git + iperf + rsync + ]; + + imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ]; + #isoImage.squashfsCompression = "gzip -Xcompression-level 1"; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + services.openssh = { + enable = true; + openFirewall = true; + + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + }; + }; + users.users = { nixos.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ]; root.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ]; |