refactor: den-native config, tunnel quirk, per-module inputs
This commit is contained in:
1 parent
0431bce152
commit
bfbac8b961
100 files changed
+668
-1417
No files matched your search
@@ -12,14 +12,57 @@ modules are automatically discovered via [import-tree](https://github.com/vic/im
|
|||||||
|
|
||||||
```
|
```
|
||||||
modules/
|
modules/
|
||||||
├── core/ # System fundamentals (desktop, audio, graphics, network, theme)
|
├── system/ # OS fundamentals (base, desktop, audio, graphics, network, theme, janitor, ...)
|
||||||
├── hosts/ # Per-machine includes (nix, styx, box)
|
├── services/ # self-hosted services (searxng, gitea, copyparty, cloudflared, ...)
|
||||||
├── infra/ # Infrastructure (syncthing, cloudflared tunnels)
|
├── software/<cat>/ # user software; each folder is one aspect: every file (one per software) adds to den.aspects.software.<cat>
|
||||||
├── services/ # Self-hosted services (searxng, gitea, copyparty, ...)
|
├── software/<cat>.nix # single-file categories are flattened to one file
|
||||||
├── software/ # User software (firefox, nixcord, beets, ...)
|
├── roles.nix # den.aspects.desktop / den.aspects.server bundles
|
||||||
└── users/ # User accounts
|
├── hosts/
|
||||||
|
│ ├── default.nix # den.default (every host)
|
||||||
|
│ ├── common.nix # shared host attrs (domain, bug user), den.homes, schema
|
||||||
|
│ └── <host>.nix # den.hosts entity + den.aspects.<host>
|
||||||
|
└── users/ # user accounts
|
||||||
```
|
```
|
||||||
|
|
||||||
|
aspects are nested by path, e.g. `den.aspects.software.browsers`, `den.aspects.system.network.dns`.
|
||||||
|
|
||||||
|
- **den.default** (`hosts/default.nix`) is applied to every host automatically — no need to include it. It also reaches standalone `den.homes`, so host-only aspects (catppuccin, janitor) are wrapped in a `({ host, ... }: ...)` include.
|
||||||
|
- **host attrs** (`hosts/common.nix` shared, `hosts/<host>.nix` per host): `domain`, `users`, optional `cloudflared = { uuid; protocol; }`. Read them in aspects via `{ host, ... }`.
|
||||||
|
- **unfree** is allowed per aspect: `includes = [ (den.batteries.unfree [ "steam" ]) ];`.
|
||||||
|
|
||||||
|
### adding an app
|
||||||
|
|
||||||
|
drop a file in `modules/software/<cat>/` (or edit `modules/software/<cat>.nix`; turn it into a folder once it holds 2+ files) contributing to `den.aspects.software.<cat>` (new category: also add it to `roles.nix`).
|
||||||
|
|
||||||
|
### adding a flake input
|
||||||
|
|
||||||
|
`flake.nix` is generated by [flake-file](https://github.com/vic/flake-file) — don't edit it. declare the input in the module that uses it:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ inputs, ... }: {
|
||||||
|
flake-file.inputs.foo = {
|
||||||
|
url = "github:owner/foo";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.software.cli.nixos.imports = [ inputs.foo.nixosModules.default ];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
then run `nix run .#write-flake` (and `nix flake lock`). core inputs (den, flake-parts, nixpkgs, home-manager, ...) live in `modules/den.nix`.
|
||||||
|
|
||||||
|
### adding a hosted service
|
||||||
|
|
||||||
|
declare a `tunnel` quirk on the aspect; `services.cloudflared` collects them into ingress rules for `<subdomain>.<host.domain>`:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
den.aspects.services.foo = let port = 8080; in {
|
||||||
|
tunnel = { subdomain = "foo"; inherit port; }; # or a list of them
|
||||||
|
nixos.services.foo = { enable = true; inherit port; };
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
then include `services.foo` (and `services.cloudflared`) in the host, which needs `cloudflared.uuid` set in `modules/hosts/<host>.nix`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## hosts
|
## hosts
|
||||||
@@ -39,7 +82,6 @@ all services on `box` are proxied through cloudflared tunnels to `*.bug.tools`.
|
|||||||
| Service | URL | Description |
|
| Service | URL | Description |
|
||||||
|---------|-----|-------------|
|
|---------|-----|-------------|
|
||||||
| [searxng](https://github.com/searxng/searxng) | [search.bug.tools](https://search.bug.tools) | Privacy-respecting metasearch engine |
|
| [searxng](https://github.com/searxng/searxng) | [search.bug.tools](https://search.bug.tools) | Privacy-respecting metasearch engine |
|
||||||
| [redlib](https://github.com/redlib-org/redlib) | [reddit.bug.tools](https://reddit.bug.tools) | Private Reddit frontend *(disabled)* |
|
|
||||||
| [copyparty](https://github.com/9001/copyparty) | [files.bug.tools](https://files.bug.tools) | File server / uploader |
|
| [copyparty](https://github.com/9001/copyparty) | [files.bug.tools](https://files.bug.tools) | File server / uploader |
|
||||||
| [gitea](https://gitea.io/) | [git.bug.tools](https://git.bug.tools) | Self-hosted Git with org mirrors |
|
| [gitea](https://gitea.io/) | [git.bug.tools](https://git.bug.tools) | Self-hosted Git with org mirrors |
|
||||||
| [glances](https://github.com/nicolargo/glances) | [monitor.bug.tools](https://monitor.bug.tools) | System monitoring |
|
| [glances](https://github.com/nicolargo/glances) | [monitor.bug.tools](https://monitor.bug.tools) | System monitoring |
|
||||||
@@ -71,5 +113,4 @@ all services on `box` are proxied through cloudflared tunnels to `*.bug.tools`.
|
|||||||
## TODO
|
## TODO
|
||||||
fix matrix server
|
fix matrix server
|
||||||
fix invidious instance
|
fix invidious instance
|
||||||
fix redlib instance
|
|
||||||
configure cosmic with home
|
configure cosmic with home
|
||||||
Generated
+123
-100
@@ -1,26 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"aerothemeplasma": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1791652808,
|
|
||||||
"narHash": "sha256-FIbdJwfkcbB1ZzzzRxI8kFQTNwiFTCCCfFhg6Fn2rLc=",
|
|
||||||
"owner": "nyakase",
|
|
||||||
"repo": "aerothemeplasma-nix",
|
|
||||||
"rev": "69be07ede5ff166d4b2bedc39af0e9fa0b786401",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nyakase",
|
|
||||||
"repo": "aerothemeplasma-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"auto-cpufreq": {
|
"auto-cpufreq": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -250,23 +229,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-aspects": {
|
"flake-compat": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771320365,
|
"lastModified": 1767039857,
|
||||||
"narHash": "sha256-t1FKnPRvg/l376pM+hMS0hPMTmxu7S4eVS2s+A25SbU=",
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
"owner": "vic",
|
"owner": "edolstra",
|
||||||
"repo": "flake-aspects",
|
"repo": "flake-compat",
|
||||||
"rev": "f338a5062628c9b9fda0796a141ca1a6eb4dcf75",
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "vic",
|
"owner": "edolstra",
|
||||||
"ref": "v0.5.0",
|
"repo": "flake-compat",
|
||||||
"repo": "flake-aspects",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat": {
|
"flake-compat_2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767039857,
|
"lastModified": 1767039857,
|
||||||
@@ -282,7 +260,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
"flake-compat_3": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777699697,
|
"lastModified": 1777699697,
|
||||||
@@ -296,7 +274,7 @@
|
|||||||
"url": "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz"
|
"url": "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_3": {
|
"flake-compat_4": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767039857,
|
"lastModified": 1767039857,
|
||||||
@@ -312,7 +290,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_4": {
|
"flake-compat_5": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767039857,
|
"lastModified": 1767039857,
|
||||||
@@ -344,24 +322,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1778716662,
|
|
||||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"nixpkgs-lib"
|
"nixpkgs-lib"
|
||||||
@@ -381,9 +341,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_3": {
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib_2"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788450739,
|
"lastModified": 1788450739,
|
||||||
@@ -399,9 +359,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_4": {
|
"flake-parts_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib_3"
|
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1790898470,
|
"lastModified": 1790898470,
|
||||||
@@ -417,7 +377,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_5": {
|
"flake-parts_4": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"stylix",
|
"stylix",
|
||||||
@@ -438,6 +398,24 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-parts_5": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772408722,
|
||||||
|
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": [
|
"systems": [
|
||||||
@@ -826,10 +804,32 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-cachyos-kernel": {
|
"nix-alien": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts_3",
|
"nix-index-database": "nix-index-database",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1792056812,
|
||||||
|
"narHash": "sha256-3FHVsncGsfcxozcQgHULGkQ6TqXOlguxX6YlBQhQrT8=",
|
||||||
|
"owner": "thiagokokada",
|
||||||
|
"repo": "nix-alien",
|
||||||
|
"rev": "07c41bfdc3b986b7e65e19380b28916e10112c0f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "thiagokokada",
|
||||||
|
"repo": "nix-alien",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-cachyos-kernel": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": "nixpkgs_9"
|
"nixpkgs": "nixpkgs_9"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -849,7 +849,7 @@
|
|||||||
},
|
},
|
||||||
"nix-citizen": {
|
"nix-citizen": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_3",
|
||||||
"nix-gaming": [
|
"nix-gaming": [
|
||||||
"nix-gaming"
|
"nix-gaming"
|
||||||
],
|
],
|
||||||
@@ -910,8 +910,8 @@
|
|||||||
},
|
},
|
||||||
"nix-gaming": {
|
"nix-gaming": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_4",
|
||||||
"flake-parts": "flake-parts_4",
|
"flake-parts": "flake-parts_3",
|
||||||
"git-hooks": "git-hooks",
|
"git-hooks": "git-hooks",
|
||||||
"nixpkgs": "nixpkgs_11"
|
"nixpkgs": "nixpkgs_11"
|
||||||
},
|
},
|
||||||
@@ -929,6 +929,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-index-database": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nix-alien",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1791711434,
|
||||||
|
"narHash": "sha256-LpIhxnuO0tYeZ4k7BbNMxsPs2zJpB4hWXO1jdhUuE7Q=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"rev": "9a2dd40780eeab8543aa97c59c26f11267025616",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixcord": {
|
"nixcord": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
@@ -955,7 +976,7 @@
|
|||||||
"nixos-mailserver": {
|
"nixos-mailserver": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"blobs": "blobs",
|
"blobs": "blobs",
|
||||||
"flake-compat": "flake-compat_4",
|
"flake-compat": "flake-compat_5",
|
||||||
"git-hooks": "git-hooks_2",
|
"git-hooks": "git-hooks_2",
|
||||||
"nixpkgs": "nixpkgs_13"
|
"nixpkgs": "nixpkgs_13"
|
||||||
},
|
},
|
||||||
@@ -1016,21 +1037,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1777168982,
|
|
||||||
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixpkgs.lib",
|
|
||||||
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixpkgs.lib",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-lib_2": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788057806,
|
"lastModified": 1788057806,
|
||||||
"narHash": "sha256-DTQSMxzDWmT0zhguthvegnVkn7CFqGCv4IHCzk5ZUpM=",
|
"narHash": "sha256-DTQSMxzDWmT0zhguthvegnVkn7CFqGCv4IHCzk5ZUpM=",
|
||||||
@@ -1045,7 +1051,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-lib_3": {
|
"nixpkgs-lib_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1790477367,
|
"lastModified": 1790477367,
|
||||||
"narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",
|
"narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",
|
||||||
@@ -1060,6 +1066,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-lib_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1772328832,
|
||||||
|
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-packages": {
|
"nixpkgs-packages": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1791130267,
|
"lastModified": 1791130267,
|
||||||
@@ -1335,16 +1356,14 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aerothemeplasma": "aerothemeplasma",
|
|
||||||
"auto-cpufreq": "auto-cpufreq",
|
"auto-cpufreq": "auto-cpufreq",
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"catppuccin-userstyles-nix": "catppuccin-userstyles-nix",
|
"catppuccin-userstyles-nix": "catppuccin-userstyles-nix",
|
||||||
"copyparty": "copyparty",
|
"copyparty": "copyparty",
|
||||||
"den": "den",
|
"den": "den",
|
||||||
"fetch": "fetch",
|
"fetch": "fetch",
|
||||||
"flake-aspects": "flake-aspects",
|
|
||||||
"flake-file": "flake-file",
|
"flake-file": "flake-file",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hytale-launcher": "hytale-launcher",
|
"hytale-launcher": "hytale-launcher",
|
||||||
"import-tree": "import-tree",
|
"import-tree": "import-tree",
|
||||||
@@ -1353,6 +1372,7 @@
|
|||||||
"minecraft-metadata": "minecraft-metadata",
|
"minecraft-metadata": "minecraft-metadata",
|
||||||
"neu-nix": "neu-nix",
|
"neu-nix": "neu-nix",
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
|
"nix-alien": "nix-alien",
|
||||||
"nix-cachyos-kernel": "nix-cachyos-kernel",
|
"nix-cachyos-kernel": "nix-cachyos-kernel",
|
||||||
"nix-citizen": "nix-citizen",
|
"nix-citizen": "nix-citizen",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
@@ -1365,8 +1385,8 @@
|
|||||||
],
|
],
|
||||||
"noctalia": "noctalia",
|
"noctalia": "noctalia",
|
||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
"systems": "systems_5",
|
"umbriel": "umbriel",
|
||||||
"umbriel": "umbriel"
|
"vscode-server": "vscode-server"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stylix": {
|
"stylix": {
|
||||||
@@ -1376,7 +1396,7 @@
|
|||||||
"base16-helix": "base16-helix",
|
"base16-helix": "base16-helix",
|
||||||
"base16-vim": "base16-vim",
|
"base16-vim": "base16-vim",
|
||||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
"flake-parts": "flake-parts_5",
|
"flake-parts": "flake-parts_4",
|
||||||
"gnome-shell": "gnome-shell",
|
"gnome-shell": "gnome-shell",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@@ -1463,21 +1483,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_5": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1791244623,
|
|
||||||
"narHash": "sha256-uuanbkFk8a313Zfrxdcz8Us/yQtaxNnKJtX8v0ZPpd8=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "d36eeed142f88b5a636f2e3856a53c61654cf29b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tinted-kitty": {
|
"tinted-kitty": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -1605,6 +1610,24 @@
|
|||||||
"url": "https://github.com/noctalia-dev/umbriel"
|
"url": "https://github.com/noctalia-dev/umbriel"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vscode-server": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts_5"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784312229,
|
||||||
|
"narHash": "sha256-2uHCSUw341o3my1R0U0YCfbnMEazylxb58evWsjGL50=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-vscode-server",
|
||||||
|
"rev": "2f984dfbe7e5271b5c413d3e734374cc1306c921",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-vscode-server",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"xdg-desktop-portal-umbriel": {
|
"xdg-desktop-portal-umbriel": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|||||||
@@ -1,112 +1,70 @@
|
|||||||
|
# DO-NOT-EDIT. This file was auto-generated using github:denful/flake-file.
|
||||||
|
# Use `nix run .#write-flake` to regenerate it.
|
||||||
{
|
{
|
||||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
den = {
|
|
||||||
url = "github:denful/den/";
|
|
||||||
};
|
|
||||||
|
|
||||||
flake-aspects.url = "github:vic/flake-aspects/v0.5.0";
|
|
||||||
|
|
||||||
flake-file.url = "github:vic/flake-file";
|
|
||||||
|
|
||||||
flake-parts = {
|
|
||||||
inputs.nixpkgs-lib.follows = "nixpkgs-lib";
|
|
||||||
url = "github:hercules-ci/flake-parts";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
url = "github:nix-community/home-manager";
|
|
||||||
};
|
|
||||||
|
|
||||||
import-tree.url = "github:vic/import-tree";
|
|
||||||
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
||||||
|
|
||||||
nixpkgs-lib.follows = "nixpkgs";
|
|
||||||
|
|
||||||
systems.url = "github:nix-systems/default";
|
|
||||||
|
|
||||||
stylix = {
|
|
||||||
url = "github:nix-community/stylix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
|
||||||
|
|
||||||
copyparty.url = "github:9001/copyparty";
|
|
||||||
|
|
||||||
catppuccin.url = "github:catppuccin/nix";
|
|
||||||
|
|
||||||
nixcord.url = "github:FlameFlag/nixcord";
|
|
||||||
|
|
||||||
catppuccin-userstyles-nix = {
|
|
||||||
url = "github:4DBug/catppuccin-userstyles-nix";
|
|
||||||
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";
|
|
||||||
|
|
||||||
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
|
|
||||||
|
|
||||||
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
|
||||||
|
|
||||||
/*
|
|
||||||
omnisearch = {
|
|
||||||
url = "git+https://git.bwaaa.monster/omnisearch";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
minecraft = {
|
|
||||||
url = "github:4DBug/minecraft.nix";
|
|
||||||
inputs.metadata.follows = "minecraft-metadata";
|
|
||||||
};
|
|
||||||
|
|
||||||
minecraft-metadata.url = "github:Ninlives/minecraft.json";
|
|
||||||
|
|
||||||
neu-nix = {
|
|
||||||
url = "github:ricardomaps/neu-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
aerothemeplasma = {
|
|
||||||
url = "github:nyakase/aerothemeplasma-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
niri = {
|
|
||||||
url = "github:sodiboo/niri-flake";
|
|
||||||
};
|
|
||||||
|
|
||||||
noctalia = {
|
|
||||||
url = "github:noctalia-dev/noctalia";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
umbriel = {
|
|
||||||
url = "git+https://github.com/noctalia-dev/umbriel";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
|
||||||
|
|
||||||
millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
|
||||||
|
|
||||||
fetch.url = "github:areofyl/fetch";
|
|
||||||
|
|
||||||
auto-cpufreq = {
|
auto-cpufreq = {
|
||||||
url = "github:AdnanHodzic/auto-cpufreq";
|
url = "github:AdnanHodzic/auto-cpufreq";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
catppuccin.url = "github:catppuccin/nix";
|
||||||
#bug-tv = {
|
catppuccin-userstyles-nix = {
|
||||||
# url = "git+https://git.bug.tools/bug/tv.git";
|
url = "github:4DBug/catppuccin-userstyles-nix";
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
#};
|
};
|
||||||
|
copyparty.url = "github:9001/copyparty";
|
||||||
|
den.url = "github:denful/den/";
|
||||||
|
fetch.url = "github:areofyl/fetch";
|
||||||
|
flake-file.url = "github:vic/flake-file";
|
||||||
|
flake-parts = {
|
||||||
|
url = "github:hercules-ci/flake-parts";
|
||||||
|
inputs.nixpkgs-lib.follows = "nixpkgs-lib";
|
||||||
|
};
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
||||||
|
minecraft = {
|
||||||
|
url = "github:4DBug/minecraft.nix";
|
||||||
|
inputs.metadata.follows = "minecraft-metadata";
|
||||||
|
};
|
||||||
|
minecraft-metadata.url = "github:Ninlives/minecraft.json";
|
||||||
|
neu-nix = {
|
||||||
|
url = "github:ricardomaps/neu-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
|
nix-alien = {
|
||||||
|
url = "github:thiagokokada/nix-alien";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||||
|
nix-citizen = {
|
||||||
|
url = "github:LovingMelody/nix-citizen";
|
||||||
|
inputs.nix-gaming.follows = "nix-gaming";
|
||||||
|
};
|
||||||
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||||
|
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||||
|
nixcord.url = "github:FlameFlag/nixcord";
|
||||||
|
nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
nixpkgs-lib.follows = "nixpkgs";
|
||||||
|
noctalia = {
|
||||||
|
url = "github:noctalia-dev/noctalia";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
stylix = {
|
||||||
|
url = "github:nix-community/stylix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
umbriel = {
|
||||||
|
url = "git+https://github.com/noctalia-dev/umbriel";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{ inputs, ...}: {
|
|
||||||
den.aspects.nix7 = {
|
|
||||||
nixos = {
|
|
||||||
imports = [ inputs.aerothemeplasma.nixosModules.aerothemeplasma-nix ];
|
|
||||||
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
programs.aeroshell = {
|
|
||||||
enable = true;
|
|
||||||
fonts.segoe.enable = true;
|
|
||||||
polkit.enable = true;
|
|
||||||
aerothemeplasma = {
|
|
||||||
enable = true;
|
|
||||||
sddm.enable = true;
|
|
||||||
plymouth.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
let
|
|
||||||
uuid = "d4c4a385-05c7-4dff-b6f1-9bd02693a80a";
|
|
||||||
domain = "bug.tools";
|
|
||||||
creds = "/home/bug/.cloudflared/${uuid}.json";
|
|
||||||
in {
|
|
||||||
den.aspects.cloudflared = {
|
|
||||||
nixos = { config, pkgs, lib, ... }: {
|
|
||||||
options.den.tunnels = lib.mkOption {
|
|
||||||
default = [];
|
|
||||||
description = "cloudflared tunnels";
|
|
||||||
type = lib.types.listOf lib.types.str;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
environment.systemPackages = [ pkgs.cloudflared ];
|
|
||||||
environment.etc."cloudflared/${uuid}.json".source = creds;
|
|
||||||
|
|
||||||
services.cloudflared = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
tunnels.${uuid} = {
|
|
||||||
credentialsFile = "/etc/cloudflared/${uuid}.json";
|
|
||||||
default = "http_status:404";
|
|
||||||
|
|
||||||
ingress = lib.listToAttrs (map (subdomain: {
|
|
||||||
name = "${subdomain}.${domain}";
|
|
||||||
value = "http://127.0.0.1:${toString config.den.portmap.${subdomain}}";
|
|
||||||
}) config.den.tunnels);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.crab-hole = {
|
|
||||||
nixos = { ... }: {
|
|
||||||
services.crab-hole = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
blocklist = {
|
|
||||||
include_subdomains = true;
|
|
||||||
lists = [
|
|
||||||
"https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts"
|
|
||||||
"https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
downstream = [
|
|
||||||
{ protocol = "udp"; listen = "127.0.0.1"; port = 53; }
|
|
||||||
{ protocol = "udp"; listen = "::1"; port = 53; }
|
|
||||||
];
|
|
||||||
|
|
||||||
upstream = {
|
|
||||||
name_servers = [
|
|
||||||
{
|
|
||||||
socket_addr = "1.1.1.1:853";
|
|
||||||
protocol = "tls";
|
|
||||||
tls_dns_name = "1dot1dot1dot1.cloudflare-dns.com";
|
|
||||||
trust_nx_responses = false;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
socket_addr = "[2606:4700:4700::1111]:853";
|
|
||||||
protocol = "tls";
|
|
||||||
tls_dns_name = "1dot1dot1dot1.cloudflare-dns.com";
|
|
||||||
trust_nx_responses = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
+8
-1
@@ -5,8 +5,15 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
flake-file.inputs = {
|
flake-file.inputs = {
|
||||||
den.url = "github:vic/den";
|
den.url = "github:denful/den/";
|
||||||
flake-file.url = "github:vic/flake-file";
|
flake-file.url = "github:vic/flake-file";
|
||||||
|
flake-parts = {
|
||||||
|
url = "github:hercules-ci/flake-parts";
|
||||||
|
inputs.nixpkgs-lib.follows = "nixpkgs-lib";
|
||||||
|
};
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
nixpkgs-lib.follows = "nixpkgs";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
let
|
|
||||||
bug = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "bug";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" "audio" "video" "libvirtd" "ydotool" "dialout" ];
|
|
||||||
classes = [ "homeManager" ];
|
|
||||||
};
|
|
||||||
in { lib, ... }: {
|
|
||||||
den.hosts.x86_64-linux = {
|
|
||||||
nix.users.bug = bug;
|
|
||||||
styx.users.bug = bug;
|
|
||||||
box.users.bug = bug;
|
|
||||||
};
|
|
||||||
|
|
||||||
den.homes.x86_64-linux.bug = { };
|
|
||||||
|
|
||||||
den.schema.user.classes = lib.mkDefault [ "homeManager" ];
|
|
||||||
}
|
|
||||||
+7
-26
@@ -1,36 +1,17 @@
|
|||||||
{ den, ... }: {
|
{ den, ... }: {
|
||||||
|
den.hosts.x86_64-linux.box = {
|
||||||
|
cloudflared.uuid = "d4c4a385-05c7-4dff-b6f1-9bd02693a80a";
|
||||||
|
};
|
||||||
|
|
||||||
den.aspects.box = {
|
den.aspects.box = {
|
||||||
includes = with den.aspects; [
|
includes = with den.aspects; [
|
||||||
den.default
|
den.default
|
||||||
|
|
||||||
cloudflared
|
server
|
||||||
|
|
||||||
portmap
|
|
||||||
searxng
|
|
||||||
copyparty
|
|
||||||
glances
|
|
||||||
invidious
|
|
||||||
mailserver
|
|
||||||
# matrix
|
|
||||||
redlib
|
|
||||||
# bugtv
|
|
||||||
# sish
|
|
||||||
vscode-server
|
|
||||||
gitea
|
|
||||||
# omnisearch
|
|
||||||
slskd
|
|
||||||
|
|
||||||
catppuccin
|
|
||||||
|
|
||||||
janitor
|
|
||||||
|
|
||||||
mpd
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = { pkgs, ...}: {
|
nixos = { pkgs, ... }: {
|
||||||
networking.hostName = "box";
|
imports = [ ./_hw/box.nix ];
|
||||||
|
|
||||||
den.tunnels = [ "mpd" ];
|
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.python3 ];
|
environment.systemPackages = [ pkgs.python3 ];
|
||||||
|
|
||||||
|
|||||||
+13
-27
@@ -1,29 +1,15 @@
|
|||||||
{ den, ... }: {
|
{ lib, ... }: {
|
||||||
den.aspects.common = {
|
den.schema.host = {
|
||||||
includes = with den.aspects; [
|
domain = "bug.tools";
|
||||||
cosmic
|
owner = "bug";
|
||||||
audio
|
users.bug = {
|
||||||
|
isNormalUser = true;
|
||||||
swap
|
description = "bug";
|
||||||
virtualisation
|
classes = [ "homeManager" ];
|
||||||
|
};
|
||||||
stylix
|
|
||||||
|
|
||||||
flatpak
|
|
||||||
development
|
|
||||||
compatibility
|
|
||||||
utilities
|
|
||||||
|
|
||||||
firefox
|
|
||||||
librewolf
|
|
||||||
|
|
||||||
music
|
|
||||||
social
|
|
||||||
gaming
|
|
||||||
|
|
||||||
#crab-hole
|
|
||||||
|
|
||||||
kernel
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
den.homes.x86_64-linux.bug = { domain = "bug.tools"; };
|
||||||
|
|
||||||
|
den.schema.user.classes = lib.mkDefault [ "homeManager" ];
|
||||||
}
|
}
|
||||||
+22
-21
@@ -1,33 +1,29 @@
|
|||||||
{ den, ... }: {
|
{ den, ... }: {
|
||||||
den.default = {
|
den.default = {
|
||||||
includes = with den.aspects; [
|
includes = with den.aspects; [
|
||||||
boot
|
den.batteries.hostname
|
||||||
security
|
|
||||||
locale
|
|
||||||
essentials
|
|
||||||
|
|
||||||
dns
|
system.boot
|
||||||
openssh
|
system.security
|
||||||
syncthing
|
system.locale
|
||||||
tailscale
|
software.cli
|
||||||
openvpn
|
|
||||||
|
|
||||||
#beszel
|
system.network.dns
|
||||||
|
system.network.openssh
|
||||||
|
system.network.syncthing
|
||||||
|
system.network.tailscale
|
||||||
|
system.network.openvpn
|
||||||
|
|
||||||
fish
|
software.shell
|
||||||
|
|
||||||
fetch
|
# host-only: den.default also reaches standalone homes
|
||||||
|
({ host, ... }: { includes = [ system.theme.catppuccin ]; })
|
||||||
opencode
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = { ... }: {
|
nixos = {
|
||||||
imports = [
|
|
||||||
/etc/nixos/hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
#useGlobalPkgs = true;
|
#useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
backupFileExtension = "hm-backup";
|
backupFileExtension = "hm-backup";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -40,10 +36,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
optimise.automatic = true;
|
optimise.automatic = true;
|
||||||
|
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 14d";
|
||||||
|
};
|
||||||
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+12
-14
@@ -1,25 +1,23 @@
|
|||||||
{ den, ... }: {
|
{ den, ... }: {
|
||||||
|
den.hosts.x86_64-linux.nix = {
|
||||||
|
cloudflared = { uuid = "608ba37a-1be8-49e8-be2d-abeb8b77081d"; protocol = "http2"; };
|
||||||
|
};
|
||||||
|
|
||||||
den.aspects.nix = {
|
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; [
|
includes = with den.aspects; [
|
||||||
den.default
|
den.default
|
||||||
|
|
||||||
common
|
desktop
|
||||||
|
|
||||||
nvidia
|
system.graphics.nvidia
|
||||||
|
|
||||||
catppuccin
|
system.audio.alc897
|
||||||
|
|
||||||
janitor
|
services.llama
|
||||||
|
services.cloudflared
|
||||||
alc897
|
|
||||||
|
|
||||||
#cad
|
|
||||||
|
|
||||||
llama
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = {
|
|
||||||
networking.hostName = "nix";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
+11
-16
@@ -1,31 +1,26 @@
|
|||||||
{ den, ... }: {
|
{ den, ... }: {
|
||||||
|
den.hosts.x86_64-linux.styx = { };
|
||||||
|
|
||||||
den.aspects.styx = {
|
den.aspects.styx = {
|
||||||
includes = with den.aspects; [
|
includes = with den.aspects; [
|
||||||
den.default
|
den.default
|
||||||
|
|
||||||
common
|
desktop
|
||||||
|
|
||||||
amdgpu
|
system.graphics.amdgpu
|
||||||
cloudflare-warp
|
system.network.cloudflare-warp
|
||||||
cad
|
|
||||||
|
|
||||||
catppuccin
|
system.desktop.neu
|
||||||
|
|
||||||
janitor
|
system.desktop.niri
|
||||||
|
system.desktop.noctalia
|
||||||
|
system.desktop.umbriel
|
||||||
|
|
||||||
neu
|
system.hardware.autocpufreq
|
||||||
|
|
||||||
#nix7
|
|
||||||
|
|
||||||
niri
|
|
||||||
noctalia
|
|
||||||
umbriel
|
|
||||||
|
|
||||||
autocpufreq
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = {
|
nixos = {
|
||||||
networking.hostName = "styx";
|
imports = [ ./_hw/styx.nix ];
|
||||||
|
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
HandleLidSwitch = "ignore";
|
HandleLidSwitch = "ignore";
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.beszel = { host, ... }: {
|
|
||||||
den.tunnels =
|
|
||||||
if host.name == "box"
|
|
||||||
then [ "fleet" ]
|
|
||||||
else [];
|
|
||||||
|
|
||||||
nixos = { lib, ... }: {
|
|
||||||
services.beszel.agent = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMlX8zdofzg+vV0H6H5U54YIbTY/z0iPfD9LXupBY2jX";
|
|
||||||
TOKEN = "30949ab5-3ed3-46c1-b606-4e4e66b847f9";
|
|
||||||
HUB_URL = "https://fleet.bug.tools";
|
|
||||||
SYSTEM_NAME = host.name;
|
|
||||||
};
|
|
||||||
|
|
||||||
environmentFile = "/var/lib/beszel-agent/environment";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.beszel.hub = lib.mkIf (host.name == "box") {
|
|
||||||
enable = true;
|
|
||||||
host = "0.0.0.0";
|
|
||||||
port = 8090;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,14 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.bugtv = {
|
#flake-file.inputs.bug-tv = {
|
||||||
|
# url = "git+https://git.bug.tools/bug/tv.git";
|
||||||
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
#};
|
||||||
|
den.aspects.services.bugtv = let port = port; in {
|
||||||
|
tunnel = { subdomain = "api-tv"; inherit port; };
|
||||||
|
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
imports = [ inputs.bug-tv.nixosModules.default ];
|
imports = [ inputs.bug-tv.nixosModules.default ];
|
||||||
|
|
||||||
den.tunnels = [ "api-tv" ];
|
|
||||||
|
|
||||||
services."bug-tv" = {
|
services."bug-tv" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,42 +1,43 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.copyparty = {
|
flake-file.inputs.copyparty.url = "github:9001/copyparty";
|
||||||
nixos = { config, ... }: {
|
den.aspects.services.copyparty = let port = 3210; in {
|
||||||
|
tunnel = { subdomain = "files"; inherit port; };
|
||||||
|
|
||||||
|
nixos = { host, config, ... }: let user = host.owner; home = config.users.users.${user}.home; in {
|
||||||
imports = [ inputs.copyparty.nixosModules.default ];
|
imports = [ inputs.copyparty.nixosModules.default ];
|
||||||
|
|
||||||
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
|
||||||
|
|
||||||
den.tunnels = [ "files" ];
|
|
||||||
|
|
||||||
services.copyparty = {
|
services.copyparty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
user = "bug";
|
inherit user;
|
||||||
group = "copyparty";
|
group = "copyparty";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
i = "0.0.0.0";
|
i = "0.0.0.0";
|
||||||
p = [ config.den.portmap.files (config.den.portmap.files + 1) ];
|
p = [ port (port + 1) ];
|
||||||
no-reload = true;
|
no-reload = true;
|
||||||
ignored-flag = false;
|
ignored-flag = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
accounts = {
|
accounts = {
|
||||||
bug = {
|
${user} = {
|
||||||
passwordFile = "/home/bug/copyparty/bug.passwd";
|
passwordFile = "${home}/copyparty/${user}.passwd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
groups = {
|
groups = {
|
||||||
g1 = [ "bug" ];
|
g1 = [ user ];
|
||||||
};
|
};
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
"/" = {
|
"/" = {
|
||||||
path = "/home/bug/copyparty/public/";
|
path = "${home}/copyparty/public/";
|
||||||
|
|
||||||
access = {
|
access = {
|
||||||
r = "*";
|
r = "*";
|
||||||
rwdma = [ "bug" ];
|
rwdma = [ user ];
|
||||||
};
|
};
|
||||||
|
|
||||||
flags = {
|
flags = {
|
||||||
@@ -46,11 +47,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
"/slsk" = {
|
"/slsk" = {
|
||||||
path = "/home/bug/slskd/complete/";
|
path = "${home}/slskd/complete/";
|
||||||
|
|
||||||
access = {
|
access = {
|
||||||
r = "*";
|
r = "*";
|
||||||
rwdma = [ "bug" ];
|
rwdma = [ user ];
|
||||||
};
|
};
|
||||||
|
|
||||||
flags = {
|
flags = {
|
||||||
@@ -60,7 +61,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
"/nix" = {
|
"/nix" = {
|
||||||
path = "/home/bug/nix/";
|
path = "${home}/nix/";
|
||||||
|
|
||||||
access = {
|
access = {
|
||||||
r = "*";
|
r = "*";
|
||||||
@@ -73,11 +74,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
"/Music" = {
|
"/Music" = {
|
||||||
path = "/home/bug/Music/";
|
path = "${home}/Music/";
|
||||||
|
|
||||||
access = {
|
access = {
|
||||||
r = "*";
|
r = "*";
|
||||||
rwdma = [ "bug" ];
|
rwdma = [ user ];
|
||||||
};
|
};
|
||||||
|
|
||||||
flags = {
|
flags = {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
den.aspects.gitea = {
|
den.aspects.services.gitea = let port = 3002; in {
|
||||||
# includes = [ den.aspects.gitea-mirrors ];
|
tunnel = { subdomain = "git"; inherit port; };
|
||||||
|
|
||||||
nixos = { config, ... }: {
|
nixos = { host, ... }: {
|
||||||
den.tunnels = [ "git" ];
|
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -14,7 +13,8 @@
|
|||||||
DISABLE_REGISTRATION = false;
|
DISABLE_REGISTRATION = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.server.HTTP_PORT = config.den.portmap.git;
|
settings.server.HTTP_PORT = port;
|
||||||
|
settings.server.ROOT_URL = "https://git.${host.domain}/";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
mirrors = {
|
mirrors = {
|
||||||
|
|||||||
@@ -1,218 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.gitea-mirrors = {
|
|
||||||
nixos = { pkgs, lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.services.gitea;
|
|
||||||
mcfg = cfg.mirrors;
|
|
||||||
|
|
||||||
uniqueOwners = lib.unique (
|
|
||||||
(map (m: m.owner) mcfg.repos) ++
|
|
||||||
(map (m: m.owner) mcfg.users)
|
|
||||||
);
|
|
||||||
|
|
||||||
giteaUrl = "http://localhost:${toString cfg.settings.server.HTTP_PORT}";
|
|
||||||
tokenFile = "${cfg.stateDir}/mirror-setup-token";
|
|
||||||
|
|
||||||
repoSource = m:
|
|
||||||
if m ? source then m.source
|
|
||||||
else if (m.service or "git") == "github" then "https://github.com/${m.owner}/${m.repo}.git"
|
|
||||||
else if (m.service or "git") == "gitlab" then "https://gitlab.com/${m.owner}/${m.repo}.git"
|
|
||||||
else throw "mirrors.repos: '${m.owner}/${m.repo}' has no source and service '${m.service or "git"}' needs an explicit source";
|
|
||||||
|
|
||||||
setupScript = pkgs.writeShellScript "gitea-mirror-setup" ''
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
GITEA_URL="${giteaUrl}"
|
|
||||||
TOKEN_FILE="${tokenFile}"
|
|
||||||
GITEA_CMD="${lib.getExe cfg.package}"
|
|
||||||
|
|
||||||
for i in $(seq 1 60); do
|
|
||||||
if ${pkgs.curl}/bin/curl -sf "$GITEA_URL/api/v1/version" >/dev/null 2>&1; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
|
|
||||||
$GITEA_CMD admin user create \
|
|
||||||
--username "${mcfg.admin.user}" \
|
|
||||||
--email "${mcfg.admin.email}" \
|
|
||||||
--random-password \
|
|
||||||
--admin \
|
|
||||||
--must-change-password=false 2>/dev/null || true
|
|
||||||
|
|
||||||
if [ ! -f "$TOKEN_FILE" ]; then
|
|
||||||
TOKEN=$($GITEA_CMD admin user generate-access-token \
|
|
||||||
--username "${mcfg.admin.user}" \
|
|
||||||
--token-name "mirror-setup" \
|
|
||||||
--scopes "all" \
|
|
||||||
--raw)
|
|
||||||
echo "$TOKEN" > "$TOKEN_FILE"
|
|
||||||
chmod 600 "$TOKEN_FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
TOKEN=$(cat "$TOKEN_FILE")
|
|
||||||
AUTH="Authorization: token $TOKEN"
|
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n" (owner: ''
|
|
||||||
RAND_PASS=$(${pkgs.openssl}/bin/openssl rand -base64 32)
|
|
||||||
${pkgs.curl}/bin/curl -sf -X POST "$GITEA_URL/api/v1/admin/users" \
|
|
||||||
-H "$AUTH" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{
|
|
||||||
\"username\": \"${owner}\",
|
|
||||||
\"email\": \"${owner}@git.bug.tools\",
|
|
||||||
\"password\": \"$RAND_PASS\",
|
|
||||||
\"must_change_password\": false,
|
|
||||||
\"visibility\": \"public\"
|
|
||||||
}" >/dev/null 2>&1 || true
|
|
||||||
'') uniqueOwners}
|
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n" (m: ''
|
|
||||||
${pkgs.curl}/bin/curl -sf -X POST "$GITEA_URL/api/v1/repos/migrate" \
|
|
||||||
-H "$AUTH" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d '{
|
|
||||||
"clone_addr": "${repoSource m}",
|
|
||||||
"repo_name": "${m.repo}",
|
|
||||||
"repo_owner": "${m.owner}",
|
|
||||||
"mirror": true,
|
|
||||||
"private": false,
|
|
||||||
"service": "${m.service or "git"}"
|
|
||||||
}' >/dev/null 2>&1 || true
|
|
||||||
'') mcfg.repos}
|
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n" (u:
|
|
||||||
let
|
|
||||||
platform = u.platform;
|
|
||||||
owner = u.owner;
|
|
||||||
baseUrl = u.baseUrl or (if platform == "github" then "https://api.github.com"
|
|
||||||
else if platform == "gitlab" then "https://gitlab.com"
|
|
||||||
else if platform == "gitea" then u.baseUrl
|
|
||||||
else throw "mirrors.users: unsupported platform '${platform}', provide baseUrl");
|
|
||||||
cloneBase = if platform == "github" then "https://github.com/${owner}"
|
|
||||||
else if platform == "gitlab" then "${u.baseUrl or "https://gitlab.com"}/${owner}"
|
|
||||||
else if platform == "gitea" then "${u.baseUrl}/${owner}"
|
|
||||||
else throw "mirrors.users: unsupported platform '${platform}'";
|
|
||||||
service = if platform == "github" then "github"
|
|
||||||
else if platform == "gitlab" then "gitlab"
|
|
||||||
else if platform == "gitea" then "gitea"
|
|
||||||
else "git";
|
|
||||||
jqExpr = if platform == "gitlab" then ".[].path" else ".[].name";
|
|
||||||
pageSize = if platform == "gitea" then 50 else 100;
|
|
||||||
pageSizeStr = toString pageSize;
|
|
||||||
listUrl = if platform == "github" then "${baseUrl}/users/${owner}/repos?per_page=${pageSizeStr}&type=owner"
|
|
||||||
else if platform == "gitlab" then "${baseUrl}/api/v4/users/${owner}/projects?per_page=${pageSizeStr}"
|
|
||||||
else "${baseUrl}/api/v1/users/${owner}/repos?limit=${pageSizeStr}";
|
|
||||||
in ''
|
|
||||||
echo "Fetching repos for ${owner} from ${platform}..."
|
|
||||||
PAGE=1
|
|
||||||
while true; do
|
|
||||||
REPOS=$(${pkgs.curl}/bin/curl -sf "${listUrl}&page=$PAGE" || echo "[]")
|
|
||||||
|
|
||||||
NAMES=$(echo "$REPOS" | ${pkgs.jq}/bin/jq -r '${jqExpr}')
|
|
||||||
if [ -z "$NAMES" ] || [ "$NAMES" = "null" ]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
for REPO_NAME in $NAMES; do
|
|
||||||
${pkgs.curl}/bin/curl -sf -X POST "$GITEA_URL/api/v1/repos/migrate" \
|
|
||||||
-H "$AUTH" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{
|
|
||||||
\"clone_addr\": \"${cloneBase}/$REPO_NAME.git\",
|
|
||||||
\"repo_name\": \"$REPO_NAME\",
|
|
||||||
\"repo_owner\": \"${owner}\",
|
|
||||||
\"mirror\": true,
|
|
||||||
\"private\": false,
|
|
||||||
\"service\": \"${service}\"
|
|
||||||
}" >/dev/null 2>&1 || true
|
|
||||||
done
|
|
||||||
|
|
||||||
COUNT=$(echo "$REPOS" | ${pkgs.jq}/bin/jq 'length')
|
|
||||||
if [ "$COUNT" -lt ${pageSizeStr} ]; then break; fi
|
|
||||||
PAGE=$((PAGE + 1))
|
|
||||||
done
|
|
||||||
'') mcfg.users}
|
|
||||||
|
|
||||||
echo "Mirror setup complete."
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.services.gitea.mirrors = {
|
|
||||||
admin = {
|
|
||||||
user = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "admin";
|
|
||||||
description = "Gitea admin username for mirror management.";
|
|
||||||
};
|
|
||||||
|
|
||||||
email = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "admin@localhost";
|
|
||||||
description = "Gitea admin email.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
repos = lib.mkOption {
|
|
||||||
type = lib.types.listOf (lib.types.attrsOf lib.types.str);
|
|
||||||
default = [];
|
|
||||||
description = "Individual repositories to mirror. Each entry: { owner, repo, service?, source? }. Source is auto-derived for github/gitlab.";
|
|
||||||
example = [
|
|
||||||
{ owner = "nixos"; repo = "nixpkgs"; service = "github"; }
|
|
||||||
{ owner = "someone"; repo = "thing"; source = "https://custom.instance/someone/thing.git"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users = lib.mkOption {
|
|
||||||
type = lib.types.listOf (lib.types.attrsOf lib.types.str);
|
|
||||||
default = [];
|
|
||||||
description = "Mirror all public repos of a user/org. Each entry: { owner, platform, baseUrl? }.";
|
|
||||||
example = [
|
|
||||||
{ owner = "catppuccin"; platform = "github"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf (mcfg.repos != [] || mcfg.users != []) {
|
|
||||||
services.gitea.settings.mirror = {
|
|
||||||
DEFAULT_INTERVAL = "6h";
|
|
||||||
MIN_INTERVAL = "10m";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gitea.settings."cron.update_mirrors" = {
|
|
||||||
SCHEDULE = "@every 10m";
|
|
||||||
RUN_AT_START = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.gitea-mirror-setup = {
|
|
||||||
description = "Setup Gitea mirror repositories";
|
|
||||||
after = [ "gitea.service" ];
|
|
||||||
requires = [ "gitea.service" ];
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
User = cfg.user;
|
|
||||||
Group = cfg.group;
|
|
||||||
ExecStart = setupScript;
|
|
||||||
WorkingDirectory = cfg.stateDir;
|
|
||||||
Environment = [
|
|
||||||
"GITEA_WORK_DIR=${cfg.stateDir}"
|
|
||||||
"GITEA_CUSTOM=${cfg.customDir}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers.gitea-mirror-setup = {
|
|
||||||
description = "Run Gitea mirror setup on boot and periodically";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
|
|
||||||
timerConfig = {
|
|
||||||
OnBootSec = "2min";
|
|
||||||
OnUnitActiveSec = "6h";
|
|
||||||
Unit = "gitea-mirror-setup.service";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
den.aspects.glances = {
|
den.aspects.services.glances = let port = 61208; in {
|
||||||
nixos = { pkgs, config, ... }: {
|
tunnel = { subdomain = "monitor"; inherit port; };
|
||||||
den.tunnels = [ "monitor" ];
|
|
||||||
|
nixos = { pkgs, ... }: {
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.glances ];
|
environment.systemPackages = [ pkgs.glances ];
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@
|
|||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.glances}/bin/glances \
|
${pkgs.glances}/bin/glances \
|
||||||
-w \
|
-w \
|
||||||
-p ${toString config.den.portmap.monitor} \
|
-p ${toString port} \
|
||||||
-B 0.0.0.0
|
-B 0.0.0.0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
den.aspects.invidious = {
|
den.aspects.services.invidious = let port = 3030; in {
|
||||||
nixos = { pkgs, config, ... }: let
|
tunnel = { subdomain = "tube"; inherit port; };
|
||||||
|
|
||||||
|
nixos = { pkgs, host, ... }: let
|
||||||
companionPort = 8282;
|
companionPort = 8282;
|
||||||
companionPath = "/companion";
|
companionPath = "/companion";
|
||||||
companionKey = "kKg3RKeZjE7frmvr";
|
companionKey = "kKg3RKeZjE7frmvr";
|
||||||
port = config.den.portmap.tube;
|
|
||||||
in {
|
in {
|
||||||
den.tunnels = [ "tube" ];
|
|
||||||
|
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
containers = {
|
containers = {
|
||||||
@@ -66,9 +65,9 @@
|
|||||||
http3-ytproxy.enable = true;
|
http3-ytproxy.enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
domain = "tube.bug.tools";
|
domain = "tube.${host.domain}";
|
||||||
#https_only = false;
|
#https_only = false;
|
||||||
external_port = port;
|
external_port = 443; # public URLs go through cloudflared on https, not :3030
|
||||||
|
|
||||||
invidious_companion = [
|
invidious_companion = [
|
||||||
{
|
{
|
||||||
@@ -79,11 +78,11 @@
|
|||||||
invidious_companion_key = companionKey;
|
invidious_companion_key = companionKey;
|
||||||
|
|
||||||
continue = true;
|
continue = true;
|
||||||
local = false;
|
local = true; # googlevideo URLs are bound to box's IP; proxy playback via companion
|
||||||
check_tables = true;
|
check_tables = true;
|
||||||
https_only = true;
|
https_only = true;
|
||||||
use_quic = false;
|
use_quic = false;
|
||||||
admins = [ "bug" ];
|
admins = [ host.owner ];
|
||||||
use_pubsub_feeds = false;
|
use_pubsub_feeds = false;
|
||||||
captcha_enabled = false;
|
captcha_enabled = false;
|
||||||
login_enabled = true;
|
login_enabled = true;
|
||||||
|
|||||||
@@ -1,29 +1,10 @@
|
|||||||
{ ... }: {
|
{ den, ... }: {
|
||||||
den.aspects.llama = {
|
den.aspects.services.llama = let port = 8080; in {
|
||||||
|
includes = [ (den.batteries.unfree [ "cccl" "cuda_compat" "cuda_crt" "cuda_cudart" "cuda_nvcc" "cuda_nvrtc" "libcublas" "libnvvm" ]) ];
|
||||||
|
|
||||||
|
tunnel = { subdomain = "llama"; inherit port; };
|
||||||
|
|
||||||
nixos = { pkgs, lib, ... }: {
|
nixos = { pkgs, lib, ... }: {
|
||||||
environment.systemPackages = [ pkgs.cloudflared ];
|
|
||||||
environment.etc."cloudflared/608ba37a-1be8-49e8-be2d-abeb8b77081d.json".source = "/home/bug/.cloudflared/608ba37a-1be8-49e8-be2d-abeb8b77081d.json";
|
|
||||||
|
|
||||||
services.cloudflared = {
|
|
||||||
enable = true;
|
|
||||||
tunnels = {
|
|
||||||
"608ba37a-1be8-49e8-be2d-abeb8b77081d" = {
|
|
||||||
credentialsFile = "/etc/cloudflared/608ba37a-1be8-49e8-be2d-abeb8b77081d.json";
|
|
||||||
|
|
||||||
ingress = {
|
|
||||||
"llama.bug.tools" = "http://127.0.0.1:8080";
|
|
||||||
};
|
|
||||||
|
|
||||||
default = "http_status:404";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services."cloudflared-tunnel-608ba37a-1be8-49e8-be2d-abeb8b77081d".environment = {
|
|
||||||
TUNNEL_TRANSPORT_PROTOCOL = pkgs.lib.mkForce "http2";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
services.llama-cpp = let
|
services.llama-cpp = let
|
||||||
# https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
|
# https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
|
||||||
modelsPreset = {
|
modelsPreset = {
|
||||||
@@ -75,7 +56,7 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = 8080;
|
port = port;
|
||||||
ctx-size = 65536;
|
ctx-size = 65536;
|
||||||
|
|
||||||
models-max = 1;
|
models-max = 1;
|
||||||
|
|||||||
@@ -1,15 +1,21 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
den.aspects.mailserver = {
|
flake-file.inputs.nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||||
nixos = {
|
den.aspects.services.mailserver = let port = 8088; in {
|
||||||
|
tunnel = [
|
||||||
|
{ subdomain = "mail"; inherit port; }
|
||||||
|
{ subdomain = "email"; inherit port; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixos = { host, config, ... }: let user = host.owner; home = config.users.users.${user}.home; inherit (host) domain; in {
|
||||||
imports = [ inputs.nixos-mailserver.nixosModules.default ];
|
imports = [ inputs.nixos-mailserver.nixosModules.default ];
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "security@bug.tools";
|
defaults.email = "security@${domain}";
|
||||||
|
|
||||||
certs."mx.bug.tools" = {
|
certs."mx.${domain}" = {
|
||||||
listenHTTP = "1360";
|
listenHTTP = ":1360";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -18,10 +24,10 @@
|
|||||||
|
|
||||||
stateVersion = 4;
|
stateVersion = 4;
|
||||||
|
|
||||||
fqdn = "mx.bug.tools";
|
fqdn = "mx.${domain}";
|
||||||
domains = [ "bug.tools" ];
|
domains = [ "${domain}" ];
|
||||||
|
|
||||||
x509.useACMEHost = "mx.bug.tools";
|
x509.useACMEHost = "mx.${domain}";
|
||||||
|
|
||||||
fullTextSearch = {
|
fullTextSearch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -30,51 +36,46 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
accounts = {
|
accounts = {
|
||||||
"bug@bug.tools" = {
|
"${user}@${domain}" = {
|
||||||
hashedPasswordFile = "/home/bug/mailserver/bug.passwd";
|
hashedPasswordFile = "${home}/mailserver/bug.passwd";
|
||||||
aliases = [
|
aliases = [
|
||||||
"admin@bug.tools"
|
"admin@${domain}"
|
||||||
"security@bug.tools"
|
"security@${domain}"
|
||||||
"google@bug.tools"
|
"google@${domain}"
|
||||||
"apple@bug.tools"
|
"apple@${domain}"
|
||||||
"roblox@bug.tools"
|
"roblox@${domain}"
|
||||||
"twitch@bug.tools"
|
"twitch@${domain}"
|
||||||
"discord@bug.tools"
|
"discord@${domain}"
|
||||||
"github@bug.tools"
|
"github@${domain}"
|
||||||
"matrix@bug.tools"
|
"matrix@${domain}"
|
||||||
"git@bug.tools"
|
"git@${domain}"
|
||||||
"contact@bug.tools"
|
"contact@${domain}"
|
||||||
"claude@bug.tools"
|
"claude@${domain}"
|
||||||
"rumble@bug.tools"
|
"rumble@${domain}"
|
||||||
"bambu@bug.tools"
|
"bambu@${domain}"
|
||||||
"soulframe@bug.tools"
|
"soulframe@${domain}"
|
||||||
"vortex@bug.tools"
|
"vortex@${domain}"
|
||||||
"codex@bug.tools"
|
"codex@${domain}"
|
||||||
"tailscale@bug.tools"
|
"tailscale@${domain}"
|
||||||
"firefox@bug.tools"
|
"firefox@${domain}"
|
||||||
"keldurn@bug.tools"
|
"keldurn@${domain}"
|
||||||
"brax@bug.tools"
|
"brax@${domain}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"pare@bug.tools" = {
|
"pare@${domain}" = {
|
||||||
hashedPasswordFile = "/home/bug/mailserver/pare.passwd";
|
hashedPasswordFile = "${home}/mailserver/pare.passwd";
|
||||||
};
|
};
|
||||||
|
|
||||||
"poop@bug.tools" = {
|
"poop@${domain}" = {
|
||||||
hashedPasswordFile = "/home/bug/mailserver/pare.passwd";
|
hashedPasswordFile = "${home}/mailserver/pare.passwd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
den.tunnels = [
|
|
||||||
"mail"
|
|
||||||
"email"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "mail.bug.tools";
|
hostName = "mail.${domain}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
$config['imap_host'] = 'ssl://localhost:993';
|
$config['imap_host'] = 'ssl://localhost:993';
|
||||||
$config['imap_conn_options'] = [
|
$config['imap_conn_options'] = [
|
||||||
@@ -86,20 +87,20 @@
|
|||||||
];
|
];
|
||||||
$config['smtp_user'] = "%u";
|
$config['smtp_user'] = "%u";
|
||||||
$config['smtp_pass'] = "%p";
|
$config['smtp_pass'] = "%p";
|
||||||
$config['username_domain'] = 'bug.tools';
|
$config['username_domain'] = '${domain}';
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
|
|
||||||
services.nginx.virtualHosts."mail.bug.tools" = {
|
services.nginx.virtualHosts."mail.${domain}" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|
||||||
listen = [
|
listen = [
|
||||||
{
|
{
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 8088;
|
port = port;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
{
|
{
|
||||||
den.aspects.matrix = {
|
den.aspects.services.matrix = {
|
||||||
nixos = {
|
nixos = {
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
host,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
port = config.den.portmap.matrix;
|
port = 8008;
|
||||||
domain = "bug.tools";
|
inherit (host) domain;
|
||||||
matrixDomain = "matrix.${domain}";
|
matrixDomain = "matrix.${domain}";
|
||||||
clientConfig = {
|
clientConfig = {
|
||||||
"m.homeserver".base_url = "https://${matrixDomain}";
|
"m.homeserver".base_url = "https://${matrixDomain}";
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
{}
|
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
den.aspects.mpd = {
|
den.aspects.services.mpd = {
|
||||||
homeManager = {
|
homeManager = {
|
||||||
services.mpd-mpris.enable = true;
|
services.mpd-mpris.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixos = {
|
nixos = { host, config, ... }: let user = host.owner; home = config.users.users.${user}.home; in {
|
||||||
services = {
|
services = {
|
||||||
mpd = {
|
mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
music_directory = "/home/bug/Music";
|
music_directory = "${home}/Music";
|
||||||
|
|
||||||
decoder = [
|
decoder = [
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
user = "bug";
|
inherit user;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.omnisearch = {
|
/*
|
||||||
|
flake-file.inputs.omnisearch = {
|
||||||
|
url = "git+https://git.bwaaa.monster/omnisearch";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
den.aspects.services.omnisearch = {
|
||||||
|
tunnel = { subdomain = "omnisearch"; port = 8087; }; # module default port
|
||||||
|
|
||||||
nixos = {
|
nixos = {
|
||||||
imports = [ inputs.omnisearch.nixosModules.default ];
|
imports = [ inputs.omnisearch.nixosModules.default ];
|
||||||
|
|
||||||
den.tunnels = [ "omnisearch" ];
|
|
||||||
|
|
||||||
services.omnisearch.enable = true;
|
services.omnisearch.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.portmap.nixos = { lib, ... }: {
|
|
||||||
options.den.portmap = lib.mkOption {
|
|
||||||
type = lib.types.attrsOf lib.types.port;
|
|
||||||
default = {};
|
|
||||||
description = "ports";
|
|
||||||
};
|
|
||||||
|
|
||||||
config.den.portmap = {
|
|
||||||
tvtun = 3001;
|
|
||||||
search = 8888;
|
|
||||||
files = 3210;
|
|
||||||
tube = 3030;
|
|
||||||
reddit = 8975;
|
|
||||||
git = 3002;
|
|
||||||
monitor = 61208;
|
|
||||||
matrix = 8008;
|
|
||||||
omnisearch = 8087;
|
|
||||||
mail = 8088;
|
|
||||||
email = 8088;
|
|
||||||
llama = 8080;
|
|
||||||
api-tv = 8789;
|
|
||||||
seek = 8089;
|
|
||||||
fleet = 8090;
|
|
||||||
mpd = 6600;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.redlib = {
|
|
||||||
nixos = { config, ... }: {
|
|
||||||
den.tunnels = [ "reddit" ];
|
|
||||||
|
|
||||||
services.redlib = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
address = "127.0.0.1";
|
|
||||||
port = config.den.portmap.reddit;
|
|
||||||
openFirewall = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
SFW_ONLY = "off";
|
|
||||||
ROBOTS_DISABLE_INDEXING = "on";
|
|
||||||
ENABLE_RSS = "on";
|
|
||||||
THEME = "system";
|
|
||||||
FRONT_PAGE = "default";
|
|
||||||
LAYOUT = "card";
|
|
||||||
WIDE = "on";
|
|
||||||
POST_SORT = "hot";
|
|
||||||
COMMENT_SORT = "confidence";
|
|
||||||
BLUR_SPOILER = "off";
|
|
||||||
SHOW_NSFW = "on";
|
|
||||||
BLUR_NSFW = "off";
|
|
||||||
USE_HLS = "on";
|
|
||||||
HIDE_HLS_NOTIFICATION = "off";
|
|
||||||
AUTOPLAY_VIDEOS = "off";
|
|
||||||
HIDE_AWARDS = "off";
|
|
||||||
DISABLE_VISIT_REDDIT_CONFIRMATION = "off";
|
|
||||||
HIDE_SCORE = "off";
|
|
||||||
HIDE_SIDEBAR_AND_SUMMARY = "off";
|
|
||||||
FIXED_NAVBAR = "on";
|
|
||||||
REMOVE_DEFAULT_FEEDS = "off";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +1,23 @@
|
|||||||
{
|
{
|
||||||
den.aspects.searxng = {
|
den.aspects.services.searxng = let port = 8888; in {
|
||||||
nixos = { config, ... }: {
|
tunnel = { subdomain = "search"; inherit port; };
|
||||||
den.tunnels = [ "search" ];
|
|
||||||
|
|
||||||
|
nixos = { host, config, ... }: let user = host.owner; home = config.users.users.${user}.home; in {
|
||||||
systemd.services.searx-init.serviceConfig.EnvironmentFile = [
|
systemd.services.searx-init.serviceConfig.EnvironmentFile = [
|
||||||
"/home/bug/.searxng.env"
|
"${home}/.searxng.env"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
redisCreateLocally = false;
|
redisCreateLocally = false;
|
||||||
configureUwsgi = false;
|
configureUwsgi = false;
|
||||||
settingsFile = ./searxng.yml;
|
settingsFile = builtins.path { path = ./searxng.yml; name = "searxng.yml"; };
|
||||||
environmentFile = "/home/bug/.searxng.env";
|
environmentFile = "${home}/.searxng.env";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
general.instance_name = "search.bug.tools";
|
general.instance_name = "search.${host.domain}";
|
||||||
|
|
||||||
server.port = config.den.portmap.search;
|
server.port = port;
|
||||||
server.bind_address = "0.0.0.0";
|
server.bind_address = "0.0.0.0";
|
||||||
server.secret_key = "$SEARX_SECRET_KEY";
|
server.secret_key = "$SEARX_SECRET_KEY";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.sish = {
|
|
||||||
nixos = {
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
+11
-10
@@ -1,32 +1,33 @@
|
|||||||
{ lib, inputs, ... }: {
|
{ lib, inputs, ... }: {
|
||||||
den.aspects.slskd = {
|
den.aspects.services.slskd = let port = 8089; in {
|
||||||
nixos = { pkgs, config, ... }: {
|
tunnel = { subdomain = "seek"; inherit port; };
|
||||||
den.tunnels = [ "seek" ];
|
|
||||||
|
nixos = { pkgs, host, config, ... }: let user = host.owner; home = config.users.users.${user}.home; in {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
slskd
|
slskd
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.slskd.serviceConfig = {
|
systemd.services.slskd.serviceConfig = {
|
||||||
ReadWritePaths = [ "/home/bug/slskd" ];
|
ReadWritePaths = [ "${home}/slskd" ];
|
||||||
ProtectHome = lib.mkForce false;
|
ProtectHome = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.slskd = {
|
services.slskd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "bug";
|
inherit user;
|
||||||
|
|
||||||
settings.web.port = 8089;
|
settings.web.port = port;
|
||||||
|
|
||||||
environmentFile = "/home/bug/slskd/env";
|
environmentFile = "${home}/slskd/env";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
directories = {
|
directories = {
|
||||||
downloads = "/home/bug/slskd/complete";
|
downloads = "${home}/slskd/complete";
|
||||||
incomplete = "/home/bug/slskd/incomplete";
|
incomplete = "${home}/slskd/incomplete";
|
||||||
};
|
};
|
||||||
|
|
||||||
shares.directories = [ "/home/bug/slskd/share" ];
|
shares.directories = [ "${home}/slskd/share" ];
|
||||||
|
|
||||||
shares.filters = [
|
shares.filters = [
|
||||||
"\\.ini$"
|
"\\.ini$"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{
|
{ inputs, ... }: {
|
||||||
den.aspects.vscode-server = {
|
flake-file.inputs.vscode-server.url = "github:nix-community/nixos-vscode-server";
|
||||||
|
den.aspects.services.vscode-server = {
|
||||||
nixos = {
|
nixos = {
|
||||||
imports = [
|
imports = [
|
||||||
(fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/master")
|
inputs.vscode-server.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
services.vscode-server.enable = true;
|
services.vscode-server.enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
{
|
{ den, ... }: {
|
||||||
den.aspects.firefox = {
|
den.aspects.software.browsers = {
|
||||||
|
includes = [ (den.batteries.unfree [ "firefox-bin" "firefox-bin-unwrapped" ]) ];
|
||||||
|
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
{ inputs, lib, ... }: {
|
{ lib, ... }: {
|
||||||
den.aspects.librewolf = {
|
flake-file.inputs.catppuccin-userstyles-nix = {
|
||||||
homeManager = { pkgs, ... }: {
|
url = "github:4DBug/catppuccin-userstyles-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.software.browsers = {
|
||||||
|
homeManager = { host, ... }: {
|
||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
"browser.startup.homepage" = "https://search.bug.tools";
|
"browser.startup.homepage" = "https://search.${host.domain}";
|
||||||
"browser.startup.page" = 3;
|
"browser.startup.page" = 3;
|
||||||
|
|
||||||
"datareporting.healthreport.uploadEnabled" = false;
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
@@ -68,20 +72,20 @@
|
|||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
|
|
||||||
default = "search.bug.tools";
|
default = "search.${host.domain}";
|
||||||
|
|
||||||
engines = {
|
engines = {
|
||||||
"search.bug.tools" = {
|
"search.${host.domain}" = {
|
||||||
urls = [
|
urls = [
|
||||||
{
|
{
|
||||||
template = "https://search.bug.tools/search";
|
template = "https://search.${host.domain}/search";
|
||||||
params = [
|
params = [
|
||||||
{ name = "q"; value = "{searchTerms}"; }
|
{ name = "q"; value = "{searchTerms}"; }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
icon = "https://search.bug.tools/favicon.ico";
|
icon = "https://search.${host.domain}/favicon.ico";
|
||||||
definedAliases = [ "@s" "@sq" ];
|
definedAliases = [ "@s" "@sq" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -184,7 +188,6 @@
|
|||||||
|
|
||||||
"{1b66b5ad-408f-4300-aac6-55a68b2b24ff}" # catppuccin-mocha-no-borders
|
"{1b66b5ad-408f-4300-aac6-55a68b2b24ff}" # catppuccin-mocha-no-borders
|
||||||
|
|
||||||
"{1b66b5ad-408f-4300-aac6-55a68b2b24ff}" # catppuccin-mocha-no-borders
|
|
||||||
|
|
||||||
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" # styl-us
|
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" # styl-us
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
{
|
{
|
||||||
den.aspects.cad = {
|
den.aspects.software.cad = {
|
||||||
nixos = { pkgs, ... }: {
|
homeManager = { pkgs, ... }: {
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
#blender
|
|
||||||
plasticity
|
|
||||||
#orca-slicer
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
homeManager = { pkgs , ... }: {
|
|
||||||
home.packages = let
|
home.packages = let
|
||||||
blenderScripts = pkgs.runCommand "blender-user-scripts" { } ''
|
blenderScripts = pkgs.runCommand "blender-user-scripts" { } ''
|
||||||
mkdir -p $out/addons
|
mkdir -p $out/addons
|
||||||
@@ -32,7 +24,9 @@
|
|||||||
--set QUADREMESHER_LAUNCHER ${quadRemesherLauncher}
|
--set QUADREMESHER_LAUNCHER ${quadRemesherLauncher}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in [ blender-quadremesher ];
|
in [
|
||||||
|
blender-quadremesher
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
den.aspects.opencode = {
|
den.aspects.software.cli = let
|
||||||
|
# llama endpoint lives on the entity's domain (host, or standalone home)
|
||||||
|
llama = e: { homeManager.programs.opencode.settings.provider."llama.cpp".options.baseURL = "https://llama.${e.domain}/v1"; };
|
||||||
|
in {
|
||||||
|
includes = [ ({ host, ... }: llama host) ({ home, ... }: llama home) ];
|
||||||
|
|
||||||
homeManager = {
|
homeManager = {
|
||||||
programs.opencode = {
|
programs.opencode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -26,9 +31,6 @@
|
|||||||
"llama.cpp" = {
|
"llama.cpp" = {
|
||||||
npm = "@ai-sdk/openai-compatible";
|
npm = "@ai-sdk/openai-compatible";
|
||||||
name = "llama.cpp";
|
name = "llama.cpp";
|
||||||
options = {
|
|
||||||
baseURL = "https://llama.bug.tools/v1";
|
|
||||||
};
|
|
||||||
models = {
|
models = {
|
||||||
"qwen3.6-35b-a3b" = {
|
"qwen3.6-35b-a3b" = {
|
||||||
name = "qwen3.6-35b-a3b";
|
name = "qwen3.6-35b-a3b";
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.appimage = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
appimage-run
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.appimage = {
|
|
||||||
enable = true;
|
|
||||||
binfmt = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{ den, ... }: {
|
|
||||||
den.aspects.compatibility = {
|
|
||||||
includes = with den.aspects; [ wine appimage nix-ld nix-alien ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.nix-alien = {
|
|
||||||
nixos = {
|
|
||||||
environment.systemPackages = let
|
|
||||||
nix-alien = import (
|
|
||||||
fetchTarball "https://github.com/thiagokokada/nix-alien/tarball/master"
|
|
||||||
){};
|
|
||||||
in [
|
|
||||||
nix-alien.nix-alien
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.wine = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
wine64
|
|
||||||
wineWow64Packages.full
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{ den, ... }: {
|
|
||||||
den.aspects.development = {
|
|
||||||
includes = with den.aspects; [ editors java ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.editors = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
zed-editor
|
|
||||||
#arduino-ide
|
|
||||||
|
|
||||||
# add to languages later
|
|
||||||
python314Packages.pyside6
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.java = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
jdk25
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.essentials = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
comma
|
|
||||||
git
|
|
||||||
home-manager
|
|
||||||
inetutils
|
|
||||||
micro
|
|
||||||
nh
|
|
||||||
nil
|
|
||||||
nixd
|
|
||||||
nixfmt
|
|
||||||
nix-index
|
|
||||||
nix-output-monitor
|
|
||||||
nix-prefetch
|
|
||||||
nvd
|
|
||||||
psmisc
|
|
||||||
tree
|
|
||||||
unzip
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.fish = {
|
|
||||||
nixos = { pkgs, ...}: {
|
|
||||||
programs.fish = {
|
|
||||||
shellAliases = {
|
|
||||||
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 &' --";
|
|
||||||
|
|
||||||
vpn = "sshuttle --dns --python python3 -r box.bug.tools 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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
{ ... }: {
|
{
|
||||||
den.aspects.emulators = {
|
den.aspects.software.gaming.homeManager = { pkgs, ... }: {
|
||||||
nixos = { pkgs, ... }: {
|
home.packages = [ pkgs.ppsspp ];
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
ppsspp
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,12 @@
|
|||||||
{ ... }: {
|
{
|
||||||
den.aspects.game-tools = {
|
den.aspects.software.gaming.homeManager = { pkgs, ... }: {
|
||||||
nixos = { pkgs, ... }: {
|
home.packages = with pkgs; [
|
||||||
users.users.bug.packages = with pkgs; [
|
steamtinkerlaunch
|
||||||
steamtinkerlaunch
|
scanmem
|
||||||
scanmem
|
samrewritten
|
||||||
samrewritten
|
lug-helper
|
||||||
lug-helper
|
gamemode
|
||||||
gamemode
|
steam-run
|
||||||
steam-run
|
];
|
||||||
];
|
|
||||||
|
|
||||||
services.flatpak.packages = [
|
|
||||||
"community.pathofbuilding.PathOfBuilding"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ den, ... }:
|
|
||||||
{
|
|
||||||
den.aspects.gaming = {
|
|
||||||
includes = with den.aspects; [
|
|
||||||
steam
|
|
||||||
roblox
|
|
||||||
polytoria
|
|
||||||
game-tools
|
|
||||||
emulators
|
|
||||||
star-citizen
|
|
||||||
minecraft
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.hytale = {
|
flake-file.inputs.hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
|
||||||
nixos = { pkgs, ... }: {
|
den.aspects.software.gaming.hytale = {
|
||||||
users.users.bug.packages = [
|
homeManager = { pkgs, ... }: {
|
||||||
|
home.packages = [
|
||||||
inputs.hytale-launcher.packages.${pkgs.system}.default
|
inputs.hytale-launcher.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,139 +1,61 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
den.aspects.minecraft = {
|
flake-file.inputs = {
|
||||||
nixos =
|
minecraft = {
|
||||||
{ pkgs, ... }:
|
url = "github:4DBug/minecraft.nix";
|
||||||
|
inputs.metadata.follows = "minecraft-metadata";
|
||||||
|
};
|
||||||
|
minecraft-metadata.url = "github:Ninlives/minecraft.json";
|
||||||
|
};
|
||||||
|
den.aspects.software.gaming = {
|
||||||
|
homeManager =
|
||||||
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
inherit (pkgs) fetchurl symlinkJoin makeWrapper;
|
home = config.home.homeDirectory;
|
||||||
|
inherit (pkgs) lib symlinkJoin makeWrapper;
|
||||||
|
|
||||||
|
# ponytail: no hashes, needs --impure; files re-download after tarball-ttl (1h) and may change upstream
|
||||||
|
fetch = map (url: rec {
|
||||||
|
name = lib.strings.sanitizeDerivationName (lib.replaceStrings [ "%20" "%2B" ] [ "-" "+" ] (baseNameOf url));
|
||||||
|
outPath = builtins.fetchurl { inherit url name; };
|
||||||
|
});
|
||||||
|
|
||||||
base = (inputs.minecraft.legacyPackages.${pkgs.stdenv.hostPlatform.system}.v1_21_11.fabric.client.withConfig [{
|
base = (inputs.minecraft.legacyPackages.${pkgs.stdenv.hostPlatform.system}.v1_21_11.fabric.client.withConfig [{
|
||||||
jvmArgs = [
|
jvmArgs = [
|
||||||
"-Dorg.lwjgl.opengl.Window.undecorated=true"
|
"-Dorg.lwjgl.opengl.Window.undecorated=true"
|
||||||
];
|
];
|
||||||
|
|
||||||
mods = [
|
mods = fetch [
|
||||||
(fetchurl {
|
"https://cdn.modrinth.com/data/P7dR8mSH/versions/i5tSkVBH/fabric-api-0.141.3+1.21.11.jar"
|
||||||
name = "fabric-api.jar";
|
# "https://meteorclient.com/api/download"
|
||||||
url = "https://cdn.modrinth.com/data/P7dR8mSH/versions/i5tSkVBH/fabric-api-0.141.3+1.21.11.jar";
|
# "https://www.meteorclient.com/api/downloadBaritone"
|
||||||
sha256 = "sha256:1xgfpy6zj1nwwfrhr346firm8zw6lw63pl4parvjwrirc6l57i46";
|
|
||||||
})
|
|
||||||
|
|
||||||
/*
|
"https://cdn.modrinth.com/data/mOgUt4GM/versions/Tyk71iSw/modmenu-17.0.0.jar"
|
||||||
(fetchurl {
|
# "https://cdn.modrinth.com/data/uCdwusMi/versions/GT3Bm3GN/DistantHorizons-2.4.5-b-1.21.11-fabric-neoforge.jar"
|
||||||
name = "meteor-client.jar";
|
"https://cdn.modrinth.com/data/fxxUqruK/versions/H3w2nVdU/voxy-0.2.16-beta%2B1.21.11.jar"
|
||||||
url = "https://meteorclient.com/api/download";
|
# "https://cdn.modrinth.com/data/SfMw2IZN/versions/4x9ci9sF/nvidium-0.4.3-beta13-1.21.11.jar"
|
||||||
sha256 = "sha256:190vghnfg3invfy7qpizppxf29qyf5zz1iv5c8bfcq2q5r9mljqq";
|
"https://cdn.modrinth.com/data/YL57xq9U/versions/fDpuVzVr/iris-fabric-1.10.7+mc1.21.11.jar"
|
||||||
})
|
"https://cdn.modrinth.com/data/AANobbMI/versions/UddlN6L4/sodium-fabric-0.8.7+mc1.21.11.jar"
|
||||||
|
"https://cdn.modrinth.com/data/gvQqBUqZ/versions/Ow7wA0kG/lithium-fabric-0.21.4+mc1.21.11.jar"
|
||||||
(fetchurl {
|
"https://cdn.modrinth.com/data/5ZwdcRci/versions/QwkfUKSj/ImmediatelyFast-Fabric-1.14.2+1.21.11.jar"
|
||||||
name = "baritone.jar";
|
"https://cdn.modrinth.com/data/NNAgCjsB/versions/SK12FGQf/entityculling-fabric-1.10.0-mc1.21.11.jar"
|
||||||
url = "https://www.meteorclient.com/api/downloadBaritone";
|
"https://cdn.modrinth.com/data/uXXizFIs/versions/Ii0gP3D8/ferritecore-8.2.0-fabric.jar"
|
||||||
sha256 = "sha256:0izys47kvqzhnds63kbxiifn8fsd8i9slzkhv91whwxp0183pf80";
|
"https://cdn.modrinth.com/data/LQ3K71Q1/versions/PUe5Asxs/dynamic-fps-3.11.4+minecraft-1.21.11-fabric.jar"
|
||||||
})
|
# "https://cdn.modrinth.com/data/ZP7xHXtw/versions/TCSbq6jC/rrlsFabric-5.1.15+mc.1.21.11.jar"
|
||||||
*/
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "modmenu.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/mOgUt4GM/versions/Tyk71iSw/modmenu-17.0.0.jar";
|
|
||||||
sha256 = "sha256:0a2i5hl77bcw33m1h51y1dxrk7bbkj8fv0rp8w6y78d43ibwkwlm";
|
|
||||||
})
|
|
||||||
|
|
||||||
/*
|
|
||||||
(fetchurl {
|
|
||||||
name = "distant-horizons.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/uCdwusMi/versions/GT3Bm3GN/DistantHorizons-2.4.5-b-1.21.11-fabric-neoforge.jar";
|
|
||||||
sha256 = "sha256:0gxwhvji4k0xnzidwrvlndh81r64n6i24v253grbxxamgshwg53n";
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "voxy.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/fxxUqruK/versions/H3w2nVdU/voxy-0.2.16-beta%2B1.21.11.jar";
|
|
||||||
sha256 = "sha256:02z1cr7ccdss2ckgha7v89gsq65p2ibrcx8h9q3drxd4ck7jd0kz";
|
|
||||||
})
|
|
||||||
|
|
||||||
/*
|
|
||||||
(fetchurl {
|
|
||||||
name = "nvidium.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/SfMw2IZN/versions/4x9ci9sF/nvidium-0.4.3-beta13-1.21.11.jar";
|
|
||||||
sha256 = "sha256:0kdhz92lms2ghmcpzn1gj9rblh958bhic641jpvpkgn0rs70w54r";
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "iris.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/YL57xq9U/versions/fDpuVzVr/iris-fabric-1.10.7+mc1.21.11.jar";
|
|
||||||
sha256 = "sha256:06fb6r22gnsxnv2w0sgvfnsj6fk3a7jcxls7z14imjc9h6hmviaq";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "sodium.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/AANobbMI/versions/UddlN6L4/sodium-fabric-0.8.7+mc1.21.11.jar";
|
|
||||||
sha256 = "sha256:10rrqnyn8mb14b1k3ks84g6033zkkn94fwvyyflaiajhnf3ax3y0";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "lithium.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/gvQqBUqZ/versions/Ow7wA0kG/lithium-fabric-0.21.4+mc1.21.11.jar";
|
|
||||||
sha256 = "sha256:12y704i98rf0xb438f72hi0aqhsi35jxwjs2575vsg5lllfw8dai";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "immediatelyfast.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/5ZwdcRci/versions/QwkfUKSj/ImmediatelyFast-Fabric-1.14.2+1.21.11.jar";
|
|
||||||
sha256 = "sha256:1248yg69f5d232qn138xlcsdmbs2yj3gdjx9zl53v19c1j326pgb";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "entity-culling.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/NNAgCjsB/versions/SK12FGQf/entityculling-fabric-1.10.0-mc1.21.11.jar";
|
|
||||||
sha256 = "sha256:0iws5ql4k542lr4psrcw9hj5z4zz81218ywnpsl77zj8wnwm4l1d";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "ferrite-core.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/uXXizFIs/versions/Ii0gP3D8/ferritecore-8.2.0-fabric.jar";
|
|
||||||
sha256 = "sha256:05f7q9jac16syfnahd6r4kx3aqm4i580y623gk6810plrdhdfszp";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "dynamic-fps.jar";
|
|
||||||
url = "https://cdn.modrinth.com/data/LQ3K71Q1/versions/PUe5Asxs/dynamic-fps-3.11.4+minecraft-1.21.11-fabric.jar";
|
|
||||||
sha256 = "sha256:13dh0226f6j70ak752fj8s00hmrx175v9607plf4rhia9plqy3kx";
|
|
||||||
})
|
|
||||||
|
|
||||||
# (fetchurl {
|
|
||||||
# name = "removing-loading-screens.jar";
|
|
||||||
# url = "https://cdn.modrinth.com/data/ZP7xHXtw/versions/TCSbq6jC/rrlsFabric-5.1.15+mc.1.21.11.jar";
|
|
||||||
# sha256 = "sha256:16dkj8baa6xn47n9alzy4104wz6z4zp719dxwv5wm96g2wkp1z57";
|
|
||||||
# })
|
|
||||||
];
|
];
|
||||||
|
|
||||||
resourcePacks = [
|
resourcePacks = fetch [
|
||||||
(fetchurl {
|
"https://cdn.modrinth.com/data/BaY1UdGV/versions/UjQJb5zE/Unique%20Dark%20-%20Lite%20-%201.20.2-26.x.zip"
|
||||||
name = "unique-dark.zip";
|
"https://cdn.modrinth.com/data/S3nUv9ws/versions/znzS3kCV/Catppuccin%20Mocha%20Blue.zip"
|
||||||
url = "https://cdn.modrinth.com/data/BaY1UdGV/versions/UjQJb5zE/Unique%20Dark%20-%20Lite%20-%201.20.2-26.x.zip";
|
|
||||||
sha256 = "sha256:19cv5q8pnvxkf96lazg8angbfqwkxag8qsxk31cv487jq99kl621";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchurl {
|
|
||||||
name = "catppuccin.zip";
|
|
||||||
url = "https://cdn.modrinth.com/data/S3nUv9ws/versions/znzS3kCV/Catppuccin%20Mocha%20Blue.zip";
|
|
||||||
sha256 = "sha256:0w56gkyavz0gpffxs1gbp9676bwgvl845h56wc1x3qjba1nm8a5n";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
shaderPacks = [
|
shaderPacks = fetch [
|
||||||
(fetchurl {
|
"https://cdn.modrinth.com/data/HVnmMxH1/versions/836bPNGo/ComplementaryReimagined_r5.7.1.zip"
|
||||||
name = "complementary-shaders.zip";
|
|
||||||
url = "https://cdn.modrinth.com/data/HVnmMxH1/versions/836bPNGo/ComplementaryReimagined_r5.7.1.zip";
|
|
||||||
sha256 = "sha256:1w33kyknwc0qsi6l0saww906iwi9d3hkn0nm7hnl4bc3lws0d8i4";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
appArgs = [
|
appArgs = [
|
||||||
"--gameDir"
|
"--gameDir"
|
||||||
"/home/bug/.local/share/minecraft"
|
"${home}/.local/share/minecraft"
|
||||||
];
|
];
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
@@ -143,12 +65,12 @@
|
|||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram $out/bin/minecraft \
|
wrapProgram $out/bin/minecraft \
|
||||||
--set XDG_DATA_HOME "/home/bug/.local/share/minecraft"
|
--set XDG_DATA_HOME "${home}/.local/share/minecraft"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
users.users.bug.packages = [ minecraft ];
|
home.packages = [ minecraft ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
{ ... }: {
|
{
|
||||||
den.aspects.polytoria = {
|
den.aspects.software.gaming.nixos = { pkgs, ... }: {
|
||||||
nixos = { pkgs, ... }: {
|
services.flatpak.packages = [
|
||||||
services.flatpak.packages = [
|
{
|
||||||
{
|
appId = "com.polytoria.launcher";
|
||||||
appId = "com.polytoria.launcher";
|
sha256 = "sha256-VjhNiJfSdCtlH2SuP3Mn8jjOrx5xcOqhtDKaWYIwxYg=";
|
||||||
|
bundle = "${pkgs.fetchurl {
|
||||||
|
url = "https://github.com/4DBug/poly/releases/download/poly/poly.flatpak";
|
||||||
sha256 = "sha256-VjhNiJfSdCtlH2SuP3Mn8jjOrx5xcOqhtDKaWYIwxYg=";
|
sha256 = "sha256-VjhNiJfSdCtlH2SuP3Mn8jjOrx5xcOqhtDKaWYIwxYg=";
|
||||||
bundle = "${pkgs.fetchurl {
|
}}";
|
||||||
url = "https://github.com/4DBug/poly/releases/download/poly/poly.flatpak";
|
}
|
||||||
sha256 = "sha256-VjhNiJfSdCtlH2SuP3Mn8jjOrx5xcOqhtDKaWYIwxYg=";
|
];
|
||||||
}}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.roblox = {
|
|
||||||
nixos = {
|
|
||||||
services.flatpak.packages = [
|
|
||||||
"org.vinegarhq.Sober"
|
|
||||||
# "org.vinegarhq.Vinegar"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.star-citizen = {
|
flake-file.inputs = {
|
||||||
|
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||||
|
nix-citizen = {
|
||||||
|
url = "github:LovingMelody/nix-citizen";
|
||||||
|
inputs.nix-gaming.follows = "nix-gaming";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
den.aspects.software.gaming = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
imports = [ inputs.nix-citizen.nixosModules.default ];
|
imports = [ inputs.nix-citizen.nixosModules.default ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ inputs, ... }: {
|
{ den, inputs, ... }: {
|
||||||
den.aspects.steam = {
|
flake-file.inputs.millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
||||||
|
den.aspects.software.gaming = {
|
||||||
|
includes = [ (den.batteries.unfree [ "steam" "steam-unwrapped" ]) ];
|
||||||
|
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
nixpkgs.overlays = [ inputs.millennium.overlays.default ];
|
nixpkgs.overlays = [ inputs.millennium.overlays.default ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
den.aspects.beets = {
|
den.aspects.software.music = {
|
||||||
homeManager = { pkgs, ... }: {
|
homeManager = { pkgs, config, ... }: {
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
beets
|
beets
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
format: opus
|
format: opus
|
||||||
formats:
|
formats:
|
||||||
opus: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest
|
opus: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest
|
||||||
dest: /home/bug/Music
|
dest: ${config.home.homeDirectory}/Music
|
||||||
|
|
||||||
fetchart:
|
fetchart:
|
||||||
auto: yes
|
auto: yes
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
{ ... }: {
|
{ den, ... }: {
|
||||||
den.aspects.player = {
|
den.aspects.software.music = {
|
||||||
nixos = { pkgs, ... }: {
|
includes = [ den.aspects.services.mpd ];
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
|
homeManager = { pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
euphonica
|
euphonica
|
||||||
rhythmbox
|
rhythmbox
|
||||||
kew
|
kew
|
||||||
|
nicotine-plus
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nixos = {
|
||||||
services.flatpak.packages = [
|
services.flatpak.packages = [
|
||||||
"org.pipewire.Helvum"
|
"org.pipewire.Helvum"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{ den, ... }: {
|
|
||||||
den.aspects.music = {
|
|
||||||
includes = with den.aspects; [ beets player nicotine mpd ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.nicotine = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
nicotine-plus
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,14 @@
|
|||||||
{ ... }: {
|
{
|
||||||
den.aspects.sshuttle = {
|
den.aspects.software.net = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
python3
|
python3
|
||||||
sshuttle
|
sshuttle
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
homeManager = { pkgs, ... }: {
|
||||||
|
home.packages = [ pkgs.fragments ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.fetch = {
|
flake-file.inputs.fetch.url = "github:areofyl/fetch";
|
||||||
homeManager = { ... }: {
|
den.aspects.software.shell = {
|
||||||
|
homeManager = {
|
||||||
imports = [ inputs.fetch.homeManagerModules.default ];
|
imports = [ inputs.fetch.homeManagerModules.default ];
|
||||||
|
|
||||||
programs.fetch = {
|
programs.fetch = {
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.mail = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
geary
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.matrix-client = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
fractal
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.nixcord = {
|
flake-file.inputs.nixcord.url = "github:FlameFlag/nixcord";
|
||||||
nixos = {
|
den.aspects.software.social = {
|
||||||
|
nixos = { user, ... }: {
|
||||||
imports = [ inputs.nixcord.nixosModules.nixcord ];
|
imports = [ inputs.nixcord.nixosModules.nixcord ];
|
||||||
|
|
||||||
programs.nixcord = {
|
programs.nixcord = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "bug";
|
user = user.userName;
|
||||||
|
|
||||||
discord.enable = false;
|
discord.enable = false;
|
||||||
vesktop.enable = true;
|
vesktop.enable = true;
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{ den, ... }: {
|
|
||||||
den.aspects.social = {
|
|
||||||
includes = with den.aspects; [ nixcord matrix-client mail ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.desktop-utils = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
file-roller
|
|
||||||
wl-screenrec
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
obsidian
|
|
||||||
impression
|
|
||||||
kooha
|
|
||||||
loupe
|
|
||||||
authenticator
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ inputs, ... }: {
|
|
||||||
den.aspects.ghostty = {
|
|
||||||
homeManager = { ... }: {
|
|
||||||
programs.ghostty = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
window-decoration = "none";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
den.aspects.system-utils = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
gnome-boxes
|
|
||||||
pulseaudioFull
|
|
||||||
firmware-updater
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
mission-center
|
|
||||||
baobab
|
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
ydotool.enable = true;
|
|
||||||
|
|
||||||
virt-manager.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
den.aspects.torrent = {
|
|
||||||
nixos = { pkgs, ... }: {
|
|
||||||
users.users.bug.packages = with pkgs; [
|
|
||||||
fragments
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{ den, ... }: {
|
|
||||||
den.aspects.utilities = {
|
|
||||||
includes = with den.aspects; [ system-utils desktop-utils fonts sshuttle torrent cad ghostty ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.alc897 = {
|
den.aspects.system.audio.alc897 = {
|
||||||
nixos = {
|
nixos = {
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options snd-hda-intel model=alc897-fixup
|
options snd-hda-intel model=alc897-fixup
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
den.aspects.audio = {
|
den.aspects.system.audio = {
|
||||||
nixos = {
|
nixos = { pkgs, ... }: {
|
||||||
|
environment.systemPackages = [ pkgs.pulseaudioFull ];
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.boot = {
|
den.aspects.system.boot = {
|
||||||
nixos = {
|
nixos = {
|
||||||
boot = {
|
boot = {
|
||||||
# kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
|
# kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.kernel = {
|
flake-file.inputs.nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||||
|
den.aspects.system.kernel = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
|
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.locale = {
|
den.aspects.system.locale = {
|
||||||
nixos = {
|
nixos = {
|
||||||
time.timeZone = "America/Chicago";
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.security = {
|
den.aspects.system.security = {
|
||||||
nixos = {
|
nixos = {
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.swap = {
|
den.aspects.system.swap = {
|
||||||
nixos = {
|
nixos = {
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"fs.file-max" = 524288;
|
"fs.file-max" = 524288;
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
{
|
{
|
||||||
den.aspects.virtualisation = {
|
den.aspects.system.virtualisation = {
|
||||||
nixos = {
|
nixos = { pkgs, ... }: {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
libvirtd.enable = true;
|
libvirtd.enable = true;
|
||||||
|
|
||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.gnome-boxes ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
{
|
||||||
den.aspects.nix-ld = {
|
den.aspects.system.compat = {
|
||||||
nixos =
|
nixos =
|
||||||
{ pkgs, options, ... }:
|
{ pkgs, options, ... }:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,19 +1,12 @@
|
|||||||
{
|
{
|
||||||
den.aspects.cosmic = { host, ... }: {
|
den.aspects.system.desktop.cosmic = {
|
||||||
nixos = { lib, pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
services = {
|
services = {
|
||||||
greetd.enable = true;
|
greetd.enable = true;
|
||||||
|
|
||||||
system76-scheduler.enable = true;
|
system76-scheduler.enable = true;
|
||||||
|
|
||||||
displayManager = {
|
displayManager.cosmic-greeter.enable = true;
|
||||||
cosmic-greeter.enable = true;
|
|
||||||
|
|
||||||
autoLogin = {
|
|
||||||
enable = host.name == "box";
|
|
||||||
user = "bug";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
desktopManager.cosmic.enable = true;
|
desktopManager.cosmic.enable = true;
|
||||||
};
|
};
|
||||||
@@ -23,9 +16,6 @@
|
|||||||
cosmic-ext-calculator
|
cosmic-ext-calculator
|
||||||
cosmic-ext-tweaks
|
cosmic-ext-tweaks
|
||||||
cosmic-screenshot
|
cosmic-screenshot
|
||||||
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
xdg-desktop-portal-cosmic
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.neu = {
|
flake-file.inputs.neu-nix = {
|
||||||
|
url = "github:ricardomaps/neu-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.system.desktop.neu = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
nixpkgs.overlays = [ inputs.neu-nix.overlays.default ];
|
nixpkgs.overlays = [ inputs.neu-nix.overlays.default ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.niri = {
|
flake-file.inputs.niri.url = "github:sodiboo/niri-flake";
|
||||||
|
den.aspects.system.desktop.niri = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ inputs, ...}: {
|
{ inputs, ...}: {
|
||||||
den.aspects.noctalia = {
|
flake-file.inputs.noctalia = {
|
||||||
|
url = "github:noctalia-dev/noctalia";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.system.desktop.noctalia = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
imports = [ inputs.noctalia.nixosModules.default ];
|
imports = [ inputs.noctalia.nixosModules.default ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ inputs, ...}: {
|
{ inputs, ...}: {
|
||||||
den.aspects.umbriel = {
|
flake-file.inputs.umbriel = {
|
||||||
|
url = "git+https://github.com/noctalia-dev/umbriel";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.system.desktop.umbriel = {
|
||||||
/*nixos = { pkgs, ... }: {
|
/*nixos = { pkgs, ... }: {
|
||||||
imports = [ inputs.umbriel.nixosModules.default ];
|
imports = [ inputs.umbriel.nixosModules.default ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ inputs, lib, ... }: {
|
{ inputs, lib, ... }: {
|
||||||
den.aspects.flatpak = {
|
flake-file.inputs.nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||||
nixos = { ... }: {
|
den.aspects.system.flatpak = {
|
||||||
|
nixos = {
|
||||||
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
|
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
|
||||||
|
|
||||||
services.flatpak = {
|
services.flatpak = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
{
|
||||||
den.aspects.fonts = {
|
den.aspects.system.fonts = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
fonts = {
|
fonts = {
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.amdgpu = {
|
den.aspects.system.graphics.amdgpu = {
|
||||||
nixos = {
|
nixos = {
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
{
|
{ den, ... }: {
|
||||||
den.aspects.nvidia = {
|
den.aspects.system.graphics.nvidia = {
|
||||||
|
includes = [ (den.batteries.unfree [ "nvidia-x11" "nvidia-settings" "nvidia-kernel-modules" ]) ];
|
||||||
|
|
||||||
nixos = { pkgs, config, ... }: {
|
nixos = { pkgs, config, ... }: {
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ inputs, ...}: {
|
{ inputs, ...}: {
|
||||||
den.aspects.autocpufreq = {
|
flake-file.inputs.auto-cpufreq = {
|
||||||
|
url = "github:AdnanHodzic/auto-cpufreq";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.system.hardware.autocpufreq = {
|
||||||
nixos = {
|
nixos = {
|
||||||
imports = [ inputs.auto-cpufreq.nixosModules.default ];
|
imports = [ inputs.auto-cpufreq.nixosModules.default ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.janitor-backend = {
|
den.aspects.system.janitor = {
|
||||||
nixos = { pkgs, lib, config, ... }:
|
nixos = { pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.janitor;
|
cfg = config.services.janitor;
|
||||||
@@ -157,7 +157,6 @@
|
|||||||
|
|
||||||
user = lib.mkOption {
|
user = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "bug";
|
|
||||||
description = "User account the janitor service runs as.";
|
description = "User account the janitor service runs as.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{ den, ... }: {
|
{
|
||||||
den.aspects.janitor = {
|
den.aspects.system.janitor = {
|
||||||
includes = with den.aspects; [ janitor-backend ];
|
nixos = { host, ... }: {
|
||||||
|
|
||||||
nixos = {
|
|
||||||
services.janitor = {
|
services.janitor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
user = host.owner;
|
||||||
interval = "1min";
|
interval = "1min";
|
||||||
gracePeriod = 60;
|
gracePeriod = 60;
|
||||||
watchedDirs = [ "~/Downloads" ];
|
watchedDirs = [ "~/Downloads" ];
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
{
|
{ den, ... }: {
|
||||||
den.aspects.cloudflare-warp = {
|
den.aspects.system.network.cloudflare-warp = {
|
||||||
|
includes = [ (den.batteries.unfree [ "cloudflare-warp" ]) ];
|
||||||
|
|
||||||
nixos = {
|
nixos = {
|
||||||
services.cloudflare-warp = {
|
services.cloudflare-warp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.dns = {
|
den.aspects.system.network.dns = {
|
||||||
nixos = { config, lib, ... }: {
|
nixos = { config, lib, ... }: {
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.openssh = {
|
den.aspects.system.network.openssh = {
|
||||||
nixos = {
|
nixos = {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.openvpn = {
|
den.aspects.system.network.openvpn = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
networking.networkmanager = {
|
networking.networkmanager = {
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
den.aspects.syncthing = {
|
den.aspects.system.network.syncthing = {
|
||||||
homeManager = let
|
homeManager = { config, ... }: let
|
||||||
devices = ["desktop" "laptop" "server"];
|
devices = ["desktop" "laptop" "server"];
|
||||||
|
|
||||||
mkFolder = path: {
|
mkFolder = path: {
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
overrideDevices = true;
|
overrideDevices = true;
|
||||||
overrideFolders = true;
|
overrideFolders = true;
|
||||||
|
|
||||||
key = "/home/bug/.syncthing/key.pem";
|
key = "${config.home.homeDirectory}/.syncthing/key.pem";
|
||||||
cert = "/home/bug/.syncthing/cert.pem";
|
cert = "${config.home.homeDirectory}/.syncthing/cert.pem";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
devices = {
|
devices = {
|
||||||
@@ -25,20 +25,20 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
folders = {
|
folders = {
|
||||||
"Archives" = mkFolder "/home/bug/Archives";
|
"Archives" = mkFolder "${config.home.homeDirectory}/Archives";
|
||||||
"Software" = mkFolder "/home/bug/Software";
|
"Software" = mkFolder "${config.home.homeDirectory}/Software";
|
||||||
"Scripts" = mkFolder "/home/bug/Scripts";
|
"Scripts" = mkFolder "${config.home.homeDirectory}/Scripts";
|
||||||
"Projects" = mkFolder "/home/bug/Projects";
|
"Projects" = mkFolder "${config.home.homeDirectory}/Projects";
|
||||||
"Documents" = mkFolder "/home/bug/Documents";
|
"Documents" = mkFolder "${config.home.homeDirectory}/Documents";
|
||||||
"Downloads" = mkFolder "/home/bug/Downloads";
|
"Downloads" = mkFolder "${config.home.homeDirectory}/Downloads";
|
||||||
"Pictures" = mkFolder "/home/bug/Pictures";
|
"Pictures" = mkFolder "${config.home.homeDirectory}/Pictures";
|
||||||
"Videos" = mkFolder "/home/bug/Videos";
|
"Videos" = mkFolder "${config.home.homeDirectory}/Videos";
|
||||||
# "Music" = mkFolder "/home/bug/Music";
|
# "Music" = mkFolder "${config.home.homeDirectory}/Music";
|
||||||
"nix" = mkFolder "/home/bug/nix";
|
"nix" = mkFolder "${config.home.homeDirectory}/nix";
|
||||||
"hytale" = mkFolder "/home/bug/.local/share/Hytale/UserData/Saves";
|
"hytale" = mkFolder "${config.home.homeDirectory}/.local/share/Hytale/UserData/Saves";
|
||||||
"ssh" = mkFolder "/home/bug/.ssh";
|
"ssh" = mkFolder "${config.home.homeDirectory}/.ssh";
|
||||||
#"cloudflared" = mkFolder "/home/bug/.cloudflared";
|
#"cloudflared" = mkFolder "${config.home.homeDirectory}/.cloudflared";
|
||||||
"copyparty" = mkFolder "/home/bug/copyparty";
|
"copyparty" = mkFolder "${config.home.homeDirectory}/copyparty";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
den.aspects.tailscale = {
|
den.aspects.system.network.tailscale = {
|
||||||
nixos = {
|
nixos = {
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
accent = "mauve";
|
accent = "mauve";
|
||||||
in {
|
in {
|
||||||
den.aspects.catppuccin = {
|
flake-file.inputs.catppuccin.url = "github:catppuccin/nix";
|
||||||
|
den.aspects.system.theme.catppuccin = {
|
||||||
nixos = {
|
nixos = {
|
||||||
imports = [ inputs.catppuccin.nixosModules.catppuccin ];
|
imports = [ inputs.catppuccin.nixosModules.catppuccin ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
den.aspects.stylix = let
|
flake-file.inputs.stylix = {
|
||||||
|
url = "github:nix-community/stylix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
den.aspects.system.theme.stylix = let
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
base00 = "1E1E2E";
|
base00 = "1E1E2E";
|
||||||
base01 = "181825";
|
base01 = "181825";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ den, ... }: {
|
{ den, lib, ... }: {
|
||||||
den.aspects.bug = {
|
den.aspects.bug = {
|
||||||
includes = [
|
includes = [
|
||||||
den.batteries.host-aspects
|
den.batteries.host-aspects
|
||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
homeManager = {
|
homeManager = {
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
home.homeDirectory = lib.mkDefault "/home/bug";
|
||||||
|
home.username = lib.mkDefault "bug";
|
||||||
};
|
};
|
||||||
|
|
||||||
user.extraGroups = [ "networkmanager" "wheel" "input" "audio" "video" "libvirtd" "ydotool" "dialout" ];
|
user.extraGroups = [ "networkmanager" "wheel" "input" "audio" "video" "libvirtd" "ydotool" "dialout" ];
|
||||||
|
|||||||
Reference in new issue
Block a user