refactor: den-native config, tunnel quirk, per-module inputs

This commit is contained in:
4DBug committed 2026-10-16 07:45:16 -05:00
1 parent 0431bce152
commit bfbac8b961
100 files changed
+668 -1417

No files matched your search

+7 -26
View File
@@ -1,36 +1,17 @@
{ den, ... }: {
den.hosts.x86_64-linux.box = {
cloudflared.uuid = "d4c4a385-05c7-4dff-b6f1-9bd02693a80a";
};
den.aspects.box = {
includes = with den.aspects; [
den.default
cloudflared
portmap
searxng
copyparty
glances
invidious
mailserver
# matrix
redlib
# bugtv
# sish
vscode-server
gitea
# omnisearch
slskd
catppuccin
janitor
mpd
server
];
nixos = { pkgs, ...}: {
networking.hostName = "box";
den.tunnels = [ "mpd" ];
nixos = { pkgs, ... }: {
imports = [ ./_hw/box.nix ];
environment.systemPackages = [ pkgs.python3 ];
+13 -27
View File
@@ -1,29 +1,15 @@
{ den, ... }: {
den.aspects.common = {
includes = with den.aspects; [
cosmic
audio
swap
virtualisation
stylix
flatpak
development
compatibility
utilities
firefox
librewolf
music
social
gaming
#crab-hole
kernel
];
{ lib, ... }: {
den.schema.host = {
domain = "bug.tools";
owner = "bug";
users.bug = {
isNormalUser = true;
description = "bug";
classes = [ "homeManager" ];
};
};
den.homes.x86_64-linux.bug = { domain = "bug.tools"; };
den.schema.user.classes = lib.mkDefault [ "homeManager" ];
}
+22 -21
View File
@@ -1,33 +1,29 @@
{ den, ... }: {
den.default = {
includes = with den.aspects; [
boot
security
locale
essentials
den.batteries.hostname
dns
openssh
syncthing
tailscale
openvpn
system.boot
system.security
system.locale
software.cli
#beszel
system.network.dns
system.network.openssh
system.network.syncthing
system.network.tailscale
system.network.openvpn
fish
software.shell
fetch
opencode
# host-only: den.default also reaches standalone homes
({ host, ... }: { includes = [ system.theme.catppuccin ]; })
];
nixos = { ... }: {
imports = [
/etc/nixos/hardware-configuration.nix
];
nixos = {
home-manager = {
#useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "hm-backup";
};
@@ -40,10 +36,15 @@
};
};
nixpkgs.config.allowUnfree = true;
nix = {
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
settings.experimental-features = [ "nix-command" "flakes" ];
};
};
+12 -14
View File
@@ -1,25 +1,23 @@
{ den, ... }: {
den.hosts.x86_64-linux.nix = {
cloudflared = { uuid = "608ba37a-1be8-49e8-be2d-abeb8b77081d"; protocol = "http2"; };
};
den.aspects.nix = {
# TODO: copy nix's /etc/nixos/hardware-configuration.nix to ./_hw/nix.nix (impure until then)
nixos.imports = [ /etc/nixos/hardware-configuration.nix ];
includes = with den.aspects; [
den.default
common
desktop
nvidia
system.graphics.nvidia
catppuccin
system.audio.alc897
janitor
alc897
#cad
llama
services.llama
services.cloudflared
];
nixos = {
networking.hostName = "nix";
};
};
}
+11 -16
View File
@@ -1,31 +1,26 @@
{ den, ... }: {
den.hosts.x86_64-linux.styx = { };
den.aspects.styx = {
includes = with den.aspects; [
den.default
common
desktop
amdgpu
cloudflare-warp
cad
system.graphics.amdgpu
system.network.cloudflare-warp
catppuccin
system.desktop.neu
janitor
system.desktop.niri
system.desktop.noctalia
system.desktop.umbriel
neu
#nix7
niri
noctalia
umbriel
autocpufreq
system.hardware.autocpufreq
];
nixos = {
networking.hostName = "styx";
imports = [ ./_hw/styx.nix ];
services.logind.settings.Login = {
HandleLidSwitch = "ignore";