diff --git a/scripts/install_new_vm.sh b/scripts/install_new_vm.sh deleted file mode 100755 index c2e0190..0000000 --- a/scripts/install_new_vm.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -read -e -p "Enter a config you want to deploy: " flake - -server="nixos@nixos.2li.local" -download_command="curl https://git.2li.ch/Nebucatnetzer/nixos/archive/master.tar.gz | tar xz" -install_command="cd ~/nixos && ./scripts/install_vm.sh $flake" -rsa_key="~/.ssh/id_rsa" - -ssh-copy-id $server -ssh -i $rsa_key -t $server $download_command -ssh -i $rsa_key -t $server $install_command diff --git a/scripts/install_vm.sh b/scripts/install_vm.sh deleted file mode 100755 index 90aa87f..0000000 --- a/scripts/install_vm.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env nix-shell -#! nix-shell -i bash ../shell.nix - -sudo python3 scripts/format-disk.py -sudo nixos-install --no-root-passwd --root /mnt --impure --flake .#$1 diff --git a/scripts/secret_permissions.sh b/scripts/secret_permissions.sh deleted file mode 100755 index e19f95b..0000000 --- a/scripts/secret_permissions.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -find ./secrets -type d -print0 | xargs -0 chmod 700 -find ./secrets -type f -print0 | xargs -0 chmod 600 diff --git a/scripts/setup_vm_home.sh b/scripts/setup_vm_home.sh deleted file mode 100755 index 03dd17e..0000000 --- a/scripts/setup_vm_home.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -sudo ln -s /home/andreas/.nixos/flake.nix /etc/nixos/ -git clone https://git.2li.ch/Nebucatnetzer/docker_systems -passwd diff --git a/systems/proxmox-vm/default.nix b/systems/proxmox-vm/default.nix deleted file mode 100644 index ab112f1..0000000 --- a/systems/proxmox-vm/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ custom, hostname, ip }: { ... }: -{ - imports = [ - "${custom.inputs.self}/modules/log-to-ram" - "${custom.inputs.self}/modules/ntp" - "${custom.inputs.self}/modules/syslog" - ]; - - networking = { - useDHCP = false; - hostName = hostname; - hosts = { - "127.0.0.1" = [ "${hostname}.2li.local" ]; - ip = [ "${hostname}.2li.local" ]; - }; - defaultGateway = "10.7.89.1"; - nameservers = [ "10.7.89.2" ]; - interfaces.ens18.ipv4.addresses = [ - { - address = ip; - prefixLength = 24; - } - ]; - }; - - boot.initrd.availableKernelModules = [ - "ata_piix" - "uhci_hcd" - "virtio_pci" - "virtio_scsi" - "sd_mod" - "sr_mod" - ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "dm-snapshot" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = { - device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; - }; - fileSystems."/boot" = { - device = "/dev/disk/by-label/BOOT"; - fsType = "vfat"; - }; - - swapDevices = [ - { device = "/dev/disk/by-label/swap"; } - ]; -} -