5 Commits

Author SHA1 Message Date
ErrorNoInternet aa312f8547 nixos/networking: fix extraHosts generation
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 11s
2026-05-04 01:27:11 -04:00
ErrorNoInternet dc285cab4e npins: update website 2026-05-04 01:27:11 -04:00
ErrorNoInternet 7030e812fc nixos/hosts: declare fileSystems for testing hosts 2026-05-04 01:27:11 -04:00
ErrorNoInternet 002e0074c8 nixos/services/openssh: enable X11 forwarding 2026-05-04 01:27:11 -04:00
javalsai 3988a6e071 nixos/hosts: add autologin for testing hosts 2026-05-04 01:27:11 -04:00
9 changed files with 39 additions and 25 deletions
+6 -13
View File
@@ -99,22 +99,15 @@ in
extraHosts = extraHosts =
let let
subdomains = [ subdomains = [ "git" ];
""
".git" inherit (config.networking) fqdn;
]; hosts = [ fqdn ] ++ map (sub: "${sub}.${fqdn}") subdomains;
in in
builtins.foldl' ( lib.concatMapStrings (host: ''
hosts-acc: domain-prefix:
let
host = "${domain-prefix}${config.networking.fqdn}";
in
hosts-acc
+ ''
127.0.0.1 ${host} 127.0.0.1 ${host}
::1 ${host} ::1 ${host}
'' '') hosts;
) "" subdomains;
}; };
virtualisation.podman.enable = true; virtualisation.podman.enable = true;
+8 -5
View File
@@ -1,11 +1,14 @@
{ {
acme = { imports = [
enable = true; ./storage.nix
rfc2136.nameserver = "tuxcord.net"; ];
};
dns.enable = true;
networking.fqdn = "nix.tuxcord.net"; networking.fqdn = "nix.tuxcord.net";
acme.rfc2136.nameserver = "tuxcord.net";
dns.enable = true;
services.getty.autologinUser = "root";
time.timeZone = "Europe/Madrid"; time.timeZone = "Europe/Madrid";
} }
+6
View File
@@ -0,0 +1,6 @@
{
fileSystems."/" = {
device = "/dev/vda";
fsType = "ext4";
};
}
+1
View File
@@ -32,6 +32,7 @@
device = "/dev/xvda2"; device = "/dev/xvda2";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@persist" ] ++ defaultOptions; options = [ "subvol=@persist" ] ++ defaultOptions;
neededForBoot = true;
}; };
}; };
} }
+7 -1
View File
@@ -1,6 +1,12 @@
{ {
imports = [
./storage.nix
];
networking.fqdn = "tuxcord.test";
acme.enable = false; acme.enable = false;
dns.enable = true; dns.enable = true;
networking.fqdn = "tuxcord.test"; services.getty.autologinUser = "root";
} }
+6
View File
@@ -0,0 +1,6 @@
{
fileSystems."/" = {
device = "/dev/vda";
fsType = "ext4";
};
}
-2
View File
@@ -55,8 +55,6 @@
}; };
}; };
fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = { environment.persistence."/persist" = {
enable = true; enable = true;
hideMounts = true; hideMounts = true;
+1
View File
@@ -4,6 +4,7 @@
settings = { settings = {
ClientAliveInterval = 300; ClientAliveInterval = 300;
X11Forwarding = true;
KbdInteractiveAuthentication = false; KbdInteractiveAuthentication = false;
PasswordAuthentication = false; PasswordAuthentication = false;
+2 -2
View File
@@ -8,9 +8,9 @@
}, },
"branch": "main", "branch": "main",
"submodules": false, "submodules": false,
"revision": "a9f523c268062c0c4a8167b719be15e3e4b3ef88", "revision": "b18dd7b863644debb0a843a5b21bb490bfe7d048",
"url": null, "url": null,
"hash": "0ql14xjz0prvy3rdx6zkbpsjxvx40ivdzrwzdgfsk07jg07aki05" "hash": "18czfxaldy0zhjprdsqzxnzj3p9qlc4canwigr13iw2wisi4ww5y"
} }
}, },
"version": 5 "version": 5