From 2d2be6b50cde42ecd77470bced2c21a39ce92661 Mon Sep 17 00:00:00 2001 From: caem Date: Thu, 23 Jan 2025 01:42:41 +0100 Subject: [PATCH] surely this will work --- lib/hosts.nix | 1 + modules/nixos/core/systemd.nix | 8 ++++++++ modules/nixos/desktop/gnome/default.nix | 10 +++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 modules/nixos/core/systemd.nix diff --git a/lib/hosts.nix b/lib/hosts.nix index c565acf..dbcae5b 100644 --- a/lib/hosts.nix +++ b/lib/hosts.nix @@ -17,6 +17,7 @@ specialArgs = { inherit inputs; inherit lib; + username = user; }; }; }) (lib.getDirsInDir ../hosts)); diff --git a/modules/nixos/core/systemd.nix b/modules/nixos/core/systemd.nix new file mode 100644 index 0000000..0738be6 --- /dev/null +++ b/modules/nixos/core/systemd.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + /* https://files.catbox.moe/s5diss.mp4 */ + systemd.extraConfig = '' + DefaultTimeoutStopSpec=5s + ''; +} diff --git a/modules/nixos/desktop/gnome/default.nix b/modules/nixos/desktop/gnome/default.nix index 8fdcbc4..c02e6db 100644 --- a/modules/nixos/desktop/gnome/default.nix +++ b/modules/nixos/desktop/gnome/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, username, ... }: { services.xserver = { @@ -40,4 +40,12 @@ just-perfection quick-settings-tweaker ]); + + environment.persistence."/nix/persist" = { + users."${username}" = { + directories = [ + ".config/dconf" + ]; + }; + }; }