modified: auto-installer/installer.nix

This commit is contained in:
2025-07-21 09:36:26 +10:00
parent cfea52cf7d
commit e0a1d1b5dc

View File

@@ -15,7 +15,7 @@
git curl parted e2fsprogs btrfs-progs util-linux
];
environment.etc."flake-url".text = "git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git#nixos?ref=main";
environment.etc."flake-url".text = "git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git?ref=main#nixos";
environment.etc."git-credentials".text =
"https://beatzaplenty:2b7e178eeee4af437fc721295d59e9e19366fd02@gitea.lan.ddnsgeek.com";
@@ -45,9 +45,7 @@ environment.etc."git-credentials".text =
];
serviceConfig = {
Type = "oneshot";
# ExecStart = pkgs.writeShellScript "auto-install.sh" ''
ExecStart = ''
${pkgs.bash}/bin/bash -l -c '
ExecStart = pkgs.writeShellScript "auto-install.sh" ''
set -eux
#create MBR table
parted /dev/sda -- mklabel msdos
@@ -76,7 +74,6 @@ environment.etc."git-credentials".text =
rm -r /mnt/install-tmp
sleep 10
reboot
'
'';
};
};