modified: auto-installer/installer.nix
This commit is contained in:
@@ -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
|
||||
'
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user