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

File renamed without changes.
+33
View File
@@ -0,0 +1,33 @@
# 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" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ce146931-5f62-438c-894c-63460b5015b9";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/59C5-C9CA";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/b9f09747-0d4c-42f8-9885-8199e954d1b8"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+31
View File
@@ -0,0 +1,31 @@
# 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 = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b9bd7c42-1b25-42e1-8fe0-519a75f3a1f5";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D1BE-A7F3";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
File renamed without changes.
+51
View File
@@ -0,0 +1,51 @@
{ den, ... }: {
den.aspects.desktop = {
includes = with den.aspects; [
system.desktop.cosmic
system.audio
system.swap
system.virtualisation
system.kernel
system.fonts
system.theme.stylix
system.flatpak
system.compat
system.janitor
software.browsers
software.cad
software.dev
software.editors
software.files
software.gaming
software.media
software.monitor
software.music
software.net
software.office
software.security
software.social
software.terminal
];
nixos.programs.ydotool.enable = true;
};
den.aspects.server = {
includes = with den.aspects; [
services.cloudflared
services.searxng
services.copyparty
services.glances
services.invidious
services.mailserver
# services.matrix
# services.bugtv
services.vscode-server
services.gitea
# services.omnisearch
services.slskd
services.mpd
];
};
}
+33
View File
@@ -0,0 +1,33 @@
{
den.quirks.tunnel.description = "cloudflared ingress: { subdomain, port }";
# per host: den.hosts.<sys>.<host>.cloudflared = { uuid = "..."; protocol = "http2"; # optional };
den.aspects.services.cloudflared = {
nixos = { tunnel, host, pkgs, lib, config, ... }: let
inherit (host.cloudflared) uuid;
inherit (host) domain;
user = host.owner;
in {
environment.systemPackages = [ pkgs.cloudflared ];
environment.etc."cloudflared/${uuid}.json".source = "${config.users.users.${user}.home}/.cloudflared/${uuid}.json";
services.cloudflared = {
enable = true;
tunnels.${uuid} = {
credentialsFile = "/etc/cloudflared/${uuid}.json";
default = "http_status:404";
ingress = lib.listToAttrs (map (t: {
name = "${t.subdomain}.${domain}";
value = "http://127.0.0.1:${toString t.port}";
}) tunnel);
};
};
systemd.services."cloudflared-tunnel-${uuid}".environment = lib.mkIf (host.cloudflared ? protocol) {
TUNNEL_TRANSPORT_PROTOCOL = lib.mkForce host.cloudflared.protocol;
};
};
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+6
View File
@@ -0,0 +1,6 @@
{ den, ... }: {
den.aspects.software.cad = {
includes = [ (den.batteries.unfree [ "plasticity" ]) ];
homeManager = { pkgs, ... }: { home.packages = [ pkgs.plasticity ]; };
};
}
+28
View File
@@ -0,0 +1,28 @@
{
den.aspects.software.cli.nixos = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
# nix
comma
home-manager
nh
nix-index
nix-output-monitor
nix-prefetch
nvd
# dev
git
nil
nixd
nixfmt
# editors
micro
# net
inetutils
wget
# files
psmisc
tree
unzip
];
};
}
File renamed without changes.
+8
View File
@@ -0,0 +1,8 @@
{
den.aspects.software.dev.homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
jdk25
python314Packages.pyside6
];
};
}
+8
View File
@@ -0,0 +1,8 @@
{
den.aspects.software.editors.homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
zed-editor
#arduino-ide
];
};
}
+14
View File
@@ -0,0 +1,14 @@
{
den.aspects.software.files = {
nixos = { pkgs, ... }: {
environment.systemPackages = [ pkgs.file-roller ];
};
homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
impression
baobab
];
};
};
}
@@ -0,0 +1,3 @@
{
den.aspects.software.gaming.nixos.services.flatpak.packages = [ "community.pathofbuilding.PathOfBuilding" ];
}
+3
View File
@@ -0,0 +1,3 @@
{
den.aspects.software.gaming.nixos.services.flatpak.packages = [ "org.vinegarhq.Sober" ];
}
+14
View File
@@ -0,0 +1,14 @@
{
den.aspects.software.media = {
nixos = { pkgs, ... }: {
environment.systemPackages = [ pkgs.wl-screenrec ];
};
homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
kooha
loupe
];
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{
den.aspects.software.monitor = {
nixos = { pkgs, ... }: {
environment.systemPackages = [ pkgs.firmware-updater ];
};
homeManager = { pkgs, ... }: {
home.packages = [ pkgs.mission-center ];
};
};
}
File renamed without changes.
File renamed without changes.
+9
View File
@@ -0,0 +1,9 @@
{ den, ... }: {
den.aspects.software.office = {
includes = [ (den.batteries.unfree [ "obsidian" ]) ];
homeManager = { pkgs, ... }: {
home.packages = [ pkgs.obsidian ];
};
};
}
+5
View File
@@ -0,0 +1,5 @@
{
den.aspects.software.security.homeManager = { pkgs, ... }: {
home.packages = [ pkgs.authenticator ];
};
}
File renamed without changes.
+29
View File
@@ -0,0 +1,29 @@
{
den.aspects.software.shell.nixos = { pkgs, host, ... }: {
programs.fish = {
shellAliases = {
box = "ssh box.${host.domain}";
unbox = "sh -c 'ssh -N -L \"$1\":0.0.0.0:\"$1\" box.${host.domain} &' --";
rebox = "sh -c 'fuser -k \"$1\"/tcp' --";
dock = "sh -c 'ssh -N -D \"$1\" box.${host.domain} &' --";
vpn = "sshuttle --dns --python python3 -r box.${host.domain} 0/0";
pico = "ssh pico.sh";
ns = "nh os switch ~/nix --impure -H (hostname)";
rebuild = "ns";
};
shellInit = ''
function tssh
ssh (tailscale status | awk -v host=$argv[1] '$2 == host {print $1}')
end
'';
};
environment.systemPackages = with pkgs.fishPlugins; [
sponge
];
};
}
+7
View File
@@ -0,0 +1,7 @@
{
den.aspects.software.social.homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
geary
];
};
}
+11
View File
@@ -0,0 +1,11 @@
{
den.aspects.software.terminal.homeManager = {
programs.ghostty = {
enable = true;
settings = {
window-decoration = "none";
};
};
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+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;
};
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.