From d5a331dd3d39a911868d6b79581f61858233601b Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 10 Mar 2022 12:21:20 -0500 Subject: [PATCH] Remove retired host machines --- hosts/acernitro/.git-keep | 0 hosts/acernitro/configuration.nix | 53 ------------------------------- hosts/acernitro/default.nix | 9 ------ hosts/acernitro/hardware.nix | 37 --------------------- hosts/homecloud/.git-keep | 0 hosts/homecloud/configuration.nix | 50 ----------------------------- hosts/homecloud/default.nix | 9 ------ hosts/homecloud/hardware.nix | 43 ------------------------- hosts/raspberry/.git-keep | 0 hosts/raspberry/configuration.nix | 36 --------------------- hosts/raspberry/default.nix | 9 ------ hosts/raspberry/hardware.nix | 49 ---------------------------- 12 files changed, 295 deletions(-) delete mode 100644 hosts/acernitro/.git-keep delete mode 100644 hosts/acernitro/configuration.nix delete mode 100644 hosts/acernitro/default.nix delete mode 100644 hosts/acernitro/hardware.nix delete mode 100644 hosts/homecloud/.git-keep delete mode 100644 hosts/homecloud/configuration.nix delete mode 100644 hosts/homecloud/default.nix delete mode 100644 hosts/homecloud/hardware.nix delete mode 100644 hosts/raspberry/.git-keep delete mode 100644 hosts/raspberry/configuration.nix delete mode 100644 hosts/raspberry/default.nix delete mode 100644 hosts/raspberry/hardware.nix diff --git a/hosts/acernitro/.git-keep b/hosts/acernitro/.git-keep deleted file mode 100644 index e69de29..0000000 diff --git a/hosts/acernitro/configuration.nix b/hosts/acernitro/configuration.nix deleted file mode 100644 index b706ba1..0000000 --- a/hosts/acernitro/configuration.nix +++ /dev/null @@ -1,53 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, pkgs, inputs, ... }: - -{ - time.timeZone = "America/Toronto"; - - networking.hostName = "acernitro"; - networking.firewall.enable = false; - networking.wireless.enable = true; - networking.wireless.userControlled.enable = true; - networking.useDHCP = false; - networking.interfaces.enp6s0f1.useDHCP = true; - networking.interfaces.wlp0s20f3.useDHCP = true; - - networking.wireless.networks = { - MyWiFi_5C1870 = { - priority = 3; - pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; - }; - BELL182 = { - priority = 2; - pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245"; - }; - SM-G975W3034 = { - priority = 1; - pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; - }; - }; - networking.hosts = { - "192.168.3.105" = [ "gamingpc" ]; - "192.168.3.163" = [ "acernitro" ]; - "192.168.3.182" = [ "raspberry" ]; - "192.168.3.183" = [ "homecloud" ]; - }; - users.users.chris.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4wka/LfG3pto15DIm9LIRbb6rWr7/ipCRiCdAKSlY4 chris@chrishayward.xyz" - ]; - - services.tlp.enable = true; - services.xserver.dpi = 96; - services.xserver.libinput.touchpad.tapping = false; - services.printing.enable = true; - - programs.mtr.enable = true; - programs.fish.enable = true; - programs.gnupg.agent.enable = true; - - users.users.chris = { - shell = pkgs.fish; - isNormalUser = true; - extraGroups = [ "wheel" ]; - }; -} diff --git a/hosts/acernitro/default.nix b/hosts/acernitro/default.nix deleted file mode 100644 index 8454369..0000000 --- a/hosts/acernitro/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ ... }: - -{ - imports = [ - ./configuration.nix - ./hardware.nix - ]; -} diff --git a/hosts/acernitro/hardware.nix b/hosts/acernitro/hardware.nix deleted file mode 100644 index 51848c7..0000000 --- a/hosts/acernitro/hardware.nix +++ /dev/null @@ -1,37 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - sound.enable = true; - hardware.pulseaudio.enable = true; - hardware.pulseaudio.support32Bit = true; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/2f548eb9-47ce-4280-950f-9c6d1d162852"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/5BC3-73F3"; - fsType = "vfat"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/bef7bf62-d26f-45b1-a1f8-1227c2f8b26a"; } - ]; - - powerManagement.powertop.enable = true; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; -} diff --git a/hosts/homecloud/.git-keep b/hosts/homecloud/.git-keep deleted file mode 100644 index e69de29..0000000 diff --git a/hosts/homecloud/configuration.nix b/hosts/homecloud/configuration.nix deleted file mode 100644 index de5371f..0000000 --- a/hosts/homecloud/configuration.nix +++ /dev/null @@ -1,50 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, pkgs, ... }: - -{ - time.timeZone = "America/Toronto"; - - networking.hostName = "homecloud"; - networking.firewall.enable = false; - networking.networkmanager.enable = true; - networking.interfaces.eth0.useDHCP = true; - networking.interfaces.wlan0.useDHCP = true; - - networking.wireless.networks = { - MyWiFi_5C1870 = { - priority = 3; - pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; - }; - BELL182 = { - priority = 2; - pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245"; - }; - SM-G975W3034 = { - priority = 1; - pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; - }; - }; - networking.hosts = { - "192.168.3.105" = [ "gamingpc" ]; - "192.168.3.163" = [ "acernitro" ]; - "192.168.3.182" = [ "raspberry" ]; - "192.168.3.183" = [ "homecloud" ]; - }; - users.users.chris.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4wka/LfG3pto15DIm9LIRbb6rWr7/ipCRiCdAKSlY4 chris@chrishayward.xyz" - ]; - - environment.systemPackages = [ - pkgs.libraspberrypi - pkgs.raspberrypi-eeprom - ]; - - programs.fish.enable = true; - programs.mtr.enable = true; - - users.users.chris = { - shell = pkgs.fish; - isNormalUser = true; - extraGroups = [ "wheel" "networkmanager" ]; - }; -} diff --git a/hosts/homecloud/default.nix b/hosts/homecloud/default.nix deleted file mode 100644 index 5c8f324..0000000 --- a/hosts/homecloud/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -# < -{ ... }: - -{ - imports = [ - ./configuration.nix - ./hardware.nix - ]; -} diff --git a/hosts/homecloud/hardware.nix b/hosts/homecloud/hardware.nix deleted file mode 100644 index 1db1988..0000000 --- a/hosts/homecloud/hardware.nix +++ /dev/null @@ -1,43 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, pkgs, lib, inputs, ... }: - -{ - # imports = [ - # inputs.nixos-hardware.nixosModules.raspberry-pi-4 - # ]; - - # boot.kernelPackages = pkgs.linuxPackages_rpi4; - boot.tmpOnTmpfs = true; - boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ]; - boot.kernelParams = [ - "8250.nr_uarts=1" - "console=ttyAMA0,115200" - "console=tty1" - "cma=128M" - ]; - - boot.loader.grub.enable = false; - boot.loader.generic-extlinux-compatible.enable = true; - boot.loader.raspberryPi = { - enable = true; - version = 4; - firmwareConfig = '' - hdmi_drive=2 - hdmi_force_hotplug=1 - dtparam=sd_poll_once=on - dtparam=audio=on - ''; - }; - - # hardware.raspberry-pi."4".fkms-3d.enable = true; - - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; - fsType = "ext4"; - options = [ "noatime" ]; - }; - }; - - powerManagement.cpuFreqGovernor = "ondemand"; -} diff --git a/hosts/raspberry/.git-keep b/hosts/raspberry/.git-keep deleted file mode 100644 index e69de29..0000000 diff --git a/hosts/raspberry/configuration.nix b/hosts/raspberry/configuration.nix deleted file mode 100644 index afdf26b..0000000 --- a/hosts/raspberry/configuration.nix +++ /dev/null @@ -1,36 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, pkgs, ... }: - -{ - time.timeZone = "America/Toronto"; - - networking.hostName = "raspberry"; - networking.firewall.enable = false; - networking.networkmanager.enable = true; - networking.interfaces.eth0.useDHCP = true; - networking.interfaces.wlan0.useDHCP = true; - - networking.hosts = { - "192.168.3.105" = [ "gamingpc" ]; - "192.168.3.163" = [ "acernitro" ]; - "192.168.3.182" = [ "raspberry" ]; - "192.168.3.183" = [ "homecloud" ]; - }; - users.users.chris.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4wka/LfG3pto15DIm9LIRbb6rWr7/ipCRiCdAKSlY4 chris@chrishayward.xyz" - ]; - - environment.systemPackages = [ - pkgs.libraspberrypi - pkgs.raspberrypi-eeprom - ]; - - programs.fish.enable = true; - programs.gnupg.agent.enable = true; - - users.users.chris = { - shell = pkgs.fish; - isNormalUser = true; - extraGroups = [ "wheel" "networkmanager" ]; - }; -} diff --git a/hosts/raspberry/default.nix b/hosts/raspberry/default.nix deleted file mode 100644 index 8454369..0000000 --- a/hosts/raspberry/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ ... }: - -{ - imports = [ - ./configuration.nix - ./hardware.nix - ]; -} diff --git a/hosts/raspberry/hardware.nix b/hosts/raspberry/hardware.nix deleted file mode 100644 index 209043f..0000000 --- a/hosts/raspberry/hardware.nix +++ /dev/null @@ -1,49 +0,0 @@ -# This file is controlled by /etc/dotfiles/README.org -{ config, pkgs, lib, inputs, ... }: - -{ - # imports = [ - # inputs.nixos-hardware.nixosModules.raspberry-pi-4 - # ]; - - # boot.kernelPackages = pkgs.linuxPackages_rpi4; - boot.tmpOnTmpfs = true; - boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ]; - boot.kernelParams = [ - "8250.nr_uarts=1" - "console=ttyAMA0,115200" - "console=tty1" - "cma=128M" - ]; - - boot.loader.grub.enable = false; - boot.loader.generic-extlinux-compatible.enable = true; - boot.loader.raspberryPi = { - enable = true; - version = 4; - firmwareConfig = '' - hdmi_drive=2 - hdmi_force_hotplug=1 - dtparam=sd_poll_once=on - dtparam=audio=on - ''; - }; - - # FIXME: Requires GPU support. - services.xserver.videoDrivers = [ "fbdev" ]; - - sound.enable = true; - hardware.pulseaudio.enable = true; - hardware.enableRedistributableFirmware = true; - # hardware.raspberry-pi."4".fkms-3d.enable = true; - - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; - fsType = "ext4"; - options = [ "noatime" ]; - }; - }; - - powerManagement.cpuFreqGovernor = "ondemand"; -}