Commit 8f72153334a3

Vincent Demeester <vincent@sbr.pm>
2026-02-18 16:37:12
refactor(systems): move vincent.linger to common
Centralized users.users.vincent.linger in common/users/vincent.nix and removed the duplicated setting from 7 host extra.nix files.
1 parent 1827ca4
Changed files (8)
systems
systems/aix/extra.nix
@@ -30,13 +30,11 @@ in
 {
   imports = [
     ../common/services/samba.nix
-    ../common/services/prometheus-exporters-node.nix
+
   ];
 
   networking.firewall.enable = false;
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
 
   services = {
     # Rsync data from aion to aix for local network access
systems/aomi/extra.nix
@@ -19,7 +19,7 @@
     ../common/services/docker.nix
     ../common/services/libvirt.nix
     ../common/services/binfmt.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/oomd.nix
 
     ../redhat
@@ -31,8 +31,6 @@
     denyinterfaces wg0
   '';
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
 
   services = {
     logind.settings.Login = {
systems/athena/extra.nix
@@ -6,14 +6,12 @@
 {
   imports = [
     ../common/services/bind.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/prometheus-exporters-bind.nix
   ];
 
   networking.firewall.enable = false;
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
 
   # Age secrets for imapfilter
   age.secrets."icloud-vdemeester-password" = {
systems/common/users/vincent.nix
@@ -80,9 +80,7 @@ in
   };
 
   # Enable user units to persist after sessions end.
-  # system.activationScripts.loginctl-enable-linger-vincent = lib.stringAfter [ "users" ] ''
-  #   ${pkgs.systemd}/bin/loginctl enable-linger ${config.users.users.vincent.name}
-  # '';
+  users.users.vincent.linger = true;
 
   # Do I user home-manager nixosModule *or* home-manager on its own
   home-manager.users.vincent = import ../../../home/default.nix {
systems/demeter/extra.nix
@@ -7,14 +7,12 @@
 {
   imports = [
     ../common/services/bind.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/prometheus-exporters-bind.nix
   ];
 
   networking.firewall.enable = false;
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
   services = {
     mosquitto = {
       enable = true;
systems/kerkouane/extra.nix
@@ -100,7 +100,7 @@ let
 in
 {
   imports = [
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/openssh.nix
   ];
 
@@ -112,8 +112,6 @@ in
     group = "root";
   };
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
 
   # Allow Caddy to access git repositories in vincent's home
   users.users.caddy.extraGroups = [ "users" ];
systems/sakhalin/extra.nix
@@ -85,7 +85,7 @@ in
     ../common/services/containers.nix
     ../common/services/docker.nix
     ../common/services/binfmt.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/prometheus-exporters-postgres.nix
   ];
 
@@ -116,8 +116,6 @@ in
     group = "searx";
   };
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
 
   systemd.services.n8n.environment = {
     N8N_SECURE_COOKIE = "false";
systems/shikoku/extra.nix
@@ -6,7 +6,7 @@
 }:
 {
   imports = [
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/containers.nix
     ../common/services/docker.nix
     ../common/services/libvirt.nix
@@ -23,8 +23,6 @@
     "aspnetcore-runtime-6.0.36"
   ];
 
-  # TODO make it an option ? (otherwise I'll add it for all)
-  users.users.vincent.linger = true;
 
   services = {
     wireguard = {