modified: auto-installer/installer.nix
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
git curl parted e2fsprogs btrfs-progs util-linux
|
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 =
|
environment.etc."git-credentials".text =
|
||||||
"https://beatzaplenty:2b7e178eeee4af437fc721295d59e9e19366fd02@gitea.lan.ddnsgeek.com";
|
"https://beatzaplenty:2b7e178eeee4af437fc721295d59e9e19366fd02@gitea.lan.ddnsgeek.com";
|
||||||
@@ -45,9 +45,7 @@ environment.etc."git-credentials".text =
|
|||||||
];
|
];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
# ExecStart = pkgs.writeShellScript "auto-install.sh" ''
|
ExecStart = pkgs.writeShellScript "auto-install.sh" ''
|
||||||
ExecStart = ''
|
|
||||||
${pkgs.bash}/bin/bash -l -c '
|
|
||||||
set -eux
|
set -eux
|
||||||
#create MBR table
|
#create MBR table
|
||||||
parted /dev/sda -- mklabel msdos
|
parted /dev/sda -- mklabel msdos
|
||||||
@@ -76,7 +74,6 @@ environment.etc."git-credentials".text =
|
|||||||
rm -r /mnt/install-tmp
|
rm -r /mnt/install-tmp
|
||||||
sleep 10
|
sleep 10
|
||||||
reboot
|
reboot
|
||||||
'
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user