From ee32c776143f6c5c65afbf3e10554e3b29241fa5 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Thu, 8 May 2025 19:18:22 +0200 Subject: [PATCH] Bounch of linux system goodies, swayfx, swaylock-effects, firewall, auto store cleanup, audio, ly display manager, vpn, time/date/localization --- nix/system/linux.nix | 55 +++++++++++++++++++++++++++++++++++++- nix/system/linux_aarch.nix | 2 -- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/nix/system/linux.nix b/nix/system/linux.nix index f46c0b2..6601eeb 100644 --- a/nix/system/linux.nix +++ b/nix/system/linux.nix @@ -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 ]; } diff --git a/nix/system/linux_aarch.nix b/nix/system/linux_aarch.nix index 036d139..49c0ed9 100644 --- a/nix/system/linux_aarch.nix +++ b/nix/system/linux_aarch.nix @@ -49,8 +49,6 @@ tlp.enable = true; }; - }; - users.users.larssonmartin = { isNormalUser = true; home = "/home/larssonmartin";