moved ap to module
This commit is contained in:
parent
58ce5e8a6c
commit
10a4ae7c36
8 changed files with 56 additions and 61 deletions
|
|
@ -16,14 +16,6 @@
|
|||
./vps-init.nix
|
||||
];
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 53 ];
|
||||
allowedUDPPorts = [
|
||||
53
|
||||
67
|
||||
];
|
||||
};
|
||||
nat.enable = true;
|
||||
networkmanager.ensureProfiles = {
|
||||
environmentFiles = [ config.sops.secrets.wifi-env.path ];
|
||||
profiles = {
|
||||
|
|
|
|||
13
mods/install.sh
Normal file
13
mods/install.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# tepmlate, not for running
|
||||
gdisk $DISK
|
||||
mkfs.fat -F 32 -n $HOST-esp $ESPPART
|
||||
cryptsetup luksFormat $ROOTPART
|
||||
cryptsetup open $ROOTPART root
|
||||
mkfs.ext4 -L $HOST-root /dev/mapper/root
|
||||
mount /dev/mapper/root /mnt
|
||||
mount --mkdir $ESPPART /mnt/boot
|
||||
mkdir -p /mnt/var/lib
|
||||
# restore backup
|
||||
nixos-install --no-root-passwd --no-channel-copy --flake "/mnt/etc/nixos#nixos-$HOST"
|
||||
sbctl enroll-keys --yolo
|
||||
systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+2+7 $ROOTPART
|
||||
Loading…
Add table
Add a link
Reference in a new issue