refactor: reorganize module layout

This commit is contained in:
4DBug committed 2026-10-16 07:45:16 -05:00
1 parent 9a6bbc26c1
commit 0431bce152
63 files changed
+323

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{
den.aspects.alc897 = {
nixos = {
boot.extraModprobeConfig = ''
options snd-hda-intel model=alc897-fixup
'';
};
};
}
+28
View File
@@ -0,0 +1,28 @@
{
den.aspects.audio = {
nixos = {
security.rtkit.enable = true;
services = {
pulseaudio.enable = false;
pipewire = {
enable = true;
wireplumber.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
#lowLatency.enable = false;
jack.enable = true;
};
};
};
};
}
+22
View File
@@ -0,0 +1,22 @@
{
den.aspects.boot = {
nixos = {
boot = {
# kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
initrd.checkJournalingFS = false;
loader = {
grub.splashImage = null;
systemd-boot = {
enable = true;
configurationLimit = 25;
};
efi.canTouchEfiVariables = true;
};
};
};
};
}
+14
View File
@@ -0,0 +1,14 @@
{ inputs, ... }: {
den.aspects.kernel = {
nixos = { pkgs, ... }: {
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest;
#nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ];
#nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ];
};
};
}
+23
View File
@@ -0,0 +1,23 @@
{
den.aspects.locale = {
nixos = {
time.timeZone = "America/Chicago";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
};
};
}
+10
View File
@@ -0,0 +1,10 @@
{
den.aspects.security = {
nixos = {
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
};
};
}
+19
View File
@@ -0,0 +1,19 @@
{
den.aspects.swap = {
nixos = {
boot.kernel.sysctl = {
"fs.file-max" = 524288;
};
swapDevices = [{
device = "/var/lib/swapfile";
size = 8 * 1024;
}];
zramSwap = {
enable = true;
memoryMax = 64 * 1024 * 1024 * 1024;
};
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{
den.aspects.virtualisation = {
nixos = {
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
};
};
}
+19
View File
@@ -0,0 +1,19 @@
{ inputs, ... }: {
flake-file.inputs.nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
den.aspects.system.compat.nixos = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
wine64
wineWow64Packages.full
appimage-run
inputs.nix-alien.packages.${pkgs.stdenv.hostPlatform.system}.nix-alien
];
programs.appimage = {
enable = true;
binfmt = true;
};
};
}
+63
View File
@@ -0,0 +1,63 @@
{ ... }:
{
den.aspects.nix-ld = {
nixos =
{ pkgs, options, ... }:
{
programs.nix-ld = let
libxml2-so2-compat = pkgs.runCommand "libxml2-so2-compat" { } ''
mkdir -p $out/lib
ln -s ${pkgs.libxml2.out}/lib/libxml2.so.16 $out/lib/libxml2.so.2
'';
in {
enable = true;
libraries =
options.programs.nix-ld.libraries.default
++ (with pkgs; [
libxml2-so2-compat
udev
gcc
egl-wayland
mesa
libglvnd
wayland
libX11
libXcursor
libXrandr
libXi
libxcb
glibc
vulkan-loader
alsa-lib
pipewire
libpulseaudio
libz
libGL
xcbutil
xcbutilimage
xcbutilkeysyms
xcbutilrenderutil
xcbutilwm
libXrender
libXext
libXfixes
libSM
libICE
systemd
stdenv.cc.cc.lib
zlib
fontconfig.lib
freetype
libxkbcommon
dbus.lib
libidn2
]);
};
};
};
}
+74
View File
@@ -0,0 +1,74 @@
{
den.aspects.cosmic = { host, ... }: {
nixos = { lib, pkgs, ... }: {
services = {
greetd.enable = true;
system76-scheduler.enable = true;
displayManager = {
cosmic-greeter.enable = true;
autoLogin = {
enable = host.name == "box";
user = "bug";
};
};
desktopManager.cosmic.enable = true;
};
environment.systemPackages = with pkgs; [
cosmic-edit
cosmic-ext-calculator
cosmic-ext-tweaks
cosmic-screenshot
xdg-desktop-portal-gtk
xdg-desktop-portal-cosmic
];
environment.sessionVariables = {
COSMIC_DATA_CONTROL_ENABLED = 1;
};
xdg = {
portal = {
enable = true;
xdgOpenUsePortal = true;
config.common.default = ["gtk"];
extraPortals = [pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-cosmic];
};
mime = {
enable = true;
defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
"application/pdf" = "firefox.desktop";
"inode/directory" = "com.system76.CosmicFiles.desktop";
"text/plain" = "com.system76.CosmicEdit.desktop";
"text/markdown" = "com.system76.CosmicEdit.desktop";
"application/zip" = "org.gnome.FileRoller.desktop";
"application/x-7z-compressed" = "org.gnome.FileRoller.desktop";
"application/x-tar" = "org.gnome.FileRoller.desktop";
"application/gzip" = "org.gnome.FileRoller.desktop";
"application/x-xz" = "org.gnome.FileRoller.desktop";
"application/x-zip-compressed" = "org.gnome.FileRoller.desktop";
"application/x-ms-dos-executable" = "wine.desktop";
};
};
};
};
};
}
+9
View File
@@ -0,0 +1,9 @@
{ inputs, ... }: {
den.aspects.neu = {
nixos = { pkgs, ... }: {
nixpkgs.overlays = [ inputs.neu-nix.overlays.default ];
environment.systemPackages = [ pkgs.shko pkgs.neuswc ];
};
};
}
+196
View File
@@ -0,0 +1,196 @@
{ inputs, ... }: {
den.aspects.niri = {
nixos = { pkgs, ... }: {
nixpkgs.overlays = [
(final: prev: {
xwayland-satellite = prev.xwayland-satellite.overrideAttrs (old: rec {
version = "0.8.1";
src = final.fetchFromGitHub {
owner = "Supreeeme";
repo = "xwayland-satellite";
rev = "536bd32"; # v0.8.1
hash = "sha256-BUE41HjLIGPjq3U8VXPjf8asH8GaMI7FYdgrIHKFMXA=";
};
cargoDeps = final.rustPlatform.fetchCargoVendor {
inherit (old) pname;
inherit version src;
hash = "sha256-16L6gsvze+m7XCJlOA1lsPNELE3D364ef2FTdkh0rVY=";
};
});
})
];
services.displayManager = {
sessionPackages = [ pkgs.niri ];
};
};
homeManager = { pkgs, ... }: {
imports = [ inputs.niri.homeModules.niri ];
home.packages = with pkgs; [
xwayland-satellite
];
programs.niri = {
enable = true;
package = pkgs.niri;
settings = {
spawn-at-startup = [
{ argv = [ "noctalia" "--daemon" ]; }
];
input.keyboard = {
xkb.layout = "us";
};
input.touchpad = {
click-method = "clickfinger";
dwt = true;
};
overview.backdrop-color = "#11111b";
layout = {
gaps = 10;
border.enable = false;
focus-ring = {
enable = true;
width = 2;
active.color = "#cba6f7";
};
preset-column-widths = [
{ proportion = 0.50; }
{ proportion = 1.00; }
];
default-column-width = { proportion = 1.00; };
};
window-rules = [
{
geometry-corner-radius = {
top-left = 12.0;
top-right = 12.0;
bottom-left = 12.0;
bottom-right = 12.0;
};
clip-to-geometry = true;
draw-border-with-background = true;
}
{
matches = [
{ app-id = "dev.noctalia.Noctalia"; }
];
open-floating = true;
default-column-width = {
fixed = 1080;
};
default-window-height = {
fixed = 920;
};
geometry-corner-radius = {
top-left = 12.0;
top-right = 12.0;
bottom-left = 12.0;
bottom-right = 12.0;
};
clip-to-geometry = true;
draw-border-with-background = true;
}
];
binds = {
"Mod+T".action.spawn = "ghostty";
"Mod+E".action.spawn = "cosmic-files";
"Mod+B".action.spawn = "librewolf";
"Mod+A".action.spawn-sh = "noctalia msg panel-toggle launcher";
"Mod+V".action.spawn-sh = "noctalia msg panel-toggle clipboard";
"Mod+N".action.spawn-sh = "noctalia msg panel-toggle control-center";
"Mod+C".action.spawn-sh = "noctalia msg panel-toggle alexander/mimir:chat";
"Mod+W".action.spawn-sh = "noctalia msg panel-toggle wallpaper";
"Mod+Comma".action.spawn-sh = "noctalia msg settings-toggle";
"Control+Alt+Delete".action.spawn-sh = "noctalia msg panel-toggle session";
"XF86AudioRaiseVolume".action.spawn-sh = "noctalia msg volume-up";
"XF86AudioLowerVolume".action.spawn-sh = "noctalia msg volume-down";
"XF86AudioMute".action.spawn-sh = "noctalia msg volume-mute";
"XF86MonBrightnessUp".action.spawn-sh = "noctalia msg brightness-up";
"XF86MonBrightnessDown".action.spawn-sh = "noctalia msg brightness-down";
"XF86AudioPlay".action.spawn = [ "playerctl" "play-pause" ];
"XF86AudioNext".action.spawn = [ "playerctl" "next" ];
"XF86AudioPrev".action.spawn = [ "playerctl" "previous" ];
"XF86AudioStop".action.spawn = [ "playerctl" "stop" ];
"Mod+Q".action.close-window = {};
"Mod+Space".action.toggle-window-floating = {};
"Mod+Shift+Space".action.switch-focus-between-floating-and-tiling = {};
"Mod+F".action.switch-preset-column-width = {};
"Mod+Shift+F".action.fullscreen-window = {};
"Mod+Left".action.focus-column-left = {};
"Mod+Down".action.focus-window-or-workspace-down = {};
"Mod+Up".action.focus-window-or-workspace-up = {};
"Mod+Right".action.focus-column-right = {};
"Mod+Shift+Left".action.set-column-width = "-10%";
"Mod+Shift+Right".action.set-column-width = "+10%";
"Mod+Shift+Up".action.set-window-height = "+10%";
"Mod+Shift+Down".action.set-window-height = "-10%";
"Mod+Control+H".action.consume-or-expel-window-left = {};
"Mod+Control+L".action.consume-or-expel-window-right = {};
"Mod+Control+K".action.move-window-up = {};
"Mod+Control+J".action.move-window-down = {};
"Mod+Shift+S".action.spawn = [ "noctalia" "msg" "screenshot-region" ];
"Mod+1".action.focus-workspace = 1;
"Mod+2".action.focus-workspace = 2;
"Mod+3".action.focus-workspace = 3;
"Mod+4".action.focus-workspace = 4;
"Mod+5".action.focus-workspace = 5;
"Mod+6".action.focus-workspace = 6;
"Mod+7".action.focus-workspace = 7;
"Mod+8".action.focus-workspace = 8;
"Mod+9".action.focus-workspace = 9;
"Mod+0".action.focus-workspace = 10;
"Mod+Shift+1".action.move-window-to-workspace = 1;
"Mod+Shift+2".action.move-window-to-workspace = 2;
"Mod+Shift+3".action.move-window-to-workspace = 3;
"Mod+Shift+4".action.move-window-to-workspace = 4;
"Mod+Shift+5".action.move-window-to-workspace = 5;
"Mod+Shift+6".action.move-window-to-workspace = 6;
"Mod+Shift+7".action.move-window-to-workspace = 7;
"Mod+Shift+8".action.move-window-to-workspace = 8;
"Mod+Shift+9".action.move-window-to-workspace = 9;
"Mod+Shift+0".action.move-window-to-workspace = 10;
"Alt+Tab".action.spawn-sh = "noctalia msg window-switcher";
"Mod+WheelScrollUp".action.focus-workspace-up = {};
"Mod+WheelScrollDown".action.focus-workspace-down = {};
"Mod+Shift+WheelScrollDown".action.focus-column-right = {};
"Mod+Shift+WheelScrollUp".action.focus-column-left = {};
"Mod+Ctrl+Shift+WheelScrollDown".action.move-column-right = {};
"Mod+Ctrl+Shift+WheelScrollUp".action.move-column-left = {};
};
};
};
};
};
}
+22
View File
@@ -0,0 +1,22 @@
{ inputs, ...}: {
den.aspects.noctalia = {
nixos = { pkgs, ... }: {
imports = [ inputs.noctalia.nixosModules.default ];
programs.noctalia.enable = true;
environment.systemPackages = with pkgs; [
slurp
grim
hyprpicker
tesseract
imagemagick
zbar
curl
jq
ffmpeg
mpv
];
};
};
}
+60
View File
@@ -0,0 +1,60 @@
{ inputs, ...}: {
den.aspects.umbriel = {
/*nixos = { pkgs, ... }: {
imports = [ inputs.umbriel.nixosModules.default ];
};*/
homeManager = {
imports = [ inputs.umbriel.homeModules.default ];
programs.umbriel = {
enable = true;
settings = {
general = {
autostart = [
"noctalia"
#"tailscale systray"
];
xwayland = true;
show_cheatsheet = false;
};
input = {
keyboard.layout = "us";
focus.follows_mouse = true;
cursor = {
hide_when_typing = true;
hide_timeout_ms = 3000;
};
};
keybinds = {
"Mod+T" = "spawn:cosmic-term";
"Mod+E" = "spawn:cosmic-files";
"Mod+B" = "spawn:librewolf";
"Mod+Q" = "window-close";
"Mod+A" = "spawn:noctalia msg panel-toggle launcher";
"Mod+Left" = "window-focus-left";
"Mod+Right" = "window-focus-right";
"Mod+Up" = "window-focus-up";
"Mod+Down" = "window-focus-down";
"Mod+Shift+Left" = "column-move-left";
"Mod+Shift+Right" = "column-move-right";
"Mod+Shift+Up" = "window-move-up";
"Mod+Shift+Down" = "window-move-down";
"Mod+Comma"= "spawn:noctalia msg settings-toggle";
};
};
};
};
};
}
+28
View File
@@ -0,0 +1,28 @@
{ inputs, lib, ... }: {
den.aspects.flatpak = {
nixos = { ... }: {
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
services.flatpak = {
enable = true;
remotes = lib.mkOptionDefault [{
name = "flathub-beta";
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
} {
name = "RSILauncher";
location = "https://mactan-sc.github.io/rsilauncher/RSILauncher.flatpakrepo";
}];
update.auto.enable = true;
uninstallUnmanaged = true;
overrides = {
global = {
Context.sockets = [ "wayland" "!x11" "!fallback-x11" ];
};
};
};
};
};
}
+25
View File
@@ -0,0 +1,25 @@
{ ... }: {
den.aspects.fonts = {
nixos = { pkgs, ... }: {
fonts = {
fontDir.enable = true;
enableDefaultPackages = true;
packages = with pkgs; [
twitter-color-emoji
nerd-fonts.fira-code
nerd-fonts.droid-sans-mono
];
fontconfig = {
enable = true;
useEmbeddedBitmaps = true;
defaultFonts = {
emoji = [ "Twitter Color Emoji" ];
};
};
};
};
};
}
+10
View File
@@ -0,0 +1,10 @@
{
den.aspects.amdgpu = {
nixos = {
services.xserver = {
enable = true;
videoDrivers = ["amdgpu"];
};
};
};
}
+55
View File
@@ -0,0 +1,55 @@
{
den.aspects.nvidia = {
nixos = { pkgs, config, ... }: {
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
libva-vdpau-driver
libvdpau
libvdpau-va-gl
vdpauinfo
libva
libva-utils
libglvnd
mesa
nvidia-vaapi-driver
];
};
services.xserver = {
enable = true;
videoDrivers = ["nvidia"];
};
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
nixpkgs.config = {
cudaSupport = true;
nvidia.acceptLicense = true;
};
nix.settings = {
substituters = [
"https://cache.nixos-cuda.org"
];
trusted-public-keys = [
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
];
};
};
};
}
+23
View File
@@ -0,0 +1,23 @@
{ inputs, ...}: {
den.aspects.autocpufreq = {
nixos = {
imports = [ inputs.auto-cpufreq.nixosModules.default ];
services.power-profiles-daemon.enable = false;
programs.auto-cpufreq.enable = true;
programs.auto-cpufreq.settings = {
charger = {
governor = "performance";
turbo = "auto";
};
battery = {
governor = "powersave";
turbo = "auto";
};
};
};
};
}
+189
View File
@@ -0,0 +1,189 @@
{
den.aspects.janitor-backend = {
nixos = { pkgs, lib, config, ... }:
let
cfg = config.services.janitor;
janitorScript = pkgs.writeText "janitor.py" ''
import os
import sys
import json
import shutil
import time
import logging
from pathlib import Path
logging.basicConfig(
level=logging.INFO,
format="[janitor] %(message)s",
stream=sys.stdout,
)
log = logging.getLogger("janitor")
CONFIG_PATH = os.environ.get("JANITOR_CONFIG")
def load_config():
if not CONFIG_PATH or not os.path.exists(CONFIG_PATH):
raise FileNotFoundError(f"JANITOR_CONFIG not set or missing: {CONFIG_PATH}")
with open(CONFIG_PATH) as f:
return json.load(f)
def get_destination(extension, rules):
ext = extension.lower().lstrip(".")
for folder, extensions in rules.items():
if ext in extensions:
return folder
return None
def resolve_dest(dest_key, watch_dir):
if os.path.isabs(dest_key):
return Path(dest_key)
return watch_dir.parent / dest_key
def unique_path(target):
if not target.exists():
return target
stem, suffix = target.stem, target.suffix
counter = 1
while True:
candidate = target.parent / f"{stem}_{counter}{suffix}"
if not candidate.exists():
return candidate
counter += 1
def main():
try:
config = load_config()
except Exception as e:
log.error("Failed to load config: %s", e)
sys.exit(1)
grace_period = config.get("grace_period", 60)
rules = config.get("rules", {})
now = time.time()
for watch_dir_str in config.get("watched_dirs", []):
watch_dir = Path(os.path.expanduser(watch_dir_str))
if not watch_dir.exists():
log.warning("Watched dir does not exist: %s", watch_dir)
continue
for item in watch_dir.iterdir():
if not item.is_file() or item.name.startswith("."):
continue
age = now - item.stat().st_mtime
if age < grace_period:
continue
dest_key = get_destination(item.suffix, rules)
if dest_key is None:
continue
target_dir = resolve_dest(dest_key, watch_dir)
target_dir.mkdir(parents=True, exist_ok=True)
target = unique_path(target_dir / item.name)
try:
shutil.move(str(item), str(target))
log.info("Moved %s -> %s", item.name, target)
except Exception as e:
log.error("Failed to move %s: %s", item.name, e)
if __name__ == "__main__":
main()
'';
janitorConfig = pkgs.writeText "janitor_config.json" (builtins.toJSON {
grace_period = cfg.gracePeriod;
watched_dirs = cfg.watchedDirs;
rules = cfg.rules;
});
in {
options.services.janitor = {
enable = lib.mkEnableOption "file sorting janitor";
interval = lib.mkOption {
type = lib.types.str;
default = "5min";
description = "How often to run the janitor (systemd time span, e.g. \"5min\", \"1h\").";
};
gracePeriod = lib.mkOption {
type = lib.types.int;
default = 60;
description = "Seconds a file must remain unmodified before it is eligible to be moved.";
};
watchedDirs = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "~/Downloads" ];
description = "Directories to scan and sort. Supports ~ expansion.";
};
rules = lib.mkOption {
type = lib.types.attrsOf (lib.types.listOf lib.types.str);
default = { };
description = ''
Mapping of destination folder path to a list of file extensions (without leading dot).
Destinations are relative to the parent of the watched directory, or absolute if they
start with /.
Example:
rules = {
"Pictures/Downloads" = [ "jpg" "png" "gif" "webp" ];
"Videos/Downloads" = [ "mp4" "mkv" "webm" ];
"/mnt/archive" = [ "zip" "tar" ];
};
'';
example = lib.literalExpression ''
{
"Pictures/Downloads" = [ "jpg" "jpeg" "png" "gif" "webp" "avif" ];
"Videos/Downloads" = [ "mp4" "mkv" "mov" "webm" "avi" ];
"Music/Downloads" = [ "mp3" "flac" "wav" "ogg" "opus" "m4a" ];
"Documents/Downloads" = [ "pdf" "doc" "docx" "odt" "txt" "md" "epub" ];
}
'';
};
user = lib.mkOption {
type = lib.types.str;
default = "bug";
description = "User account the janitor service runs as.";
};
};
config = lib.mkIf cfg.enable {
systemd.services.janitor = {
description = "File sorting janitor";
environment.JANITOR_CONFIG = "${janitorConfig}";
serviceConfig = {
Type = "oneshot";
User = cfg.user;
ExecStart = "${pkgs.python3}/bin/python3 ${janitorScript}";
};
};
systemd.timers.janitor = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "10m";
OnUnitActiveSec = cfg.interval;
};
};
};
};
};
}
+45
View File
@@ -0,0 +1,45 @@
{ den, ... }: {
den.aspects.janitor = {
includes = with den.aspects; [ janitor-backend ];
nixos = {
services.janitor = {
enable = true;
interval = "1min";
gracePeriod = 60;
watchedDirs = [ "~/Downloads" ];
rules = {
"Pictures/Downloads" = [ "jpg" "jpeg" "png" "gif" "webp" "svg" "heic" "avif" "ico" ];
"Videos/Downloads" = [ "mp4" "mkv" "mov" "webm" "avi" "flv" ];
"Music/Downloads" = [ "mp3" "flac" "wav" "ogg" "m4a" "opus" ];
"Documents/Downloads" = [ "pdf" "doc" "docx" "odt" "txt" "md" "epub" "ppt" "pptx" "xls" "xlsx" "csv" ];
"Archives/Downloads" = [ "iso" "zip" "tar" "gz" "bz2" "xz" "rar" "7z" "wsz" ];
"Fonts/Downloads" = [ "ttf" "otf" "woff" "woff2" ];
"3D/Downloads" = [ "blend" "obj" "fbx" "stl" "dae" "3ds" "3mf" ];
"Software/Downloads" = [ "deb" "rpm" "appimage" "jar" "exe" "msi" "flatpak" ];
"Scripts/Downloads" = [ "sh" "py" "lua" ];
"Games/Doom" = [ "wad" "pk3" ];
"Games/Switch" = [ "nsp" "xci" ];
"Games/3DS" = [ "3ds" "cia" ];
"Games/WiiU" = [ "wux" "wud" ];
"Games/Wii" = [ "wbfs" ];
"Games/GameCube" = [ "gcm" ];
"Games/N64" = [ "n64" "z64" ];
"Games/SNES" = [ "sfc" "smc" ];
"Games/NES" = [ "nes" ];
"Games/DS" = [ "nds" "dsi" ];
"Games/GBA" = [ "gba" ];
"Games/GBC" = [ "gbc" ];
"Games/GB" = [ "gb" ];
"Games/PS1" = [ "cue" "bin" ];
"Games/Xbox" = [ "xiso" ];
"Games/Genesis" = [ "gen" ];
"Games/Dreamcast" = [ "gdi" "cdi" ];
"Games/Saturn" = [ "sat" ];
};
};
};
};
}
@@ -0,0 +1,9 @@
{
den.aspects.cloudflare-warp = {
nixos = {
services.cloudflare-warp = {
enable = true;
};
};
};
}
+16
View File
@@ -0,0 +1,16 @@
{
den.aspects.dns = {
nixos = { config, lib, ... }: {
networking = {
networkmanager = {
enable = true;
dns = lib.mkIf config.services.crab-hole.enable "none";
};
nameservers = if config.services.crab-hole.enable
then [ "127.0.0.1" "::1" ]
else [ "1.1.1.1" "1.0.0.1" ];
};
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{
den.aspects.openssh = {
nixos = {
services.openssh = {
enable = true;
settings = {
PrintMotd = true;
X11Forwarding = true;
AllowTcpForwarding = true;
};
};
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{
den.aspects.openvpn = {
nixos = { pkgs, ... }: {
networking.networkmanager = {
plugins = with pkgs; [
networkmanager-openvpn
];
};
programs.openvpn3.enable = true;
services.resolved.enable = true;
};
};
}
+47
View File
@@ -0,0 +1,47 @@
{
den.aspects.syncthing = {
homeManager = let
devices = ["desktop" "laptop" "server"];
mkFolder = path: {
inherit path;
devices = devices;
};
in {
services.syncthing = {
enable = true;
overrideDevices = true;
overrideFolders = true;
key = "/home/bug/.syncthing/key.pem";
cert = "/home/bug/.syncthing/cert.pem";
settings = {
devices = {
desktop.id = "VEZXY3W-U6UXWTP-6BHANIG-O5EKNZY-XNV5YOX-4V4O3HB-ETECIUX-T2DK7AV";
laptop.id = "I6NW53P-IJMMT73-7O53TXY-3GAHS2U-4EAADM7-ZNB5ZPB-62QHKVW-H7DYXQ2";
server.id = "KJECAIP-Y2Y3FHV-NOJKIQV-LWIDMMZ-5ITEAZ4-LQCQL72-3BGW6T7-BFPFJQA";
};
folders = {
"Archives" = mkFolder "/home/bug/Archives";
"Software" = mkFolder "/home/bug/Software";
"Scripts" = mkFolder "/home/bug/Scripts";
"Projects" = mkFolder "/home/bug/Projects";
"Documents" = mkFolder "/home/bug/Documents";
"Downloads" = mkFolder "/home/bug/Downloads";
"Pictures" = mkFolder "/home/bug/Pictures";
"Videos" = mkFolder "/home/bug/Videos";
# "Music" = mkFolder "/home/bug/Music";
"nix" = mkFolder "/home/bug/nix";
"hytale" = mkFolder "/home/bug/.local/share/Hytale/UserData/Saves";
"ssh" = mkFolder "/home/bug/.ssh";
#"cloudflared" = mkFolder "/home/bug/.cloudflared";
"copyparty" = mkFolder "/home/bug/copyparty";
};
};
};
};
};
}
+9
View File
@@ -0,0 +1,9 @@
{
den.aspects.tailscale = {
nixos = {
services.tailscale = {
enable = true;
};
};
};
}
+39
View File
@@ -0,0 +1,39 @@
{ inputs, ... }: let
flavor = "mocha";
accent = "mauve";
in {
den.aspects.catppuccin = {
nixos = {
imports = [ inputs.catppuccin.nixosModules.catppuccin ];
catppuccin = {
enable = true;
autoEnable = true;
flavor = flavor;
accent = accent;
grub.enable = true;
gitea.enable = true;
};
};
homeManager = {
imports = [ inputs.catppuccin.homeModules.catppuccin ];
catppuccin = {
enable = true;
autoEnable = true;
flavor = flavor;
accent = accent;
firefox.enable = true;
fish.enable = true;
librewolf.enable = true;
vesktop.enable = true;
zed.enable = true;
};
};
};
}
+58
View File
@@ -0,0 +1,58 @@
{ inputs, ... }: {
den.aspects.stylix = let
catppuccin = {
base00 = "1E1E2E";
base01 = "181825";
base02 = "313244";
base03 = "45475A";
base04 = "585B70";
base05 = "CDD6F4";
base06 = "F5E0DC";
base07 = "B4BEFE";
base08 = "F38BA8";
base09 = "FAB387";
base0A = "F9E2AF";
base0B = "A6E3A1";
base0C = "94E2D5";
base0D = "89B4FA";
base0E = "CBA6F7";
base0F = "F2CDCD";
};
in {
homeManager = { pkgs, ... }: {
imports = [
inputs.stylix.homeModules.stylix
];
stylix = {
enable = true;
autoEnable = true;
polarity = "dark";
base16Scheme = catppuccin;
fonts.emoji = {
name = "Twitter Color Emoji";
package = pkgs.twitter-color-emoji;
};
targets = {
gtk.enable = true;
qt.enable = true;
opencode.enable = false;
};
};
};
/*
homeManager = { config, pkgs, ... }: {
config.stylix = {
targets = {
opencode.enable = false;
};
};
};
*/
};
}
+3
View File
@@ -0,0 +1,3 @@
{
}