niksos/hosts/chmura/configuration.nix

85 lines
2.1 KiB
Nix
Raw Normal View History

2023-07-13 12:49:20 +02:00
{
config,
...
}: let
2024-07-15 23:18:25 +02:00
inherit (config.poz.other.system) username;
in {
users.users.${username} = {
extraGroups = [ "docker" ];
};
2023-07-13 12:49:20 +02:00
2024-07-16 08:07:53 +02:00
services.caddy = let
redirToFlake = ''
redir https://git.jacekpoz.pl/poz/niksos
'';
2024-09-03 01:29:19 +02:00
redirToQmkFork = ''
redir https://git.jacekpoz.pl/poz/qmk_firmware/src/branch/master/keyboards/lily58/keymaps/poz
2024-09-03 01:29:19 +02:00
'';
in {
enable = true;
2024-04-14 18:49:29 +02:00
virtualHosts = {
"test.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:3001
'';
"f.jacekpoz.pl".extraConfig = ''
root * /srv/files
2024-04-14 18:49:29 +02:00
file_server
'';
2024-04-14 18:49:29 +02:00
"flake.jacekpoz.pl".extraConfig = redirToFlake;
"flake.jpoz.pl".extraConfig = redirToFlake;
2024-09-03 01:29:19 +02:00
"qmk.jacekpoz.pl".extraConfig = redirToQmkFork;
"qmk.jpoz.pl".extraConfig = redirToQmkFork;
2024-09-12 13:42:45 +02:00
"nsfw.jacekpoz.pl".extraConfig = ''
redir https://trollface.pl
'';
2024-04-14 18:49:29 +02:00
};
};
2023-07-14 23:12:41 +02:00
powerManagement.cpuFreqGovernor = "performance";
2023-07-15 23:42:18 +02:00
virtualisation = {
2023-10-03 19:22:24 +02:00
podman = {
enable = true;
dockerCompat = true;
};
oci-containers.backend = "podman";
};
2023-07-14 13:30:53 +02:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
2024-09-16 13:31:09 +02:00
networking.firewall.allowedUDPPorts = [ 80 443 ];
2023-07-13 12:49:20 +02:00
2024-07-15 23:18:25 +02:00
poz = {
other.home-manager.enable = true;
2023-11-25 17:12:09 +01:00
programs = {
git = {
enable = true;
defaultBranch = "master";
};
2023-11-25 17:12:09 +01:00
starship.enable = true;
zsh.enable = true;
btop.enable = true;
neovim = {
enable = true;
enableLsp = false;
};
2023-11-25 17:12:09 +01:00
};
services = {
ssh = {
agent.enable = false;
daemon = {
enable = true;
ports = [ 7312 22 ];
};
};
syncthing.enable = true;
};
2023-11-25 17:12:09 +01:00
};
system.stateVersion = "23.11";
2023-07-13 12:49:20 +02:00
}