This commit is contained in:
4DBug
2026-03-03 21:48:51 -06:00
parent aeea92d752
commit 83c72a1742
10 changed files with 55 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ modules are automatically discovered via [import-tree](https://github.com/vic/im
``` ```
modules/ modules/
├── core/ # System fundamentals (desktop, audio, graphics, network, theme) ├── core/ # System fundamentals (desktop, audio, graphics, network, theme)
├── hosts/ # Per-machine includes (nix, laptop, box) ├── hosts/ # Per-machine includes (nix, styx, box)
├── infra/ # Infrastructure (syncthing, cloudflared tunnels) ├── infra/ # Infrastructure (syncthing, cloudflared tunnels)
├── services/ # Self-hosted services (searxng, gitea, copyparty, ...) ├── services/ # Self-hosted services (searxng, gitea, copyparty, ...)
├── software/ # User software (firefox, nixcord, beets, ...) ├── software/ # User software (firefox, nixcord, beets, ...)
@@ -27,7 +27,7 @@ modules/
| Host | Role | GPU | Switch Command | | Host | Role | GPU | Switch Command |
|------|------|-----|----------------| |------|------|-----|----------------|
| `nix` | desktop | nvidia | `nh os switch ~/nix --impure -H nix` | | `nix` | desktop | nvidia | `nh os switch ~/nix --impure -H nix` |
| `laptop` | laptop | amd | `nh os switch ~/nix --impure -H laptop` | | `styx` | laptop | amd | `nh os switch ~/nix --impure -H styx` |
| `box` | homeserver | — | `nh os switch ~/nix --impure -H box` | | `box` | homeserver | — | `nh os switch ~/nix --impure -H box` |
--- ---

View File

@@ -35,5 +35,10 @@
url = "github:different-name/catppuccin-userstyles-nix"; url = "github:different-name/catppuccin-userstyles-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# nix-citizen.url = "github:LovingMelody/nix-citizen";
# nix-gaming.url = "github:fufexan/nix-gaming";
# nix-citizen.inputs.nix-gaming.follows = "nix-gaming";
}; };
} }

View File

@@ -7,7 +7,7 @@ let
in { in {
den.hosts.x86_64-linux = { den.hosts.x86_64-linux = {
nix.users.bug = bug; nix.users.bug = bug;
laptop.users.bug = bug; styx.users.bug = bug;
box.users.bug = bug; box.users.bug = bug;
}; };

View File

@@ -16,6 +16,10 @@
# sish # sish
vscode-server vscode-server
gitea gitea
catppuccin
janitor
]; ];
nixos = { nixos = {

View File

@@ -12,10 +12,7 @@
openssh openssh
syncthing syncthing
catppuccin
fish fish
janitor
]; ];
nixos = { ... }: { nixos = { ... }: {
@@ -23,8 +20,10 @@
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
]; ];
home-manager.useGlobalPkgs = true; home-manager = {
home-manager.backupFileExtension = "hm-backup"; useGlobalPkgs = true;
backupFileExtension = "hm-backup";
};
system = { system = {
stateVersion = "26.05"; stateVersion = "26.05";

View File

@@ -4,6 +4,10 @@
common common
nvidia nvidia
catppuccin
janitor
]; ];
nixos = { nixos = {

View File

@@ -1,15 +1,19 @@
{ den, ... }: { { den, ... }: {
den.aspects.laptop = { den.aspects.styx = {
includes = with den.aspects; [ includes = with den.aspects; [
common common
amdgpu amdgpu
cloudflare-warp cloudflare-warp
cad cad
catppuccin
janitor
]; ];
nixos = { nixos = {
networking.hostName = "nix"; networking.hostName = "styx";
services.logind.settings.Login = { services.logind.settings.Login = {
HandleLidSwitch = "ignore"; HandleLidSwitch = "ignore";

View File

@@ -1,12 +1,20 @@
{ {
den.aspects.portmap.nixos.options.den.portmap = { den.aspects.portmap.nixos = { lib, ... }: {
tvtun = 3001; options.den.portmap = lib.mkOption {
search = 8888; type = lib.types.attrsOf lib.types.port;
files = 3210; default = {};
tube = 3030; description = "ports.";
reddit = 8975; };
git = 3002;
monitor = 61208; config.den.portmap = {
matrix = 8008; tvtun = 3001;
search = 8888;
files = 3210;
tube = 3030;
reddit = 8975;
git = 3002;
monitor = 61208;
matrix = 8008;
};
}; };
} }

View File

@@ -0,0 +1,5 @@
{
# nix-alien = import (
# builtins.fetchTarball "https://github.com/thiagokokada/nix-alien/tarball/master"
# ) {};
}

View File

@@ -2,7 +2,14 @@
den.aspects.fish = { den.aspects.fish = {
nixos = { pkgs, ...}: { nixos = { pkgs, ...}: {
programs.fish.shellAliases = { programs.fish.shellAliases = {
fetch = "fastfetch --file ~/nix/nix.ans";
box = "ssh box.bug.tools"; box = "ssh box.bug.tools";
unbox = "sh -c 'ssh -N -L \"$1\":0.0.0.0:\"$1\" box.bug.tools &' --";
rebox = "sh -c 'fuser -k \"$1\"/tcp' --";
dock = "sh -c 'ssh -N -D \"$1\" box.bug.tools &' --";
pico = "ssh pico.sh";
}; };
environment.systemPackages = with pkgs.fishPlugins; [ environment.systemPackages = with pkgs.fishPlugins; [