24 Commits

Author SHA1 Message Date
ErrorNoInternet b32e506f54 npins: update website
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 11s
2026-05-04 00:45:23 -04:00
ErrorNoInternet 91733ce19f nixos/hosts: declare fileSystems for testing hosts 2026-05-04 00:45:23 -04:00
ErrorNoInternet bb97397e6b nixos/services/openssh: enable X11 forwarding 2026-05-04 00:45:22 -04:00
javalsai a02d935fd0 nixos/hosts: add autologin for testing hosts 2026-05-04 00:45:22 -04:00
javalsai 62b9a39599 nixos/services: add default website on nginx 2026-05-04 00:45:22 -04:00
javalsai ee17ef91ed nixos/services: disable nginx proxy buffering 2026-05-04 00:45:22 -04:00
ErrorNoInternet a2065702a4 nixos/impermanence: remove ssh host key persistence
The SSH host key files are already defined in the OpenSSH module, so
there is no need to persist them with impermanence.nix.
2026-05-04 00:45:22 -04:00
ErrorNoInternet 869fc59c6f shells: remove neovim
Some users may be using self-contained Neovim executables.
2026-05-04 00:45:22 -04:00
ErrorNoInternet 8824b565ba agenix: import initial user dns keys 2026-05-04 00:45:22 -04:00
ErrorNoInternet 9b7453b0b4 treewide: create global user list 2026-05-04 00:45:22 -04:00
javalsai fb9526fec2 docs: add sections and fix typos/errors 2026-05-04 00:45:22 -04:00
ErrorNoInternet 0692e680b8 treewide: initialize npins 2026-05-04 00:45:22 -04:00
ErrorNoInternet 3a940586d5 treewide: refactor code 2026-05-04 00:45:21 -04:00
javalsai 7e7097f457 nixos/security: add acme through dns challenge
few side refactors of this:
- no more `dns.domain`, it all must rely on `fqdn`, prevents
  inconsistencies.
- also added an specific host `tuxcord-acmetest` that uses the key zone
  for `nix.tuxcord.net` to test certificate pulling.
2026-05-04 00:45:21 -04:00
javalsai 22b3a95bf8 docs: document installation, secrets, and setup steps 2026-05-04 00:45:21 -04:00
javalsai de4b8833bd nixos/services: make dns configuration easier 2026-05-04 00:45:21 -04:00
javalsai ac9b80573f nixos/service: add dns (bind named server) 2026-05-04 00:45:21 -04:00
javalsai 66a15a5d19 nixos/programs: add bind utils 2026-05-04 00:45:21 -04:00
javalsai 7e331f5e1a nixos/services: add gitea server 2026-05-04 00:45:21 -04:00
javalsai a8374e231f nixos/services: add nginx base configuration 2026-05-04 00:45:21 -04:00
javalsai 27b861d5a5 nixos/networking: add own fqdn to extraHosts 2026-05-04 00:45:21 -04:00
javalsai 6a29ac005c nixos/hosts: add tuxcord-vm host configuration 2026-05-04 00:45:21 -04:00
ErrorNoInternet 0b9f76dcb4 nixos: separate openssh firewall port 2026-05-04 00:45:21 -04:00
javalsai cc52b0e6cb lib/ssh: add more ssh keys 2026-05-04 00:41:23 -04:00
4 changed files with 25 additions and 34 deletions
+1 -1
View File
@@ -21,5 +21,5 @@ in
map (user: { map (user: {
name = "dns/tuxcord.net/${user.name}.tuxcord.net.key.age"; name = "dns/tuxcord.net/${user.name}.tuxcord.net.key.age";
value.publicKeys = [ tuxcord-ca ] ++ getSSHKeys user.name; value.publicKeys = [ tuxcord-ca ] ++ getSSHKeys user.name;
}) (builtins.filter (user: user.value.options.ddns or false) (attrsToList users)) }) (builtins.filter (user: user.value.ddns or false) (attrsToList users))
) )
+1 -1
View File
@@ -3,7 +3,7 @@ rec {
adminSSHKeys = builtins.concatLists ( adminSSHKeys = builtins.concatLists (
map (user: getSSHKeys user.name) ( map (user: getSSHKeys user.name) (
builtins.filter (user: user.value.options.admin or false) (attrsToList users) builtins.filter (user: user.value.admin or false) (attrsToList users)
) )
); );
+5 -9
View File
@@ -1,23 +1,19 @@
{ {
error = { error = {
ssh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDzdpxex2GlFVf5G2qsh3Ixa/XCMjnbq4JSTmAev7WYJ error.nointernet@gmail.com"; ssh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDzdpxex2GlFVf5G2qsh3Ixa/XCMjnbq4JSTmAev7WYJ error.nointernet@gmail.com";
options = { admin = true;
admin = true; ddns = true;
ddns = true;
};
}; };
javalsai = { javalsai = {
ssh = "ss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jMNqNZ0yx+kHJbudPgZgSR1SiR2rqlEEUaiQJQQV3VdY4DhGm7143ZSKUxyKlfTuQ7qR1zSIg6f5V71A37ik9YiSbBlOZO86swR4qHESoMNf608IuqRt2NdALHwozFPUCu16qnhu5JTk8twSAzrAhOk5zWQj1LYMoQEBhcFSmwir/1gE71NSjYtqXGVAdfkVmZ4uqG5+a1D7H3VXWOqu/j839M045O1ZBY6X3lKDsEJ1Z1+LCl/NojWnvPtJUHYI6+SdQ6k=";
options.admin = true; admin = true;
}; };
vectorum = { vectorum = {
+18 -23
View File
@@ -11,35 +11,30 @@ let
"wheel" "wheel"
]; ];
mkUser = mkUser = name: uid: admin: {
name: uid: options: users.users.${name} = {
let inherit uid;
admin = options.admin or false; isNormalUser = true;
in extraGroups = lib.optionals admin adminGroups;
{ openssh.authorizedKeys.keys = self.lib.getSSHKeys name;
users.users.${name} = {
inherit uid;
isNormalUser = true;
extraGroups = lib.optionals admin adminGroups;
openssh.authorizedKeys.keys = self.lib.getSSHKeys name;
};
systemd.slices."user-${builtins.toString uid}".sliceConfig = {
CPUQuota = "50%";
CPUWeight = "10";
IOAccounting = true;
IOWeight = "10";
MemoryMax = "2G";
MemorySwapMax = "1G";
TasksMax = "100";
};
}; };
systemd.slices."user-${builtins.toString uid}".sliceConfig = {
CPUQuota = "50%";
CPUWeight = "10";
IOAccounting = true;
IOWeight = "10";
MemoryMax = "2G";
MemorySwapMax = "1G";
TasksMax = "100";
};
};
in in
lib.recursiveUpdate lib.recursiveUpdate
(builtins.foldl' (builtins.foldl'
(attrs: user: { (attrs: user: {
options = lib.recursiveUpdate attrs.options ( options = lib.recursiveUpdate attrs.options (
mkUser user.name attrs.uid (user.value.options or { }) mkUser user.name attrs.uid (user.value.admin or false)
); );
uid = attrs.uid + 1; uid = attrs.uid + 1;
}) })