forked from pub-solar/os
niximg: init iso configuration
Easily build the iso using `nix build $ISO` thanks to direnv.
This commit is contained in:
parent
063d05c680
commit
1c79781936
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";
|
||||
|
||||
iso = nixpkgs.lib.optionalAttrs (self == "niximg")
|
||||
(import "${nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix");
|
||||
in
|
||||
attrValues flake.nixosModules ++ [
|
||||
core
|
||||
global
|
||||
local
|
||||
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