1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00

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;
}