Bounch of linux system goodies, swayfx, swaylock-effects, firewall,

auto store cleanup, audio, ly display manager, vpn,
       time/date/localization
This commit is contained in:
Martin Larsson 2025-05-08 19:18:22 +02:00
parent 555e0bd865
commit ee32c77614
2 changed files with 54 additions and 3 deletions

View file

@ -1,13 +1,66 @@
{ pkgs, ... }:
{
programs = {
zsh = {
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
];
}

View file

@ -49,8 +49,6 @@
tlp.enable = true;
};
};
users.users.larssonmartin = {
isNormalUser = true;
home = "/home/larssonmartin";