remove drag machine

This commit is contained in:
TheWanderingCrow 2026-03-23 13:54:17 -04:00
parent 81706fca9f
commit b268fcdb24
12 changed files with 0 additions and 397 deletions

View file

@ -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/<user>` - Home-manager configurations, built automatically during host
rebuilds.
- `common` - Shared home-manager configurations consumed the user's machine

View file

@ -1,9 +0,0 @@
{lib, ...}: {
imports = [
common/core
common/optional/browsers
common/optional/comms
common/optional/media
common/optional/gaming
];
}

View file

@ -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;
#};
}

View file

@ -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}";
};
};
};
}

View file

@ -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";
};
};
};
}

View file

@ -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";
};
};
};
};
}

View file

@ -1,8 +0,0 @@
{pkgs, ...}: {
home.packages = builtins.attrValues {
inherit
(pkgs)
discord
;
};
}

View file

@ -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
];
}

View file

@ -1,9 +0,0 @@
{pkgs, ...}: {
home.packages = builtins.attrValues {
inherit
(pkgs)
spotify
vlc
;
};
}

View file

@ -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"
];
};
};
}

View file

@ -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
'';
};
}

View file

@ -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;
}