add iso building thingy

This commit is contained in:
CherryKitten 2024-04-01 20:23:27 +02:00
parent 6a0df97bff
commit b797fffd79
Signed by: sammy
GPG key ID: 98D8F75FB0658276
3 changed files with 35 additions and 8 deletions

View file

@ -52,15 +52,12 @@
bengal = { };
ocelot = { };
iso = { };
};
nixosConfigurations = {
test = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs outputs; };
modules = [ ./hosts/test-vm ./hosts/common (import "${home-manager}/nixos") ];
};
} // colmenaHive.nodes;
nixosConfigurations = { } // colmenaHive.nodes;
packages.x86_64-linux.iso = self.nixosConfigurations.iso.config.system.build.isoImage;
homeConfigurations =
let

30
hosts/iso/default.nix Normal file
View file

@ -0,0 +1,30 @@
{ modulesPath, pkgs, ... }:
{
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
];
# Enables copy / paste when running in a KVM with spice.
services.spice-vdagentd.enable = true;
users.users.nixos.shell = pkgs.fish;
programs.fish.enable = true;
environment.systemPackages = with pkgs; [
mkpasswd
nixpkgs-fmt
neovim-unwrapped
xclip
];
home-manager.users.nixos = {
imports = [
../../modules/home/foot.nix
];
home.stateVersion = "23.11";
};
# Use faster squashfs compression
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
}

View file

@ -42,7 +42,7 @@
StreamLocalBindUnlink yes
'';
settings = {
PermitRootLogin = "no";
PermitRootLogin = lib.mkOverride 999 "no";
PasswordAuthentication = false;
Macs = [
"hmac-sha2-512"