From 48890e97f2f65f906fe5e9957a59a157a167fe37 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sun, 7 Aug 2022 13:29:13 +0200 Subject: [PATCH] generate user packages list file --- home/home.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/home.nix b/home/home.nix index eb88ae08..bd6e767f 100644 --- a/home/home.nix +++ b/home/home.nix @@ -81,6 +81,15 @@ rec { filesystems=${home.homeDirectory}/.var/app/com.valvesoftware.Steam/data/Steam;${home.homeDirectory}/Downloads;${home.homeDirectory}/GameSSD;${home.homeDirectory}/GameHDD ''; + # Generate a list of installed user packages in /etc/current-user-packages + home.file.".local/share/current-user-packages".text = + let + packages = builtins.map (p: "${p.name}") home.packages; + sortedUnique = builtins.sort builtins.lessThan (lib.unique packages); + formatted = builtins.concatStringsSep "\n" sortedUnique; + in + formatted; + # TODO: Make to a derivation with makeDesktopIcon and add to music module # Doesn't work # home.file.".local/share/applications/carla-guitar-amp.desktop".text = ''