Compare commits
12 Commits
4e6834dfd9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| aef3408c86 | |||
| 8a9949ef67 | |||
| 7e45996692 | |||
| eaef3aec31 | |||
| a34551b0c1 | |||
| 09e1b22f5d | |||
| d112213b5d | |||
| ef706877d3 | |||
| bd5d90326e | |||
| cf8673aba2 | |||
| d748206937 | |||
| 0915389ca4 |
54
flake.lock
generated
54
flake.lock
generated
@@ -94,11 +94,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770476834,
|
"lastModified": 1776114641,
|
||||||
"narHash": "sha256-cyxgVsNfHnJ4Zn6G1EOzfTXbjTy7Ds9zMOsZaX7VZWs=",
|
"narHash": "sha256-VJMt3n9zGRzupzvlhcKIz4SpWflKh0rWfYTgmkmun0Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6cee0821577643e0b34e2c5d9a90d0b1b5cdca70",
|
"rev": "2de7205ce6e10b031151033e69b7ef89708dc282",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
"narHash": "sha256-YMLrcBpf0TR5r/eaqm8lxzFPap2TxCor0ZGcK3a7+b8=",
|
"narHash": "sha256-YMLrcBpf0TR5r/eaqm8lxzFPap2TxCor0ZGcK3a7+b8=",
|
||||||
"rev": "b90bf629bbd835e61f1317b99e12f8c831017006",
|
"rev": "b90bf629bbd835e61f1317b99e12f8c831017006",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/b90bf629bbd835e61f1317b99e12f8c831017006.tar.gz"
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/b90bf629bbd835e61f1317b99e12f8c831017006.tar.gz?rev=b90bf629bbd835e61f1317b99e12f8c831017006"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
@@ -150,11 +150,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768875255,
|
"lastModified": 1772550819,
|
||||||
"narHash": "sha256-H2fNon/y6RH+PlMxGY6X/7Qvty+LVCrjCkw8Ee15Iis=",
|
"narHash": "sha256-K6TvujvSSv+pDPAXqdabd7g9wFIkOdvHOeeFohou42A=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "a82da456bdd9064a0395252935a66c8e2864a4db",
|
"rev": "cce76e2f8f4372dd3391a76daa53c1a89b89bc40",
|
||||||
"revCount": 89,
|
"revCount": 94,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.syzygial.cc/Syzygial/EmacsConfig.git"
|
"url": "https://git.syzygial.cc/Syzygial/EmacsConfig.git"
|
||||||
},
|
},
|
||||||
@@ -171,11 +171,11 @@
|
|||||||
"spectrum": "spectrum"
|
"spectrum": "spectrum"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770310890,
|
"lastModified": 1775996588,
|
||||||
"narHash": "sha256-lyWAs4XKg3kLYaf4gm5qc5WJrDkYy3/qeV5G733fJww=",
|
"narHash": "sha256-klBp+NIkJJtFHKFEHaMqwDHSK09UufDL6RJoxUZOL5Q=",
|
||||||
"owner": "astro",
|
"owner": "astro",
|
||||||
"repo": "microvm.nix",
|
"repo": "microvm.nix",
|
||||||
"rev": "68c9f9c6ca91841f04f726a298c385411b7bfcd5",
|
"rev": "c0a53823dbf7eb166c2fa7dc2d1e0d6cb2be7562",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -191,11 +191,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770184146,
|
"lastModified": 1775037210,
|
||||||
"narHash": "sha256-DsqnN6LvXmohTRaal7tVZO/AKBuZ02kPBiZKSU4qa/k=",
|
"narHash": "sha256-KM2WYj6EA7M/FVZVCl3rqWY+TFV5QzSyyGE2gQxeODU=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "0d7874ef7e3ba02d58bebb871e6e29da36fa1b37",
|
"rev": "06648f4902343228ce2de79f291dd5a58ee12146",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -223,11 +223,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770197578,
|
"lastModified": 1775710090,
|
||||||
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
|
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
|
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -239,11 +239,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769740369,
|
"lastModified": 1775888245,
|
||||||
"narHash": "sha256-xKPyJoMoXfXpDM5DFDZDsi9PHArf2k5BJjvReYXoFpM=",
|
"narHash": "sha256-nwASzrRDD1JBEu/o8ekKYEXm/oJW6EMCzCRdrwcLe90=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6308c3b21396534d8aaeac46179c14c439a89b8a",
|
"rev": "13043924aaa7375ce482ebe2494338e058282925",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -270,11 +270,11 @@
|
|||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770145881,
|
"lastModified": 1776119890,
|
||||||
"narHash": "sha256-ktjWTq+D5MTXQcL9N6cDZXUf9kX8JBLLBLT0ZyOTSYY=",
|
"narHash": "sha256-Zm6bxLNnEOYuS/SzrAGsYuXSwk3cbkRQZY0fJnk8a5M=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "17eea6f3816ba6568b8c81db8a4e6ca438b30b7c",
|
"rev": "d4971dd58c6627bfee52a1ad4237637c0a2fb0cd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -286,11 +286,11 @@
|
|||||||
"spectrum": {
|
"spectrum": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759482047,
|
"lastModified": 1772189877,
|
||||||
"narHash": "sha256-H1wiXRQHxxPyMMlP39ce3ROKCwI5/tUn36P8x6dFiiQ=",
|
"narHash": "sha256-i1p90Rgssb//aNiTDFq46ZG/fk3LmyRLChtp/9lddyA=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "c5d5786d3dc938af0b279c542d1e43bce381b4b9",
|
"rev": "fe39e122d898f66e89ffa17d4f4209989ccb5358",
|
||||||
"revCount": 996,
|
"revCount": 1255,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://spectrum-os.org/git/spectrum"
|
"url": "https://spectrum-os.org/git/spectrum"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
hardware.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -126,7 +126,8 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
|
|
||||||
screen
|
tmux
|
||||||
|
tio
|
||||||
btop
|
btop
|
||||||
htop
|
htop
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
authKeyFile = "/var/tailauth";
|
authKeyFile = "/var/tailauth";
|
||||||
extraUpFlags = ["--login-server" "${authServer}"];
|
extraUpFlags = ["--login-server" "${authServer}"];
|
||||||
};
|
};
|
||||||
|
# Resolves https://github.com/NixOS/nixpkgs/issues/430756
|
||||||
|
systemd.services.tailscaled-autoconnect.serviceConfig.Type = lib.mkForce "simple";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -59,19 +61,19 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.bridges = {
|
# networking.bridges = {
|
||||||
"br0" = {
|
# "br0" = {
|
||||||
interfaces = [];
|
# interfaces = [];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
networking.interfaces.br0.ipv4.addresses = [{
|
# networking.interfaces.br0.ipv4.addresses = [{
|
||||||
address = "10.0.0.1";
|
# address = "10.0.0.1";
|
||||||
prefixLength = 24;
|
# prefixLength = 24;
|
||||||
}];
|
# }];
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Check for hostBridge use vb instead of ve
|
# Check for hostBridge use vb instead of ve
|
||||||
internalInterfaces = (map (n: "vb-${n}") (attrNames cfg.containers)) ++ ["br0"];
|
internalInterfaces = (map (n: "ve-${n}") (attrNames cfg.containers));
|
||||||
externalInterface = "enp0s25";
|
externalInterface = "enp0s25";
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
FROM alpine:3.16
|
FROM alpine:3.16
|
||||||
RUN apk add --no-cache bash wireguard-tools jq curl git ncurses
|
RUN apk add --no-cache bash jq curl git ncurses \
|
||||||
|
bc \
|
||||||
|
coredns \
|
||||||
|
grep \
|
||||||
|
iproute2 \
|
||||||
|
iptables \
|
||||||
|
ip6tables \
|
||||||
|
iputils \
|
||||||
|
kmod \
|
||||||
|
net-tools \
|
||||||
|
nftables \
|
||||||
|
openresolv \
|
||||||
|
wireguard-tools
|
||||||
RUN git clone https://github.com/pia-foss/manual-connections /manual-connections
|
RUN git clone https://github.com/pia-foss/manual-connections /manual-connections
|
||||||
WORKDIR /manual-connections
|
WORKDIR /manual-connections
|
||||||
CMD bash -c "/manual-connections/run_setup.sh && watch -n 60 curl ip.me"
|
CMD bash -c "/manual-connections/run_setup.sh && watch -n 1800 curl ip.me"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"radarr"
|
"radarr"
|
||||||
"jellyseerr"
|
"jellyseerr"
|
||||||
"bazarr"
|
"bazarr"
|
||||||
"readarr"
|
# "readarr"
|
||||||
"prowlarr"
|
"prowlarr"
|
||||||
];
|
];
|
||||||
environment = {
|
environment = {
|
||||||
@@ -220,26 +220,26 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
readarr = {
|
# readarr = {
|
||||||
image = "linuxserver/readarr:nightly";
|
# image = "linuxserver/readarr:nightly";
|
||||||
volumes = [
|
# volumes = [
|
||||||
"${dataDir}:/data"
|
# "${dataDir}:/data"
|
||||||
"${configDir}/readarr:/config"
|
# "${configDir}/readarr:/config"
|
||||||
];
|
# ];
|
||||||
ports = [
|
# ports = [
|
||||||
"8787:8787"
|
# "8787:8787"
|
||||||
];
|
# ];
|
||||||
environment = baseEnv // {
|
# environment = baseEnv // {
|
||||||
|
#
|
||||||
};
|
# };
|
||||||
extraOptions = [
|
# extraOptions = [
|
||||||
"--pull=newer"
|
# "--pull=newer"
|
||||||
"--network" "container:wireguard"
|
# "--network" "container:wireguard"
|
||||||
];
|
# ];
|
||||||
dependsOn = [
|
# dependsOn = [
|
||||||
"prowlarr"
|
# "prowlarr"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
prowlarr = {
|
prowlarr = {
|
||||||
image = "linuxserver/prowlarr:nightly";
|
image = "linuxserver/prowlarr:nightly";
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
# TODO: rename to emulation?
|
||||||
boot.binfmt.emulatedSystems = [
|
boot.binfmt.emulatedSystems = [
|
||||||
"riscv64-linux"
|
"riscv64-linux" "aarch64-linux"
|
||||||
];
|
];
|
||||||
boot.binfmt.preferStaticEmulators = true;
|
boot.binfmt.preferStaticEmulators = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = false;
|
||||||
|
|
||||||
settings.server = {
|
settings.server = {
|
||||||
http_addr = "0.0.0.0";
|
http_addr = "0.0.0.0";
|
||||||
|
|||||||
@@ -5,8 +5,9 @@
|
|||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostBridge = "br0";
|
#hostBridge = "br0";
|
||||||
localAddress = "10.0.0.${toString (10+n)}/24";
|
hostAddress = "10.${toString (10+n)}.0.0";
|
||||||
|
localAddress = "10.${toString (10+n)}.0.1";
|
||||||
|
|
||||||
# If true it registers a new node very time
|
# If true it registers a new node very time
|
||||||
# need to find where it stores the state
|
# need to find where it stores the state
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
# 7000 port addresses are for internal network
|
# 7000 port addresses are for internal network
|
||||||
port = 7000;
|
port = 7000;
|
||||||
|
address = "0.0.0.0"; # Access within nixos-containers
|
||||||
settings = {
|
settings = {
|
||||||
server_url = "https://headscale.syzygial.cc";
|
server_url = "https://headscale.syzygial.cc";
|
||||||
# TODO: Generate keys??
|
# TODO: Generate keys??
|
||||||
@@ -40,7 +41,7 @@
|
|||||||
services.caddy.virtualHosts = {
|
services.caddy.virtualHosts = {
|
||||||
"headscale.syzygial.cc" = {
|
"headscale.syzygial.cc" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy localhost:7000
|
reverse_proxy 0.0.0.0:7000
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ in {
|
|||||||
# .System - Whether the user is an official system user
|
# .System - Whether the user is an official system user
|
||||||
# .Webhook - Whether the user is a webhook and is not an application
|
# .Webhook - Whether the user is a webhook and is not an application
|
||||||
# .Application - Whether the user is an application
|
# .Application - Whether the user is an application
|
||||||
displayname_template = "{{if .Webhook}}Webhook{{else}}{{or .GlobalName .Username}}{{if .Bot}} (bot){{end}}{{end}}";
|
displayname_template = "{{if .Webhook}}Webhook{{else}}{{or .GlobalName .Username}}{{if .Bot}} (bot){{end}}{{end}} (Discord DM)";
|
||||||
# Displayname template for Discord channels (bridged as rooms, or spaces when type=4).
|
# Displayname template for Discord channels (bridged as rooms, or spaces when type=4).
|
||||||
# Available variables:
|
# Available variables:
|
||||||
# .Name - Channel name, or user displayname (pre-formatted with displayname_template) in DMs.
|
# .Name - Channel name, or user displayname (pre-formatted with displayname_template) in DMs.
|
||||||
@@ -202,7 +202,7 @@ in {
|
|||||||
# instead of users having to find an access token and run `login-matrix`
|
# instead of users having to find an access token and run `login-matrix`
|
||||||
# manually.
|
# manually.
|
||||||
login_shared_secret_map = {
|
login_shared_secret_map = {
|
||||||
"glia.club" = "$MAUTRIX_DISCORD_DOUBLE_PUPPET";
|
"glia.club" = "as_token:$MAUTRIX_DISCORD_DOUBLE_PUPPET";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The prefix for commands. Only required in non-management rooms.
|
# The prefix for commands. Only required in non-management rooms.
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ in {
|
|||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud32;
|
package = pkgs.nextcloud33;
|
||||||
hostName = "localhost";
|
hostName = "localhost";
|
||||||
settings = {
|
settings = {
|
||||||
trusted_domains = [
|
trusted_domains = [
|
||||||
@@ -41,7 +41,7 @@ in {
|
|||||||
objectstore.s3 = {
|
objectstore.s3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bucket = "nextcloud";
|
bucket = "nextcloud";
|
||||||
autocreate = false;
|
verify_bucket_exists = false;
|
||||||
key = "nextcloud";
|
key = "nextcloud";
|
||||||
secretFile = config.sops.secrets."nextcloud/s3secret".path;
|
secretFile = config.sops.secrets."nextcloud/s3secret".path;
|
||||||
region = "us-east-1";
|
region = "us-east-1";
|
||||||
@@ -78,7 +78,7 @@ in {
|
|||||||
ffmpeg_7-headless
|
ffmpeg_7-headless
|
||||||
# required for recognize app
|
# required for recognize app
|
||||||
nodejs_20 # runtime and installation requirement
|
nodejs_20 # runtime and installation requirement
|
||||||
nodejs_20.pkgs.node-pre-gyp # installation requirement
|
node-pre-gyp # installation requirement
|
||||||
util-linux # runtime requirement for taskset
|
util-linux # runtime requirement for taskset
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,10 +10,12 @@ in {
|
|||||||
SECRET_KEY = config.sops.secrets.tandoor-secret.path;
|
SECRET_KEY = config.sops.secrets.tandoor-secret.path;
|
||||||
DB_ENGINE = "django.db.backends.postgresql";
|
DB_ENGINE = "django.db.backends.postgresql";
|
||||||
POSTGRES_HOST = "127.0.0.1";
|
POSTGRES_HOST = "127.0.0.1";
|
||||||
POSTGRES_PORT = config.services.postgresql.port;
|
POSTGRES_PORT = config.services.postgresql.settings.port;
|
||||||
POSTGRES_USER = tandoor_user;
|
POSTGRES_USER = tandoor_user;
|
||||||
POSTGRES_DB = tandoor_user;
|
POSTGRES_DB = tandoor_user;
|
||||||
|
MEDIA_ROOT = "/var/lib/tandoor-recipes/media";
|
||||||
ENABLE_SIGNUP = "1";
|
ENABLE_SIGNUP = "1";
|
||||||
|
ALLOWED_HOSTS = "tandoor.syzygial.cc";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user