niksos/hosts/chmura/configuration.nix

73 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-13 12:49:20 +02:00
{
config,
...
}: let
2024-04-14 18:49:29 +02:00
inherit (config.myOptions.other.system) username;
in {
2023-09-13 20:58:03 +02:00
nixpkgs = {
# fuck broadcom
config.allowUnfree = true;
};
2023-07-13 12:49:20 +02:00
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/jacekpoz/niksos
'';
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;
};
};
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 22 ];
2023-07-13 12:49:20 +02:00
2023-11-25 17:12:09 +01:00
myOptions = {
other.home-manager.enable = true;
2023-11-25 17:12:09 +01:00
programs = {
agenix.enable = true;
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;
};
services = {
ssh = {
agent.enable = false;
daemon.enable = true;
};
syncthing.enable = true;
};
2023-11-25 17:12:09 +01:00
};
system.stateVersion = "23.11";
2023-07-13 12:49:20 +02:00
}