From 37d9a153f8a117c8674ef5172b74febdb554cdc9 Mon Sep 17 00:00:00 2001 From: Milo Moisson Date: Thu, 13 Jun 2024 02:07:18 +0200 Subject: [PATCH] feat: make boot quiet, stop job timeout shorter --- home-manager/modules/vm/default.nix | 6 ------ nixos/profiles/laptop.nix | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/home-manager/modules/vm/default.nix b/home-manager/modules/vm/default.nix index ae5392a..58a03c0 100644 --- a/home-manager/modules/vm/default.nix +++ b/home-manager/modules/vm/default.nix @@ -304,12 +304,6 @@ in services.poweralertd.enable = true; - services.wlsunset = { - enable = true; - latitude = toString 48.8; - longitude = toString 2.3; - }; - services.darkman = { enable = true; settings.usegeoclue = true; diff --git a/nixos/profiles/laptop.nix b/nixos/profiles/laptop.nix index dd221e7..e38e0e0 100644 --- a/nixos/profiles/laptop.nix +++ b/nixos/profiles/laptop.nix @@ -31,6 +31,8 @@ with lib; }; boot = { + kernelParams = [ "quiet" ]; + kernelPackages = upkgs.linuxKernel.packages.linux_zen; extraModulePackages = with config.boot.kernelPackages; [ apfs perf xone ]; @@ -44,12 +46,17 @@ with lib; binfmt.emulatedSystems = [ "aarch64-linux" ]; }; + # Once in a while, the session stop job hangs and lasts the full default + # time (1min30). I just want to shutdown my computer please. + systemd.extraConfig = '' + DefaultTimeoutStopSec = 10s + ''; + programs.dconf.enable = true; time.timeZone = "Europe/Paris"; - # TODO: activate when it lands on stable - # services.ntpd-rs.enable = true; + services.ntpd-rs.enable = true; i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { @@ -93,7 +100,7 @@ with lib; enable = true; package = pkgs.wireshark; }; - users.users.${config.local.user.username}.extraGroups = [ "wireshark" ]; + users.users.${config.local.user.username}.extraGroups = [ "wireshark" "plugdev" ]; # This option is already filled with aliases that snowball and have # priority on fish internal `ls` aliases @@ -106,6 +113,8 @@ with lib; probe-rs-udev-rules ]; + users.groups.plugdev.name = "plugdev"; + services.devmon.enable = true; services.gvfs.enable = true;