feat: add iso build based on common config
This commit is contained in:
parent
304803281d
commit
55b700dc77
1 changed files with 20 additions and 0 deletions
20
flake.nix
20
flake.nix
|
@ -37,6 +37,12 @@
|
|||
./devices/oksys
|
||||
secrets.nixosModules.oksys
|
||||
];
|
||||
|
||||
live-image = mkNixOS [
|
||||
("${nixpkgs}/nixos/modules/installer/" +
|
||||
"cd-dvd/installation-cd-minimal.nix")
|
||||
{vars.user = "nixos";}
|
||||
];
|
||||
};
|
||||
|
||||
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
|
@ -59,6 +65,20 @@
|
|||
};
|
||||
|
||||
formatter = perSystem (_: pkgs: pkgs.alejandra);
|
||||
|
||||
devShells = perSystem (_: pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
alejandra
|
||||
git
|
||||
|
||||
(pkgs.writeShellScriptBin "mkIso" (lib.concatStrings [
|
||||
"nix build $(realpath /etc/nixos)#nixosConfigurations."
|
||||
"live-image.config.system.build.isoImage"
|
||||
]))
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
inputs = {
|
||||
|
|
Loading…
Add table
Reference in a new issue