mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: adapt installer to flake-less
This commit is contained in:
parent
f8fcbca37e
commit
558a59867b
3 changed files with 42 additions and 36 deletions
37
nix/configurations/hosts/installer.nix
Normal file
37
nix/configurations/hosts/installer.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue