From 6b59d19eb725011cbd755b6874d6b75b00065919 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Mon, 25 Dec 2023 17:15:37 -0600 Subject: [PATCH] workstation | sync w/ pinetab --- workstation/default.nix | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/workstation/default.nix b/workstation/default.nix index a5f7c10..9b6da44 100644 --- a/workstation/default.nix +++ b/workstation/default.nix @@ -20,21 +20,16 @@ in }; gc = { automatic = true; - options = "-d"; + dates = "weekly"; + options = "--delete-older-than 7d"; }; }; - imports = + imports = [ ./detect-reboot-needed.nix ./systemd.nix ./upgrade-diff.nix ]; - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.loader.efi.efiSysMountPoint = "/boot"; - boot.kernelPackages = pkgs.linuxPackages_latest; - boot.kernelParams = [ "consoleblank=60" ]; # Enable networking networking.networkmanager.enable = true; @@ -43,7 +38,7 @@ in networking.useDHCP = false; # Set your time zone. - time = { + time = { timeZone = "America/Chicago"; hardwareClockInLocalTime = false; }; @@ -59,9 +54,27 @@ in ]; }; - # Splash screen - boot.plymouth.enable = true; - boot.plymouth.theme = "breeze"; + # Bootloader. + boot = { + kernelPackages = pkgs.linuxPackages_latest; + kernelParams = [ "consoleblank=60" ]; + loader = { + systemd-boot = { + enable = true; + }; + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot"; + }; + }; + plymouth = { + enable = true; + theme = "breeze"; + }; + kernel = { + sysctl = { "vm.swappiness" = 10;}; + }; + }; security = { polkit = { @@ -252,7 +265,7 @@ in auth = true; tls = true; port = 587; - from = "don@donharper.org"; + from = "duck@duckland.org"; host = "smtp.gmail.com"; user = "duckunix@gmail.com"; passwordeval = "cat /home/don/.smtp_password.txt";