From 1dad7a144df308b1822fb15d683c902d74d58086 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 30 Jan 2024 16:52:30 +0200 Subject: chore(users/flokli/nixos): drop archeology nixos config The machine at Hetzner is gone, only the one in EC2 remains. Change-Id: Ia7266d56ef1174267b95086c51e6d80015c2f905 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10711 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: flokli --- users/flokli/nixos/archeology/OWNERS | 1 - users/flokli/nixos/archeology/configuration.nix | 19 ------------ .../nixos/archeology/hardware-configuration.nix | 36 ---------------------- users/flokli/nixos/default.nix | 8 ----- 4 files changed, 64 deletions(-) delete mode 100644 users/flokli/nixos/archeology/OWNERS delete mode 100644 users/flokli/nixos/archeology/configuration.nix delete mode 100644 users/flokli/nixos/archeology/hardware-configuration.nix diff --git a/users/flokli/nixos/archeology/OWNERS b/users/flokli/nixos/archeology/OWNERS deleted file mode 100644 index b9bc074a8020..000000000000 --- a/users/flokli/nixos/archeology/OWNERS +++ /dev/null @@ -1 +0,0 @@ -edef diff --git a/users/flokli/nixos/archeology/configuration.nix b/users/flokli/nixos/archeology/configuration.nix deleted file mode 100644 index 59438b0a72ad..000000000000 --- a/users/flokli/nixos/archeology/configuration.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ depot, pkgs, ... }: - -{ - imports = [ - ./hardware-configuration.nix - ../profiles/archeology.nix - ]; - - # Use the GRUB 2 boot loader. - boot.loader.grub.enable = true; - boot.loader.grub.device = "/dev/vda"; - - boot.kernelParams = [ "console=ttyS0" ]; - - networking.hostName = "archeology"; - - system.stateVersion = "23.05"; # Did you read the comment? -} - diff --git a/users/flokli/nixos/archeology/hardware-configuration.nix b/users/flokli/nixos/archeology/hardware-configuration.nix deleted file mode 100644 index 7b3d79d70a5d..000000000000 --- a/users/flokli/nixos/archeology/hardware-configuration.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ lib, modulesPath, ... }: - -{ - imports = - [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { - device = "/dev/disk/by-partlabel/root"; - fsType = "xfs"; - }; - - fileSystems."/boot" = - { - device = "/dev/disk/by-partlabel/boot"; - fsType = "vfat"; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -} diff --git a/users/flokli/nixos/default.nix b/users/flokli/nixos/default.nix index c93363785cf1..9ed223a90896 100644 --- a/users/flokli/nixos/default.nix +++ b/users/flokli/nixos/default.nix @@ -13,23 +13,15 @@ let in depot.nix.readTree.drvTargets rec { - archeologySystem = (depot.ops.nixos.nixosFor ({ ... }: { - imports = [ - ./archeology/configuration.nix - ]; - })).config.system.build.toplevel; - archeologyEc2System = (depot.ops.nixos.nixosFor ({ ... }: { imports = [ ./archeology-ec2/configuration.nix ]; })).config.system.build.toplevel; - deploy-archeology = (deployScript "archeology" archeologySystem); deploy-archeology-ec2 = (deployScript "archeology-ec2" archeologyEc2System); deps = (depot.nix.lazy-deps { - deploy-archeology.attr = "users.flokli.nixos.deploy-archeology"; deploy-archeology-ec2.attr = "users.flokli.nixos.deploy-archeology-ec2"; }); -- cgit 1.4.1