diff --git a/flake.nix b/flake.nix index 0e8360b4..66bda67d 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,7 @@ }; imageConfigurations = { nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; format = "sd-aarch64"; }; + nixos-iso-console = libx.mkHost { hostname = "nixos-iso-console"; }; }; # Devshell for bootstrapping; acessible via 'nix develop' diff --git a/nixos/hosts/nixos-iso-console/default.nix b/nixos/hosts/nixos-iso-console/default.nix new file mode 100644 index 00000000..192ced8c --- /dev/null +++ b/nixos/hosts/nixos-iso-console/default.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, modulesPath, desktop, username, ... }: { + nixpkgs.config.allowUnfree = false; + + networking.useDHCP = lib.mkDefault true; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + networking.hostName = "nixos-iso-console"; + + networking.firewall.allowedTCPPorts = [ 22 ]; +}