From cfa5c9428e430f7bc1eb81b2e61153a62d409946 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sat, 11 Feb 2023 09:46:05 -0700 Subject: [PATCH] Remove reg --- flake.nix | 1 - machines/reg/configuration.nix | 35 ----------------------- machines/reg/hardware-configuration.nix | 38 ------------------------- 3 files changed, 74 deletions(-) delete mode 100644 machines/reg/configuration.nix delete mode 100644 machines/reg/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index a75a656..31d5c22 100644 --- a/flake.nix +++ b/flake.nix @@ -68,7 +68,6 @@ }; in { - "reg" = mkSystem "x86_64-linux" nixpkgs ./machines/reg/configuration.nix; "ray" = mkSystem "x86_64-linux" nixpkgs-unstable ./machines/ray/configuration.nix; "nat" = mkSystem "aarch64-linux" nixpkgs ./machines/nat/configuration.nix; "liza" = mkSystem "x86_64-linux" nixpkgs ./machines/liza/configuration.nix; diff --git a/machines/reg/configuration.nix b/machines/reg/configuration.nix deleted file mode 100644 index 10e8127..0000000 --- a/machines/reg/configuration.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, pkgs, fetchurl, ... }: - -{ - imports = [ - ./hardware-configuration.nix - ]; - - # smcxui7kwoyxpswwage4fkcppxnqzpw33xcmxmlhxvk5gcp5s6lrtfad.onion - - boot.kernelPackages = pkgs.linuxPackages_5_12; - - firmware.x86_64.enable = true; - efi.enable = true; - - luks = { - enable = true; - device = { - path = "/dev/disk/by-uuid/975d8427-2c6a-440d-a1d2-18dd15ba5bc2"; - allowDiscards = true; - }; - }; - - networking.hostName = "reg"; - - de.enable = true; - de.touchpad.enable = true; - - services.zerotierone.enable = true; - - # VNC - networking.firewall.allowedTCPPorts = [ 5900 ]; - - networking.interfaces.enp57s0f1.useDHCP = true; -} - diff --git a/machines/reg/hardware-configuration.nix b/machines/reg/hardware-configuration.nix deleted file mode 100644 index 221faa6..0000000 --- a/machines/reg/hardware-configuration.nix +++ /dev/null @@ -1,38 +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" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.initrd.kernelModules = [ "dm-snapshot" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/b3a2906b-e9a5-45bd-aac5-960297437fe9"; - fsType = "btrfs"; - options = [ "subvol=root" "noatime" "nodiratime" "discard" ]; - }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/b3a2906b-e9a5-45bd-aac5-960297437fe9"; - fsType = "btrfs"; - options = [ "subvol=home" "noatime" "nodiratime" "discard" ]; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/6C41-24A0"; - fsType = "vfat"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/34ec322f-79c3-4993-a073-ef1da3c6ef51"; } - ]; - - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; -}