62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
# fuck broadcom
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
nix.settings = {
|
|
experimental-features = [
|
|
"flakes"
|
|
"nix-command"
|
|
];
|
|
};
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
users.users.chmura = {
|
|
isNormalUser = true;
|
|
extraGroups = ["wheel"];
|
|
shell = pkgs.zsh;
|
|
packages = with pkgs; [
|
|
curl
|
|
neovim
|
|
neofetch
|
|
git
|
|
wireguard-tools
|
|
ntfy
|
|
];
|
|
};
|
|
|
|
environment = {
|
|
shells = with pkgs; [zsh];
|
|
pathsToLink = [ "/share/zsh" ];
|
|
sessionVariables = {
|
|
EDITOR = "nvim";
|
|
};
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = true;
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."trollface.pl".extraConfig = ''
|
|
reverse_proxy * /home/chmura/trollface
|
|
'';
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 22 ];
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|