most descript nixos error
This commit is contained in:
parent
9c73f49fac
commit
5f6fd55ada
2 changed files with 1 additions and 3 deletions
|
@ -25,7 +25,6 @@
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
mountpoint = "/partition-root";
|
|
||||||
extraArgs = [ "-f" "-L nixos" ];
|
extraArgs = [ "-f" "-L nixos" ];
|
||||||
subvolumes = {
|
subvolumes = {
|
||||||
"/rootfs" = {
|
"/rootfs" = {
|
||||||
|
|
|
@ -127,7 +127,6 @@ partition_disk() {
|
||||||
if [ "$DOTNIX_CONFIRM_DISK_NUKE" = "yes" ]; then
|
if [ "$DOTNIX_CONFIRM_DISK_NUKE" = "yes" ]; then
|
||||||
sudo nix --experimental-features 'flakes nix-command' run github:nix-community/disko/latest -- \
|
sudo nix --experimental-features 'flakes nix-command' run github:nix-community/disko/latest -- \
|
||||||
--mode destroy,format,mount --yes-wipe-all-disks "./hosts/$DOTNIX_HOSTNAME/disko.nix"
|
--mode destroy,format,mount --yes-wipe-all-disks "./hosts/$DOTNIX_HOSTNAME/disko.nix"
|
||||||
echo "disko done"
|
|
||||||
else
|
else
|
||||||
>&2 echo "Aborted installation due to invalid state in the partitioning step."
|
>&2 echo "Aborted installation due to invalid state in the partitioning step."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -135,7 +134,7 @@ partition_disk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_config() {
|
generate_config() {
|
||||||
nixos-generate-config --no-filesystems --root /mnt
|
sudo nixos-generate-config --no-filesystems --root /mnt
|
||||||
}
|
}
|
||||||
|
|
||||||
main () {
|
main () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue