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 = [
|
|
|
|
./actual.nix
|
|
|
|
./caddy.nix
|
|
|
|
./dex.nix
|
|
|
|
./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";
|
|
|
|
}
|