add iso, change networking for fw

This commit is contained in:
2023-11-28 15:44:54 +01:00
parent d1437de4b1
commit c45fb4d230
6 changed files with 177 additions and 15 deletions

54
iso/configuration.nix Normal file
View File

@@ -0,0 +1,54 @@
{ config, lib, pkgs, ... }: {
imports = [
<nixpkgs/nixos/modules/profiles/all-hardware.nix>
<nixpkgs/nixos/modules/profiles/base.nix>
#installer-only ./hardware-configuration.nix
];
nixpkgs.config.allowUnfree = true;
zramSwap.enable = true;
services.logind.lidSwitch = "ignore";
security.sudo.wheelNeedsPassword = false;
networking.hostName = "install";
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
users.mutableUsers = false;
users.users.root = {
# Password is "linux"
hashedPassword = lib.mkForce "$6$7IKExnDde920x.YH$ggegnnKJYdmg1Wt33fxuPpM.MmIaX32LXVyjL8ed7ohT385lKotFGzRpitncQ3pd9Lci1QCFGRn2tVJGxkFAm0";
};
services.avahi = {
enable = true;
ipv4 = true;
ipv6 = true;
nssmdns = true;
publish = { enable = true; domain = true; addresses = true; };
};
environment.systemPackages = with pkgs; [
coreutils
curl
file
git
htop
lsof
nano
openssl
pciutils
pv
tmux
tree
unar
vim_configurable
wget
zip
];
system.stateVersion = "23.05"; # Did you read the comment?
}