This commit is contained in:
Kristian Krsnik 2024-04-16 18:18:04 +02:00
parent c6446d24d8
commit d5be56bc0e
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
1 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@
apps.${system} = {
install = {
program = "${pkgs.writeShellScript "install" ''
sudo run github:nix-community/disko/${inputs.disko.rev} -- --mode disko ${./system/disko.nix}
sudo nixos-generate-config --no-filesystems --force --root /mnt --dir ./system
sudo nixos-install --no-root-password --root /mnt --flake ${self}#nixos
sudo run ${inputs.disko} -- --mode disko ${./system/disko.nix}
sudo nixos-generate-config --force --no-filesystems --root /mnt --dir ./system
sudo nixos-install --no-root-password --root /mnt --flake ${self.outputs.nixosConfigurations.nixos}
''}";
type = "app";
};