From 142e09b930ff4ce2f3afeaa1cbb70674f27b0111 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Wed, 31 Aug 2022 14:32:14 +0200 Subject: nixos: services: add service to reload direnvs after auto nixos upgrades --- nixos/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/configuration.nix') diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c384a54..085bcf2 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ lib, config, pkgs, ... }: { imports = [ @@ -37,6 +37,7 @@ enable = true; flags = [ "--upgrade-all" ]; }; + systemd.services.nix-gc.after = lib.mkIf config.system.autoUpgrade.enable [ "nixos-upgrade.service" ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. -- cgit v1.2.3