2023-07-13 12:49:20 +02:00
|
|
|
{
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-07-13 17:15:13 +02:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
cl = "clear";
|
|
|
|
cp = "cp -ivr";
|
|
|
|
mv = "mv -iv";
|
|
|
|
rm = "trash -v";
|
|
|
|
l = "ls -A --color=auto";
|
|
|
|
e = "exa -lha --git";
|
|
|
|
v = "nvim";
|
|
|
|
kys = "shutdown now";
|
|
|
|
g = "git";
|
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
bindkey '^H' backward-kill-word
|
|
|
|
'';
|
|
|
|
history = {
|
|
|
|
path = "${config.xdg.dataHome}/zsh/zsh_history";
|
|
|
|
size = 999999999;
|
|
|
|
extended = true;
|
|
|
|
ignoreSpace = true;
|
|
|
|
};
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
autocd = false;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "fast-syntax-highlighting";
|
|
|
|
file = "fast-syntax-highlighting.plugin.zsh";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "zdharma-continuum";
|
|
|
|
repo = "fast-syntax-highlighting";
|
|
|
|
rev = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9";
|
|
|
|
sha256 = "sha256-RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2023-07-13 12:58:46 +02:00
|
|
|
users.users.chmura = {
|
2023-07-13 12:49:20 +02:00
|
|
|
isNormalUser = true;
|
2023-07-13 12:58:46 +02:00
|
|
|
extraGroups = ["wheel"];
|
2023-07-13 12:49:20 +02:00
|
|
|
shell = pkgs.zsh;
|
2023-07-13 12:58:46 +02:00
|
|
|
packages = with pkgs; [
|
|
|
|
curl
|
|
|
|
neovim
|
|
|
|
neofetch
|
|
|
|
git
|
|
|
|
wireguard-tools
|
2023-07-13 15:11:17 +02:00
|
|
|
ntfy
|
2023-07-13 12:58:46 +02:00
|
|
|
];
|
2023-07-13 12:49:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
shells = with pkgs; [zsh];
|
|
|
|
pathsToLink = [ "/share/zsh" ];
|
2023-07-13 12:58:46 +02:00
|
|
|
sessionVariables = {
|
2023-07-13 12:49:20 +02:00
|
|
|
EDITOR = "nvim";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2023-07-13 16:39:27 +02:00
|
|
|
settings.PasswordAuthentication = true;
|
2023-07-13 12:49:20 +02:00
|
|
|
};
|
|
|
|
|
2023-07-14 13:30:53 +02:00
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."trollface.pl".extraConfig = ''
|
|
|
|
reverse_proxy * /home/chmura/trollface
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-07-13 12:49:20 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 22 ];
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|