Remove proxmox related configs
This commit is contained in:
parent
40022fbcdb
commit
2ada81f601
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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"; }
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue