ctucx.git: nixfiles

ctucx' nixfiles

commit 87d84f194a4d767d981fc3d5aa4e3ab63e97d87c
parent 3f272fa5623050bee48d7ca14f6f898a16b30372
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 11 Jun 2024 21:32:54 +0200

machines: remove `wanderduene-old`
3 files changed, 0 insertions(+), 118 deletions(-)
M
flake.nix
|
1
-
D
machines/wanderduene-old/configuration.nix
|
85
-------------------------------------------------------------------------------
D
machines/wanderduene-old/hardware-configuration.nix
|
32
--------------------------------
diff --git a/flake.nix b/flake.nix
@@ -50,7 +50,6 @@
 
       trabbi           = import ./machines/trabbi/configuration.nix;
       wanderduene      = import ./machines/wanderduene/configuration.nix;
-      wanderduene-old  = import ./machines/wanderduene-old/configuration.nix;
     };
 
     nixosConfigurations = (import (inputs.colmena + "/src/nix/hive/eval.nix") {
diff --git a/machines/wanderduene-old/configuration.nix b/machines/wanderduene-old/configuration.nix
@@ -1,85 +0,0 @@
-{ nodes, config, lib, pkgs, ... }:
-
-{
-
-  deployment.buildOnTarget = false;
-
-  #this enables the following services: dns
-  deployment.tags          = [ "dnsServer" ];
-
-  documentation.nixos.enable = false;
-
-  imports = [
-    ./hardware-configuration.nix
-  ];
-
-  dns.zones."ctu.cx".subdomains."${config.networking.hostName}" = (pkgs.dns.lib.combinators.host config.networking.primaryIP4 config.networking.primaryIP);
-
-  boot = {
-    # Use the systemd-boot EFI boot loader.
-    loader.systemd-boot.enable = true;
-    loader.efi.canTouchEfiVariables = true;
-
-    initrd.network = {
-      enable = true;
-      ssh    = {
-        enable         = true;
-        port           = 22;
-        hostKeys       = [ /etc/ssh/ssh_host_rsa_key ];
-        authorizedKeys = with lib; concatLists (mapAttrsToList (name: user: if elem "wheel" user.extraGroups then user.openssh.authorizedKeys.keys else []) config.users.users);
-      };
-
-      postCommands = ''
-        ip link set dev ens3 up
-        ip addr add ${config.networking.primaryIP}/128 dev ens3
-        ip route add default via fe80::1 dev ens3 onlink
-
-        ip addr add ${config.networking.primaryIP4}/22 dev ens3
-        ip route add default via 89.58.40.1 dev ens3 onlink
-        echo 'cryptsetup-askpass' >> /root/.profile
-      '';
-    };
-  };
-
-  networking = {
-    primaryIP    = "2a03:4000:66:f61::1";
-    primaryIP4   = "89.58.41.187";
-
-    resolvconf.enable = false;
-    nameservers       = [ "8.8.8.8" "1.1.1.1" ];
-
-    defaultGateway  = {
-      interface = "ens3";
-      address   = "89.58.40.1";
-    };
-
-    defaultGateway6 = {
-      interface = "ens3";
-      address   = "fe80::1";
-    };
-
-    interfaces.ens3 = {
-      ipv4.addresses = [{
-        address = config.networking.primaryIP4;
-        prefixLength = 24;
-      }];
-
-      ipv6.addresses = [{
-        address      = config.networking.primaryIP;
-        prefixLength = 64;
-      }];
-    };
-  };
-
-  ctucxConfig.programs = {
-    gpg.enable    = false;
-    ssh.enable    = false;
-    git.enable    = false;
-  };
-
-
-  system.stateVersion = "23.05";
-  home-manager.users.leah.home.stateVersion = "23.05";
-
-}
-
diff --git a/machines/wanderduene-old/hardware-configuration.nix b/machines/wanderduene-old/hardware-configuration.nix
@@ -1,31 +0,0 @@
-# Do not modify this file!  It was generated by ‘nixos-generate-config’
-# and may be overwritten by future invocations.  Please make changes
-# to /etc/nixos/configuration.nix instead.
-{ config, lib, pkgs, modulesPath, ... }:
-
-{
-  imports =
-    [ (modulesPath + "/profiles/qemu-guest.nix")
-    ];
-
-  boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
-  boot.initrd.kernelModules = [ ];
-  boot.kernelModules = [ ];
-  boot.extraModulePackages = [ ];
-
-  fileSystems."/" =
-    { device = "/dev/disk/by-uuid/2aa59099-e383-4a66-acfb-37cd85d31d64";
-      fsType = "ext4";
-    };
-
-  boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/8d24523f-4d43-4354-a46f-de7a449e1ff4";
-
-  fileSystems."/boot" =
-    { device = "/dev/disk/by-uuid/0A3A-948D";
-      fsType = "vfat";
-    };
-
-  swapDevices = [ ];
-
-  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
-}-
\ No newline at end of file