File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 } ;
5252 } ;
5353 } ) ;
54+
55+ homeManagerModules . default = { config , pkgs , ... } :
56+ let
57+ ghPmPackage = self . packages . ${ pkgs . stdenv . hostPlatform . system } . default ;
58+ in
59+ {
60+ xdg . enable = true ;
61+ home . packages = [ ghPmPackage ] ;
62+
63+ systemd . user . services . gh-pm = {
64+ Unit = {
65+ Description = "gh-pm" ;
66+ After = [ "network-online.target" ] ;
67+ Wants = [ "network-online.target" ] ;
68+ } ;
69+
70+ Service = {
71+ ExecStart = "${ ghPmPackage } /bin/gh-pm" ;
72+ EnvironmentFile = "-%h/.gh-pm/env" ;
73+ Restart = "always" ;
74+ RestartSec = 10 ;
75+ WorkingDirectory = "%h/.gh-pm" ;
76+ } ;
77+
78+ Install = {
79+ WantedBy = [ "default.target" ] ;
80+ } ;
81+ } ;
82+ } ;
5483 } ;
5584}
Original file line number Diff line number Diff line change 99 repoPart = if repo != "" then repo else "b4fun/smol-modules" ;
1010 refPart = if ref != "" then "/" + ref else "" ;
1111 in if envRef != "" then envRef else "github:" + repoPart + refPart + "?dir=modules/gh-pm" ;
12- ghPmPackage = ( builtins . getFlake ghPmFlakeRef ) . packages . ${ pkgs . stdenv . hostPlatform . system } . default ;
12+ ghPmFlake = builtins . getFlake ghPmFlakeRef ;
1313in
1414
1515{
16+ imports = [ ghPmFlake . homeManagerModules . default ] ;
17+
1618 # Home Manager needs a bit of information about you and the
1719 # paths it should manage.
1820 home . username = builtins . getEnv "USER" ;
3234 go_1_25
3335 nodejs_22 # Node.js 22
3436 python314 # Python 3.14
35- ghPmPackage # GitHub Project Manager agent
3637 gh # GitHub CLI
3738 jq # JSON processor
3839 toml2json # TOML to JSON converter
You can’t perform that action at this time.
0 commit comments