nix: adapt installer to flake-less

This commit is contained in:
Primrose 2025-03-24 15:33:36 +01:00
parent f8fcbca37e
commit 558a59867b
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 42 additions and 36 deletions

View file

@ -0,0 +1,37 @@
{self, ...}: let
system = "x86_64-linux";
in
###
### module below
###
{
pkgs,
modulesPath,
...
}: {
imports = [
{
nixpkgs = {
hostPlatform = system;
overlays = [self.overlays.default self.overlays.packages'];
};
}
../../nixosModules/common/system-nixconf.nix
../../nixosModules/extra/layouts
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
];
isoImage.squashfsCompression = "zstd -Xcompression-level 3";
environment.systemPackages = [
pkgs.disko
pkgs.fish
pkgs.git
pkgs.pastebinit # for sharing cli output & debugging
pkgs.hdparm # to ATA secure wipe disks
pkgs.btop
];
networking.firewall.allowedTCPPorts = [8080]; # in case you wanna nc
users.users.nixos.shell = pkgs.fish;
programs.fish.enable = true;
}