From d78cb96de1927128f63d8f896dae634ef6a94a8e Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 5 Sep 2024 19:43:50 +0200 Subject: [PATCH] cleanup: remove hosts/redshirt --- flake.nix | 11 ---- hosts/redshirt/configuration.nix | 73 ----------------------- hosts/redshirt/hardware-configuration.nix | 41 ------------- 3 files changed, 125 deletions(-) delete mode 100644 hosts/redshirt/configuration.nix delete mode 100644 hosts/redshirt/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index ebede7f..fc6e9f3 100644 --- a/flake.nix +++ b/flake.nix @@ -121,17 +121,6 @@ } ]; }; - redshirt = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = { - inherit inputs; - }; - modules = [ - ./hosts/redshirt/configuration.nix - ({ config, pkgs, ... }: { nixpkgs.overlays = [ pkgs-overlay ]; }) - sops-nix.nixosModules.sops - ]; - }; }; darwinConfigurations.worf = nix-darwin.lib.darwinSystem { diff --git a/hosts/redshirt/configuration.nix b/hosts/redshirt/configuration.nix deleted file mode 100644 index c155673..0000000 --- a/hosts/redshirt/configuration.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ config, pkgs, ... }: -{ - imports = - [ - ../../base.nix - ./hardware-configuration.nix - ]; - - networking.hostName = "redshirt"; - networking.networkmanager.enable = true; - - # Enable the X11 windowing system. - services.xserver = { - enable = true; - windowManager = { - qtile.enable = true; - }; - # Enable touchpad support (enabled default in most desktopManager). - libinput.enable = true; - }; - - # The NixOS module enables critical components needed to run Hyprland properly, such as: polkit, xdg-desktop-portal-hyprland, graphics drivers, fonts, dconf, xwayland, and adding a proper Desktop Entry to your Display Manager. - #programs.hyprland = { - # enable = true; - # package = pkgs.unstable.hyprland; - #}; - - services.xserver.displayManager = { - lightdm.enable = true; - #defaultSession = "hyprland"; - }; - - # Configure keymap in X11 - services.xserver.layout = "no"; - - fonts.fonts = with pkgs; [ - (nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; }) - ]; - - sound.enable = true; - - security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - pulse.enable = true; - jack.enable = true; - }; - - users.users.felixalb = { - extraGroups = [ "networkmanager" ]; - }; - - environment.systemPackages = with pkgs; [ - zsh - neovim - git - ripgrep - rsync - cifs-utils - ]; - - documentation.man.generateCaches = true; - - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - system.stateVersion = "22.11"; - -} - diff --git a/hosts/redshirt/hardware-configuration.nix b/hosts/redshirt/hardware-configuration.nix deleted file mode 100644 index 3ead3f9..0000000 --- a/hosts/redshirt/hardware-configuration.nix +++ /dev/null @@ -1,41 +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" "sdhci_pci" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/0d709ab3-0d10-46eb-9e4f-10a320af703e"; - fsType = "btrfs"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/6EE9-1C06"; - fsType = "vfat"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/2067bbb4-b4fa-4326-9f58-4018857058a7"; } - ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}