niximg: init iso configuration
Easily build the iso using `nix build $ISO` thanks to direnv.
This commit is contained in:
parent
063d05c680
commit
1c79781936
4 changed files with 19 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export ISO=".#nixosConfigurations.niximg.config.system.build.isoImage"
|
6
hosts/NixOS.nix
Normal file
6
hosts/NixOS.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../profiles/develop
|
||||||
|
../profiles/misc
|
||||||
|
];
|
||||||
|
}
|
|
@ -30,12 +30,16 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
local = import "${toString ./.}/${self}.nix";
|
local = import "${toString ./.}/${self}.nix";
|
||||||
|
|
||||||
|
iso = nixpkgs.lib.optionalAttrs (self == "niximg")
|
||||||
|
(import "${nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix");
|
||||||
in
|
in
|
||||||
attrValues flake.nixosModules ++ [
|
attrValues flake.nixosModules ++ [
|
||||||
core
|
core
|
||||||
global
|
global
|
||||||
local
|
local
|
||||||
home
|
home
|
||||||
|
iso
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
8
hosts/niximg.nix
Normal file
8
hosts/niximg.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./NixOS.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
isoImage.makeEfiBootable = true;
|
||||||
|
isoImage.makeUsbBootable = true;
|
||||||
|
}
|
Loading…
Reference in a new issue