mirror of https://git.jolheiser.com/dotnix.git
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
let
|
|
username = "jolheiser";
|
|
key = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfKqCWtDlS3tgvfT6hQN+ii8UtabIZ+ZNmYN+bLwIa8PHOEW5MbfaqXSlhKkSi4+7SfQDCHphw0SMfhsQ4qMEcoywZ+4niDgKlQEVkl+S/VGbLuPe92NRStkyreZBLPr3Rh7ScNlGHcmHmoV9v7725fMnsMmabGVhpGO84PwNHOfJyv2tx2h6LxFbAV8S44UQu2lc8YLWCK2UvKuRnBerBXLnDQThUUX8UuCFzb786gQzD5XDU0MENbByxiy0XdVGAC+tFXEiSIgFZlFbFYyShgdTP9MzX2MOglEi+ae+1UIFncraW7ptUey7qHFJylpHWWWvE+GTwsg2G50i0FvFj jolheiser@jolheiser'';
|
|
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
|
|
];
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
|
|
networking = {
|
|
hostName = "dragonwell";
|
|
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [
|
|
80
|
|
443
|
|
6697
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
openssh.enable = true;
|
|
tailscale.enable = true;
|
|
};
|
|
|
|
users.users = {
|
|
"${username}" = {
|
|
extraGroups = [
|
|
"wheel"
|
|
"docker"
|
|
"storage"
|
|
];
|
|
isNormalUser = true;
|
|
openssh.authorizedKeys.keys = [ key ];
|
|
};
|
|
"root".openssh.authorizedKeys.keys = [ key ];
|
|
};
|
|
|
|
system.stateVersion = "22.11";
|
|
}
|