2023-09-02 03:22:33 +00:00
|
|
|
let
|
2023-09-01 03:34:54 +00:00
|
|
|
username = "jolheiser";
|
2023-10-18 04:54:24 +00:00
|
|
|
key = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfKqCWtDlS3tgvfT6hQN+ii8UtabIZ+ZNmYN+bLwIa8PHOEW5MbfaqXSlhKkSi4+7SfQDCHphw0SMfhsQ4qMEcoywZ+4niDgKlQEVkl+S/VGbLuPe92NRStkyreZBLPr3Rh7ScNlGHcmHmoV9v7725fMnsMmabGVhpGO84PwNHOfJyv2tx2h6LxFbAV8S44UQu2lc8YLWCK2UvKuRnBerBXLnDQThUUX8UuCFzb786gQzD5XDU0MENbByxiy0XdVGAC+tFXEiSIgFZlFbFYyShgdTP9MzX2MOglEi+ae+1UIFncraW7ptUey7qHFJylpHWWWvE+GTwsg2G50i0FvFj jolheiser@jolheiser'';
|
2023-09-01 03:34:54 +00:00
|
|
|
in {
|
2024-07-15 03:50:27 +00:00
|
|
|
imports = [./caddy.nix ./dex.nix ./git-pr.nix ./golink.nix ./gotosocial.nix ./restic.nix ./tandoor.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;
|
|
|
|
allowedTCPPorts = [80 443];
|
|
|
|
};
|
2023-09-01 03:34:54 +00:00
|
|
|
};
|
|
|
|
|
2023-09-06 17:18:30 +00:00
|
|
|
services.openssh.enable = true;
|
2023-09-01 03:34:54 +00:00
|
|
|
|
2023-10-18 04:54:24 +00:00
|
|
|
users.users = {
|
|
|
|
"${username}" = {
|
|
|
|
extraGroups = ["wheel" "docker" "storage"];
|
|
|
|
isNormalUser = true;
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
key
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"root".openssh.authorizedKeys.keys = [key];
|
2023-09-01 03:34:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|