.dotfiles/nix/system/linux.nix
Martin Larsson ee32c77614 Bounch of linux system goodies, swayfx, swaylock-effects, firewall,
auto store cleanup, audio, ly display manager, vpn,
       time/date/localization
2025-05-08 19:18:22 +02:00

66 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
programs = {
zsh.enable = true;
sway = {
enable = true;
package = pkgs.swayfx;
};
};
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
};
nix = {
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
services = {
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
displayManager.ly = {
enable = true;
};
timesyncd.enable = true;
mullvad-vpn.enable = true;
};
time = {
timeZone = "Europe/Stockholm";
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_NUMERIC = "sv_SE.UTF-8";
LC_MONETARY = "sv_SE.UTF-8";
LC_PAPER = "sv_SE.UTF-8";
LC_MEASUREMENT = "sv_SE.UTF-8";
};
supportedLocales = [
"en_US.UTF-8/UTF-8"
"sv_SE.UTF-8/UTF-8"
];
};
environment.systemPackages = with pkgs; [
vim
home-manager
swaylock-effects
];
}