From 72ff37a9ed947b336efca96c68243732f1f34d78 Mon Sep 17 00:00:00 2001 From: alisceon Date: Tue, 3 Feb 2026 17:12:17 +0100 Subject: [PATCH] just a lil utility --- flake.lock | 18 +++++++++--------- hosts/common/base.nix | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index df1d44a..7b35419 100644 --- a/flake.lock +++ b/flake.lock @@ -257,11 +257,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1770019141, - "narHash": "sha256-VKS4ZLNx4PNrABoB0L8KUpc1fE7CLpQXQs985tGfaCU=", + "lastModified": 1770115704, + "narHash": "sha256-KHFT9UWOF2yRPlAnSXQJh6uVcgNcWlFqqiAZ7OVlHNc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cb369ef2efd432b3cdf8622b0ffc0a97a02f3137", + "rev": "e6eae2ee2110f3d31110d5c222cd395303343b08", "type": "github" }, "original": { @@ -295,11 +295,11 @@ ] }, "locked": { - "lastModified": 1770125189, - "narHash": "sha256-boDXS39FRXDhrQZoK9CvsogApXnLM8UR1qvevawKN/g=", + "lastModified": 1770132504, + "narHash": "sha256-WaP6QZ2n1qJ4suxMpeKaT6R2KCOGdgB+saHhAE1Js8Y=", "owner": "nix-community", "repo": "NUR", - "rev": "6a5c8df1342ff2ba9f9c1a9a3ebd99393faafb54", + "rev": "0ce7c6797b843145e88f50d441ca32dcfdd5343f", "type": "github" }, "original": { @@ -316,11 +316,11 @@ ] }, "locked": { - "lastModified": 1770125189, - "narHash": "sha256-boDXS39FRXDhrQZoK9CvsogApXnLM8UR1qvevawKN/g=", + "lastModified": 1770132504, + "narHash": "sha256-WaP6QZ2n1qJ4suxMpeKaT6R2KCOGdgB+saHhAE1Js8Y=", "owner": "nix-community", "repo": "NUR", - "rev": "6a5c8df1342ff2ba9f9c1a9a3ebd99393faafb54", + "rev": "0ce7c6797b843145e88f50d441ca32dcfdd5343f", "type": "github" }, "original": { diff --git a/hosts/common/base.nix b/hosts/common/base.nix index 44352a4..01026db 100644 --- a/hosts/common/base.nix +++ b/hosts/common/base.nix @@ -72,6 +72,9 @@ environment = { systemPackages = with pkgs; [ + # Libraries + libressl + # CLI tools git wget @@ -87,11 +90,11 @@ usbutils tree fzf # fuzzy finder - cowsay # important psmisc pv file - + nix-tree + # Shells bash nushell @@ -113,6 +116,13 @@ powershell xonsh ]; + etc."current-system-packages".text = + let + packages = builtins.map (p: "${p.name}:\t${p}") config.environment.systemPackages; + sortedUnique = builtins.sort builtins.lessThan (pkgs.lib.lists.unique packages); + formatted = pkgs.lib.strings.concatLines sortedUnique; + in + formatted; }; # end environment virtualisation = {