mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved install iso from a package to a host
made funnier functions gave more modules disable options updated lint command
This commit is contained in:
parent
ccbc3cc2af
commit
c4e6bcb664
9 changed files with 132 additions and 120 deletions
49
hosts/iso/main.nix
Normal file
49
hosts/iso/main.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
disko,
|
||||
nixos-generators,
|
||||
...
|
||||
}: {
|
||||
lib,
|
||||
modulesPath,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
##Build wtih nix build .#nixosConfigurations.iso.config.formats.iso
|
||||
local = {
|
||||
hardware = {
|
||||
gpuAcceleration.disable = true;
|
||||
sound.disable = true;
|
||||
};
|
||||
bootConfig = {
|
||||
disable = true;
|
||||
stage2patch.disable = true;
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
"${modulesPath}/profiles/minimal.nix"
|
||||
"${modulesPath}/installer/cd-dvd/installation-cd-base.nix"
|
||||
nixos-generators.nixosModules.all-formats
|
||||
];
|
||||
|
||||
environment = {
|
||||
noXlibs = lib.mkOverride 500 false;
|
||||
systemPackages = [
|
||||
pkgs.neovim
|
||||
disko.packages.${pkgs.system}.default
|
||||
];
|
||||
};
|
||||
documentation = {
|
||||
man.enable = lib.mkOverride 500 false;
|
||||
doc.enable = lib.mkOverride 500 false;
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = lib.mkForce false;
|
||||
|
||||
isoImage = {
|
||||
edition = lib.mkForce "gerg-minimal";
|
||||
isoName = lib.mkForce "NixOS.iso";
|
||||
};
|
||||
|
||||
sound.enable = false;
|
||||
_file = ./default.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue