niksos/hosts/chmura/configuration.nix

98 lines
2.2 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
2023-08-11 00:00:19 +02:00
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2023-07-13 12:49:20 +02:00
time.timeZone = "Europe/Warsaw";
2023-07-13 12:49:20 +02:00
nix.settings = {
experimental-features = [
"flakes"
"nix-command"
];
trusted-users = [
"root"
username
];
};
users.users.${username} = {
extraGroups = [ "docker" ];
};
2023-07-13 12:49:20 +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
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
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 = {
system = {
hostname = "chmura";
username = "chmura";
};
2024-02-29 01:12:02 +01:00
home-manager.enable = true;
};
2023-11-25 17:12:09 +01:00
programs = {
git = {
enable = true;
userName = "jacekpoz";
userEmail = "jacekpoz@cock.li";
signingKey = "0EEE6B0C9A8CC06820E59C3894E812A8B12AAE3C";
defaultBranch = "master";
};
starship.enable = true;
zsh.enable = true;
btop.enable = true;
neovim.enable = true;
helix.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
}