2023-09-02 03:22:33 +00:00
|
|
|
let
|
2023-09-01 03:34:54 +00:00
|
|
|
username = "jolheiser";
|
2024-08-08 22:24:50 +00:00
|
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+uhnfFLhlyfGGsksSxh5IIY6gnIMryeQ2EiM979kZa";
|
2024-08-01 18:27:47 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
2024-11-24 21:17:08 +00:00
|
|
|
# ./actual.nix
|
2024-08-01 18:27:47 +00:00
|
|
|
./caddy.nix
|
2024-10-17 16:00:07 +00:00
|
|
|
./cfg.nix
|
2024-08-01 18:27:47 +00:00
|
|
|
./dex.nix
|
2024-09-05 04:08:09 +00:00
|
|
|
./foundry.nix
|
2024-08-01 18:27:47 +00:00
|
|
|
./git-pr.nix
|
|
|
|
./golink.nix
|
|
|
|
./gotosocial.nix
|
|
|
|
./restic.nix
|
|
|
|
./soju.nix
|
|
|
|
./tandoor.nix
|
|
|
|
./tclip.nix
|
|
|
|
./ugit.nix
|
|
|
|
./vikunja.nix
|
|
|
|
./hardware.nix
|
|
|
|
];
|
2023-09-01 03:34:54 +00:00
|
|
|
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "dragonwell";
|
|
|
|
|
2023-09-02 03:22:33 +00:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
2024-08-01 18:27:47 +00:00
|
|
|
allowedTCPPorts = [
|
|
|
|
80
|
|
|
|
443
|
|
|
|
6697
|
|
|
|
];
|
2023-09-02 03:22:33 +00:00
|
|
|
};
|
2023-09-01 03:34:54 +00:00
|
|
|
};
|
|
|
|
|
2024-07-20 22:57:51 +00:00
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
|
|
|
tailscale.enable = true;
|
|
|
|
};
|
2023-09-01 03:34:54 +00:00
|
|
|
|
2023-10-18 04:54:24 +00:00
|
|
|
users.users = {
|
|
|
|
"${username}" = {
|
2024-08-01 18:27:47 +00:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"docker"
|
|
|
|
"storage"
|
2023-10-18 04:54:24 +00:00
|
|
|
];
|
2024-08-01 18:27:47 +00:00
|
|
|
isNormalUser = true;
|
|
|
|
openssh.authorizedKeys.keys = [ key ];
|
2023-10-18 04:54:24 +00:00
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
"root".openssh.authorizedKeys.keys = [ key ];
|
2023-09-01 03:34:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|