Added: Iso Configuration
This commit is contained in:
		
							
								
								
									
										35
									
								
								iso/iso.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								iso/iso.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					{ config, pkgs, ... }:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    imports = [
 | 
				
			||||||
 | 
					        <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Provide an initial copy of the NixOS channel so that the user
 | 
				
			||||||
 | 
					        # doesn't need to run "nix-channel --update" first.
 | 
				
			||||||
 | 
					        <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					    environment.systemPackages = [
 | 
				
			||||||
 | 
					        pkgs.neovim
 | 
				
			||||||
 | 
					        pkgs.dig
 | 
				
			||||||
 | 
					        pkgs.git 
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					    isoImage.squashfsCompression = "gzip -Xcompression-level 1"; # Compression Level std: xz -Xdict-size 100%
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Enable SSH in the boot process.
 | 
				
			||||||
 | 
					    systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
 | 
				
			||||||
 | 
					    users.users.root.openssh.authorizedKeys.keys = [
 | 
				
			||||||
 | 
					        "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCaLHfxVylghDMYR8t4QMUpeRRqXasNABQKBEy9MmhbUXCcWiPbPMSZH8FMHON34rm2OrXP1kY/8jQxqBJDA+SqpFR2AZ4Khk9iVMaq5GHxxpn2amZUjoBa+fB29WaiE1npV5JVJV3O0ylw6GtiCnpneE6fGx2MO1vOY/7zKrUX/OK7WfwkDpeEzZgV/j/md917HrzUVeZwdeTq3WCRO8Gew6R8Xs6FRjSiGuH0dq14D4Ow5Zf1cI1jx+JfD/5vGasw8HXPu1NdxsOE+6D7/22IKqGr+S74/lAoyyD5qqk0s05lw8UY/PXBLJaNLZu9Fwx0BqTHpJEvftpmvd9wUxgR3msx9VXtKNSrqivIbDgeU+3oGzzkrGZODl7FCp4XKGmbrX85Z6lKwEGgv5jez4MLZcmT86bxB7m1wIbqSbVtfhS+GI7yPTA/kLzzFa14Im/+LTj95pb8qs2ALMwTMP1j2f9A6D3RriOFihL+68qn+YbK58KuV1R0f+CQRmlfVbk= phil@web.cyperpunk.de"
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    # Setting Predictable Networking 
 | 
				
			||||||
 | 
					    /*networking = {
 | 
				
			||||||
 | 
					        usePredictableInterfaceNames = false;
 | 
				
			||||||
 | 
					        interfaces.eth0.ipv4.addresses = [{
 | 
				
			||||||
 | 
					          address = "192.168.2.41";
 | 
				
			||||||
 | 
					          prefixLength = 24;
 | 
				
			||||||
 | 
					        }];
 | 
				
			||||||
 | 
					        defaultGateway = "192.168.2.41";
 | 
				
			||||||
 | 
					        nameservers = [ "8.8.8.8" ];
 | 
				
			||||||
 | 
					    };*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Reference in New Issue
	
	Block a user