Compare commits
2 Commits
1b9322dd96
...
6b5e71dd6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b5e71dd6c | ||
|
|
ca84fd5165 |
@@ -2,4 +2,4 @@
|
|||||||
# Do not delete.
|
# Do not delete.
|
||||||
|
|
||||||
folderID: nix
|
folderID: nix
|
||||||
created: 2026-01-29T23:05:44-06:00
|
created: 2026-01-29T23:06:32-06:00
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
den.aspects.box = {
|
den.aspects.box = {
|
||||||
includes = with den.aspects; [
|
includes = with den.aspects; [
|
||||||
den.default
|
den.default
|
||||||
den.provides.home-manager
|
# den.provides.home-manager
|
||||||
syncthing
|
syncthing
|
||||||
fish
|
fish
|
||||||
|
|
||||||
cloudflared
|
#cloudflared
|
||||||
searxng
|
searxng
|
||||||
copyparty
|
copyparty
|
||||||
glances
|
glances
|
||||||
@@ -20,6 +20,14 @@
|
|||||||
dns
|
dns
|
||||||
openssh
|
openssh
|
||||||
gitea
|
gitea
|
||||||
|
|
||||||
|
(tunnel 3001 "tvtun")
|
||||||
|
(tunnel 8888 "search")
|
||||||
|
(tunnel 3210 "files")
|
||||||
|
(tunnel 3030 "tube")
|
||||||
|
(tunnel 8975 "reddit")
|
||||||
|
(tunnel 3002 "git")
|
||||||
|
(tunnel 61208 "monitor")
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = {
|
nixos = {
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
|
|
||||||
{ den, ... }: {
|
{ den, ... }: {
|
||||||
den.aspects.laptop = {
|
den.aspects.laptop = {
|
||||||
includes = [
|
includes = with den.aspects; [
|
||||||
den.default
|
den.default
|
||||||
<amdgpu>
|
den.aspects.amdgpu
|
||||||
<cosmic>
|
cosmic
|
||||||
<firefox>
|
firefox
|
||||||
<audio>
|
audio
|
||||||
|
|
||||||
den.provides.home-manager
|
den.provides.home-manager
|
||||||
<stylix>
|
stylix
|
||||||
<syncthing>
|
syncthing
|
||||||
<swap>
|
swap
|
||||||
<cloudflare-warp>
|
cloudflare-warp
|
||||||
<packages>
|
packages
|
||||||
<development>
|
development
|
||||||
<cad>
|
cad
|
||||||
<mpd>
|
mpd
|
||||||
<virtualisation>
|
virtualisation
|
||||||
<flatpak>
|
flatpak
|
||||||
<fish>
|
fish
|
||||||
<dns>
|
dns
|
||||||
<openssh>
|
openssh
|
||||||
<beets>
|
beets
|
||||||
];
|
];
|
||||||
|
|
||||||
nixos = {
|
nixos = {
|
||||||
@@ -32,6 +32,8 @@
|
|||||||
HandleLidSwitch = "ignore";
|
HandleLidSwitch = "ignore";
|
||||||
HandleLidSwitchDocked = "ignore";
|
HandleLidSwitchDocked = "ignore";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.bug.extraGroups = [ "networkmanager" "wheel" "audio" "video" "libvirtd" "ydotool" "dialout" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,32 +1,30 @@
|
|||||||
{
|
{ den, ... }: let
|
||||||
den.aspects.cloudflared = {
|
tunnel_uuid = "4118935e-359b-4dd2-95bd-eb27f7b0c5bb";
|
||||||
nixos = { pkgs, ...}: let
|
domain = "bug.tools";
|
||||||
TUNNEL_UUID = "4118935e-359b-4dd2-95bd-eb27f7b0c5bb";
|
creds = "/home/bug/.cloudflared/${tunnel_uuid}.json";
|
||||||
in {
|
|
||||||
|
tunnel = port: subdomain: { pkgs, ... }: {
|
||||||
environment.systemPackages = [ pkgs.cloudflared ];
|
environment.systemPackages = [ pkgs.cloudflared ];
|
||||||
|
|
||||||
environment.etc."cloudflared/${TUNNEL_UUID}.json".source = "/home/bug/.cloudflared/${TUNNEL_UUID}.json";
|
environment.etc."cloudflared/${tunnel_uuid}.json".source = creds;
|
||||||
|
|
||||||
services.cloudflared = {
|
services.cloudflared = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
tunnels."${TUNNEL_UUID}" = {
|
tunnels.${tunnel_uuid} = {
|
||||||
credentialsFile = "/etc/cloudflared/${TUNNEL_UUID}.json";
|
credentialsFile = "/etc/cloudflared/${tunnel_uuid}.json";
|
||||||
default = "http_status:404";
|
default = "http_status:404";
|
||||||
|
|
||||||
ingress = {
|
ingress = {
|
||||||
"tvtun.bug.tools" = "http://127.0.0.1:3001";
|
"${subdomain}.${domain}" = "http://127.0.0.1:${toString port}";
|
||||||
"search.bug.tools" = "http://127.0.0.1:8888";
|
|
||||||
"files.bug.tools" = "http://127.0.0.1:3210";
|
|
||||||
"tube.bug.tools" = "http://127.0.0.1:3030";
|
|
||||||
"monitor.bug.tools" = "http://127.0.0.1:61208";
|
|
||||||
"reddit.bug.tools" = "http://127.0.0.1:8975";
|
|
||||||
#"matrix.bug.tools" = "http://127.0.0.1:8008";
|
|
||||||
#"bug.tools" = "http://127.0.0.1:8080";
|
|
||||||
"git.bug.tools" = "http://127.0.0.1:3000";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
den.aspects.tunnel = port: subdomain: den.lib.parametric {
|
||||||
|
includes = [
|
||||||
|
(_: { nixos = tunnel port subdomain; })
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,16 +3,11 @@
|
|||||||
nixos = {
|
nixos = {
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
|
||||||
database = {
|
|
||||||
type = "sqlite3";
|
|
||||||
path = "/var/lib/gitea/gitea.db";
|
|
||||||
};
|
|
||||||
|
|
||||||
server = {
|
database.type = "mysql";
|
||||||
domain = "example.com";
|
|
||||||
httpPort = 3000;
|
settings.service = {
|
||||||
};
|
DISABLE_REGISTRATION = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{ den, ...}: {
|
||||||
den.aspects.glances = {
|
den.aspects.glances = {
|
||||||
nixos = { pkgs, ... }: {
|
nixos = { pkgs, ... }: {
|
||||||
environment.systemPackages = [ pkgs.glances ];
|
environment.systemPackages = [ pkgs.glances ];
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
den.aspects.mailserver = {
|
den.aspects.mailserver = {
|
||||||
nixos = {
|
nixos = {
|
||||||
imports = [
|
imports = [
|
||||||
(builtins.fetchTarball {
|
(fetchTarball {
|
||||||
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/master.tar.gz";
|
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/master.tar.gz";
|
||||||
sha256 = "0rm5f749xakmkqrpkl5ay1pydbnlinr50pvwg1vm795js2infmj5";
|
sha256 = "0rm5f749xakmkqrpkl5ay1pydbnlinr50pvwg1vm795js2infmj5";
|
||||||
})
|
})
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
"matrix@bug.tools"
|
"matrix@bug.tools"
|
||||||
"fluxer@bug.tools"
|
"fluxer@bug.tools"
|
||||||
"git@bug.tools"
|
"git@bug.tools"
|
||||||
|
"contact@bug.tools"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
general:
|
general:
|
||||||
# Debug mode, only for development. Is overwritten by ${SEARXNG_DEBUG}
|
|
||||||
debug: false
|
debug: false
|
||||||
# displayed name
|
|
||||||
instance_name: "search.bug.tools"
|
instance_name: "search.bug.tools"
|
||||||
# For example: https://example.com/privacy
|
# For example: https://example.com/privacy
|
||||||
privacypolicy_url: false
|
privacypolicy_url: false
|
||||||
@@ -9,7 +7,7 @@ general:
|
|||||||
# use false to disable the donation link
|
# use false to disable the donation link
|
||||||
donation_url: false
|
donation_url: false
|
||||||
# mailto:contact@example.com
|
# mailto:contact@example.com
|
||||||
contact_url: false
|
contact_url: contact@bug.tools
|
||||||
# record stats
|
# record stats
|
||||||
enable_metrics: true
|
enable_metrics: true
|
||||||
# expose stats in open metrics format at /metrics
|
# expose stats in open metrics format at /metrics
|
||||||
|
|||||||
Reference in New Issue
Block a user