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:
Gerg-L 2023-07-28 19:38:59 -04:00
parent ccbc3cc2af
commit c4e6bcb664
9 changed files with 132 additions and 120 deletions

View file

@ -1,7 +1,6 @@
{nvim-flake, ...}: {
pkgs,
config,
lib,
...
}: {
local = {
@ -64,9 +63,9 @@
;
inherit (nvim-flake.packages.${pkgs.system}) neovim;
lint = pkgs.writeShellScriptBin "lint" ''
deadnix -e "$1"
statix fix "$1"
alejandra "$1"
deadnix -e "''${1:-.}"
statix fix -- "''${1:-.}"
alejandra "''${1:-.}"
'';
};
etc = {

49
hosts/iso/main.nix Normal file
View 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;
}