flake/modules/profiles/base.nix
2024-10-18 23:01:33 +02:00

43 lines
980 B
Nix

{lib, config, pkgs, ...}: {
lyn.sops.default.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
nix.package = config.pkgsInstances.unstable.lix;
environment.variables.EDITOR = "nvim";
# TODO
time.timeZone = "Europe/Berlin";
# Firewall base config:
networking.firewall.enable = lib.mkDefault true;
networking.firewall.allowPing = true;
# SSH:
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "yes";
PasswordAuthentication = false;
};
openFirewall = true;
};
# Disable password checking for wheel group users so we can rely on ssh keys.
# WARNING: This has an security impact!
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
git
vim
neovim
wget
curl
htop
];
nix.gc = {
automatic = true;
persistent = true;
options = "--delete-older-than 8d";
};
}