From 34f127c9a1d9a882eb85eb7472951e30071835f9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 29 Jun 2024 12:48:21 +0200 Subject: [PATCH] hosts/eisei: drop --- README.md | 3 +- flake.nix | 1 - hosts/eisei/configuration.nix | 70 -------------------------- hosts/eisei/hardware-configuration.nix | 37 -------------- 4 files changed, 1 insertion(+), 110 deletions(-) delete mode 100644 hosts/eisei/configuration.nix delete mode 100644 hosts/eisei/hardware-configuration.nix diff --git a/README.md b/README.md index 4e97c35..8d50813 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,8 @@ Here are some of the interesting files and dirs: | Host | Machine type | Purpose | |------|--------------|---------| | `Tsuki` | Dell Poweredge r710 server | Data storage / Build server / Selfhosted services. This server hosts a wide variety of services, including websites, matrix server, git repos, CI/CD and more. **This is probably the most interesting machine to pick config from** | -| `Kasei` | AMD Zen 2 CPU / Nvidia GPU - desktop computer | Semi-daily driver. This is my main computer at home. Most of the configuration written in `/home` is made specifically for this computer, since `Eisei` is out of service at the moment. | +| `Kasei` | AMD Zen 2 CPU / Nvidia GPU - desktop computer | Semi-daily driver. This is my main computer at home. | | `Dosei` | Dell Optiplex | Work computer, mostly used for development and testing. | -| `Eisei` | HP Laptop | At the moment, this laptop is not in use. I've found that I'm not able to use NixOS quickly enough in a university environment where I need to rapidly install software and maintain project configurations (Makefile, Maven, django, npm, etc...) for several subjects. In addition to the configurations, some of the software is not available on NixOS. As a result, I would the be forced to package or FHS a lot of stuff in order to do anything productive. I might return to using NixOS on my laptop in the future. | ## home-manager configuration diff --git a/flake.nix b/flake.nix index 619b921..4c1af2a 100644 --- a/flake.nix +++ b/flake.nix @@ -220,7 +220,6 @@ }; in { tsuki = nixSys "tsuki"; - Eisei = nixSys "eisei"; kasei = nixSys "kasei"; dosei = nixSys "dosei"; }; diff --git a/hosts/eisei/configuration.nix b/hosts/eisei/configuration.nix deleted file mode 100644 index cac8639..0000000 --- a/hosts/eisei/configuration.nix +++ /dev/null @@ -1,70 +0,0 @@ -{ pkgs, config, ... }: let - # FIXME: lib should be imported directly as a module argument. - inherit (pkgs) lib; - -# TODO: Split this file -in { - imports = [ - ./hardware-configuration.nix - ]; - - # TODO: See ../common/default.nix - services.xserver.enable = true; - services.xserver.displayManager.lightdm.enable = true; - - machineVars = { - gaming = true; - creative = true; - development = true; - - headless = false; - laptop = true; - - screens."eDP-1".primary = true; - }; - - systemd.targets = { - sleep.enable = false; - suspend.enable = false; - hibernate.enable = false; - hybrid-sleep.enable = false; - }; - - boot.loader = { - efi.canTouchEfiVariables = false; - grub = { - enable = true; - device = "/dev/sda"; - }; - }; - - networking = { - hostName = "Eisei"; - networkmanager.enable = true; - - interfaces = { - eno1.useDHCP = true; - wlo1.useDHCP = true; - }; - - # firewall = { - # enable = false; - # allowedTCPPorts = [ ... ]; - # allowedUDPPorts = [ ... ]; - # }; - }; - - services = { - openssh.enable = true; - printing.enable = true; - cron = { - enable = true; - systemCronJobs = [ - # "*/5 * * * * root date >> /tmp/cron.log" - ]; - }; - }; - - hardware.bluetooth.enable = false; -} - diff --git a/hosts/eisei/hardware-configuration.nix b/hosts/eisei/hardware-configuration.nix deleted file mode 100644 index 59f27d0..0000000 --- a/hosts/eisei/hardware-configuration.nix +++ /dev/null @@ -1,37 +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" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/59d56b94-29f0-45be-81cc-16050c712902"; - fsType = "ext4"; - }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/e66ad6d8-28d5-4411-8289-5ec47d60858b"; - fsType = "ext4"; - }; - - fileSystems."/home/h7x4/Dropbox" = - { device = "/dev/disk/by-uuid/b6b244ab-fdb2-4d90-8a38-b21b0932027b"; - fsType = "ext4"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/62738962-4764-4136-bdd3-348de09400d0"; } - ]; - - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}