niximg: init iso configuration

Easily build the iso using `nix build $ISO` thanks to direnv.
This commit is contained in:
Timothy DeHerrera 2020-01-01 19:12:59 -07:00
parent 063d05c680
commit 1c79781936
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
4 changed files with 19 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
export ISO=".#nixosConfigurations.niximg.config.system.build.isoImage"

6
hosts/NixOS.nix Normal file
View file

@ -0,0 +1,6 @@
{
imports = [
../profiles/develop
../profiles/misc
];
}

View file

@ -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
View file

@ -0,0 +1,8 @@
{
imports = [
./NixOS.nix
];
isoImage.makeEfiBootable = true;
isoImage.makeUsbBootable = true;
}