<selfsymmetric-mu>
clever: I don't know how to make an overlay. I've tried before but they confuse me. Can't I just make an override in a let expression in the same file?
<clever>
selfsymmetric-mu: if you have a clone of nixpkgs, you could just edit xfce4-settings.nix directly and skip the entire overlay system
<clever>
this creates a nixpkgs overlay, that will replace whatever pkgs.xfce is
<selfsymmetric-mu>
Oh I see! Thank you.
<clever>
and that part itself, is then doing another overlay, against all xfce packages
<selfsymmetric-mu>
With that system I don't actually need any files in my `nixpkgs-overlays` path, then?
<clever>
correct
<clever>
nixos will also ignore the nixpkgs-overlays path
<clever>
nixos only obeys the nixpkgs.overlays config option
<selfsymmetric-mu>
Oh it will?
<clever>
only nix-env and nix-build will obey nixpkgs-overlays from $NIX_PATH
<selfsymmetric-mu>
clever++
<{^_^}>
clever's karma got increased to 138
<benhart>
I'm attempting to run KDE with xmonad, I believe I've followed the instructions in the manual, however from what I see, X should start automatically, it does not, and when I call systemctl start display-manager.service it fails
<benhart>
unit display-manager.service not found
<clever>
benhart: display-manager.service will only exist if you set services.xserver.enable = true;
<selfsymmetric-mu>
clever: I notice that in your gist, you have `xfce-overlay` in one place and `xfce-overrides` in another. Is that correct or is one of them a typo?
<clever>
selfsymmetric-mu: typo, i renamed it from your example, but missed a place
<benhart>
shouldn't display-manager be lightDM by default?
<selfsymmetric-mu>
clever: Thanks! Just checking.
<clever>
benhart: display-manager.service will dynamically start whichever DM you enabled in configuration.nix
<benhart>
I'll try setting it to slim and rebuilding...
<selfsymmetric-mu>
Wow, maybe this was already applied...
<selfsymmetric-mu>
But in that case the fix wasn't complete because my monitor configuration still breaks when my computer sleeps.
<selfsymmetric-mu>
lol. Anyone have a desktop manager they like more than xfce4?
<clever>
selfsymmetric-mu: what is the path in the nix store for the xfce settings binary?
L-o-r-d has quit [Quit: Join π ##Truth π]
thc202 has quit [Ping timeout: 250 seconds]
<selfsymmetric-mu>
clever: For `xfce4-settings-editor` my `current-system` points to `/nix/store/wdzg39mqppqmcv3yh1nxdpwijdx73n2b-xfce4-settings-4.12.1/bin/xfce4-settings-editor`.
<clever>
selfsymmetric-mu: now run `nix-store --query --deriver /nix/store/wdzg39mqppqmcv3yh1nxdpwijdx73n2b-xfce4-settings-4.12.1/bin/xfce4-settings-editor` and it should give a .drv file
<selfsymmetric-mu>
Yeah, it did.
<clever>
selfsymmetric-mu: then run `nix show-derivation` on that drv
<clever>
selfsymmetric-mu: youll see all patches that are being applied, and the path to its src
<selfsymmetric-mu>
oh wow
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates Β« hackage-packages.nix: automatic Haskell package set update Β»: https://git.io/fjobF
<benhart>
...hmmmm still getting a display-manager.service not found error is services.xserver.displayManager.slim.enable = true; all I need? or is there some other configuration i might have missed?
<selfsymmetric-mu>
All I see is `/nix/store/isqkjpb2cgcwn1pkxxf0yzyi57ch96w8-xfce4-settings-default-icon-theme.patch`, which is the same thing as I see on GitHub.
<clever>
benhart: you also need services.xserver.enable = true;
<selfsymmetric-mu>
My custom overrides didn't work because the build gave up on the reapplication of the patch.
<clever>
selfsymmetric-mu: what about in the src path?
<clever>
selfsymmetric-mu: the "patch" may already be in $src
<selfsymmetric-mu>
clever: Very cool! Thanks for the tip.
<selfsymmetric-mu>
The patch is indeed already applied.
<selfsymmetric-mu>
Shame, I thought that's what was wrong with my system. I guess part of the bug wasn't fixed by that patch.
<selfsymmetric-mu>
Bit of a wild goose chase then. Thanks for the great lessons though!
<clever>
selfsymmetric-mu: on my end, ive got an amd card, and am currently using the amdgpu driver with xfce
<clever>
on bootup, the login prompt is all over the place, but i dont really reboot much so i dont care
<clever>
after login, xfce restores the monitor layout perfectly
<clever>
but, if i unplug a monitor while its active, the video driver crashes, very hard
<clever>
i have to go into the xfce settings, and disable that monitor first
<selfsymmetric-mu>
Whoa.
<selfsymmetric-mu>
You know what, I might be overcomplicating things. I'm just going to turn off sleeping and see if that fixes things.
<clever>
and for extra fun, xfce will auto-enable any monitor i plug in
<clever>
so if i plug it in, then immediately unplug it, the machine is bork :P
<benhart>
clever I have that one
<benhart>
i have the following :
<clever>
benhart: what is the output from nixos-rebuild switch?
allenj12 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
Supersonic has quit [Ping timeout: 276 seconds]
<yunratobe>
anyone has running appimage on nixos? I want to run cryptomator and retroshare, but it seems i can't get it working, even though I added appimage-run in configuration.nix
o1lo01ol1o has quit [Ping timeout: 272 seconds]
Supersonic has joined #nixos
ym555_ is now known as ym555
<clever>
yunratobe: are you running appimage-run on the appimage?
<{^_^}>
[nixpkgs] @kalbasit merged pull request #63936 β buildGoModule: add ./ to all sub-packages β https://git.io/fjobw
<{^_^}>
[nixpkgs] @kalbasit pushed to master Β« buildGoModule: add ./ to all sub-packages (#63936) Β»: https://git.io/fjoA6
o1lo01ol1o has quit [Ping timeout: 272 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
day|flip has quit [Remote host closed the connection]
v88m has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
<emacsomancer>
on a foreign distro, running `nix-chanell --update nixpkgs` as user results in a permissions error; as sudo logs my user out from all sessions
<emacsomancer>
*nix-channel
digilicious has quit [Quit: Leaving.]
L-o-r-d has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzzβ¦]
kvda has joined #nixos
L-o-r-d has quit [Quit: π ##Truth π]
slack1256 has quit [Remote host closed the connection]
rauno has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
adamantium has joined #nixos
orivej has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
slyfox has quit [Quit: :)]
Ariakenom has joined #nixos
<fgaz>
Anyone wants to review #63330? It adds Michabo, a qt mastodon/pleroma client written by kaniini (pleroma dev). It's fairly simple, but it's sitting there for more than a week now
<{^_^}>
IagoAbal/haskell-z3#20 (by fare, 2 weeks ago, closed): Failure to compile with z3 4.8.5
cjpbirkbeck has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ottidmes has joined #nixos
knupfer has quit [Ping timeout: 252 seconds]
MmeQuignon has joined #nixos
<ottidmes>
I am running into https://github.com/NixOS/nix/issues/2405 getting an Assertion `store->isStorePath(ctx)' failed. when trying to install nixos on a server. Following the github issue I can see it is fixed, but how can I leverage that fix.
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @nyanloutre to master Β« electron-cash: 4.0.2 -> 4.0.7 Β»: https://git.io/fjohs
<WilliamHamilton>
I'd like to use an earlier version of z3 in an override. I remember that srhb showed me a very nice trick some months ago: overriding only the `version` attribute, but I can't recall the details
<WilliamHamilton>
(oh, maybe it's in the previous gists, let me look)
<{^_^}>
[nixpkgs] @teto pushed commit from @jlesquembre to master Β« git-recent: 1.1.0 -> 1.1.1 Β»: https://git.io/fjohx
<aanderse>
Izorkin: aside from the one fix etu put in, breaking compatibility with every user who uses phpfpm with a socket for their own work (ie. stuff not in nixpkgs, local user stuff), and the code having some unused arguments, i have a module or two that doesn't seem to be working
<aanderse>
i haven't exactly been able to explain why the module isn't working yet, though
<aanderse>
this is why i haven't posted the specific details yet
fendor has joined #nixos
<das_j>
I think the module could also profit from some more sensible defaults
<das_j>
Like pm = dynamic. Almost every module has to do that
<aanderse>
das_j: yes that module needs some work
<aanderse>
i think the code is much more legible in the PR i put in
<aanderse>
easier to understand i hope
<aanderse>
but
<aanderse>
more work to do
<Izorkin>
aanderse: Can you drop the example of non-working code php-fpm? I will try to look at the test virtual machine.
asheshambasta_m has quit [Quit: Leaving.]
orivej has joined #nixos
linarcx has joined #nixos
<{^_^}>
[nixpkgs] @mpoquet opened pull request #63948 β Simgrid 3.22.2 to 3.23 β https://git.io/fjojn
<{^_^}>
[nixpkgs] @aanderse opened pull request #63949 β foswiki: drop package & httpd subservice β https://git.io/fjojc
linarcx has quit [Quit: WeeChat 2.4]
talqu has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<Izorkin>
aanderse: cheked php-fpm in with mantis and yii2 - sites worked
noudle has joined #nixos
dansho has joined #nixos
earldouglas has left #nixos [#nixos]
MmeQuignon has quit [Ping timeout: 272 seconds]
MmeQuignon has joined #nixos
cjpbirkbeck has quit [Quit: Quitting now.]
sjourdois has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
karetsu has joined #nixos
MmeQuignon has quit [Ping timeout: 245 seconds]
MmeQuignon has joined #nixos
orivej has joined #nixos
<WilliamHamilton>
hey, how can I invalidate the caching of an overlay? I can enter a `nix-shell` environment even when I removed one of the local folder that I use as a dependency in my overlay
o1lo01ol1o has joined #nixos
karetsu has quit [Quit: WeeChat 2.4]
<WilliamHamilton>
alternative question: how can I be sure that I'm rebuilding a `nix-shell` from scratch?
freeman42x has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<aanderse>
das_j: great suggestion. that kinda belongs in a follow up pr as this was mostly supposed to be a revert... but i think we're past that point now, so i'll add that
<das_j>
aanderse: Which one?
<das_j>
the one on the PR?
<WilliamHamilton>
in a `nix-shell -p go` I get the error `warning: GOPATH set to GOROOT` when I try to `go get -d -u github.com/Merovius/srvfb`. I'm not familiar with go or the go infrastructure, is there someone that knows what's happening?
<aanderse>
yeah the listen default value
<yorick>
WilliamHamilton: yes, GOPATH should be somewhere in your home directory, go get will try to write there
<yorick>
WilliamHamilton: they have some new infrastructure with gomod
<WilliamHamilton>
yorick so is something like `~/code/go` good for my GOPATH? Should I set it once I enter the `nix-shell -p go`?
<WilliamHamilton>
yorick indeed that works, thanks!
<yorick>
WilliamHamilton: yep
<WilliamHamilton>
yorick unrelated question, do you have any trick to invalidate a `nix-shell` cache to force to build the nix-shell from scratch? It doesn't seem to notice the change in local dependencies
<yorick>
WilliamHamilton: it absolutely should do that if you restart that
<yorick>
WilliamHamilton: what did you change?
<WilliamHamilton>
I swapped a version of a local repository for another one. So I have this `shell.nix` that is referencing an overlay, and I changed the contents of one of the folders referenced in the overlay
<yorick>
WilliamHamilton: it fully evaluates everything every time you run nix-shell, so it's unlikely that it's a caching issue
srid6390803 has quit [Ping timeout: 258 seconds]
<WilliamHamilton>
yorick I literally deleted the folder referenced in there and `nix-shell` still works
<yorick>
WilliamHamilton: remove the "" around the path
<WilliamHamilton>
but that folder doesn't exist anymore, and it still works
<WilliamHamilton>
let me try
<WilliamHamilton>
no, same thing
<yorick>
WilliamHamilton: are you sure it's using your package?
karetsu has joined #nixos
<WilliamHamilton>
oh, in the sense that the attribute I'm writing in the overlay is completely overlooked? that's possible for sure
<WilliamHamilton>
yorick thanks, that was it, the name of the attribute was wrong, and so due to the lazy evaluation the wrong one got never called, and instead the one with the right name in nixpkgs got called
<WilliamHamilton>
thanks again!
<yorick>
WilliamHamilton: you're welcome!
<aveltras>
anyone having trouble getting redshift service to start automatically ?
<aveltras>
systemd says it's inactive but it works if i start it manually
<karetsu>
do we have any lemonbar users? Is there an easy way to get multiple lines in a bar without having to stack multiple bars?
<yorick>
gchristensen: do you have some ./nix-build-on-packet-arm-spot.sh?
<gchristensen>
no, but I wish I did
<gchristensen>
I have to go. I can tell you what exactly I do when I get back :)
<yorick>
okay
waleee-cl has joined #nixos
karetsu has quit [Quit: WeeChat 2.4]
sternenseemann is now known as sterni
rauno has joined #nixos
<WilliamHamilton>
another question: I have a `shell.nix` that references an `overlay.nix` which overwrites some haskell packages, among whose there is a local package for which I have a `default.nix`. When I try to evaluate that, I get `error: infinite recursion encountered, at undefined position`
<WilliamHamilton>
before I didn't have this problem because the overlay was system-wide, but now I only want the overlay to work for the original package
<WilliamHamilton>
how can I avoid this error?
<yorick>
colemickens: why not propagatedBuildInputs for the swaybg thing?
noudle has quit []
<yorick>
WilliamHamilton: make sure to use super/self correctly in the overlay
<yorick>
super.callPackage ;)
<colemickens>
Dunno. Does that fix the issue? I don't really know much about ir
<yorick>
colemickens: it'll add swaybg as a buildInput to the final user env, but maybe not if you're running it from a display manager
<yorick>
I think the wrapper solution should be fine
rauno has quit [Ping timeout: 252 seconds]
benhart has quit [Remote host closed the connection]
L-o-r-d has quit [Quit: Join π ##Truth π]
<WilliamHamilton>
yorick very good, that solved it; could you elaborate on why `super.callPackage` is the right choice there?
<yorick>
WilliamHamilton: callPackage has some magic to find the fix point without infinite recursion, and it's resolved after the overlays are processed
<aveltras>
yorick: ok i see, might explain why i didn't find redshift earlier on
<aveltras>
yorick: thanks, it's now much clearer :)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
knupfer has joined #nixos
chiiba has joined #nixos
<chiiba>
To lock Nix packages I've cloned the Nix repo and I've entered my shell using `nix-shell -I ./nixpkgs`. However I see that "some paths will be fetched". Are they fetched into "./nixpkgs" or somewhere else in my environment?
<yorick>
chiiba: they are all fetched to /nix/store/
<yorick>
also nixpkgs reads from ~/.config/nixpkgs/config.nix by default
civodul has joined #nixos
o1lo01ol1o has joined #nixos
<chiiba>
I'm supposing that's true for NixOS, which I'm not using rn. Also I have shell.nix, which nix-shell should read.
<symphorien>
chiiba: I think the "right" syntax is nix-shell -I nixpkgs=./nixpkgs
<yorick>
WilliamHamilton: it will build the test suite but not run it
<yorick>
(I think?)
<WilliamHamilton>
what if I don't want that to be built?
<yorick>
let me chek
<yorick>
no, it shouldn't build the test with dontCheck
<WilliamHamilton>
Preprocessing test suite 'spec' for z3-408.0..Building test suite 'spec' for z3-408.0..[1 of 2] Compiling Z3.Base.Spec ( test/Z3/Base/Spec.hs, dist/build/spec/spec-tmp/Z3/Base/Spec.o )[2 of 2] Compiling Main ( test/Spec.hs, dist/build/spec/spec-tmp/Main.o )Linking dist/build/spec/spec ...
<WilliamHamilton>
I can always delete the test suite from the cabal file and the package, but it seems a bit brutal
iyzsong has quit [Read error: Connection reset by peer]
gambpang has joined #nixos
<{^_^}>
[nixpkgs] @nh2 opened pull request #63954 β Consul 1.5.2 β https://git.io/fjKeH
fendor_ has joined #nixos
<gambpang>
I have a project where I need the header file zlib.h for the zlib library. This does not seem to be part of the zlib nix package and I don't see a development version. Does anyone have a derivation that provides the header too?
wavirc22 has quit [Remote host closed the connection]
endformationage has joined #nixos
fendor has quit [Ping timeout: 248 seconds]
<symphorien>
Maybe zlib.dev
stepcut_ has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
stepcut has quit [Ping timeout: 248 seconds]
<yorick>
is there a community x64 builder of sorts?
omanji has joined #nixos
<gambpang>
symphorien: would you point me to a channel that has zlib.dev?
<yorick>
WilliamHamilton: that means it failed to link to z3
<WilliamHamilton>
`spec` seems the name of the test suite of that package (which I tried to disable without success), but there are no reference there to `Z3_get_error_msg_ex`
<yorick>
Z3_get_error_msg_ex is probably in some z3 header
clacke_movim has left #nixos [#nixos]
omanji has quit [Ping timeout: 260 seconds]
<WilliamHamilton>
the point is that `Z3_get_error_msg_ex` should have been removed in version `Z3-4.8.5`. Is there a way for me to grep in the header files of the current z3 headers?
<WilliamHamilton>
(and `Z3-4.8.5` is the version currently packaged in nixos-unstable)
<nh2>
dtz: https://github.com/NixOS/nixpkgs/pull/63954 -- I had missed yours before. You can add me as reviewer me on consul PRs btw if you like. Do you want to review mine?
<yorick>
WilliamHamilton: this change is from 7 days ago
<yorick>
so not likely in the thing you're compiling
mexisme has joined #nixos
<WilliamHamilton>
I'm cloning that repo, to which I rebased some modification of mine. In that repo there is no mention of `Z3_get_error_msg_ex`
<WilliamHamilton>
still, for some reason it's probably not the repo I'm actually compiling, because even if I deleted the test-suite from the cabal file, and regenerated `default.nix`, I still get that the `nix-shell` is trying to build the thing
<WilliamHamilton>
for reference, this is my overlay:
<gambpang>
`nix-env -i zlib.dev` fails with "selector 'zlib.dev' matches no derivations". I can see nixpkgs-unstable when I run `nix-channel --list` and I just ran `nix-channel --update`. Also `zlib.dev` does not show up using the package search on nixos.org. Is there some way to double check that I'm looking at the same stuff you're looking at?
<yorick>
gambpang: nix-env -iA nixos.zlib.dev
<yorick>
gambpang: don't use nix-env -i, it's really slow
<yorick>
(or nixpkgs.zlib.dev if nixos doesn't work)
<WilliamHamilton>
yorick: I'm not sure: I'm developing a package, and I'd like to use those haskell bindings as a dependency. I use nix-shell to enter a shell for my project
<gambpang>
yorick: boom that did it. ty!
<yorick>
WilliamHamilton: can you paste your shell.nix?
<simukis__>
is binutils not overridable? I tried something like https://gist.github.com/nagisa/d968bbef17acd9afd1bf83ab6a683cf5 but it still ends up using the original binutils. If I ask for `pkgs.binutils-unwrapped` only then it builds the new binutils.
<aveltras>
anyone using home manager directly in nixos configuration.nix ? are the example here https://nixos.wiki/wiki/Home_Manager still relevant ? i have an error when doing like this
gagbo has joined #nixos
WilliamHamilton has joined #nixos
<WilliamHamilton>
yorick sorry, the power went away, I might have lost some messages
<WilliamHamilton>
I was at "nevermind, let me try something"
<WilliamHamilton>
I had asked where should I have put `z3 = null`
<aveltras>
alexarice[m]: in fact, it works with fetchTarball but only when i don't specify sha256
<WilliamHamilton>
besides, where do I check what's the current compiler for `haskell.packages` vs `haskellPackages`?
omanij has quit [Ping timeout: 260 seconds]
<yorick>
WilliamHamilton: yeah, it uses the z3 from your overlay
<yorick>
WilliamHamilton: try breaking that z3 and seeing what happens :P
<aveltras>
alexarice[m]: hmm now it works, forget what i said
<alexarice[m]>
I'd take a look at what I linked anyway as I believe it is the recommended way to do it now
<WilliamHamilton>
yorick interestingly I tried inserting nonsense in the dependency, and `nix-shell` doesn't even see that! Furthering the idea that it's not that dependency that is being used!
<yorick>
WilliamHamilton: I tried changing the path and it stopped working
<WilliamHamilton>
yorick yes indeed, if you change the path, or if you don't have a default.nix in there it stops working, but interestingly it doesn't seem too interested in what the code is in there
<yorick>
WilliamHamilton: are you sure it should depend on itself?
<WilliamHamilton>
it's autogenerated, apart from that `gomp ? null` bit which I added
<WilliamHamilton>
I don't think it's depending on itself, it's depending on the system `z3` package (the solver, not the library)
<yorick>
WilliamHamilton: you could callPackage it with {z3 = pkgs.z3;}, then?
<WilliamHamilton>
in the overlay? Should I use self.pkgs or super.pkgs?
<WilliamHamilton>
well, I used `super.pkgs`, and at least it's doing something different
<yorick>
WilliamHamilton: self.pkgs should be fine here
<WilliamHamilton>
yorick if you want to teach your heuristics to choose between self and super, I'm glad to hear it
<WilliamHamilton>
and, btw, the build worked
<WilliamHamilton>
so that was the problem!
<WilliamHamilton>
\o/ !!!
ddellacosta has joined #nixos
<yorick>
WilliamHamilton: if you may want to override it later from some other overlay and it doesn't depend on itself, you can use self (so with most dependencies)
<yorick>
WilliamHamilton: if it's a library function or an override, super
<yorick>
WilliamHamilton: congratulations!
<WilliamHamilton>
thank you! :)
m0rphism has joined #nixos
<asymmetric>
can someone explain the advantage of using mkShell vs mkDerivation?
<asymmetric>
in a shell.nix
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
detran has quit [Ping timeout: 246 seconds]
<manveru>
asymmetric: it can't be used for nix-build, and doesn't need a name...
asheshambasta_m has quit [Quit: Leaving.]
o1lo01ol1o has joined #nixos
kraem has quit [Quit: outta here]
<Unode>
is there any way to prevent nix-env from installing if a cached/pre-built binary isn't available?
<Unode>
I want to prevent a given command from falling back to building from source.
<Ralith>
manveru: kinda weird that it seems to still need a src
<manveru>
Ralith: it doesn't
<Ralith>
oh, good
stepcut_ has quit [Remote host closed the connection]
lunik1 has quit [Quit: :x]
<Ralith>
yeah that is convenient
stepcut has joined #nixos
lunik1 has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
stepcut_ has joined #nixos
<yorick>
asymmetric: -j0
<asymmetric>
yorick: ?
<yorick>
oh sorry
<yorick>
Unode: -j0
<asymmetric>
manveru: and there's also the inputsFrom attr right? is that impossible to achieve with mkShell?
<asymmetric>
sorry, impossible to achieve with mkDerivation
kraem has joined #nixos
<Unode>
yorick: that means use all cores when building from source, not quite what I want ;)
<yorick>
Unode: it disables building for me
detran has joined #nixos
<Unode>
from manpage "The value 0 means that the builder should use all available CPU cores"
<yorick>
Unode: no, that's --cores
<yorick>
but making the env might be a build job
<Unode>
yorick: oh I see
<Unode>
yeah the manpage doesn't mention 0 as a special case at all
o1lo01ol1o has quit [Remote host closed the connection]
<aveltras>
does anyone have an example of a fully declarative installation of home-manager ? using nixos configuration.nix (not needing to add home manager as a channel by hand)
lunik1 has quit [Quit: :x]
lunik1 has joined #nixos
o1lo01ol1o has joined #nixos
fusion809 has joined #nixos
lunik1 has quit [Client Quit]
lunik1 has joined #nixos
stepcut_ has quit [Ping timeout: 245 seconds]
polmaan has quit [Ping timeout: 248 seconds]
polmaan has joined #nixos
kraem has quit [Ping timeout: 245 seconds]
polman has quit [Ping timeout: 244 seconds]
kraem has joined #nixos
polman has joined #nixos
<alexarice[m]>
aveltras: I think you can declaratively manage channels but I'm not sure how
hoijui has joined #nixos
<{^_^}>
[nixops] @nh2 opened pull request #1174 β ssh: Read extra options from NIXOPS_SSHOPTS env var. β https://git.io/fjKfo
<alexarice[m]>
in the end it was easier to write it to a file anyway
benhart has joined #nixos
<asymmetric>
followup from aveltras question: is there a way to declare channels, instead of using nix-channel?
<benhart>
hey folks, I'm trying to set up xmonad in nixos, and I keep getting an error that haskellPackages is an undefined variable in the below configuration:
<clever>
symphorien: on the first login as root, if ~/.nix-channels doesnt exist, it will register system.defaultChannel as your channel
<clever>
oops, wrong tab-complete, lol
<clever>
asymmetric: but the above wont change channels after you update the cfg
WilliamHamilton has quit [Remote host closed the connection]
WilliamHamilton has joined #nixos
<asymmetric>
aveltras: so that's a way in which home manager can be installed, i guess
<asymmetric>
not exactly sure how that would work in ~/.config/nixpkgs/configuration.nix though..
<benhart>
lassulus - I'll install something on the box so I can put something on pastebin
<alexarice[m]>
asymmetric: I'm sure I saw something where someone didn't use channels and manually set their NIX_PATH in their configuration
<aveltras>
asymmetric: i'm not even sure i need this, i just wonder why adding "home-manager" to my environment packages wont bring the executable "home-manager" in the shell
<alexarice[m]>
aveltras: I thought that did work
<alexarice[m]>
aveltras: The channel stuff makes it so that `home-manager switch` is ran with `nixos-rebuild switch`
<aveltras>
alexarice[m]: where can i see this ?
<alexarice[m]>
aveltras: see what?
noudle has joined #nixos
<aveltras>
the automated part where home-manager switch would get called when nixos-rebuild switch is
<aveltras>
benhart: indeed, you may try to remove the with pkgs; and just use haskellpackages (without majuscule here)
<benhart>
the with pkgs got it to build, what should i change it to? with haskellPackages?
<alexarice[m]>
benhart: change to 'extraPackages = haskellPackages: [ ... ]'
<alexarice[m]>
and it should work
<aveltras>
try replacing all your "haskellPackages" with "haskellpackages" lines 85-86-87 since that's the name of the argument
<aveltras>
or ye, rename the argument
<alexarice[m]>
or that
<alexarice[m]>
one or the other
<alexarice[m]>
not both
MmeQuignon has joined #nixos
<Lears>
Or just remove the extraPackages option, since it's entirely redundant here.
<aveltras>
so many possibilites :)
<alexarice[m]>
yh all those packages are being added anyway
turion has quit [Ping timeout: 252 seconds]
hoijui has quit [Quit: Leaving]
MmeQuignon has quit [Ping timeout: 245 seconds]
MmeQuignon has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
turion has joined #nixos
<Athas>
So, what's the story with the services.xserver stuff? Why is there nothing similar for Wayland?
chiiba has quit [Ping timeout: 246 seconds]
WilliamHamilton has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
levdub has quit [Ping timeout: 245 seconds]
plchldr has joined #nixos
<WilliamHamilton>
is anyone familiar with simple crosscompilation for go in nixos? I'm trying to execute the 4 bash commands in https://github.com/Merovius/srvfb without luck
WinchellsM has joined #nixos
<WinchellsM>
In the `installPhase` of a nix derivation I need to run a file as root
<WilliamHamilton>
for example, should I use `nix-shell -p go` or `nix-shell -p go_bootstrap`, or other versions/
<WinchellsM>
How do I use `sudo` in the installPhase ?
<WinchellsM>
(I get an error when I try to)
<yorick>
WinchellsM: for what?
stepcut_ has quit [Ping timeout: 245 seconds]
lsix has quit [Quit: WeeChat 2.4]
stepcut has joined #nixos
day|flip has joined #nixos
benhart has quit [Remote host closed the connection]
Xal has quit [Ping timeout: 244 seconds]
ottidmes has quit [Quit: WeeChat 2.4]
MmeQuignon has quit [Ping timeout: 258 seconds]
alex`` has joined #nixos
<{^_^}>
[nixpkgs] @minijackson opened pull request #63959 β firefox-send: init at 3.0.12 β https://git.io/fjKJz
Xal has joined #nixos
alp has joined #nixos
fendor_ has quit [Ping timeout: 245 seconds]
laalf_ has quit [Ping timeout: 246 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
benhart has joined #nixos
o1lo01ol1o has joined #nixos
laalf has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
Jackneill has joined #nixos
ym555_ has joined #nixos
ym555 has quit [Ping timeout: 245 seconds]
levdub has joined #nixos
<Izorkin>
aanderse: Can you drop the example of non-working code php-fpm? I will try to look at the test virtual machine.
<{^_^}>
[nixpkgs] @JosephSalisbury opened pull request #63960 β gsctl: init at 0.15.1 β https://git.io/fjKJ1
chiiba has joined #nixos
kraem has quit [Ping timeout: 268 seconds]
kraem has joined #nixos
<aanderse>
Izorkin: it's integrated with a few things and has some work specific stuff... i was trying to create a simple example to demonstrate but I've ran out of time for today
knupfer has quit [Quit: knupfer]
turion has quit [Quit: Leaving.]
knupfer has joined #nixos
knupfer has quit [Client Quit]
tboston has joined #nixos
Guest29792 has quit [Ping timeout: 246 seconds]
tboston has quit [Read error: Connection reset by peer]
m0rphism has quit [Ping timeout: 245 seconds]
Guest29792 has joined #nixos
knupfer has joined #nixos
Myhlamaeus has joined #nixos
Thra11 has joined #nixos
o1lo01ol1o has joined #nixos
<Izorkin>
aanderse: tomorrow will make an example?
kraem has quit [Ping timeout: 244 seconds]
hlolli_ has quit [Ping timeout: 276 seconds]
MmeQuignon has joined #nixos
hlolli has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
kraem has joined #nixos
<aanderse>
Izorkin: hopefully i can find the time. unfortunately there are other things on my list a little higher at the moment. I'm hoping etu will have some insight as he knows way more about phpfpm than i do.
<Thra11>
Is there an easy way to turn a directory full of patches into a list of patches which I can append to kernelPatches?
ris has joined #nixos
qqlq has joined #nixos
o1lo01ol1o has joined #nixos
<alexarice[m]>
Athas: Wayland is a program that can be configured like X is so there will probably never be a services.wayland option (at least not like the xserver one)
<alexarice[m]>
is not a*
L-o-r-d has joined #nixos
<Thra11>
cpu-cgroup-v2 does something with a directory full of patches, but it'
<Thra11>
s not used as a list
qqlq_ has joined #nixos
<gchristensen>
alexarice[m]: yeah I thought nixos had ~no support for wayland until I realized it was *so much simpler* to configure
qqlq has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<alexarice[m]>
you just set up your favourite wm/de and then find a way to start it (I start it by a line in .bashrc though there is probably a nice systemd way)
WinchellsM has quit [Quit: Lost terminal]
cxx_newb has joined #nixos
<cxx_newb>
Hello there. I want to install nixos on my acer swift 1. I downloaded the iso and dd'ed it to a usb flash drive. Upon boot the cursor appears on the top left and then the laptop freezes. Any ideas how to solve/debug this? The laptop is using UEFI.
<alexarice[m]>
cxx_newb: do you have anything else you can test the iso on?
<cxx_newb>
yeah, I will come back with results in 5 min.
alex`` has quit [Read error: Connection reset by peer]
kim0 has quit [Quit: Connection closed for inactivity]
<alexarice[m]>
cxx_newb: the default is the 19.03 one i think
<cxx_newb>
alexarice[m] thanks I will try some of them
<alexarice[m]>
cxx_newb: you might have to change the channel after install but other than that it should be the same as installing from the usual iso
cxx_newb has quit [Remote host closed the connection]
WilliamHamilton has quit [Remote host closed the connection]
ym555 has quit [Quit: leaving...]
qqlq has joined #nixos
qqlq_ has quit [Ping timeout: 252 seconds]
<aveltras>
is there a way to prevent a timeout on a nix build ? i set --timeout 0 but that doesn't work, i can't nixos-rebuild right now because timeout happens even if the download runs fine (just slowly)
noudle has quit [Remote host closed the connection]
cxx_newb has joined #nixos
noudle has joined #nixos
nornagon has quit [Ping timeout: 244 seconds]
cyphase has quit [Ping timeout: 244 seconds]
nornagon has joined #nixos
<cxx_newb>
alexarice[m] hey. I tried most of the nixos releases and the 17.03 version is booting fine. My wifi device does not show up in ip a however. I checked on ubuntu which driver the card is using. It is iwlwifi. I tried loading it in nixos live with modprobe iwlwifi but the device does not show up. I do not have a network cable port so I need the wifi
<cxx_newb>
to work. Do you have any idea how that might be possible? thx in advance
<ottidmes>
any idea why grub tries to install x86_64-efi even though efiSupport = false; and other than the timeout and some extraEntries for shutdown/reboot only the device attribute is set
<ottidmes>
samueldr: thanks, that at least shows me where things go wrong, since I now saw the following: pkgs.grub2.grubTarget
<ottidmes>
samueldr: "x86_64-efi"
<ottidmes>
found the problem :) in one of my overlays I added efiSupport...
<ottidmes>
samueldr: thanks for the help!
<ottidmes>
samueldr++
<{^_^}>
samueldr's karma got increased to 95
<samueldr>
oh, I shyed away from proposing "maybe an overlay overrid the package" :)
<samueldr>
though, a bit surprising how this is decided by the package's overrides
<samueldr>
I would have assumed the configuration would check if the package provides whatever is necessary, and not try to override and maybe use that anyway
karetsu has quit [Quit: WeeChat 2.4]
<ottidmes>
(I remember why I added that to my overlay, I needed some of the files produced by having efiSupport = true to generate an image file, but unfortunately NixOS does not allow this, its either BIOS or EFI, you cannot have the EFI files without using EFI)
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjKTX
andymandias has joined #nixos
<fmsbeekmans>
Hi, I'm nixos 19.03 and am trying to change `services.xserver.libinput.scrollButton` to 0. After `nixos-rebuild swap` and a reboot there doesn't appear to be any effect. There is also no mention of 'Option "ScrollButton"` in `/etc/xorg.conf.d/40-libinput.conf` as suggested in https://github.com/NixOS/nixpkgs/blob/a260b3d681164bedaeb90fd578390147799
<fmsbeekmans>
d638c/nixos/modules/services/x11/hardware/libinput.nix#L226. Am I missing a step or am I doing something wrong?
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<{^_^}>
[nixpkgs] @alyssais opened pull request #63964 β gnupg: change default keyserver to non-SKS β https://git.io/fjKTM
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
qqlq has joined #nixos
Thra11 has quit [Quit: WeeChat 1.9.1]
fendor has quit [Read error: Connection reset by peer]
qqlq_ has joined #nixos
day|flip has quit [Remote host closed the connection]
fmsbeekmans has quit [Remote host closed the connection]
qqlq has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjKkc
Guanin has joined #nixos
growpotkin has joined #nixos
<growpotkin>
Hey any Brave users in the house? I can never seem to get it to play nicely with PulseAudio
<growpotkin>
I also have some weird behavior with Brave and Chrome where it will just lock up for no reason and requires a `pkill` to reset it. I think it's a graphical bug.
Guanin has quit [Remote host closed the connection]
boogiewoogie has quit [Quit: Leaving]
camsbury has joined #nixos
<camsbury>
hey guys - installed NixOS on a new comp, and it seems that I have to remount my boot partition every time I want to do a `nixos-rebuild switch`... Any idea why this might be?
camsbury has quit [Remote host closed the connection]
Myhlamaeus has joined #nixos
camsbury has joined #nixos
niten has quit [Ping timeout: 272 seconds]
MmeQuignon has quit [Ping timeout: 245 seconds]
m0rphism has quit [Ping timeout: 245 seconds]
hlolli has quit [Ping timeout: 252 seconds]
<gchristensen>
camsbury: does your hardware-configuration.nix have the boot mount point described?
camsbury has quit [Remote host closed the connection]