Compare commits
24
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63ed818794 | ||
|
|
d01b140ae0 | ||
|
|
ce09e8003e | ||
|
|
cbcf5a0c5b | ||
|
|
52b43a9b2b | ||
|
|
5c373880fd | ||
|
|
f7533dff9d | ||
|
|
88f7da1700 | ||
|
|
70f0812a8e | ||
|
|
277caf6375 | ||
|
|
e059576114 | ||
|
|
b6d7030967 | ||
|
|
d79e68fc0e | ||
|
|
88ddae75e0 | ||
|
|
a0e664f4f5 | ||
|
|
0270b6ed11
|
||
|
|
02a929a56d | ||
|
|
f981d6e7a0 | ||
|
|
5d9ca52386 | ||
|
|
ddc2499722 | ||
|
|
33eb968705 | ||
|
|
d01d0c4875 | ||
|
|
c26813c2b8 | ||
|
|
e9c5da2710 |
@@ -1,5 +1,5 @@
|
|||||||
# Disks
|
# Disks
|
||||||
The disks module can be used by importing `inputs.malobeo.nixosModules.malobeo.disko`
|
The disks module can be used by importing `inputs.self.nixosModules.malobeo.disko`
|
||||||
|
|
||||||
|
|
||||||
#### `let cfg = malobeo.disks`
|
#### `let cfg = malobeo.disks`
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Gitea-tanslator
|
# Gitea-tanslator
|
||||||
The module can be used by importing `inputs.malobeo.nixosModules.malobeo.gitea-translator`
|
The module can be used by importing `inputs.self.nixosModules.malobeo.gitea-translator`
|
||||||
|
|
||||||
This module starts a python server that fetches the gitea pull request api and translates it to a file that hydra understands.
|
This module starts a python server that fetches the gitea pull request api and translates it to a file that hydra understands.
|
||||||
To use, just set the parameters of the gitea server, then send a GET request to either `http://${host}:${port}/` or `http://${host}:${port}/gitea-pulls-sorted.json`
|
To use, just set the parameters of the gitea server, then send a GET request to either `http://${host}:${port}/` or `http://${host}:${port}/gitea-pulls-sorted.json`
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Initrd-ssh
|
# Initrd-ssh
|
||||||
The initssh module can be used by importing `inputs.malobeo.nixosModules.malobeo.initssh`
|
The initssh module can be used by importing `inputs.self.nixosModules.malobeo.initssh`
|
||||||
|
|
||||||
#### `let cfg = malobeo.initssh`
|
#### `let cfg = malobeo.initssh`
|
||||||
|
|
||||||
@@ -27,3 +27,13 @@ Run ` lspci -k | grep -iA4 ethernet `
|
|||||||
|
|
||||||
*Example:*
|
*Example:*
|
||||||
`[ "r8169" ]`
|
`[ "r8169" ]`
|
||||||
|
|
||||||
|
## cfg.ip
|
||||||
|
|
||||||
|
I hate DHCP! Set static ip or ip = hosts.malobeo.hosts.${hostname}.network.address;
|
||||||
|
|
||||||
|
*Default:*
|
||||||
|
`Null` - Will error when not set
|
||||||
|
|
||||||
|
*Example:*
|
||||||
|
`hosts.malobeo.hosts.fanny.network.address;`
|
||||||
Generated
+106
-7
@@ -78,6 +78,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gatekeeper": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
],
|
||||||
|
"pyproject-build-systems": "pyproject-build-systems",
|
||||||
|
"pyproject-nix": "pyproject-nix",
|
||||||
|
"uv2nix": "uv2nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1786138873,
|
||||||
|
"narHash": "sha256-+G/hTquaK4AjYxNSJTpcZXUEKxFDv9lOn3x+lHHTWJw=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "c5934d05c6f01c94c36221deb7ed4de03aa91ca1",
|
||||||
|
"revCount": 127,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.dynamicdiscord.de/malobeo/gatekeeper"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.dynamicdiscord.de/malobeo/gatekeeper"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -241,11 +264,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788187754,
|
"lastModified": 1792615934,
|
||||||
"narHash": "sha256-bu1QxmXKmPuvBLN7bHP355OV9Qo13x9WCiRDH62CqRM=",
|
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5dfba6236110080a54247d6460bc2ff5dda939cc",
|
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -255,11 +278,62 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"pyproject-build-systems": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"gatekeeper",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pyproject-nix": [
|
||||||
|
"gatekeeper",
|
||||||
|
"pyproject-nix"
|
||||||
|
],
|
||||||
|
"uv2nix": [
|
||||||
|
"gatekeeper",
|
||||||
|
"uv2nix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1776659114,
|
||||||
|
"narHash": "sha256-qapCOQmR++yZSY43dzrp3wCrkOTLpod+ONtJWBk6iKU=",
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "build-system-pkgs",
|
||||||
|
"rev": "ffaa2161dd5d63e0e94591f86b54fc239660fb2e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "build-system-pkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pyproject-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"gatekeeper",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1778901413,
|
||||||
|
"narHash": "sha256-GSKXTAnFqRAMlZkJrIPcQMYf+lpMr66K3i60mB9STvc=",
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "pyproject.nix",
|
||||||
|
"rev": "a228447c3e179d477c1b6246ef3efa8cfe3c469a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "pyproject.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"dns": "dns",
|
"dns": "dns",
|
||||||
"ep3-bs": "ep3-bs",
|
"ep3-bs": "ep3-bs",
|
||||||
|
"gatekeeper": "gatekeeper",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"mfsync": "mfsync",
|
"mfsync": "mfsync",
|
||||||
"microvm": "microvm",
|
"microvm": "microvm",
|
||||||
@@ -461,6 +535,31 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"uv2nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"gatekeeper",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pyproject-nix": [
|
||||||
|
"gatekeeper",
|
||||||
|
"pyproject-nix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1779269674,
|
||||||
|
"narHash": "sha256-P1LHCRdYpdtHAEzuEsNHrI6d9mVPl5a2fyFDZGHNVbI=",
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "uv2nix",
|
||||||
|
"rev": "69aec536f6d1acc415ed2e20299312802aba98c6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "uv2nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zineshop": {
|
"zineshop": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -469,11 +568,11 @@
|
|||||||
"utils": "utils_4"
|
"utils": "utils_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789131197,
|
"lastModified": 1792488750,
|
||||||
"narHash": "sha256-gpjhy2mIBt89oCVzoSXy8AgfAKjJ9Fi3u01CX09UTF4=",
|
"narHash": "sha256-VLBpNctawQ+Yd03hkfhNPUqQVXNCc7bc6Qhu7mwJvKM=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "38bcceb0e8b84d6dcd50d05683c71eea8d410479",
|
"rev": "7a8b9d4f3522c68cd15b21a1ec093c8c441775bf",
|
||||||
"revCount": 161,
|
"revCount": 162,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.dynamicdiscord.de/kalipso/zineshop"
|
"url": "https://git.dynamicdiscord.de/kalipso/zineshop"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -37,6 +37,11 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gatekeeper = {
|
||||||
|
url = "git+https://git.dynamicdiscord.de/malobeo/gatekeeper";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@@ -15,18 +15,17 @@ in
|
|||||||
sops.secrets.wg_private = {};
|
sops.secrets.wg_private = {};
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[ # Include the results of the hardware scan.
|
||||||
inputs.malobeo.nixosModules.malobeo.vpn
|
|
||||||
inputs.malobeo.nixosModules.malobeo.initssh
|
|
||||||
inputs.malobeo.nixosModules.malobeo.disko
|
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
inputs.malobeo.nixosModules.malobeo.backup
|
|
||||||
|
|
||||||
#./hardware-configuration.nix
|
#./hardware-configuration.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
|
inputs.self.nixosModules.malobeo.vpn
|
||||||
|
inputs.self.nixosModules.malobeo.initssh
|
||||||
|
inputs.self.nixosModules.malobeo.disko
|
||||||
|
inputs.self.nixosModules.malobeo.metrics
|
||||||
|
inputs.self.nixosModules.malobeo.users
|
||||||
|
inputs.self.nixosModules.malobeo.backup
|
||||||
./hydra.nix
|
./hydra.nix
|
||||||
./gitea_runner.nix
|
./gitea_runner.nix
|
||||||
];
|
];
|
||||||
@@ -73,6 +72,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
authorizedKeys = sshKeys.admins;
|
authorizedKeys = sshKeys.admins;
|
||||||
ethernetDrivers = ["e1000e"];
|
ethernetDrivers = ["e1000e"];
|
||||||
|
ip = hosts.malobeo.hosts.albert.network.address;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.malobeo.vpn = {
|
services.malobeo.vpn = {
|
||||||
@@ -87,6 +87,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.network.networks."05-unmanaged-docker" = {
|
||||||
|
matchConfig = { Name = "veth*"; Kind = "veth"; };
|
||||||
|
linkConfig = { Unmanaged = true; };
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" "i686-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" "i686-linux" ];
|
||||||
services.acpid.enable = true;
|
services.acpid.enable = true;
|
||||||
|
|||||||
@@ -15,11 +15,12 @@
|
|||||||
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
inputs.malobeo.nixosModules.malobeo.gitea-translator
|
inputs.self.nixosModules.malobeo.gitea-translator
|
||||||
];
|
];
|
||||||
|
|
||||||
services.malobeo.gitea-translator = {
|
services.malobeo.gitea-translator = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hydra = {
|
services.hydra = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ self, config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -22,8 +22,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
self.nixosModules.malobeo.users
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -2,18 +2,19 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
sshKeys = import ../ssh_keys.nix;
|
sshKeys = import ../ssh_keys.nix;
|
||||||
|
hosts = import ../hosts.nix {};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
inputs.malobeo.nixosModules.malobeo.disko
|
|
||||||
inputs.malobeo.nixosModules.malobeo.initssh
|
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
|
|
||||||
#./hardware-configuration.nix
|
#./hardware-configuration.nix
|
||||||
../modules/xserver.nix
|
../modules/xserver.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
|
inputs.self.nixosModules.malobeo.disko
|
||||||
|
inputs.self.nixosModules.malobeo.initssh
|
||||||
|
inputs.self.nixosModules.malobeo.users
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.autoUpdate = {
|
malobeo.autoUpdate = {
|
||||||
@@ -36,6 +37,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
authorizedKeys = sshKeys.admins;
|
authorizedKeys = sshKeys.admins;
|
||||||
ethernetDrivers = ["r8169"];
|
ethernetDrivers = ["r8169"];
|
||||||
|
ip = hosts.malobeo.hosts.bakunin.network.address;
|
||||||
};
|
};
|
||||||
|
|
||||||
malobeo.users.malobeo = true;
|
malobeo.users.malobeo = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, self, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -17,19 +17,14 @@ with lib;
|
|||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
self.nixosModules.malobeo.metrics
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
inputs.tasklist.nixosModules.malobeo-tasklist
|
inputs.tasklist.nixosModules.malobeo-tasklist
|
||||||
|
|
||||||
|
../modules/malobeo_user.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePromtail = true;
|
enablePromtail = true;
|
||||||
|
|||||||
@@ -11,19 +11,18 @@ in
|
|||||||
sops.secrets.njala_api_key = {};
|
sops.secrets.njala_api_key = {};
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[ # Include the results of the hardware scan.
|
||||||
inputs.malobeo.nixosModules.malobeo.vpn
|
|
||||||
inputs.malobeo.nixosModules.malobeo.initssh
|
|
||||||
inputs.malobeo.nixosModules.malobeo.disko
|
|
||||||
inputs.malobeo.nixosModules.malobeo.microvm
|
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
inputs.malobeo.nixosModules.malobeo.backup
|
|
||||||
|
|
||||||
#./hardware-configuration.nix
|
#./hardware-configuration.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
|
inputs.self.nixosModules.malobeo.vpn
|
||||||
|
inputs.self.nixosModules.malobeo.initssh
|
||||||
|
inputs.self.nixosModules.malobeo.disko
|
||||||
|
inputs.self.nixosModules.malobeo.microvm
|
||||||
|
inputs.self.nixosModules.malobeo.metrics
|
||||||
|
inputs.self.nixosModules.malobeo.users
|
||||||
|
inputs.self.nixosModules.malobeo.backup
|
||||||
./dyndns.nix
|
./dyndns.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -91,6 +90,7 @@ in
|
|||||||
authorizedKeys = sshKeys.admins;
|
authorizedKeys = sshKeys.admins;
|
||||||
ethernetDrivers = ["r8169"];
|
ethernetDrivers = ["r8169"];
|
||||||
zfsExtraPools = [ "storage" ];
|
zfsExtraPools = [ "storage" ];
|
||||||
|
ip = hosts.malobeo.hosts.fanny.network.address;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd = {
|
boot.initrd = {
|
||||||
@@ -193,7 +193,7 @@ in
|
|||||||
proxyPass = "http://${hosts.malobeo.hosts.nextcloud.network.address}";
|
proxyPass = "http://${hosts.malobeo.hosts.nextcloud.network.address}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
client_max_body_size ${inputs.malobeo.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
|
client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
|
||||||
client_body_timeout 3600s;
|
client_body_timeout 3600s;
|
||||||
send_timeout 3600s;
|
send_timeout 3600s;
|
||||||
fastcgi_buffers 64 4K;
|
fastcgi_buffers 64 4K;
|
||||||
@@ -208,7 +208,7 @@ in
|
|||||||
proxyPass = "http://${hosts.malobeo.hosts.nextcloud.network.address}";
|
proxyPass = "http://${hosts.malobeo.hosts.nextcloud.network.address}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
client_max_body_size ${inputs.malobeo.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
|
client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
|
||||||
client_body_timeout 3600s;
|
client_body_timeout 3600s;
|
||||||
send_timeout 3600s;
|
send_timeout 3600s;
|
||||||
fastcgi_buffers 64 4K;
|
fastcgi_buffers 64 4K;
|
||||||
@@ -264,7 +264,7 @@ in
|
|||||||
client_body_in_file_only clean;
|
client_body_in_file_only clean;
|
||||||
client_body_buffer_size 32K;
|
client_body_buffer_size 32K;
|
||||||
|
|
||||||
client_max_body_size 50M;
|
client_max_body_size 500M;
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
send_timeout 300s;
|
send_timeout 300s;
|
||||||
|
|||||||
@@ -1,17 +1,12 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
sops.secrets.njalacloud = {};
|
sops.secrets.njalacloud = {};
|
||||||
sops.secrets.njalazines = {};
|
sops.secrets.njalarm16 = {};
|
||||||
sops.secrets.njalaantamap = {};
|
|
||||||
systemd.services."dyndns" = {
|
systemd.services."dyndns" = {
|
||||||
script = ''
|
script = ''
|
||||||
KEYCLOUD=$(cat /run/secrets/njalacloud)
|
KEYCLOUD=$(cat /run/secrets/njalacloud)
|
||||||
KEYZINES=$(cat /run/secrets/njalazines)
|
|
||||||
KEYANATAMAP=$(cat /run/secrets/njalaantamap)
|
|
||||||
KEYRM16=$(cat /run/secrets/njalarm16)
|
KEYRM16=$(cat /run/secrets/njalarm16)
|
||||||
${pkgs.curl}/bin/curl --fail --silent --show-error "https://njal.la/update/?h=cloud.malobeo.org&k="$KEYCLOUD"&auto"
|
${pkgs.curl}/bin/curl --fail --silent --show-error "https://njal.la/update/?h=cloud.malobeo.org&k="$KEYCLOUD"&auto"
|
||||||
${pkgs.curl}/bin/curl --fail --silent --show-error "https://njal.la/update/?h=zines.malobeo.org&k="$KEYZINES"&auto"
|
|
||||||
${pkgs.curl}/bin/curl --fail --silent --show-error "https://njal.la/update/?h=antamap.malobeo.org&k="$KEYANATAMAP"&auto"
|
|
||||||
${pkgs.curl}/bin/curl --fail --silent --show-error "https://njal.la/update/?h=rm16bleibt.org&k="$KEYRM16"&auto"
|
${pkgs.curl}/bin/curl --fail --silent --show-error "https://njal.la/update/?h=rm16bleibt.org&k="$KEYRM16"&auto"
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|||||||
@@ -0,0 +1,93 @@
|
|||||||
|
{ config, pkgs, inputs, modulesPath, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
sshKeys = import ../ssh_keys.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
networking.hostName = "goldman"; # Define your hostname.
|
||||||
|
nixpkgs.hostPlatform = { system = "aarch64-linux"; };
|
||||||
|
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
inputs.gatekeeper.nixosModules.gatekeeper
|
||||||
|
../modules/malobeo_user.nix
|
||||||
|
#inputs.nixos-hardware.nixosModules.raspberry-pi-3
|
||||||
|
(modulesPath + "/profiles/minimal.nix")
|
||||||
|
#(modulesPath + "/installer/sd-card/sd-image.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-label/NIXOS_SD";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
#Try to reduce size
|
||||||
|
documentation.man.enable = false;
|
||||||
|
documentation.nixos.enable = false;
|
||||||
|
|
||||||
|
services.openssh.enable = true;
|
||||||
|
services.openssh.ports = [ 22 ];
|
||||||
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
|
services.openssh.settings.PermitRootLogin = "prohibit-password";
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = sshKeys.admins;
|
||||||
|
|
||||||
|
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
|
||||||
|
boot.loader.grub.enable = false;
|
||||||
|
|
||||||
|
# Enables the generation of /boot/extlinux/extlinux.conf
|
||||||
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
|
|
||||||
|
networking.dhcpcd.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
services.mosquitto = {
|
||||||
|
enable = true;
|
||||||
|
listeners = [{
|
||||||
|
acl = [ "pattern readwrite #" ];
|
||||||
|
omitPasswordAuth = true;
|
||||||
|
settings.allow_anonymous = true;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
gatekeeper = {
|
||||||
|
enable = true;
|
||||||
|
envFile = pkgs.writeText "env" ''
|
||||||
|
MIFARE_APP_MASTER_KEY="7b195adb892073c9e34ebe7e0ca28b2b"
|
||||||
|
MIFARE_ACL_READ_BASE_KEY="741a50f2b189cc9f151e0600f50a6e1a"
|
||||||
|
MIFARE_ACL_WRITE_BASE_KEY="f1aa99f81cca268de98d422ee0ccb65c"
|
||||||
|
SECRET_KEY="8b14d0b447bff7efa24d5019cc59a999786e31f6f865173bbd642bf18de5ad85"
|
||||||
|
MQTT_HOST = "localhost"
|
||||||
|
MQTT_PORT = "1883"
|
||||||
|
'';
|
||||||
|
mock = "False";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
htop
|
||||||
|
wget
|
||||||
|
git
|
||||||
|
pciutils
|
||||||
|
gpio-utils
|
||||||
|
nix-tree
|
||||||
|
lgpio
|
||||||
|
];
|
||||||
|
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns4 = true;
|
||||||
|
publish = {
|
||||||
|
enable = true;
|
||||||
|
addresses = true;
|
||||||
|
userServices = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 1883];
|
||||||
|
|
||||||
|
system.stateVersion = "23.05";
|
||||||
|
}
|
||||||
|
|
||||||
@@ -77,6 +77,17 @@ in
|
|||||||
nameservers = [ "192.168.1.1" "1.1.1.1" ];
|
nameservers = [ "192.168.1.1" "1.1.1.1" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
goldman = {
|
||||||
|
type = "rpi";
|
||||||
|
network = {
|
||||||
|
local = true;
|
||||||
|
hostId = "16";
|
||||||
|
address = "192.168.1.106";
|
||||||
|
gateway = "192.168.1.1";
|
||||||
|
nameservers = [ "192.168.1.1" "1.1.1.1" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
durruti = {
|
durruti = {
|
||||||
type = "microvm";
|
type = "microvm";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ self, config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -10,17 +10,11 @@ with lib;
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
inputs.malobeo.nixosModules.malobeo.metrics
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
|
|
||||||
../durruti/documentation.nix
|
../durruti/documentation.nix
|
||||||
|
../modules/malobeo_user.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePromtail = true;
|
enablePromtail = true;
|
||||||
|
|||||||
@@ -3,14 +3,13 @@
|
|||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
inputs.malobeo.nixosModules.malobeo.printing
|
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../modules/xserver.nix
|
../modules/xserver.nix
|
||||||
../modules/malobeo_user.nix
|
../modules/malobeo_user.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
|
inputs.self.nixosModules.malobeo.printing
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.autoUpdate = {
|
malobeo.autoUpdate = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
sshKeys = import ../ssh_keys.nix;
|
sshKeys = import ../ssh_keys.nix;
|
||||||
@@ -6,16 +6,10 @@ in
|
|||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
|
|
||||||
./hardware_configuration.nix
|
./hardware_configuration.nix
|
||||||
|
../modules/malobeo_user.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
sops.defaultSopsFile = ./secrets.yaml;
|
sops.defaultSopsFile = ./secrets.yaml;
|
||||||
sops.secrets.njala_api_key = {};
|
sops.secrets.njala_api_key = {};
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ in
|
|||||||
default = [ ];
|
default = [ ];
|
||||||
description = "Name or GUID of extra ZFS pools that you wish to import during boot.";
|
description = "Name or GUID of extra ZFS pools that you wish to import during boot.";
|
||||||
};
|
};
|
||||||
|
ip = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "The requested static ip for the machine";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (cfg.enable && config.malobeo.disks.encryption) {
|
config = lib.mkIf (cfg.enable && config.malobeo.disks.encryption) {
|
||||||
@@ -73,7 +77,7 @@ in
|
|||||||
"/etc/ssh/initrd" = "/etc/ssh/initrd";
|
"/etc/ssh/initrd" = "/etc/ssh/initrd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
kernelParams = [ "ip=::::${hostName}-initrd::dhcp" ];
|
kernelParams = [ "ip=${cfg.ip}::::${hostName}::" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{config, lib, pkgs, inputs, ...}:
|
{config, lib, pkgs, inputs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.malobeo.users;
|
cfg = config.malobeo.users;
|
||||||
sshKeys = import ( inputs.malobeo + /machines/ssh_keys.nix);
|
sshKeys = import ( inputs.self + /machines/ssh_keys.nix);
|
||||||
inherit (config.networking) hostName;
|
inherit (config.networking) hostName;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, self, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -20,19 +20,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
self.nixosModules.malobeo.metrics
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePromtail = true;
|
enablePromtail = true;
|
||||||
@@ -45,7 +39,7 @@ in
|
|||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud33;
|
package = pkgs.nextcloud34;
|
||||||
hostName = "cloud.malobeo.org";
|
hostName = "cloud.malobeo.org";
|
||||||
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
||||||
maxUploadSize = "10G";
|
maxUploadSize = "10G";
|
||||||
@@ -55,16 +49,10 @@ in
|
|||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
caching = {
|
caching = {
|
||||||
redis = true;
|
redis = true;
|
||||||
apcu = true;
|
|
||||||
};
|
};
|
||||||
extraAppsEnable = true;
|
extraAppsEnable = true;
|
||||||
extraApps = {
|
extraApps = {
|
||||||
inherit (config.services.nextcloud.package.packages.apps) contacts calendar polls registration collectives forms;
|
inherit (config.services.nextcloud.package.packages.apps) contacts calendar polls registration collectives forms deck;
|
||||||
deck = pkgs.fetchNextcloudApp {
|
|
||||||
sha256 = "sha256-Oc/J0Ey7f9aHhLBWoAXaDMe2t0eeEQKvpwY510qNpiI=";
|
|
||||||
url = "https://s3.g.megas4.com/ya5mczgkbk6bw7tcy2yr4bl2vdryfe76ok2dj/malo/deck33.tar.gz";
|
|
||||||
license = "agpl3Plus";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
trusted_domains = [ "cloud.malobeo.org" "cloud.hq.malobeo.org" ];
|
trusted_domains = [ "cloud.malobeo.org" "cloud.hq.malobeo.org" ];
|
||||||
@@ -74,7 +62,6 @@ in
|
|||||||
"default_phone_region" = "DE";
|
"default_phone_region" = "DE";
|
||||||
};
|
};
|
||||||
phpOptions = {
|
phpOptions = {
|
||||||
"realpath_cache_size" = "0";
|
|
||||||
"opcache.interned_strings_buffer" = "32";
|
"opcache.interned_strings_buffer" = "32";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
nextcloudAdminPass: ENC[AES256_GCM,data:es9hhtCcqBqPbV2L,iv:Kyq5kqao0uaMPs0GeRkJT9OWYSZfImBXngg51k0uQ0M=,tag:zN/u90/j4rmdo0HtY+cF9w==,type:str]
|
nextcloudAdminPass: ENC[AES256_GCM,data:RsP8Q1FqS9qgYTNe+H/nDHwQwr0fvlQawCOJWZVoF2U=,iv:AqJ79m3GAUd6sczDByJlb+K3XxxEt3HS4fURd7kn0bY=,tag:n/GyRKrIwOcksDtewnnXZw==,type:str]
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
|
||||||
gcp_kms: []
|
|
||||||
azure_kv: []
|
|
||||||
hc_vault: []
|
|
||||||
age:
|
age:
|
||||||
- recipient: age1ljpdczmg5ctqyeezn739hv589fwhssjjnuqf7276fqun6kc62v3qmhkd0c
|
- enc: |
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBPT3ZxNEpRVktDWG9BR0Rv
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBPT3ZxNEpRVktDWG9BR0Rv
|
||||||
ZUZQTkJwQ0pSblNvTkFOT3BBdjVaSzJhVzBvCnVWc2xRUjBnRFFXSDgxczRMSFMy
|
ZUZQTkJwQ0pSblNvTkFOT3BBdjVaSzJhVzBvCnVWc2xRUjBnRFFXSDgxczRMSFMy
|
||||||
@@ -14,8 +9,8 @@ sops:
|
|||||||
aDd0UlpMR3RNd3BDMmhqNmxhTFRoUlkK6Pni+cswKIU94WkP/fg5fzSmx/fhXjjl
|
aDd0UlpMR3RNd3BDMmhqNmxhTFRoUlkK6Pni+cswKIU94WkP/fg5fzSmx/fhXjjl
|
||||||
mRG2o4ALCqcOxAxHBrKJppUCLjUgKG53wPF/jlIzkvbwHwnqVMfYsQ==
|
mRG2o4ALCqcOxAxHBrKJppUCLjUgKG53wPF/jlIzkvbwHwnqVMfYsQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
- recipient: age1g084sl230x94mkd2wq92s03mw0e8mnpjdjfx9uzaxw6psm8neyzqqwpnqe
|
recipient: age1ljpdczmg5ctqyeezn739hv589fwhssjjnuqf7276fqun6kc62v3qmhkd0c
|
||||||
enc: |
|
- enc: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBRK2o2K2tPTFcvbXRkZ0lq
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBRK2o2K2tPTFcvbXRkZ0lq
|
||||||
bS9ZOUc3dG1JeERZYVNsc3k3RjcxQ0RsdkRJCkx1VFhBQXRDOElqakJ0eTd3NEJX
|
bS9ZOUc3dG1JeERZYVNsc3k3RjcxQ0RsdkRJCkx1VFhBQXRDOElqakJ0eTd3NEJX
|
||||||
@@ -23,8 +18,9 @@ sops:
|
|||||||
VjBFeldXS1p0Zk1uSk02aHpJd3BPOHcKvCmnK/KttB4RgnID/fj2KOdjvNnV3EWU
|
VjBFeldXS1p0Zk1uSk02aHpJd3BPOHcKvCmnK/KttB4RgnID/fj2KOdjvNnV3EWU
|
||||||
B9mW4yxbEqhoxtu+GFD3eR/8SvMPEsHl9xorT/ZygMG7hAzedSukWw==
|
B9mW4yxbEqhoxtu+GFD3eR/8SvMPEsHl9xorT/ZygMG7hAzedSukWw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-11-26T20:00:50Z"
|
recipient: age1g084sl230x94mkd2wq92s03mw0e8mnpjdjfx9uzaxw6psm8neyzqqwpnqe
|
||||||
mac: ENC[AES256_GCM,data:qoY9SfpoU+8HfvD5v/1S6BOkbnZUmHIbtwr0tTSuPETjnFNgr1VVw9mnRatJKPYYFb9/rMZQWIqTY+iUIEkcTVyVXhd6ki5CHW+uxCeBIyMzq33rtEa/btkEUoii4iPieamBCIY21W0znE+edxfR04yRJtLxMICEbuW4Hjf6bwk=,iv:nG42fRgjpuIjPMYnn/6egEdzYolcUBsspaZ8zMv4888=,tag:C6apGoAvVLsWdLWSCwrx6w==,type:str]
|
lastmodified: "2026-10-22T19:07:13Z"
|
||||||
|
mac: ENC[AES256_GCM,data:HD1uqrxxfLrHGQfu7HFpuunpj/npPe35AvvFrhGFRUTtXLGRPDn5xeOiuHyT+qSs51lukE+hYhv/+u4xolb0SInOJtPTZ6suRcZ4maJ+9P0mgjs7OmI4e68CpGo0xuOg378WvlF15VQH2KCcVskEkO9UBTfOUmyNku1g4F6PeWw=,iv:cJaz6dYkspBlBY9aCaK2/zBDiVg7J7nCE+fnwNHz1Tw=,tag:5sKITZ8uD7JnRtwhaOPoGw==,type:str]
|
||||||
pgp:
|
pgp:
|
||||||
- created_at: "2025-03-05T08:24:30Z"
|
- created_at: "2025-03-05T08:24:30Z"
|
||||||
enc: |-
|
enc: |-
|
||||||
@@ -65,4 +61,4 @@ sops:
|
|||||||
-----END PGP MESSAGE-----
|
-----END PGP MESSAGE-----
|
||||||
fp: aef8d6c7e4761fc297cda833df13aebb1011b5d4
|
fp: aef8d6c7e4761fc297cda833df13aebb1011b5d4
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.8.1
|
version: 3.13.3
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, inputs, pkgs, ... }:
|
{ config, self, lib, inputs, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
with inputs;
|
with inputs;
|
||||||
@@ -13,19 +13,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
inputs.malobeo.nixosModules.malobeo.vpn
|
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
|
inputs.self.nixosModules.malobeo.vpn
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 53 ];
|
allowedTCPPorts = [ 53 ];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, self, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -30,18 +30,12 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
self.nixosModules.malobeo.metrics
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
./printer_module.nix
|
./printer_module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 3100 ];
|
networking.firewall.allowedTCPPorts = [ 80 3100 ];
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
@@ -151,6 +145,7 @@ in
|
|||||||
"https://keys.malobeo.org"
|
"https://keys.malobeo.org"
|
||||||
"https://tasklist.malobeo.org"
|
"https://tasklist.malobeo.org"
|
||||||
"https://zines.malobeo.org"
|
"https://zines.malobeo.org"
|
||||||
|
"http://${hosts.malobeo.hosts.albert.network.address}:27364/health"
|
||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
@@ -269,6 +264,12 @@ in
|
|||||||
targets = [ "${hosts.malobeo.hosts.albert.network.address}:9002" ];
|
targets = [ "${hosts.malobeo.hosts.albert.network.address}:9002" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "wordpress";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "${hosts.malobeo.hosts.wordpress.network.address}:9002" ];
|
||||||
|
}];
|
||||||
|
}
|
||||||
# add vpn - check how to reach it first. most probably 10.100.0.1
|
# add vpn - check how to reach it first. most probably 10.100.0.1
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, self, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -21,10 +21,9 @@ in
|
|||||||
|
|
||||||
disabledModules = [ "services/web-apps/pretalx.nix" ];
|
disabledModules = [ "services/web-apps/pretalx.nix" ];
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
|
|
||||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/pretalx.nix"
|
"${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/pretalx.nix"
|
||||||
|
self.nixosModules.malobeo.metrics
|
||||||
|
self.nixosModules.malobeo.users
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
@@ -38,7 +37,6 @@ in
|
|||||||
|
|
||||||
malobeo.users = {
|
malobeo.users = {
|
||||||
admin = true;
|
admin = true;
|
||||||
malobeo = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,18 +6,13 @@ in
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
#./hardware-configuration.nix
|
#./hardware-configuration.nix
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
inputs.malobeo.nixosModules.malobeo.initssh
|
|
||||||
inputs.malobeo.nixosModules.malobeo.disko
|
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
|
inputs.self.nixosModules.malobeo.initssh
|
||||||
|
inputs.self.nixosModules.malobeo.disko
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.systemd.enable = true;
|
boot.initrd.systemd.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|||||||
@@ -9,16 +9,10 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|||||||
@@ -16,17 +16,11 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
|
inputs.self.nixosModules.malobeo.metrics
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
|
|||||||
@@ -17,18 +17,12 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.vpn
|
inputs.self.nixosModules.malobeo.vpn
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
../modules/malobeo_user.nix
|
||||||
|
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
../modules/minimal_tools.nix
|
../modules/minimal_tools.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.malobeo.vpn = {
|
services.malobeo.vpn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "vpn";
|
name = "vpn";
|
||||||
|
|||||||
@@ -23,11 +23,17 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
inputs.malobeo.nixosModules.malobeo.metrics
|
||||||
|
inputs.self.nixosModules.malobeo.users
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
malobeo.metrics = {
|
||||||
|
enable = true;
|
||||||
|
enablePromtail = true;
|
||||||
|
logNginx = true;
|
||||||
|
};
|
||||||
|
|
||||||
malobeo.users = {
|
malobeo.users = {
|
||||||
malobeo = false;
|
malobeo = false;
|
||||||
admin = true;
|
admin = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ self, config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -11,17 +11,11 @@ with lib;
|
|||||||
imports = [
|
imports = [
|
||||||
inputs.malobeo.nixosModules.malobeo.metrics
|
inputs.malobeo.nixosModules.malobeo.metrics
|
||||||
inputs.malobeo.nixosModules.malobeo.printing
|
inputs.malobeo.nixosModules.malobeo.printing
|
||||||
inputs.malobeo.nixosModules.malobeo.users
|
|
||||||
inputs.zineshop.nixosModules.zineshop
|
inputs.zineshop.nixosModules.zineshop
|
||||||
|
../modules/malobeo_user.nix
|
||||||
../modules/sshd.nix
|
../modules/sshd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.users = {
|
|
||||||
admin = true;
|
|
||||||
malobeo = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
malobeo.metrics = {
|
malobeo.metrics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePromtail = true;
|
enablePromtail = true;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def _parse_response(baseurl, owner, repo):
|
|||||||
return pulls
|
return pulls
|
||||||
|
|
||||||
class PullsHandler(BaseHTTPRequestHandler):
|
class PullsHandler(BaseHTTPRequestHandler):
|
||||||
_VALID_PATHS={"/", "/gitea-pulls-sorted.json"}
|
_VALID_PATHS={"/", "/gitea-pulls-sorted.json", "/health"}
|
||||||
|
|
||||||
# Class variables to store configuration
|
# Class variables to store configuration
|
||||||
baseurl = None
|
baseurl = None
|
||||||
@@ -34,6 +34,15 @@ class PullsHandler(BaseHTTPRequestHandler):
|
|||||||
repo = None
|
repo = None
|
||||||
|
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
|
if self.path == "/health":
|
||||||
|
body=json.dumps({"status": "ok"}).encode("utf-8")
|
||||||
|
self.send_response(200)
|
||||||
|
self.send_header("Content-Type", "application/json; charset=utf-8")
|
||||||
|
self.send_header("Content-Length", str(len(body)))
|
||||||
|
self.end_headers()
|
||||||
|
self.wfile.write(body)
|
||||||
|
return
|
||||||
|
|
||||||
if self.path not in self._VALID_PATHS:
|
if self.path not in self._VALID_PATHS:
|
||||||
self.send_error(404, "Not Found")
|
self.send_error(404, "Not Found")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user