From b268fcdb24c034dec78cf97655ea0a07555bab48 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Mon, 23 Mar 2026 13:54:17 -0400 Subject: [PATCH] remove drag machine --- README.md | 2 - home/drag/Dragneel.nix | 9 -- home/drag/common/core/default.nix | 54 ---------- home/drag/common/core/starship.nix | 67 ------------- home/drag/common/core/xdg.nix | 28 ------ .../drag/common/optional/browsers/default.nix | 45 --------- home/drag/common/optional/comms/default.nix | 8 -- home/drag/common/optional/gaming/default.nix | 15 --- home/drag/common/optional/media/default.nix | 9 -- hosts/nixos/Dragneel/backups.nix | 39 -------- hosts/nixos/Dragneel/default.nix | 98 ------------------- .../nixos/Dragneel/hardware-configuration.nix | 23 ----- 12 files changed, 397 deletions(-) delete mode 100644 home/drag/Dragneel.nix delete mode 100644 home/drag/common/core/default.nix delete mode 100644 home/drag/common/core/starship.nix delete mode 100644 home/drag/common/core/xdg.nix delete mode 100644 home/drag/common/optional/browsers/default.nix delete mode 100644 home/drag/common/optional/comms/default.nix delete mode 100644 home/drag/common/optional/gaming/default.nix delete mode 100644 home/drag/common/optional/media/default.nix delete mode 100644 hosts/nixos/Dragneel/backups.nix delete mode 100644 hosts/nixos/Dragneel/default.nix delete mode 100644 hosts/nixos/Dragneel/hardware-configuration.nix diff --git a/README.md b/README.md index f557864..d26ad5f 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ - `nixos` - machine specific configurations for NixOS-based hosts - `Parzival` - Primary Box - Ryzen 5 7600 - RX 7800 XT - 32GB DDR5 - `Incarceron` - Work issued framework 13 - AMD Ryzen 7 7840U - 32GB DDR5 - - `Nyx` - My X1 Carbon, personal laptop - i7-8650U - 16GB DDR4 - `HandlerOne` - Lenovo m710q - i5-7500T - 16GB DDR4 - - `Dragneel` - Partner's Box - Ryzen 5 3600 - RTX 2070 - 32GB DDR5 - `home/` - Home-manager configurations, built automatically during host rebuilds. - `common` - Shared home-manager configurations consumed the user's machine diff --git a/home/drag/Dragneel.nix b/home/drag/Dragneel.nix deleted file mode 100644 index e647caa..0000000 --- a/home/drag/Dragneel.nix +++ /dev/null @@ -1,9 +0,0 @@ -{lib, ...}: { - imports = [ - common/core - common/optional/browsers - common/optional/comms - common/optional/media - common/optional/gaming - ]; -} diff --git a/home/drag/common/core/default.nix b/home/drag/common/core/default.nix deleted file mode 100644 index 9baff12..0000000 --- a/home/drag/common/core/default.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ - config, - lib, - pkgs, - hostSpec, - ... -}: let - platform = - if hostSpec.isDarwin - then "darwin" - else "nixos"; -in { - imports = lib.flatten [ - (map lib.custom.relativeToRoot [ - "modules/common/host-spec.nix" - "modules/home" - ]) - #./${platform.nix} - ./xdg.nix - ./starship.nix - ]; - - home.packages = builtins.attrValues { - inherit - (pkgs) - screen - ouch - bitwarden-cli - ; - }; - - inherit hostSpec; - - home = { - username = lib.mkDefault config.hostSpec.username; - homeDirectory = lib.mkDefault config.hostSpec.home; - stateVersion = lib.mkDefault "24.05"; - - sessionVariables = { - SHELL = "zsh"; - TERM = "foot"; - TERMINAL = "foot"; - VISUAL = "nvim"; - EDITOR = "nvim"; - }; - }; - - #home.pointerCursor = { - # name = "phinger-cursors-dark"; - # package = pkgs.phinger-cursors; - # size = 32; - # gtk.enable = true; - #}; -} diff --git a/home/drag/common/core/starship.nix b/home/drag/common/core/starship.nix deleted file mode 100644 index 1ac420d..0000000 --- a/home/drag/common/core/starship.nix +++ /dev/null @@ -1,67 +0,0 @@ -{config, ...}: { - programs.starship = let - raisin_black = "#262932"; - blood_red = "#710000"; - rich_lemon = "#FDF500"; - keppel = "#1AC5B0"; - electric_blue = "#36EBF3"; - blushing_purple = "#9370DB"; - frostbite = "#E455AE"; - steel_pink = "#CB1DCD"; - pale_silver = "#D1C5C0"; - in { - enable = true; - enableZshIntegration = true; - enableNushellIntegration = true; - settings = { - format = "[ ](${rich_lemon})[ CrOS](bg:${rich_lemon} fg:${raisin_black})$username$hostname[ ](fg:${rich_lemon} bg:${blushing_purple})$directory[ ](fg:${blushing_purple} bg:${frostbite})$git_branch$git_status[ ](fg:${frostbite} bg:${steel_pink})$nix_shell[ ](${steel_pink})"; - right_format = "[ ](${rich_lemon})$time[ ](${rich_lemon})"; - - # Left Modules - username = { - disabled = false; - format = "[ $user]($style)"; - style_user = "fg:${keppel} bg:${rich_lemon}"; - style_root = "fg:${blood_red} bg:${rich_lemon}"; - }; - hostname = { - disabled = false; - format = "[@$hostname ]($style)"; - style = "fg:${keppel} bg:${rich_lemon}"; - ssh_only = false; - ssh_symbol = ""; - }; - directory = { - disabled = false; - format = "[ $path ]($style)"; - style = "bg:${blushing_purple} fg:${raisin_black}"; - truncation_length = 3; - truncation_symbol = "…/"; - }; - git_branch = { - disabled = false; - format = "[ $symbol $branch ]($style)"; - symbol = ""; - style = "fg:${raisin_black} bg:${frostbite}"; - }; - git_status = { - disabled = false; - format = "[$all_status$ahead_behind]($style)"; - style = "fg:${raisin_black} bg:${frostbite}"; - }; - nix_shell = { - disabled = false; - format = "[$symbol $name]($style)"; - style = "bg:${steel_pink} fg:${electric_blue}"; - symbol = ""; - }; - - # Right Modules - time = { - disabled = false; - format = "[$time]($style)"; - style = "fg:${raisin_black} bg:${rich_lemon}"; - }; - }; - }; -} diff --git a/home/drag/common/core/xdg.nix b/home/drag/common/core/xdg.nix deleted file mode 100644 index ca15cdb..0000000 --- a/home/drag/common/core/xdg.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - config, - lib, - hostSpec, - ... -}: { - home = { - preferXdgDirectories = true; - }; - - xdg = { - enable = true; - userDirs = { - enable = true; - createDirectories = true; - desktop = "${config.home.homeDirectory}/.desktop"; - documents = "${config.home.homeDirectory}/Documents"; - download = "${config.home.homeDirectory}/Downloads"; - music = "${config.home.homeDirectory}/media/audio"; - pictures = "${config.home.homeDirectory}/media/images"; - videos = "${config.home.homeDirectory}/media/video"; - extraConfig = { - XDG_PUBLICSHARE_DIR = "/var/empty"; - XDG_TEMPLATES_DIR = "/var/empty"; - }; - }; - }; -} diff --git a/home/drag/common/optional/browsers/default.nix b/home/drag/common/optional/browsers/default.nix deleted file mode 100644 index a263228..0000000 --- a/home/drag/common/optional/browsers/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{pkgs, ...}: { - programs.chromium = { - enable = true; - package = pkgs.google-chrome; - }; - - programs.firefox = { - enable = true; - policies = { - BlockAboutConfig = true; - DisableFirefoxStudies = true; - DisableFormHistory = true; - DisablePasswordReveal = true; - DisablePocket = true; - DisableProfileImport = true; - DontCheckDefaultBrowser = true; - EnableTrackingProtection = { - Value = true; - Locked = true; - Cryptomining = true; - Fingerprinting = true; - }; - OfferToSaveLogins = false; - PasswordManagerEnabled = false; - ExtensionSettings = { - # Bitwarden - "{446900e4-71c2-419f-a6a7-df9c091e268b}" = { - installation_mode = "force_installed"; - install_url = "https://addons.mozilla.org/firefox/downloads/latest/{446900e4-71c2-419f-a6a7-df9c091e268b}/latest.xpl"; - default_area = "navbar"; - }; - "uBlock0@raymondhill.net" = { - installation_mode = "force_installed"; - install_url = "https://addons.mozilla.org/firefox/downloads/latest/uBlock0@raymondhill.net/latest.xpl"; - default_area = "menupanel"; - }; - "sponsorBlocker@ajay.app" = { - installation_mode = "force_installed"; - install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorBlocker@ajay.app/latest.xpl"; - default_area = "menupanel"; - }; - }; - }; - }; -} diff --git a/home/drag/common/optional/comms/default.nix b/home/drag/common/optional/comms/default.nix deleted file mode 100644 index 9da8365..0000000 --- a/home/drag/common/optional/comms/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{pkgs, ...}: { - home.packages = builtins.attrValues { - inherit - (pkgs) - discord - ; - }; -} diff --git a/home/drag/common/optional/gaming/default.nix b/home/drag/common/optional/gaming/default.nix deleted file mode 100644 index 0329cd7..0000000 --- a/home/drag/common/optional/gaming/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -# This module just provides a customized .desktop file with gamescope args dynamically created based on the -# host's monitors configuration -{ - pkgs, - config, - lib, - ... -}: -{ - home.packages = [ - #pkgs.vintagestory - pkgs.r2modman - pkgs.prismlauncher - ]; -} diff --git a/home/drag/common/optional/media/default.nix b/home/drag/common/optional/media/default.nix deleted file mode 100644 index 2d50379..0000000 --- a/home/drag/common/optional/media/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{pkgs, ...}: { - home.packages = builtins.attrValues { - inherit - (pkgs) - spotify - vlc - ; - }; -} diff --git a/hosts/nixos/Dragneel/backups.nix b/hosts/nixos/Dragneel/backups.nix deleted file mode 100644 index 38b5e6f..0000000 --- a/hosts/nixos/Dragneel/backups.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - config, - ... -}: -{ - # Restic secrets - sops.secrets = { - "restic/hetzner-dragneel/url" = { }; - "restic/hetzner-dragneel/key" = { }; - }; - - services.restic.backups = { - hetzner-dragneel = { - initialize = true; - user = "root"; - timerConfig = { - OnCalendar = "daily"; - Persistent = true; - }; - extraOptions = [ - "sftp.args='-i /etc/ssh/ssh_host_ed25519_key -p 23'" - ]; - repositoryFile = config.sops.secrets."restic/hetzner-dragneel/url".path; - passwordFile = config.sops.secrets."restic/hetzner-dragneel/key".path; - paths = [ - "/home/drag" - ]; - exclude = [ - "/var/cache" - "/home/*/.cache" - ".git" - ".nix-profile" - "/nix/*" - ".local/share/Steam" - ".steam" - ]; - }; - }; -} diff --git a/hosts/nixos/Dragneel/default.nix b/hosts/nixos/Dragneel/default.nix deleted file mode 100644 index 62deb11..0000000 --- a/hosts/nixos/Dragneel/default.nix +++ /dev/null @@ -1,98 +0,0 @@ -###################### -# # -# Dragneel - Desktop # -# # -###################### -{ - config, - inputs, - lib, - pkgs, - ... -}: -{ - imports = lib.flatten [ - # Hardware - ./hardware-configuration.nix # I want to use factor if possible - ./backups.nix - - # Disks - inputs.disko.nixosModules.disko - (lib.custom.relativeToRoot "hosts/common/disks/btrfs-disk.nix") - { - _module.args = { - disk = "/dev/nvme0n1"; - withSwap = true; - swapSize = "8"; - }; - } - - # Misc - - (map lib.custom.relativeToRoot [ - # Required configs - "hosts/common/core" - - # Optional configs - "hosts/common/optional/audio.nix" - "hosts/common/optional/bluetooth.nix" - "hosts/common/optional/pentesting.nix" - "hosts/common/optional/gaming.nix" - "hosts/common/optional/printing.nix" - ]) - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - - hostSpec = { - username = "drag"; - handle = "drag"; - hostName = "Dragneel"; - persistFolder = "/persist"; - }; - - # Enable the KDE Plasma Desktop Environment. - services.displayManager = { - autoLogin = { - enable = true; - user = config.hostSpec.username; - }; - sddm = { - enable = true; - wayland.enable = true; - }; - }; - services.desktopManager.plasma6.enable = true; - - networking = { - networkmanager.enable = true; - enableIPv6 = false; - interfaces.enp3s0 = { - wakeOnLan.enable = true; - }; - }; - - boot.loader = { - limine = { - enable = true; - efiSupport = true; - }; - efi = { - canTouchEfiVariables = true; - }; - }; - - services.unifi = { - enable = true; - openFirewall = true; - unifiPackage = pkgs.unstable.unifi; - mongodbPackage = pkgs.mongodb-7_0; - }; - - services.caddy = { - enable = true; - virtualHosts."dragneel.local".extraConfig = '' - reverse_proxy localhost:8080 - ''; - }; -} diff --git a/hosts/nixos/Dragneel/hardware-configuration.nix b/hosts/nixos/Dragneel/hardware-configuration.nix deleted file mode 100644 index 23523f1..0000000 --- a/hosts/nixos/Dragneel/hardware-configuration.nix +++ /dev/null @@ -1,23 +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 = ["sg" "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"]; - boot.initrd.kernelModules = []; - - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - - hardware.graphics.enable = true; - services.xserver.videoDrivers = ["nvidia"]; - hardware.nvidia.open = true; -}