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
@@ -1,9 +0,0 @@
{
den.aspects.alc897 = {
nixos = {
boot.extraModprobeConfig = ''
options snd-hda-intel model=alc897-fixup
'';
};
};
}
-28
View File
@@ -1,28 +0,0 @@
{
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;
};
};
};
};
}
-23
View File
@@ -1,23 +0,0 @@
{ 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";
};
};
};
};
}
-22
View File
@@ -1,22 +0,0 @@
{
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;
};
};
};
};
}
-15
View File
@@ -1,15 +0,0 @@
{ inputs, ... }: {
imports = [
(inputs.flake-file.flakeModules.dendritic or {})
(inputs.den.flakeModules.dendritic or {})
];
flake-file.inputs = {
den.url = "github:vic/den";
flake-file.url = "github:vic/flake-file";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
-74
View File
@@ -1,74 +0,0 @@
{
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
@@ -1,9 +0,0 @@
{ inputs, ... }: {
den.aspects.neu = {
nixos = { pkgs, ... }: {
nixpkgs.overlays = [ inputs.neu-nix.overlays.default ];
environment.systemPackages = [ pkgs.shko pkgs.neuswc ];
};
};
}
-196
View File
@@ -1,196 +0,0 @@
{ 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
@@ -1,22 +0,0 @@
{ 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
@@ -1,60 +0,0 @@
{ 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";
};
};
};
};
};
}
-10
View File
@@ -1,10 +0,0 @@
{
den.aspects.amdgpu = {
nixos = {
services.xserver = {
enable = true;
videoDrivers = ["amdgpu"];
};
};
};
}
-55
View File
@@ -1,55 +0,0 @@
{
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="
];
};
};
};
}
-15
View File
@@ -1,15 +0,0 @@
{
den.aspects.openvpn = {
nixos = { pkgs, ... }: {
networking.networkmanager = {
plugins = with pkgs; [
networkmanager-openvpn
];
};
programs.openvpn3.enable = true;
services.resolved.enable = true;
};
};
}
-47
View File
@@ -1,47 +0,0 @@
{
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
@@ -1,9 +0,0 @@
{
den.aspects.tailscale = {
nixos = {
services.tailscale = {
enable = true;
};
};
};
}
-14
View File
@@ -1,14 +0,0 @@
{ 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
@@ -1,23 +0,0 @@
{
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";
};
};
};
};
}
-9
View File
@@ -1,9 +0,0 @@
{
den.aspects.cloudflare-warp = {
nixos = {
services.cloudflare-warp = {
enable = true;
};
};
};
}
-16
View File
@@ -1,16 +0,0 @@
{
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
@@ -1,15 +0,0 @@
{
den.aspects.openssh = {
nixos = {
services.openssh = {
enable = true;
settings = {
PrintMotd = true;
X11Forwarding = true;
AllowTcpForwarding = true;
};
};
};
};
}
-10
View File
@@ -1,10 +0,0 @@
{
den.aspects.security = {
nixos = {
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
};
};
}
-19
View File
@@ -1,19 +0,0 @@
{
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;
};
};
};
}
-39
View File
@@ -1,39 +0,0 @@
{ 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
@@ -1,58 +0,0 @@
{ 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
@@ -1,3 +0,0 @@
{
}
-11
View File
@@ -1,11 +0,0 @@
{
den.aspects.virtualisation = {
nixos = {
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
};
};
}