From d69d3825d55c24420747e080f4840a099176ce51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 13 Oct 2022 15:45:49 +0200 Subject: pkgs: add cynerd-profile The idea is that on NixOS not used solely by me I can use nix profile to install packages and shell environment I want without installing the to the system. --- flake.lock | 26 +++++++++++++------------- nixos/modules/develop.nix | 1 + pkgs/default.nix | 9 +++++++++ 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index 05b37de..0b33837 100644 --- a/flake.lock +++ b/flake.lock @@ -58,11 +58,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1665040200, - "narHash": "sha256-glqL6yj3aUm40y92inzRmowGt9aIrUrpBX7eBAMic4I=", + "lastModified": 1665649208, + "narHash": "sha256-MDkPVG4W8gigJ8OxWDp9L6aKaEwLRV3As1RvKkMq0rc=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "47fd70289491c1f0c0d9a1f44fb5a9e2801120c9", + "rev": "d92ed98c099ae731664fc526c348d609c4cffe04", "type": "github" }, "original": { @@ -72,11 +72,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1665087388, - "narHash": "sha256-FZFPuW9NWHJteATOf79rZfwfRn5fE0wi9kRzvGfDHPA=", + "lastModified": 1665634984, + "narHash": "sha256-zwXeMc96BD9iFxSB/SLr3dI8iYpqM+seX9qy6bGV+cw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "95fda953f6db2e9496d2682c4fc7b82f959878f7", + "rev": "cfea568da97a2668ef3cb3fc42eaacfb0e706807", "type": "github" }, "original": { @@ -182,11 +182,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1664443388, - "narHash": "sha256-jhYEjbMUfuiP7dbua1Pyn+70MvuMYZ4Cz6RQFeK4hpM=", + "lastModified": 1665667521, + "narHash": "sha256-T/+xbor0L5U9VkZAfIbDVn7xKaqcBlVM5IySnPsRRTs=", "ref": "refs/heads/master", - "rev": "23472c9673e2fffbf4e34f2fc05739570b603f8c", - "revCount": 75, + "rev": "43bd5ac8b20f0f846da6c067eba4058b86daa0fb", + "revCount": 79, "type": "git", "url": "https://git.cynerd.cz/shellrc" }, @@ -231,11 +231,11 @@ }, "vpsadminos": { "locked": { - "lastModified": 1665142824, - "narHash": "sha256-J4hzH+Y5BSJmsVRsfkNnJLzNZHTjFeyAwxvSP3LRYAo=", + "lastModified": 1665653150, + "narHash": "sha256-I+Tu9mZmZ6Odc2fDXvh2e+FmNt5OWfHTgbnMRzTiwPU=", "owner": "vpsfreecz", "repo": "vpsadminos", - "rev": "5ccaaaf91d3a330b5434c664ed4b98da3bdd7918", + "rev": "53f83a6ca7f8fa417c2d0fdfd4b382eb9e739744", "type": "github" }, "original": { diff --git a/nixos/modules/develop.nix b/nixos/modules/develop.nix index 70c8910..76f0d71 100644 --- a/nixos/modules/develop.nix +++ b/nixos/modules/develop.nix @@ -16,6 +16,7 @@ in { config = mkIf config.cynerd.develop { cynerd.compile = true; + environment.enableDebugInfo = true; environment.systemPackages = with pkgs; [ # Tools tig gource hub github-cli # Git diff --git a/pkgs/default.nix b/pkgs/default.nix index 46b65f3..56f23cc 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -21,6 +21,15 @@ let sdcv-unwrapped = callPackage ./sdcv { }; sdcv = callPackage ./stardict/wrapper.nix { stardict = sdcv-unwrapped; }; + # Package to be installed to the user's profile + cynerd-profile = pkgs.symlinkJoin { + name = "cynerd-profile"; + paths = with pkgs; [ + self.inputs.shellrc.packages.${nixpkgs.system}.default + tig + ]; + }; + }; in personalpkgs -- cgit v1.2.3