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:
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 New Issue
Block a user