Testing a console iso image
This commit is contained in:
parent
d5e9343451
commit
56725c1742
2 changed files with 10 additions and 0 deletions
|
@ -57,6 +57,7 @@
|
||||||
};
|
};
|
||||||
imageConfigurations = {
|
imageConfigurations = {
|
||||||
nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; format = "sd-aarch64"; };
|
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'
|
# Devshell for bootstrapping; acessible via 'nix develop'
|
||||||
|
|
9
nixos/hosts/nixos-iso-console/default.nix
Normal file
9
nixos/hosts/nixos-iso-console/default.nix
Normal file
|
@ -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 ];
|
||||||
|
}
|
Loading…
Reference in a new issue