iso builder

This commit is contained in:
ari committed 2026-03-16 19:06:41 -04:00
1 parent e28f5814c4
commit bd25df72fe
3 files changed
+85

No files matched your search

+11
View File
@@ -184,5 +184,16 @@
];
};
};
# Live ISO Configuration
# -------------
packages.x86_64-linux = {
installer-iso = lib.makeIso {
hostName = "skygnix";
configuration = [
./hosts/iso.nix
];
};
};
};
}
+47
View File
@@ -0,0 +1,47 @@
{ config, lib, pkgs, ... }:
{
# Root access without password
users.users.root.initialHashedPassword = "";
security.sudo.wheelNeedsPassword = false;
# Networking
networking.networkmanager.enable = true;
# SSH for remote installation
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
# GUI with lightweight desktop
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.xfce.enable = true;
# Core system packages
environment.systemPackages = with pkgs; [
# Disk tools
parted
gparted # GUI partitioner
cryptsetup
btrfs-progs
dosfstools
ntfs3g
e2fsprogs
# Utilities
curl
wget
git
htop
tmux
# Documentation
man-pages
];
# Disable heavy services
services.printing.enable = lib.mkForce false;
sound.enable = lib.mkForce false;
# Include documentation
documentation.nixos.enable = true;
}
+27
View File
@@ -74,6 +74,33 @@ in
})
] ++ configuration;
};
makeIso =
{ system ? "x86_64-linux"
, hostName
, systemStateVersion ? "25.11"
, homeManagerVersion ? "25.11"
, configuration ? [ ]
}: nixpkgs.lib.nixosSystem {
specialArgs = specialArgs // {
inherit system skygUtils user;
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
};
inherit system;
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
determinate.nixosModules.default
stylix.nixosModules.stylix
nix-flatpak.nixosModules.nix-flatpak
(import ./main.nix {
inherit
user
hostName
systemStateVersion
homeManagerVersion
;
})
] ++ configuration;
};
makeDarwinModule =
{ system ? "x86_64-darwin"
, user