This commit is contained in:
Kristian Krsnik 2024-04-15 18:58:06 +02:00
parent 33aa9f1c5a
commit 8ac593fa84
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -36,6 +36,16 @@
formatter = pkgs.alejandra;
apps.${system} = {
install = {
program = "${pkgs.writeShellScript "install" ''
sudo nixos-generate-config --no-filesystems --force --root /mnt ./system
sudo disko-install --flake .#nixos --disk main /dev/sda --write-efi-entries
''}";
type = "app";
};
};
devShells.${system} = {
default = pkgs.mkShellNoCC {
packages = [
@ -43,5 +53,17 @@
];
};
};
templates = {
default = {
path = ./.;
description = "A flake template for a NixOS setup with impermanence.";
welcomeText = ''
To automatically install do a `nix run .#install`
'';
};
};
};
}