ctucx.git: nixfiles

ctucx' nixfiles

commit c014b97d962da6355a1bd622c1a049ad3f51ba22
parent dbead87b90d46cb0f94e2f281fd6e6ddd3264431
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 27 Mar 2023 13:37:41 +0200

machines: remove stasicontainer
2 files changed, 0 insertions(+), 137 deletions(-)
D
machines/deprecated/stasicontainer/configuration.nix
|
103
-------------------------------------------------------------------------------
D
machines/deprecated/stasicontainer/hardware-configuration.nix
|
34
----------------------------------
diff --git a/machines/deprecated/stasicontainer/configuration.nix b/machines/deprecated/stasicontainer/configuration.nix
@@ -1,103 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-{
-  imports = [
-    ./hardware-configuration.nix
-    ../../configurations/common.nix
-
-    ../../configurations/services/prometheus-node-exporter.nix
-
-    ../../configurations/desktop-sway.nix
-    ../../configurations/programs/ddcutil.nix
-    ../../configurations/sdr.nix
-  ];
-
-  hardware = {
-    cpu.intel.updateMicrocode  = true;
-    desktop-speakers = {
-      power-control.enable             = true;
-      power-control.automaticSwitching = true;
-      pipewire-tunnel.enable           = true;
-      pipewire-tunnel.automaticConnect = true;
-    };
-  };
-
-  boot = {
-    loader = {
-      systemd-boot.enable = true;
-      efi.canTouchEfiVariables = true;
-    };
-
-    consoleLogLevel               = 3;
-    kernel.sysctl."vm.swappiness" = 0;
-    kernel.sysctl."kernel/sysrq"  = 1;
-    extraModulePackages           = with config.boot.kernelPackages; [ ddcci-driver ];
-    kernelModules                 = [ "tpm-rng" "ddcci-backlight" ];
-    kernelParams = [
-      "quiet"
-      "scsi_mod.use_blk_mq=1"
-      "modeset"
-      "nofb"
-      "rd.systemd.show_status=auto"
-      "rd.udev.log_priority=3"
-      "pti=off"
-      "spectre_v2=off"
-    ];
-
-    extraModprobeConfig = lib.mkMerge [
-      "options ec_sys write_support=1"
-    ];
-
-    initrd.availableKernelModules = [ "i915" ];
-
-    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 195.39.246.44/28 dev ens3
-        ip route add default via 195.39.246.41 dev ens3 onlink
-        echo 'cryptsetup-askpass' >> /root/.profile
-      '';
-    };
-
-  };
-
-  networking = {
-#    useNetworkd = true;
-#    useDHCP     = false;
-    hostName    = "stasicontainer";
-    domain      = "home.ctu.cx";
-
-    interfaces.eno1 = {
-      useDHCP          = true;
-      wakeOnLan.enable = true;
-    };
-
-    dhcpcd = {
-      enable = true;
-      extraConfig = ''
-        duid e8:6a:64:f4:49:e7
-      '';
-    };
-
-#    wireless = {
-#      iwd.enable = true;
-#    };
-
-    firewall = {
-      enable = true;
-      allowedTCPPorts = [ 8000 ];
-    };
-  };
-
-  home-manager.users.leah.home.stateVersion = "21.11";
-  system.stateVersion = "21.11"; # Did you read the comment?
-}
diff --git a/machines/deprecated/stasicontainer/hardware-configuration.nix b/machines/deprecated/stasicontainer/hardware-configuration.nix
@@ -1,34 +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 + "/installer/scan/not-detected.nix")
-    ];
-
-  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
-  boot.initrd.kernelModules = [ ];
-  boot.kernelModules = [ "kvm-intel" ];
-  boot.extraModulePackages = [ ];
-
-  fileSystems."/" =
-    { device = "/dev/disk/by-uuid/3d7e34de-89f3-4658-a315-80b9d0aadf62";
-      fsType = "ext4";
-    };
-
-  boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/20abb5f4-b84b-4d93-996d-7b7b4d90b1f0";
-
-  fileSystems."/boot" =
-    { device = "/dev/disk/by-uuid/C3ED-47DE";
-      fsType = "vfat";
-    };
-
-  swapDevices = [ ];
-
-  powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
-  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-  # high-resolution display
-  hardware.video.hidpi.enable = lib.mkDefault true;
-}