2023-07-13 12:49:20 +02:00
|
|
|
{
|
2024-02-29 00:29:56 +01:00
|
|
|
config,
|
2023-07-15 23:41:03 +02:00
|
|
|
...
|
2024-02-29 00:29:56 +01:00
|
|
|
}: let
|
2024-04-14 18:49:29 +02:00
|
|
|
inherit (config.myOptions.other.system) username;
|
2024-02-29 00:29:56 +01:00
|
|
|
in {
|
2023-09-13 20:58:03 +02:00
|
|
|
nixpkgs = {
|
|
|
|
# fuck broadcom
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2024-02-29 00:29:56 +01:00
|
|
|
users.users.${username} = {
|
|
|
|
extraGroups = [ "docker" ];
|
2023-07-15 23:41:03 +02:00
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2024-07-16 08:07:53 +02:00
|
|
|
services.caddy = let
|
2024-03-19 00:12:05 +01:00
|
|
|
redirToFlake = ''
|
|
|
|
redir https://git.jacekpoz.pl/jacekpoz/niksos
|
|
|
|
'';
|
|
|
|
in {
|
2023-07-15 23:41:03 +02:00
|
|
|
enable = true;
|
2024-04-14 18:49:29 +02:00
|
|
|
virtualHosts = {
|
|
|
|
"test.jacekpoz.pl".extraConfig = ''
|
|
|
|
reverse_proxy * localhost:3001
|
|
|
|
'';
|
|
|
|
|
|
|
|
"f.jacekpoz.pl".extraConfig = ''
|
2024-05-17 01:12:32 +02:00
|
|
|
root * /srv/files
|
2024-04-14 18:49:29 +02:00
|
|
|
file_server
|
|
|
|
'';
|
2024-03-19 00:12:05 +01:00
|
|
|
|
2024-04-14 18:49:29 +02:00
|
|
|
"flake.jacekpoz.pl".extraConfig = redirToFlake;
|
|
|
|
"flake.jpoz.pl".extraConfig = redirToFlake;
|
|
|
|
};
|
2023-07-15 23:41:03 +02:00
|
|
|
};
|
2023-07-14 23:12:41 +02:00
|
|
|
|
2024-07-24 18:20:24 +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-15 23:41:03 +02:00
|
|
|
};
|
2023-07-14 13:30:53 +02:00
|
|
|
|
2023-07-15 23:41:03 +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 = {
|
2024-05-03 17:46:37 +02:00
|
|
|
other.home-manager.enable = true;
|
2023-11-25 17:12:09 +01:00
|
|
|
programs = {
|
2024-07-15 21:53:54 +02:00
|
|
|
agenix.enable = true;
|
2024-05-03 23:29:44 +02:00
|
|
|
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;
|
|
|
|
};
|
2024-05-03 23:29:44 +02:00
|
|
|
services = {
|
|
|
|
ssh = {
|
|
|
|
agent.enable = false;
|
|
|
|
daemon.enable = true;
|
|
|
|
};
|
|
|
|
syncthing.enable = true;
|
|
|
|
};
|
2023-11-25 17:12:09 +01:00
|
|
|
};
|
|
|
|
|
2023-07-15 23:41:03 +02:00
|
|
|
system.stateVersion = "23.11";
|
2023-07-13 12:49:20 +02:00
|
|
|
}
|