services: home-manager init with kdeconnect and pkgsets integration
This commit is contained in:
parent
1861afd4a7
commit
15cb1af8ac
4 changed files with 75 additions and 0 deletions
16
services/home/userPackages.nix
Normal file
16
services/home/userPackages.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
users,
|
||||
pkgsets,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
user = users."${config.home.username}";
|
||||
in
|
||||
lib.mkIf (user ? pkgs) {
|
||||
home.packages = lib.flatten (
|
||||
map (setName: lib.optionals (pkgsets ? "${setName}") pkgsets."${setName}".pkgwrap) user.pkgs
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue