25 Commits

Author SHA1 Message Date
zuckerberg 36a2a424c5 Update flake
Check Flake / check-flake (push) Has been cancelled
2026-05-15 09:32:58 -07:00
gitea-runner 45417aa7ee flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m18s
Auto Update Flake / auto-update (push) Failing after 10s
2026-04-10 23:00:31 -07:00
gitea-runner 50dc0c5cc3 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m25s
Auto Update Flake / auto-update (push) Successful in 9m32s
2026-04-09 23:00:50 -07:00
gitea-runner a265472def flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m19s
Auto Update Flake / auto-update (push) Successful in 1h50m58s
2026-04-08 23:00:31 -07:00
gitea-runner 528d438d86 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m17s
Auto Update Flake / auto-update (push) Successful in 5m55s
2026-04-07 23:00:31 -07:00
gitea-runner 1663e286bf flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m26s
Auto Update Flake / auto-update (push) Successful in 11m24s
2026-04-06 23:00:38 -07:00
gitea-runner 91c1bef489 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m15s
Auto Update Flake / auto-update (push) Successful in 1h48m34s
2026-04-05 23:00:29 -07:00
gitea-runner 30585d8727 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m16s
Auto Update Flake / auto-update (push) Successful in 5m47s
2026-04-04 23:00:29 -07:00
gitea-runner 00d3bf09d7 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m19s
Auto Update Flake / auto-update (push) Successful in 5m40s
2026-04-03 23:00:30 -07:00
gitea-runner 1ff6894b35 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m17s
Auto Update Flake / auto-update (push) Successful in 6m44s
2026-04-02 23:00:29 -07:00
gitea-runner 2c4d822429 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m20s
Auto Update Flake / auto-update (push) Successful in 9m49s
2026-04-01 23:00:49 -07:00
gitea-runner 4880fbd0e3 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m17s
Auto Update Flake / auto-update (push) Successful in 1h44m45s
2026-03-31 23:00:29 -07:00
gitea-runner e611a9e1fe flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m17s
Auto Update Flake / auto-update (push) Successful in 5m36s
2026-03-30 23:00:39 -07:00
gitea-runner b4c26f1b9f flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m16s
Auto Update Flake / auto-update (push) Successful in 18m45s
2026-03-29 23:00:43 -07:00
gitea-runner 70438c74fc flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m17s
Auto Update Flake / auto-update (push) Successful in 17m35s
2026-03-28 23:00:29 -07:00
gitea-runner de10fa8dbb flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m23s
Auto Update Flake / auto-update (push) Successful in 10m49s
2026-03-27 23:00:28 -07:00
gitea-runner f114d45601 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m14s
Auto Update Flake / auto-update (push) Successful in 2h23m25s
2026-03-22 23:00:30 -07:00
gitea-runner a023a12cf1 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m14s
Auto Update Flake / auto-update (push) Successful in 5m37s
2026-03-21 23:00:32 -07:00
gitea-runner afc4bd44e7 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m17s
Auto Update Flake / auto-update (push) Successful in 5m59s
2026-03-20 23:00:35 -07:00
gitea-runner 7c4997c00b flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m19s
Auto Update Flake / auto-update (push) Successful in 5m34s
2026-03-19 23:00:29 -07:00
gitea-runner ab1faaba70 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m18s
Auto Update Flake / auto-update (push) Successful in 10m7s
2026-03-18 23:00:38 -07:00
gitea-runner 2b8a0a36d4 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m16s
Auto Update Flake / auto-update (push) Successful in 1h47m14s
2026-03-17 23:00:38 -07:00
gitea-runner 412e317efd flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m14s
Auto Update Flake / auto-update (push) Successful in 7m31s
2026-03-16 23:00:39 -07:00
gitea-runner 454fe3bec6 flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m13s
Auto Update Flake / auto-update (push) Successful in 7m10s
2026-03-15 23:00:42 -07:00
gitea-runner 192babbabe flake.lock: update inputs
Check Flake / check-flake (push) Successful in 2m19s
Auto Update Flake / auto-update (push) Successful in 8m41s
2026-03-14 23:00:48 -07:00
7 changed files with 84 additions and 74 deletions
+37 -32
View File
@@ -45,52 +45,57 @@ in
authorizedKeys = cfg.sshAuthorizedKeys; authorizedKeys = cfg.sshAuthorizedKeys;
}; };
boot.initrd.postDeviceCommands = '' # Use systemd-tty-ask-password-agent for interactive LUKS passphrase entry over SSH
echo 'waiting for root device to be opened...' boot.initrd.systemd.users.root.shell = "/bin/systemd-tty-ask-password-agent --watch";
mkfifo /crypt-ramfs/passphrase
echo /crypt-ramfs/passphrase >> /dev/null
'';
# Tor hidden service for remote unlock over onion
boot.initrd.secrets = lib.mkIf cfg.enableTorUnlock { boot.initrd.secrets = lib.mkIf cfg.enableTorUnlock {
"/etc/tor/onion/bootup" = cfg.onionConfig; "/etc/tor/onion/bootup" = cfg.onionConfig;
}; };
boot.initrd.extraUtilsCommands = lib.mkIf cfg.enableTorUnlock ''
copy_bin_and_libs ${pkgs.tor}/bin/tor
copy_bin_and_libs ${pkgs.haveged}/bin/haveged
'';
boot.initrd.network.postCommands = lib.mkMerge [
(
''
# Add nice prompt for giving LUKS passphrase over ssh
echo 'read -s -p "Unlock Passphrase: " passphrase && echo $passphrase > /crypt-ramfs/passphrase && exit' >> /root/.profile
''
)
( boot.initrd.systemd.storePaths = lib.mkIf cfg.enableTorUnlock [
let torRc = (pkgs.writeText "tor.rc" '' "${pkgs.tor}/bin/tor"
"${pkgs.haveged}/bin/haveged"
];
boot.initrd.systemd.services.tor-unlock = lib.mkIf cfg.enableTorUnlock {
description = "Tor Hidden Service for Boot Unlock";
wantedBy = [ "initrd.target" ];
after = [ "network.target" "sshd.service" ];
wants = [ "network.target" ];
unitConfig.DefaultDependencies = false;
serviceConfig = {
Type = "forking";
RemainAfterExit = true;
};
script =
let
torRc = pkgs.writeText "tor.rc" ''
DataDirectory /etc/tor DataDirectory /etc/tor
SOCKSPort 127.0.0.1:9050 IsolateDestAddr SOCKSPort 127.0.0.1:9050 IsolateDestAddr
SOCKSPort 127.0.0.1:9063 SOCKSPort 127.0.0.1:9063
HiddenServiceDir /etc/tor/onion/bootup HiddenServiceDir /etc/tor/onion/bootup
HiddenServicePort 22 127.0.0.1:22 HiddenServicePort 22 127.0.0.1:22
''); in '';
lib.mkIf cfg.enableTorUnlock '' in
echo "tor: preparing onion folder" ''
# have to do this otherwise tor does not want to start # Fix permissions for tor
chmod -R 700 /etc/tor chmod -R 700 /etc/tor
echo "make sure localhost is up" # Ensure loopback is up
ip a a 127.0.0.1/8 dev lo ip a a 127.0.0.1/8 dev lo 2>/dev/null || true
ip link set lo up ip link set lo up
echo "haveged: starting haveged" # Start haveged for entropy
haveged -F & ${pkgs.haveged}/bin/haveged -F &
echo "tor: starting tor" # Verify and start tor
tor -f ${torRc} --verify-config ${pkgs.tor}/bin/tor -f ${torRc} --verify-config
tor -f ${torRc} & ${pkgs.tor}/bin/tor -f ${torRc} &
'' '';
) };
];
}; };
} }
Generated
+30 -31
View File
@@ -53,11 +53,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1773106230, "lastModified": 1778800550,
"narHash": "sha256-ob/uMOU6CyRES+/SIxnMDhDAZUQr228JdBPKkGu8m/c=", "narHash": "sha256-nLhQjocD45BwMS946dShAF6BnafpTTe10s8LAcIcLjo=",
"owner": "sadjow", "owner": "sadjow",
"repo": "claude-code-nix", "repo": "claude-code-nix",
"rev": "5cbf0a4eba950cdc7d7982774a9bc189ab21cb99", "rev": "1ba489d6e95f7bccf58250f7bdc5142122d53f2f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -78,15 +78,15 @@
"locked": { "locked": {
"lastModified": 1772394520, "lastModified": 1772394520,
"narHash": "sha256-9c0sHyzoVtvufkSqVNGGydsgjpKv5Zf7062LmOm4Gsc=", "narHash": "sha256-9c0sHyzoVtvufkSqVNGGydsgjpKv5Zf7062LmOm4Gsc=",
"ref": "refs/heads/master", "owner": "GoogleBot42",
"repo": "dailybot",
"rev": "d07483c17bf31d416de3642a2faec484ea1810ed", "rev": "d07483c17bf31d416de3642a2faec484ea1810ed",
"revCount": 21, "type": "github"
"type": "git",
"url": "https://git.neet.dev/zuckerberg/dailybot.git"
}, },
"original": { "original": {
"type": "git", "owner": "GoogleBot42",
"url": "https://git.neet.dev/zuckerberg/dailybot.git" "repo": "dailybot",
"type": "github"
} }
}, },
"darwin": { "darwin": {
@@ -186,11 +186,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772893680, "lastModified": 1775585728,
"narHash": "sha256-JDqZMgxUTCq85ObSaFw0HhE+lvdOre1lx9iI6vYyOEs=", "narHash": "sha256-8Psjt+TWvE4thRKktJsXfR6PA/fWWsZ04DVaY6PUhr4=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "8baab586afc9c9b57645a734c820e4ac0a604af9", "rev": "580633fa3fe5fc0379905986543fd7495481913d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -228,11 +228,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1773179137, "lastModified": 1778853583,
"narHash": "sha256-EdW2bwzlfme0vbMOcStnNmKlOAA05Bp6su2O8VLGT0k=", "narHash": "sha256-0P4/nDOxxufeh5SD5vqpfFw0n4mq29WZISYAgfryD3Y=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "3f98e2bbc661ec0aaf558d8a283d6955f05f1d09", "rev": "1bedcc8740b9aa2f7d3e1312a6c88baf00909f54",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -250,11 +250,11 @@
"spectrum": "spectrum" "spectrum": "spectrum"
}, },
"locked": { "locked": {
"lastModified": 1773018425, "lastModified": 1778669912,
"narHash": "sha256-fpgZBmZpKoEXEowBK/6m8g9FcOLWQ4UxhXHqCw2CpSM=", "narHash": "sha256-WT2iimtOBZM/6AcZeBoJU2EgUSaywtlItsEgNkZBda0=",
"owner": "astro", "owner": "astro",
"repo": "microvm.nix", "repo": "microvm.nix",
"rev": "25ebda3c558e923720c965832dc9a04f559a055c", "rev": "a7a7009064cec75d9da652c6723412ce27b9bc44",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -270,11 +270,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772945408, "lastModified": 1778393439,
"narHash": "sha256-PMt48sEQ8cgCeljQ9I/32uoBq/8t8y+7W/nAZhf72TQ=", "narHash": "sha256-mOtQxUjtKaPHLeoLOY/YEDctmud1X9KwJr4kE1MJ3Wc=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "1c1d8ea87b047788fd7567adf531418c5da321ec", "rev": "01466c414c7357ae2ce32be4a272a7c69e94ab5f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -285,11 +285,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1772972630, "lastModified": 1778593042,
"narHash": "sha256-mUJxsNOrBMNOUJzN0pfdVJ1r2pxeqm9gI/yIKXzVVbk=", "narHash": "sha256-xYGrSg6354UK2K4WSQd4+TfyvfqmvFbSY+ZtGQUXK0c=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "3966ce987e1a9a164205ac8259a5fe8a64528f72", "rev": "9bd7c80d43e258aaa607d83b43661df11444d808",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -301,11 +301,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1772963539, "lastModified": 1778443072,
"narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=", "narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9dcb002ca1690658be4a04645215baea8b95f31d", "rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -344,16 +344,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1773194666, "lastModified": 1777287493,
"narHash": "sha256-YbsbqtTB3q0JjP7/G7GO58ea49cps1+8sb95/Bt7oVs=", "narHash": "sha256-Fj7S91TuZm6+DG/v6SFme/p+sWrYMQICGX6yQ5KD43Q=",
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"rev": "489fbc4e0ef987cfdce700476abafe3269ebf3e5", "rev": "e33fbde199eaad513ef5d0746db19d5878150232",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"ref": "master",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"type": "gitlab" "type": "gitlab"
} }
+2 -2
View File
@@ -25,7 +25,7 @@
# Mail Server # Mail Server
simple-nixos-mailserver = { simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master"; url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
inputs = { inputs = {
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat"; flake-compat.follows = "flake-compat";
@@ -44,7 +44,7 @@
# Dailybot # Dailybot
dailybot = { dailybot = {
url = "git+https://git.neet.dev/zuckerberg/dailybot.git"; url = "github:GoogleBot42/dailybot";
inputs = { inputs = {
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils"; flake-utils.follows = "flake-utils";
+1 -1
View File
@@ -59,7 +59,7 @@ in
enable = thisMachineIsPersonal; enable = thisMachineIsPersonal;
}; };
programs.vscode = { programs.vscodium = {
enable = thisMachineIsPersonal; enable = thisMachineIsPersonal;
# Must use fhs version for vscode-lldb # Must use fhs version for vscode-lldb
package = pkgs.vscodium-fhs; package = pkgs.vscodium-fhs;
+1 -1
View File
@@ -75,7 +75,7 @@
# Get wildcard cert # Get wildcard cert
security.acme.certs."fry.neet.dev" = { security.acme.certs."fry.neet.dev" = {
dnsProvider = "digitalocean"; dnsProvider = "digitalocean";
credentialsFile = "/run/agenix/digitalocean-dns-credentials"; environmentFile = "/run/agenix/digitalocean-dns-credentials";
extraDomainNames = [ "*.fry.neet.dev" ]; extraDomainNames = [ "*.fry.neet.dev" ];
group = "nginx"; group = "nginx";
dnsResolver = "1.1.1.1:53"; dnsResolver = "1.1.1.1:53";
+7 -1
View File
@@ -43,7 +43,13 @@
]; ];
# Ensures that dhcp is active during initrd (Network Manager is used post boot) # Ensures that dhcp is active during initrd (Network Manager is used post boot)
boot.initrd.network.udhcpc.enable = true; boot.initrd.systemd.network = {
enable = true;
networks."10-default" = {
matchConfig.Type = "ether";
networkConfig.DHCP = "yes";
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+1 -1
View File
@@ -259,7 +259,7 @@
# Get wildcard cert # Get wildcard cert
security.acme.certs."s0.neet.dev" = { security.acme.certs."s0.neet.dev" = {
dnsProvider = "digitalocean"; dnsProvider = "digitalocean";
credentialsFile = "/run/agenix/digitalocean-dns-credentials"; environmentFile = "/run/agenix/digitalocean-dns-credentials";
extraDomainNames = [ "*.s0.neet.dev" ]; extraDomainNames = [ "*.s0.neet.dev" ];
group = "nginx"; group = "nginx";
dnsResolver = "1.1.1.1:53"; dnsResolver = "1.1.1.1:53";