<edeneast>
Have a question regarding home-manager and how it builds. I know that for nixos-rebuild evaluates `system.build.toplevel` to build the system. When I call home-manager build does it have something similar?
<edeneast>
Looking to do something similar to `nix build /path/to/my-flake#nixosConfigurations.<configname>.config.system.build.toplevel` for home-manager
<infinisil>
edeneast: activationPackage
<infinisil>
E.g. in home-managers source, this works: nix-build home-manager/home-manager.nix --arg confPath ./home.nix -A activationPackage
edeneast has quit [Remote host closed the connection]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<energizer>
i am using nix on nfs without flock and the db.sqlite keeps getting corrupted. is it possible to use nix (maybe locally) to configure the home profile without actually using /nix/var/nix/db on the target machine?
<energizer>
i dont have root on target
judson__ has joined #home-manager
<energizer>
oops wrong channel
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 240 seconds]
DigitalKiwi has quit [Quit: quite.]
DigitalKiwi has joined #home-manager
cole-h has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 265 seconds]
judson__ has quit [Ping timeout: 260 seconds]
malSet has quit [Ping timeout: 256 seconds]
cole-h has quit [Quit: Goodbye]
malSet has joined #home-manager
jurlerci has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 256 seconds]
bradparker has joined #home-manager
o1lo01ol1o has joined #home-manager
bbigras has quit [Quit: killed]
Ericson2314 has quit [Quit: killed]
theduke has quit [Quit: killed]
maralorn has quit [Quit: killed]
Ox4A6F has quit [Quit: killed]
NobbZ[m] has quit [Quit: killed]
dash has quit [Quit: killed]
philipp[m] has quit [Quit: killed]
colemickens has quit [Quit: killed]
jonge[m] has quit [Quit: killed]
DamienCassou has quit [Quit: killed]
benkolera has quit [Quit: killed]
Notkea[m] has quit [Quit: killed]
M0-[m] has quit [Quit: killed]
Dandellion has quit [Quit: killed]
sparogy has quit [Quit: killed]
aterius has quit [Quit: killed]
rycee has quit [Quit: killed]
JJJollyjim has quit [Quit: killed]
Ke has quit [Quit: killed]
rschulman has quit [Quit: killed]
siraben has quit [Quit: killed]
enick_707 has quit [Quit: killed]
ZerataX has quit [Quit: killed]
jschievink has quit [Quit: killed]
hpfr has quit [Quit: killed]
alexarice[m] has quit [Quit: killed]
nicolas[m]1 has quit [Quit: killed]
tristan[m] has quit [Quit: killed]
khassanov[m] has quit [Quit: killed]
hpfr has joined #home-manager
<jurlerci>
howdy, quick question: is there a way to get home-manager to automatically reload Xresources after it builds?
NobbZ[m] has joined #home-manager
<NobbZ[m]>
Perhaps you can use `home.activation` to run `xrdb`?
rycee has joined #home-manager
ZerataX has joined #home-manager
khassanov[m] has joined #home-manager
freeman42x[m] has joined #home-manager
Ox4A6F has joined #home-manager
nicolas[m]1 has joined #home-manager
Ke has joined #home-manager
theduke has joined #home-manager
jonge[m] has joined #home-manager
siraben has joined #home-manager
bbigras has joined #home-manager
JJJollyjim has joined #home-manager
DamienCassou has joined #home-manager
dash has joined #home-manager
M0-[m] has joined #home-manager
maralorn has joined #home-manager
sparogy has joined #home-manager
colemickens has joined #home-manager
Ericson2314 has joined #home-manager
philipp[m] has joined #home-manager
alexarice[m] has joined #home-manager
tristan[m] has joined #home-manager
aterius has joined #home-manager
benkolera has joined #home-manager
rschulman has joined #home-manager
Dandellion has joined #home-manager
Notkea[m] has joined #home-manager
jschievink has joined #home-manager
enick_918 has joined #home-manager
<jurlerci>
NobbZ[m]: i cant find that in the man page, how does it work?
<NobbZ[m]>
Also there is `home-manager-help` (if its enabled through HM).
<jurlerci>
hmm, i cant seem to figure that one out :( ill check the help
<jurlerci>
i dont have home-manager-help either :(
<jurlerci>
im following the example but it says it cant find lib.hm.dag.entryAfter, and it doesnt just accept home.activation = { reloadXresources = ''xrdb ~/.Xresources''; };
<NobbZ[m]>
I've never actually used it, just found about it yesterday.
<NobbZ[m]>
And to `lib` be available, you need to have it in your functions argset
<mudri>
How do I make home-manager get its packages from my clone of nixpkgs?
<NobbZ[m]>
Wrap the call to it with an appropriately set `NIX_PATH`
<mudri>
NobbZ[m]: Is that different from using the `-I` option?
<mudri>
NobbZ[m]: Also, what is the appropriate setting? Nothing I've tried seems to work.
<mudri>
Normally, it still gets packages from wherever they came from before. But if I do, for example, `NIX_PATH=/home/james/nixpkgs home-manager switch`, I get the error message `error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)`.
Shados_ has joined #home-manager
infty_ has joined #home-manager
nicolas[m]1 has quit [*.net *.split]
rycee has quit [*.net *.split]
hpfr has quit [*.net *.split]
Ke has quit [*.net *.split]
Ox4A6F has quit [*.net *.split]
Shados has quit [*.net *.split]
infty has quit [*.net *.split]
Dandellion has quit [Remote host closed the connection]
ZerataX has quit [Write error: Connection reset by peer]
sparogy has quit [Read error: Connection reset by peer]
bbigras has quit [Read error: Connection reset by peer]
dash has quit [Read error: Connection reset by peer]
enick_918 has quit [Read error: Connection reset by peer]
M0-[m] has quit [Remote host closed the connection]
rschulman has quit [Read error: Connection reset by peer]
colemickens has quit [Read error: Connection reset by peer]
siraben has quit [Read error: Connection reset by peer]
theduke has quit [Read error: Connection reset by peer]
tristan[m] has quit [Read error: Connection reset by peer]
philipp[m] has quit [Remote host closed the connection]
khassanov[m] has quit [Read error: Connection reset by peer]
JJJollyjim has quit [Write error: Connection reset by peer]
Ericson2314 has quit [Remote host closed the connection]
jonge[m] has quit [Read error: Connection reset by peer]
alexarice[m] has quit [Remote host closed the connection]
NobbZ[m] has quit [Write error: Connection reset by peer]
DamienCassou has quit [Read error: Connection reset by peer]
jschievink has quit [Write error: Connection reset by peer]
Notkea[m] has quit [Write error: Connection reset by peer]
maralorn has quit [Read error: Connection reset by peer]
aterius has quit [Write error: Connection reset by peer]
benkolera has quit [Read error: Connection reset by peer]
NobbZ[m] has joined #home-manager
<NobbZ[m]>
`NIX_PATH="nixpkgs=/your/local/fork:$NIX_PATH"` something like that, to remain the home-manager entry.
<NobbZ[m]>
Though yes, -I can be used as well
<NobbZ[m]>
I always forget about that option.
<mudri>
Aah, looks like it's doing something. Thanks!
<mudri>
Is there anything more permanent I can do? I'd kinda expect home-manager to manage this sort of stuff.
Ox4A6F has joined #home-manager
tristan[m] has joined #home-manager
freeman42x[m] has joined #home-manager
ZerataX has joined #home-manager
dash has joined #home-manager
theduke has joined #home-manager
Dandellion has joined #home-manager
sparogy has joined #home-manager
colemickens has joined #home-manager
Ke has joined #home-manager
jonge[m] has joined #home-manager
M0-[m] has joined #home-manager
DamienCassou has joined #home-manager
rycee has joined #home-manager
aterius has joined #home-manager
alexarice[m] has joined #home-manager
benkolera has joined #home-manager
khassanov[m] has joined #home-manager
Notkea[m] has joined #home-manager
hpfr has joined #home-manager
jschievink has joined #home-manager
philipp[m] has joined #home-manager
JJJollyjim has joined #home-manager
maralorn has joined #home-manager
Ericson2314 has joined #home-manager
bbigras has joined #home-manager
rschulman has joined #home-manager
nicolas[m]1 has joined #home-manager
siraben has joined #home-manager
enick_141 has joined #home-manager
kalbasit has joined #home-manager
kalbasit_ has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
quinn has joined #home-manager
<dutchie>
mudri: you could use an overlay
<mudri>
dutchie: I've never managed to learn what overlays are for, but maybe that's what I need. Could you explain a bit, or link me to somewhere which explains?
__monty__ has joined #home-manager
o1lo01ol1o has joined #home-manager
<alexarice[m]>
mudri: overlays are like packageOverrides but composable
<alexarice[m]>
it's good if you just want to change a few packages
<alexarice[m]>
I'm not sure how good it is for overriding the whole of nixpkgs
<alexarice[m]>
sort of depends what you're using your custom nixpkgs for
cole-h has joined #home-manager
<mudri>
alexarice[m]: Thanks. The reason I like keeping a clone of nixpkgs is because it gives a way to do rollbacks (and generally let me control the version), and also makes contributing to/reviewing for nixpkgs easy. I don't think overlays combined with an externally controlled channel would give me that.
<alexarice[m]>
mudri: not as far as I know, overlays are good for modifying a couple of packages
<alexarice[m]>
mudri: I believe lots of people pin nixpkgs and don't use channels
<mudri>
Hmm, I'll give it some thought.
<__monty__>
Overlays in VCS combined with pinning give the same features as a nixpkgs clone.
<__monty__>
Mostly a matter of taste.
<mudri>
Oh, the other useful thing is a way to search for packages.
<alexarice[m]>
__monty__: VCS?
<__monty__>
Source control.
<alexarice[m]>
ah right
<alexarice[m]>
mudri: sounds like you just want to pin nixpkgs to a certain commit
<__monty__>
Overlays are really handy if you want to test/develop some packages on master but stick to a channel for most of the system.
<alexarice[m]>
mudri: `nix search`?
<__monty__>
Grepping nixpkgs is something I usually do when I'm looking for library functions.
<alexarice[m]>
I have lots of overrides that change various package versions or add packages
<alexarice[m]>
overlays*
<mudri>
It's often nice having the source code, too. I'm not sure there's any other way to work out what builders do, and what options various packages have.
<alexarice[m]>
yeah I just look at the source to try and work out what options packages have
<__monty__>
nix edit <attribute> opens the source in your editor.
<__monty__>
Combines well with `env EDITOR=echo/cat` : )
<alexarice[m]>
__monty__: this could save me a lot of time
<mudri>
Hmm, okay, then maybe these make it worth it.
<mudri>
I think all of these commands are new since last time I checked.
<alexarice[m]>
I think anything nix<SPC>something is quite new (relatively)
<__monty__>
There's still plenty of people who stick to a clone though. Only drawback I see is your nixpkgs changes every time you checkout a new branch or commit.
<alexarice[m]>
nixpkgs clones are also quite big if you care about that sort of thing
<__monty__>
Yes, but nixpkgs is always cloned (probably/hopefully shallowly) in your store even when using channels.
<alexarice[m]>
true
<alexarice[m]>
flakes might also be an option now though I haven't ventured that far