rice/hosts/ami/default.nix

61 lines
1,006 B
Nix
Raw Normal View History

2024-01-25 15:54:05 +00:00
{
pkgs,
agenix,
2024-03-29 20:56:26 +00:00
disko,
2024-01-25 15:54:05 +00:00
...
}: {
imports = [
./system.nix
agenix.nixosModules.default
2024-03-29 20:56:26 +00:00
disko.nixosModules.disko
2024-01-25 15:54:05 +00:00
./404.nix
2024-01-25 15:54:05 +00:00
./acme.nix
./bitwarden.nix
./borg.nix
2024-03-29 20:56:26 +00:00
./disk-config.nix
./forgejo.nix
./msmtp.nix
./murmur.nix
./nginx.nix
2024-05-05 20:32:10 +00:00
./upgrade.nix
2024-01-25 15:54:05 +00:00
../../users/maintainer
];
age.identityPaths = ["/root/.ssh/id_agenix"];
2024-01-25 15:54:05 +00:00
users = {
mutableUsers = false;
users.root.hashedPassword = "!";
};
environment.systemPackages = with pkgs; [
git
htop
neovim
tree
];
2024-04-22 09:36:13 +00:00
services.syncthing.enable = true;
2024-06-17 10:23:00 +00:00
systemd = {
services.register-thing = {
serviceConfig = {
Type = "oneshot";
User = "maintainer";
ExecStart = "/home/maintainer/register-thing/thing";
};
};
timers.register-thing = {
wantedBy = ["timers.target"];
timerConfig = {
OnUnitActiveSec = "1m";
RandomizedDelaySec = "1m";
Unit = "register-thing";
};
};
};
2024-01-25 15:54:05 +00:00
}