From 1a8ab9d9deeb222716f9544a67ea19d1a7a43bbd Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 19 Jun 2020 00:21:12 +0200 Subject: [PATCH] nixos, nix-darwin: fix user packages install It is insufficient to install the packages in `home.packages`, it has to be `home.path`, which includes configured extra package outputs or profile commands. --- nix-darwin/default.nix | 2 +- nixos/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 24f042a7f..4b226d443 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -68,7 +68,7 @@ in users.users = mkIf cfg.useUserPackages ( mapAttrs (username: usercfg: { - packages = usercfg.home.packages; + packages = [ usercfg.home.path ]; }) cfg.users ); diff --git a/nixos/default.nix b/nixos/default.nix index 62dcfc525..bb0e534ab 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -85,7 +85,7 @@ in { }))); users.users = mkIf cfg.useUserPackages - (mapAttrs (username: usercfg: { packages = usercfg.home.packages; }) + (mapAttrs (username: usercfg: { packages = [ usercfg.home.path ]; }) cfg.users); systemd.services = mapAttrs' (_: usercfg: