<Orbstheorem>
So far, I've patched the dts, but the samsung spi driver is icky
<energizer>
i'm installing nixos on a computer. how do i get my config onto it?
<zeta_0>
clever: ok, i'll test it out, also, i commented out the: # returnShellEnv = false; , that you recommended yesterday, do i need to un-comment it and set it th either true or false, in order for withHoogle to work?
<Orbstheorem>
energizer: I usually clone my git repo ^^
<clever>
zeta_0: should be able to leave it as it is in my example
<energizer>
Orbstheorem: git is not on PATH
<Orbstheorem>
energizer: Do you have another computer and a network cable at hand?
<vika_nezrimaya>
it looks like with nixFlakes, nix build flake#something --store $mountPoint requires nixFlakes first to be copied onto the target Nix store...
jbrock has quit [Quit: jbrock]
<vika_nezrimaya>
which is interesting, since it wasn't like that with vanilla nix
jbrock has joined #nixos
<clever>
--store has a lot of edge cases like that
<clever>
file an issue and it will get fixed eventually
rail__ has left #nixos ["User left"]
jbrock has quit [Client Quit]
jbrock has joined #nixos
<jmcasey>
So I tripped over NixOS this week and it seems super cool, I just want to check my understanding - I'm playing with NixOS in a soft vm. When I'm happy with my my configuration.nix, can I just use that on a real machine? I'm trying to understand what --show-hardware-config is telling me
fusion809 has quit [Remote host closed the connection]
<energizer>
i have ` imports = [ /etc/nixos/hardware-configuration.nix` but of course that doesn't work because i'm using root=/mnt . my solution was to ln -s /mnt/etc/nixos/hardware-configuration.nix /etc/nixos/
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvh4q
<energizer>
which works, but this all feels pretty ad hoc and awkward. is there a nicer way to do an installation?
<energizer>
ideally a declarative and reproducible way
<energizer>
jmcasey: yes, assuming the networking and filesystem attributes dont need to be changed
<ixxie>
clever: I still can't figure out how to make the method in your nixops issue to work; the problem is in the end still getting the initial nixos boot support ssh, but I guess I can do that with a custom iso
<morgrimm>
Anyone know if fetchpatch or fetchFromGitHub would be better practice for a patch living in a git repo?
<gchristensen>
fetchpatch
<morgrimm>
I guess either way when you update it, you'll have to update either the rev or the link
<morgrimm>
and the hash
<morgrimm>
gchristensen: Any particular reason? Just the cleanup that fetchpatch does on top of fetching?
<gchristensen>
fetchpatch is more likely to have a stable hash
<morgrimm>
Really? I didn't know that
<zeta_0>
why is it that on line 26 when that withHoogle is inserted there, developPackage thinks it's a set and not a function? is it because of the pkg part(a similar error i found online said it had to do with that)? https://dpaste.org/Z92H
<{^_^}>
[nixos-planet] @garbas pushed to dev-mode « some more fixes »: https://git.io/Jvh4i
jluttine has quit [Ping timeout: 256 seconds]
ixxie has quit [Quit: Lost terminal]
<{^_^}>
[nixpkgs] @nh2 opened pull request #84960 → release notes: Explain how to run nginx master as root → https://git.io/Jvh4X
rtjure has joined #nixos
broccoli has quit [Remote host closed the connection]
<{^_^}>
[nixos-planet] @garbas pushed to master « fix netlify notification of mixed content (#2) »: https://git.io/Jvh4y
captjakk has quit [Remote host closed the connection]
m0rphism has quit [Ping timeout: 250 seconds]
<energizer>
i'm doing nixos-rebuild --verbose -j3 and it's pegging a cpu but idk what it's doing, no log messages. been going for >10min. what can i do?
<cole-h>
Wait, or `strace` it, or keep adding `-v` (`--verbose`) until you see what you want, I imagine.
<vika_nezrimaya>
how can one add support for SVG to an app using gdk-pixbuf (the package librsvg helpfully provides the needed loader)? assume a home-manager-like environment
<{^_^}>
[nixpkgs] @peterhoeg pushed commit from @lheckemann to master « freerdp: 2.0.0-rc4 -> 2.0.0 (#84885) »: https://git.io/JvhRd
<{^_^}>
[nixpkgs] @kisik21 opened pull request #84969 → mako: wrap with wrapGAppsHook → https://git.io/JvhRN
<vika_nezrimaya>
jtojnar: opened a PR :3
zaeph1 has joined #nixos
CMCDragonkai has quit [Ping timeout: 268 seconds]
<vika_nezrimaya>
gchristensen: changed my GPG key, what's the best way to update maintainers.nix? sign with old or new key?
<vika_nezrimaya>
doesn't look like I can sign with both
bhipple has joined #nixos
zaeph has quit [Ping timeout: 256 seconds]
<freeman42x>
run into this issue: error: Package ‘webkit2gtk3-javascriptcore-0.14.3.0’ in /nix/store/9r1vhvri4ba913g4vyg5jqrhg6pb9amn-source/pkgs/development/haskell-modules/hackage-packages.nix:244981 is marked as broken, refusing to evaluate.
<freeman42x>
any idea what solutions there are for it?
<pjt_014>
vika_nezrimaya: I'd suggest signing with the old key, noting the new key's fingerprint in the commit message, and then using the new one
rogue_koder_ has joined #nixos
<freeman42x>
guess I could try allow broken but...
<pjt_014>
check the unstable channel too, things tend to be fixed there first
<vika_nezrimaya>
The only thing I still don't like about flakes: if a flake doesn't provide an output for an unsupported arch, say, armv7l-linux, the only way to go is to fork it and add it
kaychaks has quit [Remote host closed the connection]
<jtojnar>
freeman42x they are getting nixpkgs from miso github
<freeman42x>
jtojnar, ah, I see, yeah, that was needed to do at some point since he did not publish yet a change
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
mounty has quit [Ping timeout: 256 seconds]
captjakk has quit [Ping timeout: 265 seconds]
<cjpbirkbeck>
does anybody here use user.user.<name>.packages as opposed to systemPackages? would anybody recommend one over the other?
<pie_[bnc]>
has anyone seen an example of override on buildrustpackage?
<pie_[bnc]>
i just get a weird error
<pie_[bnc]>
error: attempt to call something which is not a function but a set, at /nix/store/f4ayff5y71cv9vd5jbw9d0bapa2574hs-nixpkgs-channels-9b0d2f3/pkgs/stdenv/generic/make-derivation.nix:318:55
<pjt_014>
cjpbirkbeck: If you need packages for only one user (as opposed to systemwide) then yes that'd be the way to go.
waleee-cl has quit [Quit: Connection closed for inactivity]
<pjt_014>
I've never had that need personally
<pie_[bnc]>
ok i think i just ran across the thing ignoring some phases or something
<pie_[bnc]>
got a couple streams crossed here
ericsagnes has quit [Quit: WeeChat 2.6]
rtjure has quit [Quit: Leaving]
rtjure_ has joined #nixos
<freeman42x>
any idea why adding { allowBroken = true; } to ~/.config/nixpkgs/config.nix would still not affect nix-shell?
bhipple has quit [Remote host closed the connection]
mniip has quit [Remote host closed the connection]
shafox has joined #nixos
<{^_^}>
[nixpkgs] @glittershark opened pull request #84973 → aadict: init at 0.2.3 → https://git.io/Jvhuj
<glitters`>
if I'm submitting PRs for adding packages in a dependency chain, is it better to open all as separate PRs based on each other and rebase as things are merged, or all in one PR?
glitters` is now known as glittershark
<glittershark>
or is it up to the reviewer?
<hyper_ch>
are the packages optional? if so, make one commit for each one but you can probably make a PR on it all
<glittershark>
not optional
<hyper_ch>
no idea :)
<glittershark>
ok
<glittershark>
yeah it feels silly to make a series of PRs here
<glittershark>
gonna just make one
<hyper_ch>
for adding new packages you still want to make a seperate commit for each one
<glittershark>
of course
<hyper_ch>
but then make one PR
<hyper_ch>
if reviewer don't like it, they'll tell you :)
<glittershark>
heh, sure
<glittershark>
also wow pkgs/top-level/python-packages.nix is a mess lol
<glittershark>
alphabetization what
<hyper_ch>
lol, I was just checking status of one of my PRs... it got merged a week ago.. somehow I must have missed the message
<hyper_ch>
glittershark: python is evil ;)
<glittershark>
you're telling me
<hyper_ch>
it's mostly alphabetical-ish
<glittershark>
I have to write it for a living
<glittershark>
but also the top-level
<glittershark>
lol
<glittershark>
and of course sorting it is a completely foregone conclusion at this point
<glittershark>
because of all the PRs that'd need to be rebased
<glittershark>
;n;
<hyper_ch>
I'm pretty sure there's some good reason behind that sorting
<mkg20001>
where can I get where is libgnomekbdui from? is there a package?
<hyper_ch>
mkg20001: what's that for?
xO1 has joined #nixos
<hyper_ch>
nox couldn't find anything like that
<peelz>
does `nixpkgs.config` work?
<hyper_ch>
find . -iname *gnomekbd* --> did find only ./pkgs/development/libraries/libgnomekbd
<mkg20001>
odd... /nix/store/w7asqf5bk39sjbrhf5jllhsxzn5386zr-libgnomekbd-3.26.1/lib/libgnomekbdui.so.8.0.0 it's part of libgnomekbd but not found
<hyper_ch>
open bug report?
Mateon3 has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
<mkg20001>
hyper_ch: Solved it, they were using find_library, added it to LIBRARY_PATH manually via preConfigure. Is that a bug or just some specific workarround?
drakonis has quit [Quit: WeeChat 2.8]
<hyper_ch>
I have no idea what you just said :)
<hyper_ch>
I'm just an average computer user
<colemickens>
sounds like the pc file for pkg-config for that lib isn't fully setup right?
<colemickens>
maybe?
nino34 has quit [Quit: Leaving]
palo1 has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<hyper_ch>
why does this give an error with current unstable: boot.extraModulePackages = with config.boot.kernelPackages; [ wireguard ]; --> error: The option value `boot.extraModulePackages.[definition 1-entry 1]' in `/etc/nixos/hardware-configuration.nix' is not of type `package'.
<colemickens>
maybe because WG isn't an external module anymore in latest kernel?
<colemickens>
just a guess?
<hyper_ch>
good guess :)
<colemickens>
not a very helpful message though :|
<colemickens>
I just seem to have wireguard.enable = true; so maybe the module is taking care of it for me.
<hyper_ch>
well, it seems to rebuild fine now
everteds1here has joined #nixos
evertedsphere has quit [Remote host closed the connection]
everteds1here has quit [Remote host closed the connection]
evertedsphere has joined #nixos
glittershark has quit [Ping timeout: 264 seconds]
<evils>
anyone interested in mce-test? (hardware error handling testing)
<pie_[bnc]>
freeman42x: check if syntax errors do anything, if yes, the file is being evaluated
<hyper_ch>
another problem. dropbear was dropped and openssh is being used now for the initrd... I generated a key, added now to config hostKeys = [ "/root/initrd-openssh-key" ]; and try to rebuild, but it complains with: cp: cannot stat '/root/initrd-openssh-key': No such file or directory . However that file exists: -rw------- 1 root root 227 Apr 4 07:18 /root/initrd-openssh-key
<pie_[bnc]>
freeman42x: or at least im assuming it will error...
<pie_[bnc]>
energizer: I dont actually know off the top of my head if theres an easy way to check with channels
<pie_[bnc]>
energizer: but if you havent updated your channels in several months that could explain why
vk3wtf has quit [Quit: WeeChat 2.7.1]
<energizer>
pie_[bnc]: doesn't help
<energizer>
just updated
<pie_[bnc]>
ah, you can look at the /nix/var/nix/profiles/per-user/root/channels/manifest.nix files in $NIX_PATH
<pie_[bnc]>
hm
<mkg20001>
Cole Mickens: The pkg-config actually is correct and doing dependency(libgnomekbdui) works. They were using find_library for some weird reason tho. Guess it's just specific hackery
<pie_[bnc]>
energizer: I guess I'd start poking around with nixos-option too
<pie_[bnc]>
but this sounds weird
<pie_[bnc]>
i havent actually used tailscale myself
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/JvhzA
<pie_[bnc]>
might check for docs on the channels and see if its mentioned
<pie_[bnc]>
nixos manual or something
hoplaahei has joined #nixos
<pie_[bnc]>
might be worth opening an issue or checking if there is one already
<hoplaahei>
Is there any way to get KDE to stop recreating ~/.config/kxkbrc and re-enabling the 'Configure layouts' preference of 'Keyboard'. It keeps overriding my xmodmap settings. I've tried making a systemd user service for graphical target to run xmodmap as well, but I can't figure out how to get it to run after KDE parses its configs.
<pie_[bnc]>
or writing a patch that tells the user there are unupdated channels or something because they belong to another user
jmcasey has joined #nixos
<pie_[bnc]>
hoplaahei: in my limited experience kde is pretty bad to configure,the existence of documentation is hit and miss for internals
<pie_[bnc]>
either that or ive just missed a whole world of informatoin somehow
<pie_[bnc]>
so i personally can only suggest a lot of maybe-not-pointless googling, and checking the kde source..
jmcasey has quit [Client Quit]
<pie_[bnc]>
(i should listen to my own advice on that note)
<pie_[bnc]>
maybe starting with figuring out what component is even responsible for that, because theres stuff like kglobalaccel5 and i have no idea if thats related
<{^_^}>
[nixos-homepage] @garbas pushed 24 commits to landing-page: https://git.io/JvhgI
<hoplaahei>
pie_[bnc]: yes this isn't the only problem I'm having with it reactivating settings I have unchecked. Some sound settings reactivate too unless I install gnome3-dconf service. I just want to override it somehow. services.xserver.displayManager.sessionCommands is too early.
<pie_[bnc]>
maybe theres some kind of contention going on
<pie_[bnc]>
heck knows :(
<hoplaahei>
So is services.xserver.displayManager.setupCommands. And I don't know the syntax or what systemd target I could hook onto.
<energizer>
is it just me or does vscode disregard the ssh-agent
<pie_[bnc]>
energizer: does it have the env vars?
<energizer>
pie_[bnc]: i dont see why it wouldn't, all the other programs do. but i dont know how to check
<pie_[bnc]>
energizer: i dont either, maybe theres a plugin that will letyou see what env vars its running with
<pie_[bnc]>
energizer: maybe easier: if you can open some kind of command shell in the editor, you can look at what vars it inherits
<pie_[bnc]>
hoplaahei: this is the part where i start making wild guesses; have you tried making the file read only? are you copying it from the store?
duckonomy has joined #nixos
fydai has joined #nixos
<pie_[bnc]>
kde probably has some reason its trying to overwrite it
<hoplaahei>
Tried making ~/.config/kxkbrc read-only so KDE can't write to it? I've thought of doing that, but I feel there must be a better way.
<hoplaahei>
I could write a systemd timer that waits till after KDE starts up I suppose. Not very reliable though.
<hoplaahei>
I need to find the latest systemd target that runs. Hopefully it runs after KDE has done its configs.
<evertedsphere>
fydai: here
<evertedsphere>
maybe all you gotta do is like use some kinda extraPackages argument
jmcasey has joined #nixos
domogled has joined #nixos
rotaerk has quit [Ping timeout: 260 seconds]
xelxebar has quit [Ping timeout: 240 seconds]
klntsky has quit [Ping timeout: 240 seconds]
est31 has quit [Quit: No Ping reply in 180 seconds.]
xelxebar has joined #nixos
<{^_^}>
[nixpkgs] @ehmry opened pull request #84977 → nixos/hydra: wrap systemPackages with hydra envvars → https://git.io/Jvhg2
est31 has joined #nixos
<pie_[bnc]>
joepie91: Ericson2314: any idea how to get a rust compiler (with the mozilla overlay) that will compile to bare metal?
<ixxie>
I've tried nix-build -E but I get error: expression does not evaluate to a derivation (or a set or list of those)
<ma27[m]>
pjt_014: merged, thanks!
<pjt_014>
woohoo 1st package yeah!
<ixxie>
congrats pjt_014++ !
<{^_^}>
pjt_014's karma got increased to 1
<thibm>
ixxie: what do you mean?
omfgwhofarted has joined #nixos
<thibm>
what did you pass to -E ?
<pjt_014>
ixxie: thanks ! ^^
thc202 has joined #nixos
<omfgwhofarted>
howdy. nixos newb here, trying to get it installed into a VM in virtualbox for the first time. whenever i edit my /etc/nixos/configuration.nix file, i'm getting the following error, "sytnax error, unexpected '=', expecting $end, at /etc/nixos/configuration.nix:2:11" can anyone shed some light onto this?
dermetfan has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<thibm>
omfgwhofarted: you have a syntax error in your configuration.nix
<ixxie>
thibm: maybe there are smarter ways to do that :D
boothead has joined #nixos
<thibm>
ixxie: it works but evaluate to a function, not a derivation
<omfgwhofarted>
thibm: i'll try that in a minute here. i'm starting over from scratch. i really do appreciate the help.
<thibm>
sure
sogatori has joined #nixos
<thibm>
(ixxie: ps: cat is useless)
<boothead>
Any haskellers around? I've seen a few newish looking options for haskell dev environments and was wondering what people are using nowadays? haskell.nix? Vanilla nixpkgs? Cabal or stack? I've been out of the loop for a little while :-)
<omfgwhofarted>
thibm: i'm going to try following the manual directions once more from the top as well before i paste my.....conundrum.
<ixxie>
thibm: so I need to build a derivation from the function because -E expects that
<thibm>
ixxie: in fact, your function cannot evaluate to a derivation
<{^_^}>
[nixpkgs] @Ma27 pushed to master « nixos/release-notes: fix minor spelling mistake in the Nextcloud section »: https://git.io/Jvhab
<ixxie>
thibm: how do I solve it?
<ixxie>
thibm: I'm open the alternative approaches, just trying to have a script build an iso with the ssh key of the build machine as a authorized key
<thibm>
omfgwhofarted: look at your fle line 2 column 11, the syntax error is (probably) here. Try tompare with syntax you find on the manual (in examples)
<omfgwhofarted>
thibm: before i start this all again, should i enable the "Enable EFI" option in virtualbox? or should i just stick with trying to get this up and running with legacy BIOS?
<thibm>
thibm: what are you trying to do?
medvid has joined #nixos
<thibm>
omfgwhofarted: is the virtualbox just for trying Nixos out?
<omfgwhofarted>
thibm: yes.....and building confidence.i realize that there is a nixOS virtual appliance already configured, but i want to learn this stuff and know what i'm actually doing.
<eyJhb>
How many hours away are we from 20.03?
opticnerve has joined #nixos
medvid_ has quit [Ping timeout: 240 seconds]
<thibm>
omfgwhofarted: in that case don't bother abouf EFI/legacy BIOS I guess
<{^_^}>
[nixpkgs] @Ma27 pushed to release-20.03 « nixos/release-notes: fix minor spelling mistake in the Nextcloud section »: https://git.io/Jvhaj
<omfgwhofarted>
being someone who is really just still getting used to even navigating *NIX systems, this certainly has been an exercise in frustration. i'm used to it though. i went through it with learning(ish?) arch about 7-8 years ago.
<omfgwhofarted>
thibm: so enable EFI or just don't and stay with BIOS?
<energizer>
it's common to use efi
<thibm>
omfgwhofarted: in which mode do the installation system booted?
<omfgwhofarted>
thibm: the installation media has been booting without the EFI enabled....but then i realized that the EFI option is there and wondered if it make sense to enable it.
<omfgwhofarted>
woah...i just enabled EFI and booted the installation media.....its like a whole new world.........
<omfgwhofarted>
not really, but boot splash screen was different haha
<omfgwhofarted>
thibm: brb, gonna trudge through the manual setup one more time following the directions before i start slamming my head into my desk and begging for help again. ;-)
<thibm>
omfgwhofarted: trying yourself is the best way to figure out :p especially in a VM. Yes, the bootloader is not the same in two modes
<thibm>
note the -A paramater and the -I nixos-config parametre
evertedsphere has quit [Ping timeout: 264 seconds]
ATuin has joined #nixos
<ixxie>
thibm: aaah so I need the -A as well as the -E
noudle has quit []
<hyper_ch>
hmmmm, boot.initrd.ssh is now broken since the switch to OpenSSH :(
<thibm>
ixxie: well, try to figure out what you want to do and how to do it with nix-build. Building things like ISO can appear like black magic, but it's not. The config.system.build.isoImage attribute path is defined in <nixpkgs/nixos>
<thibm>
An the argument configuration in this file (<nixpkgs/nixos>/default.nix) uses <nixos-config>, thus using whatever you give in -I nixos-config
nschoe has joined #nixos
<freeman42x>
I know I should not do this but... I want to test a generated .deb file installation on NixOS. Anyone know what I need to do that?
<thibm>
I would grep .deb in nixpkgs to find examples
<thibm>
The unpack phase should be something like "dpkg -x $src ./"
<omfgwhofarted>
ehhh....think ima find a different IRC webclient real quick and reconnect. never been a huge kiwi fan.
<freeman42x>
thibm, ah yeah, I see there is a nix dpkg package and I already tried it before
<freeman42x>
I see it's looking in the wrong place, dunno what the fix would be though
<thibm>
Well, I cannot help beyond that. Switching from .deb distros to pacman was a relief, switching to Nix was a pleasure
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<ixxie>
thibm: I feel like I never properly understood the fundamentals of nix, so its even hard to follow your explanation
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
<thibm>
Well, I guess it takes time
<thibm>
You should also explains what you are trying to do, instead of the problem you're facing (problem XY)
<thibm>
like, I still don't know what's your objectif with your configuration file
o1lo01ol1o has joined #nixos
<thibm>
I just guessed
fendor has joined #nixos
<ATuin>
anyone having problems with stumpwm after sbcl was upgraded?
<ATuin>
it takes ages to load modules now
<nschoe>
Hi everyone, I´m trying to use Suckless st terminal in my system.environmentPackages. I´d like to apply a few patches to configure it. I see in the nix expression here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/st/default.nix that there is ´inherit patches´, and the derivation takes a ´patches ? []´ argument. How can I supply patches?
<{^_^}>
[nixpkgs] @doronbehar opened pull request #84979 → nerdfonts: update.sh: parse HTML to generate shas → https://git.io/Jvhwl
<nschoe>
Should ´patches´ contains a list of files? Or should I use `builtins.readFile`s, or something else?
<thibm>
(I mean anything that evaluates to a file)
duckfat has joined #nixos
omfgwhofarted has quit [Remote host closed the connection]
<nschoe>
thibm, thanks for your answers. I figured I had to use st.override, but my question is: hsould I have `patches = [ builtins.readFile /path/to/patch1.diff builtins.readFile /path/to/patch2.diff ]` or `patches = [ /path/to/patch1.diff /path/to/patch2.diff ]` ?
<duckfat>
alright, thibm, it's me, "omfgwhofarted". back from making coffee, gonna try a fresh install again with EFI enabled.
<thibm>
You could also use nixpkgs.config.st.patches = [ things ]. But be aware that this is not the standard way to add patches. This had been added "manually" and is not usual
<thibm>
nschoe: (builtins.readFile /file) can just be /fine. And then you don't need parenthesis
<thibm>
*/file
<thibm>
Sorry, I was wrong
<thibm>
builtins.readFile return a string. Here you need a file
freeman42x has quit [Ping timeout: 246 seconds]
<nschoe>
thibm, oh right, that makes sense. So plain old /path/to/patch.diff
<nschoe>
thibm, and this is the ¨best¨, correct way to add it, right? the thing about nixpkgs.config.st.patches, you said it was unconventional?
<thibm>
Yes. Or fethcurl stuff, or whatever
<nschoe>
ah yes, indeed.
<thibm>
nschoe: both things are unconventional: having a patches argument, and adding `patches = config.st.patches or [];' in the pkgs st definition
<nschoe>
thibm, ohhhh actually fetch url might be very interesting because that would allow to pull the patch directly from their website, automatically computing the name, etc... I like this :)
<thibm>
(That links to nixpkgs.config)
<nschoe>
thibm, oh? Both unconventional? What would be the ¨correct¨, conventional way then?
<thibm>
nschoe: yes that's the point. Except if the patch is specific to nixpkgs, it's usually downloaded somewhere
<duckfat>
dammit my machine is going nuts brb
<thibm>
nschoe: usually one just uses st.overrideAttrs (old: { old.patches ++ [ the patches ]; })
<thibm>
More verbose, but don't need anything special in the package file
<nschoe>
thibm, yes, I was planing to download the patch file in my home dir and use direct path, but this is better
<thibm>
And there's no link to config.nixpkgs usually. I guess there was no consensus on how to use it
<nschoe>
thibm, ah yes I see.
<thibm>
So it's not much used
<nschoe>
thibm, since st does have a ´patches´ argument, I think I´ll use it.
<thibm>
sure
tpanum has quit [Read error: Connection reset by peer]
<nschoe>
thibm, stupid question (yes I know I lack a lot of nixOS knowledge :/) the <package>.overrideAttrs function: is that the way to change the arguments in any derivation, especially when tyou have packages that have things like `withQt5 ? false`, or `widescreen ? true`, etc ?
tpanum has joined #nixos
<thibm>
(I guess the packager did that because suckless things are configured at build time. So it needs a conf argument, which can be provided by nixpkgs.config.st.conf. I guess it's usuall to patch st, so the pacakger added the same thing for patches and libs)
<thibm>
nschoe: no, this is .override
<srk>
nschoe: overrideAttrs is for overriding attributes like src
<thibm>
.override sets the function arguments. overrideAttrs sets the attributes
<nschoe>
thibm, as for the conf thing, I tried this: I copied their config.def.h in my home dir, OI used st.override { conf = builtins.readFile /path/to/config.h } and it crashed and faild to build. I don get why as it was the default config.f file :/
<thibm>
nschoe: same, remove readFile
<nschoe>
thibm, okay for .override vs. overrideAttrs
<thibm>
files are first-class citizen in Nix, you usually don't need to go through a string
<nschoe>
thibm, ah! thanks for the PDF,. I´ll read this, it should help:)
<thibm>
wait, I'm wrong (again). It expects a string
<nschoe>
thibm, oh yes, so conf needs a file, not a string then.
<thibm>
nschoe: but you're missing a ; before the }
<nschoe>
thibm, no n I just wrote quickly on IRC, but I do have the ;
<thibm>
OK
<nschoe>
Hum, this is is weird. Well first let´s try to apply a patch with fetchurl
<thibm>
How the build failed? Maybe your config was bad?
duckfat has joined #nixos
<nschoe>
thibm, I don´t think so, since I straight copied their config.def.h, renamed it config.h and used it as-if. Precisely to test that I was able to override st. I tried to use the default .h file not to introduce my own errors.
<nschoe>
Anyway I´m trying the patch first. One problem at a time.
<nschoe>
I´ll let you know how it went
pbogdan has joined #nixos
kaushikc has joined #nixos
knupfer has joined #nixos
grumble has quit [Quit: even though the storm calmed down, the bitter end is just a matter of time]
<thibm>
Just tried to build st with overriding to the default config, it worked.
<nschoe>
thibm, hum I´ve just tried this: (st.override { patches = [ builtins.fetchurl { url = ¨http://xxx.diff¨; } ]; }) and nixos-rebuild fails with ¨cannot coerce a set to a string¨ :/
<nschoe>
og apparently it was the quotes around the url ( url = ¨https://¨ vs url = http://). So I removed them, but now it fails with ¨cannot coerce the built-in function ´ftehcurl´to a string¨
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
<thibm>
nschoe: add parenthesis
<thibm>
it's parsed as [ (builtins.fetchurl) ({...}) ]
<thibm>
and fetchurl cannot be coerced to a string
<nschoe>
Ah it worked!
<nschoe>
Thanks!
<nschoe>
And the patch actually works. Awesome, thanks
__monty__ has joined #nixos
<nschoe>
Thx for sticking with me and helping ^^
linarcx has joined #nixos
<{^_^}>
[nixpkgs] @ggreif opened pull request #84980 → compilers/ghc: grooming various versions → https://git.io/Jvhrm
<thibm>
Well, I'm working right now but each iteration takes time, so I have a bit of extra time…
<nschoe>
My gain :)
awatanabe[m] has joined #nixos
<nschoe>
I have to fly now, I´ll be back later, probably with new issues. Thanks again :)
<ixxie>
thibm: my objective is to build a minimal iso with ssh and the build machine's ssh key as an autherized key; this is for a scripted kexec based conversion of a VM to a nixos machine
<{^_^}>
[nixpkgs] @flokli pushed 3 commits to release-20.03: https://git.io/Jvhrz
<thibm>
ixxie: the attributes config.system.build.isoImage of <nixpkgs/nixos> builds the ISO. It needs the NixOS configuration, which can be passed by a variable environment ($NIXOS_CONFIG) or a nix path (-I nixos-config=.. or even $NIX_PATH=nixos-config=...)
iyzsong has joined #nixos
<thibm>
Or even given directly to the <nixpkgs/nixos> function
pbogdan has quit [Read error: Connection reset by peer]
<ixxie>
thibm: I guess that much is clear, but the part I am not understanding is how to pass it as a string instead of having to save a file
<ixxie>
thibm: I thought this was the idea with -E
<thibm>
Well, easiest way is to build a file from the string (use writeText)
LysergicDreams has quit [Ping timeout: 256 seconds]
<thibm>
You could also patch you file in the shell and invoke nix-build on the patched file
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LysergicDreams has joined #nixos
<ixxie>
well the string is in bash at that point, so I don't know how to pass it into the nix-build invocation
<ixxie>
I guess I can live with the patching approach
<ixxie>
its what I did now
<ixxie>
but its a bit annoying saving a temporary file
<clever>
ixxie: have you seen my kexec scripts?
<hyper_ch>
clever's kexec scripts <3
<ixxie>
clever: I've seen them a while back, and my approach is based on them
zupo has joined #nixos
<ixxie>
clever: if they have been updated in the last year, I would love a link them
<ixxie>
link to them*
<thibm>
ixxie: quick answer: 'pkgs.writeText "file.nix" thestring'. But it's like patching a patch. You should see the big picture and how to implemnet it
<clever>
ixxie: line 69 may be your problem, it forcibly stops auto-start of sshd
johnjay has joined #nixos
<ixxie>
aha! I think I understand what went wrong... at some point I forgot I really need to use your special kexec iso for this and tried to use the normal minimal iso, and now I ended up redoing this from scratch
<ixxie>
but there isn't really a need for me to reinvent the wheel because you have everything needed there...
NightTrain has quit [Ping timeout: 260 seconds]
<clever>
ixxie: the kexec tarball is meant to be used when you can already boot linux on a remote box, but cant boot a disk image
<pinkieval>
I'm trying to run 'nix-shell -p nixpkgs-review --run "nixpkgs-review wip"' to contribute a patch on a small python package, but it allocates 1.8GB and then crashes because it's out of memory. Is this to be expected?
<clever>
pinkieval: do you have any overlays setup?
<pinkieval>
no
<clever>
pinkieval: what happens with `nix-shell -p nixpkgs-review --arg config {} --arg overlays '[]' --run "nixpkgs-review wip"` ?
<ixxie>
clever: this seems to be the case in hetzner cloud
<pinkieval>
(uh also, it undid my local change to the tree)
<qyliss>
I'm guessing this is to do with setuid/setgid permissions/capabilities. What do I need to do to let a DynamicUser service run a wrapped binary?
fusion809 has joined #nixos
<yorick>
> The getegid() function shall always be successful and no return value is reserved to indicate an error.
<{^_^}>
error: syntax error, unexpected ')', at (string):296:13
<yorick>
qyliss: do you know if it fails on the first or second branch of that ||?
<ixxie>
clever, are those scripts licensed somehow?
<clever>
ixxie: the kexec ones i wrote arent
<qyliss>
yorick: it's the second branch
<qyliss>
or, well, it's an or
<qyliss>
so they both fail
<qyliss>
the sendmail wrapper is setgid, but the wrapper process's effective gid doesn't match the wrapper program's gid
<qyliss>
But I don't understand how it ever would
<qyliss>
Oh, right, it happens because the binary is setgid
<ixxie>
clever: oh wait there is an apache license file inside
<clever>
there is?
<clever>
ah, i forgot i added that, lol
<qyliss>
I've tried adding cap_setgid and cap_setuid but that didn't do anything.
<MichaelRaskin>
I would expect that systemd caps access to setuid/setgid binaries!
<puck>
qyliss: is NoNewPrivileges set?
johnjay has joined #nixos
<qyliss>
MichaelRaskin: hence adding those capabilities
<qyliss>
puck: I don't think so?
<puck>
set it to false
<puck>
by default, DynamicUser sets it to true
<qyliss>
aha!
<qyliss>
will try that
<puck>
which blocks setuid/setgid
<puck>
oh
<puck>
> Furthermore NoNewPrivileges= and RestrictSUIDSGID= are implicitly enabled (and cannot be disabled)
<puck>
:v
<{^_^}>
error: syntax error, unexpected '=', expecting ')', at (string):296:28
<qyliss>
I see
<qyliss>
so I just can't sendmail from a DynamicUser service?
<puck>
.. apparently?
<MichaelRaskin>
«implicitly enabled» — wow, I fully agree with systemd defaults on something? — «and cannot be disabled» — ah no
<MichaelRaskin>
Well, you could have a localhost-only daemon…
<MichaelRaskin>
Hopefully you would be able to connect to it
jakobrs has joined #nixos
<puck>
qyliss: so
<qyliss>
I don't really want to write a mail daemon
<puck>
> We locked this down, since there are some (mostly theoretical) ways to create a suid binary under the dynamic user id and have it stick around when we don't turn off suid handling.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):296:20
<jakobrs>
Is there any syntactic sugar for builtins.elemAt?
<qyliss>
jakobrs: I don't believe so
<qyliss>
it's not a hugely common operation though
<MichaelRaskin>
qyliss: I believe there are some existing ones, though
<jakobrs>
Yeah, apparently it (builtins.elemAt) wasn't even added before Nix 1.2
thibm has quit [Quit: WeeChat 2.6]
yopatate[m] has joined #nixos
<{^_^}>
[nixpkgs] @globin pushed 3 commits to structured-attrs: https://git.io/Jvhod
astrofog has quit [Quit: Quite]
<yourfate>
so, do you usually split configs for different servcies into separate files? like I want to set up nexcloud, so I'd put the config for that and the database it uses into a separate file?
CRTified has quit [Ping timeout: 250 seconds]
<pinkieval>
clever: the answer seems to be about a little below 6GB
michaelpj[m] has joined #nixos
<clever>
yourfate: you can just add more files to the imports list, and nixos will merge the files for you
<clever>
yourfate: this file for example, sets a bunch of settings including systemPackages
<yourfate>
is there a minimal example to get nextcloud set up with nginx and let's encrypt certs?
<ixxie>
thanks MichaelRaskin
<yorick>
jakobrs: let __mul = builtins.elemAt; in [ 1 2 3 ] * 1
<jakobrs>
you can do that?
<jakobrs>
probably not a good idea though
<clever>
jakobrs: * is just an alias to __mul
<jakobrs>
> let __mul = builtins.elemAt; in [ 1 2 3 ] * 1
<{^_^}>
2
<yorick>
you can use __div if you like that better
fusion809 has quit [Quit: Leaving]
<jakobrs>
How do I check if a path was produced by a fixed-output derivation?
<clever>
jakobrs: `nix-store -q --deriver` and `nix show-derivation`
<srxl[m]>
I'm currently trying to package an Elixir application (elixir-ls), but part of it's build process is to call a custom-defined Mix task, which requires all of the application's dependencies to be installed with Mix. How can I package this under nixpkgs?
<jakobrs>
In that case, the default empty directory used by services.httpd when documentRoot is not set is *not* a fixed-output derivation
<xfix>
having a group named after that user is known as "user private groups"
evertedsphere has joined #nixos
jordan[m] has joined #nixos
<yourfate>
I did it differently, I created a "configurators" group that now owns /etc/nixos
<yourfate>
and my user is in it
<yourfate>
which makes remote editing easier for me with emacs tramp mode, as sudo with it over ssh is annoying
<xfix>
from what i understand, i don't think NixOS has support user private groups, but it seems like configurators group is good enough for you, so it's fine :)
<xfix>
has support for user private groups *
jordan[m] is now known as jordandoyle
jordandoyle has joined #nixos
jordandoyle has joined #nixos
jordandoyle has quit [Changing host]
<jakobrs>
`nixos-rebuild test` creates a result symlink in the current directory,but `nixos-rebuild switch` does not. Is this a bug?
<{^_^}>
[nixpkgs] @junjihashimoto opened pull request #84985 → Fix the error of making symlink in setupCompilerEnvironmentPhase. → https://git.io/Jvh6T
<xfix>
no
<jakobrs>
Why does nixos-rebuild test create a symlink then?
<xfix>
to avoid GC
<jakobrs>
Doesn't nixos-rebuild test change /run/current-system?
<{^_^}>
[nixpkgs] @sikmir opened pull request #84987 → gpsbabel-gui: init at 1.6.0 → https://git.io/Jvh6n
<srk>
TIL!
* srk
never used test
<jakobrs>
You might be thinking of `nixos-rebuild build`
<jakobrs>
I like test because I don't get a dozen separate boot entries when trying to get something to work
<srk>
yeah, makes sense
pbogdan has quit [Ping timeout: 258 seconds]
<jakobrs>
And then I can "finalise" the changes using a single nixos-rebuild build (or /run/current-system/bin/switch-to-configuration switch)
<jordandoyle>
hey, anyone managed to get KDE global menus working on NixOS? :) Managed to get appmenu-gtk-module building but getting "Settings schema 'org.appmenu.gtk-module' is not installed" from every application even with the XDG_DATA_DIRS set, don't really want to put more hours into it if this isn't the big fix to all my problems 😁
<jtojnar>
jordan are you setting it correctly? Nix moves the schemas to a subdirectory to avoid conflicts
<xfix>
I guess it may be a bug, but at this point it's more of a feature
<xfix>
for nixos-rebuild.sh, test behaves more like build
<xfix>
than switch
<jakobrs>
Although that one is for boot and not test
<xfix>
elif [ "$action" = test -o "$action" = build -o "$action" = dry-build -o "$action" = dry-activate ]; then
<evertedsphere>
how do i debug a "cannot find file or directory" error when trying to run an executable? i call gradle and it calls aapt2 and the latter fails for some reason
<evertedsphere>
strace?
<evertedsphere>
more to the point does anyone know how to directly use gradle to build android apps on nixos (without android-studio that is)
<clever>
evertedsphere: you probably need to use the copy from nixpkgs or patchelf the binary
<jakobrs>
Argument handling ... in bash.
<jakobrs>
I feel sorry for whoever maintains nixos-rebuild.sh
<evertedsphere>
clever: i see
<evertedsphere>
i also tried the "official" gradle-less method described in the nixpkgs docs but that failed with a ridiculous error from ant
<evertedsphere>
saying it couldn't find an xml file that clearly existed in the nix store
<evertedsphere>
does Sander van der Burg hang around here?
<bqv[m]>
Interested in disnix?
<bqv[m]>
Me too.
<evertedsphere>
waaaaait. it worked this time
<evertedsphere>
bqv[m]: yes! but this time around it's not that, it's bc they wrote the android-on-nix stuff in nixpkgs afaict
<evertedsphere>
i would like to play with disnix(os) though
<bqv[m]>
Ah, ok
<jakobrs>
Why was it so important to remove the perl dependency from nixos?
<jakobrs>
Reading throught nixos-rebuild.sh I feel like pretty much anything would be better than bash
<clever>
jakobrs: ive been wanting to be able to remove perl and python entirely from nixos
<clever>
if nothing depends on either, you can reduce the minimal closure size further
<bqv[m]>
I think python for tests is worth it
michaelpj[m] is now known as michaelpj[m]1
CRTified has joined #nixos
<xfix>
tests are fine, a NixOS installation doesn't have to run tests
<{^_^}>
[nixpkgs] @talyz opened pull request #84993 → php.extensions.pdo_mysql: Set default socket location → https://git.io/Jvhid
<esclear>
I'm wondering: Is there a way to continue a failed build, if nix-build was run with the --keep-failed parameter? I.e. can one force nix to use the same build directory?
<clever>
esclear: that wouldnt be pure, but you can continue it under nix-shell
<clever>
esclear: run `nix-shell` on the drv that failed, then cd into what --keep-failed left behind and run `make`
<jakobrs>
I need instructions: Should I open an issue, a pull request, or neither?
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<clever>
jakobrs: id say open a pr, and people can comment on if it should be fixed or not
<jakobrs>
I'll do that then
<jakobrs>
Note that I haven't been able to test the flake-specific part
morgrimm has joined #nixos
eoli3n__ has quit [Ping timeout: 256 seconds]
pbb has joined #nixos
johnjay has joined #nixos
dermetfan has joined #nixos
kaliumxyz has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
aveltras has joined #nixos
elux has joined #nixos
<elux>
hey all
<elux>
just wondering if anyone has had success installing linux 5.6.2 with unstable channel?
morgrimm has quit [Ping timeout: 256 seconds]
jrddunbr has joined #nixos
pbb has quit [Remote host closed the connection]
<elux>
make: *** [../Makefile:180: sub-make] Error 2 builder for '/nix/store/m8sc2w8dk2jj4vdzrs6xa0djk7vk394i-linux-5.6.2.drv' failed with exit code 2 error: build of '/nix/store/7m2z01k3ldc9yqkylh54zasjhyizhdw4-nixos-system-pakd-20.09pre220429.9b0d2f3fd15.drv' failed
zeenk has joined #nixos
<jluttine>
my nixos-rebuild started suddenly giving stack overflow, but --show-trace doesn't show any trace. perhaps some nix file got corrupted while my disk got full? any ideas what could be the reason? i was expecting to see some trace at least.. https://github.com/NixOS/nixpkgs/issues/84995
<{^_^}>
[nixpkgs] @jakobrs opened pull request #84996 → nixos/installer: Make nixos-rebuild test and dry-activate not create a symlink in the current directory → https://git.io/JvhPu
<maddo>
is anyone using it here and if yes are there any opinions about it?
morgrimm has joined #nixos
<simpson>
TIL, interesting.
<morgrimm>
Morning folks - what would be the best way to override parts of a fetcher?
<morgrimm>
For example, overriding the GH base url for the github fetcher
<gchristensen>
maddo: a bunch of people surely are, though not sure I could point to them :)
<morgrimm>
I guess I can just override the args actually, couldn't I - since it comes with a githubBase arg
<lukegb>
hooray, I managed to configure my rube-goldberg-machine IRC setup to get back in here
jakobrs has left #nixos ["WeeChat 2.7.1"]
klntsky has quit [Ping timeout: 240 seconds]
<infinisil>
maddo: I'm using it! Pretty happy with it :)
<maddo>
gchristensen haven't looked deeply into it yet for time-constraints but it seems less of a headache to setup (tho I'm fairly ignorant of the modern postfix alternatives, folks have been claiming about OpenSMTPD)
<maddo>
I'm still fairly new to the whole Nix world (asked a question here sometime ago about installing Nix on a NAS and got tremendous help). Now I only need to switch my desktop to full-time nix
michaelpj[m]2 is now known as michaelpj
rtjure has joined #nixos
<maddo>
btw nix seems to be a very hassle-free way to manage servers without necessarily going down the docker way, so I'm quite happy about it. I'll hold my judgement for the desktop part as I've yet to fully switch to it tho
<maddo>
so thank you everyone!
pbb has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
civodul has joined #nixos
chagra has joined #nixos
<{^_^}>
[nixpkgs] @jcpetruzza opened pull request #84997 → apfs-fuse: Let mount find apfs-fuse → https://git.io/JvhXe
ottidmes has quit [Quit: WeeChat 2.7.1]
ottidmes has joined #nixos
<nschoe>
Hi everyone, I´m trying to use Suckless st terminal in my systemPackages. I can successfuly override it and apply patches that I get with fetchurl from suckless.org. This works perfectly. But now I´m trying to use the `conf` argument to use my own config.h file (derivation is here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/st/default.nix). So I currently have something like: st.override { conf = (builtins.readFil
<nschoe>
e /home/nschoe/.config/st/config.h) ; ... } but when it fails and canot build. Reporting lots of errors. The thing is: the config.g file I´m using is a strsigth copy of their config.def.h, unmodified.
<nschoe>
So I am wondering if maybe I messed up nix syntaxt with the builtind.readFile or something
cizra has quit [Read error: Connection reset by peer]
nickchow[m] has joined #nixos
betaboon has quit [Ping timeout: 265 seconds]
ecou[m] has joined #nixos
dermetfan has joined #nixos
betaboon has joined #nixos
nickchow[m] is now known as kcin[m]
captjakk has joined #nixos
<ixxie>
clever, somehow the kexeced NixOS is asking for a password when I try and login again
<clever>
ixxie: what config did you build it from?
<DamienCassou>
hi
<DamienCassou>
I need to install 2 instances of couchdb on my nixos laptop. Can I do that with plain services? Should I use nixops to manage docker/podman containers?
<evertedsphere>
does "nixos containers" mean lxc/lxd?
nino34 has joined #nixos
<bqv[m]>
no
<bqv[m]>
internally it currently uses nspawn
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ambroisie has quit [Ping timeout: 265 seconds]
nino34_ has quit [Ping timeout: 260 seconds]
<amf>
tried `nix-env -i perl5.30.0-IO-Socket-SSL && perl -MIO::Socket::SSL -le 0`, but perl can't find it in @INC... is there a better way to install perl modules? I do have unstable in my user nix-channels and wondering if that is interferring
<amf>
as `nix-env -i perl` installs 5.31 but i don't know how to ask for 5.30
<aanderse>
amf: perl.withPackages (p: with p; [ SocketSSL ]) will give you a perl interpreter with perlPackages.SocketSSL installed
<amf>
aanderse: (still quite new) how do i eval that?
<ixxie>
clever: looks like its still asking the pw... its the root user :/
<clever>
ixxie: how did you authorize the ssh key?
<jordandoyle>
anyone with hydra knowledge know when nixos-unstable will next be released? :P trying to navigate it not really sure where to look, need to know when I can nix-channel --update and enable my nixos-hardware config again since acpi_call is currently broken in unstable (but fixed in master)
<zeorin36>
Hey all! New NixOS user here. I'm setting up my fonts and I can't for the life of me get _rid_ of Noto Color Emoji.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<zeorin36>
I've disabled fonts.enableDefaultFonts (manually adding all the fonts that that would have enabled _except noto-fonts-emoji).
<waleee-cl>
zeorin36: in your user enivronment? Maybee .fonts or .local/share/fonts related, I'd go with one of the fc-* commands
<waleee-cl>
s/Maybee/Maybe/
<ixxie>
clever: I based it on the commented line in your template, but tries to import the ssh key from an env var: https://pastebin.com/KYywryjA
<aanderse>
amf: the best answer depends on what you're doing. perl development?
<clever>
ixxie: if you watch the build output, you should see it building a root-authorized_keys file, double-check the contents to make sure they are correct
<zeorin36>
But it's still there after a rebuild: `fc-match 'Noto Color Emoji'` returns `NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"` If I set `FC_DEBUG=1` when running it, it tells me that the matched file is at `file: "/nix/store/7whisf45mza1729ll67c9g2nqa27bndf-noto-fonts-emoji-2018-08-10-unicode11/share/fonts/noto/NotoColorEmoji.ttf"(w)`, so it's
<zeorin36>
definitly something from the nix store.
<zeorin36>
That's set to `[ "Twitter Color Emoji" ]`
<aanderse>
amf: if you just want a quick and easy shell which has that perl in it try something like this:
<aanderse>
Dumper DBDmysql DBI TermReadKey ])'
<aanderse>
nix-shell -p 'perl.withPackages (p: with p; [ Data
gustavderdrache has joined #nixos
<MichaelRaskin>
zeorin36: try setting it with mkForce
<MichaelRaskin>
Just setting _appends_ lists
eof has joined #nixos
<zeorin36>
from `twemoji-color-font`, not `twitter-color-emoji`, because the latter *installs `noto-fonts-emoji`*' too
<zeorin36>
I see. Hmm.
<MichaelRaskin>
Hmmm
<MichaelRaskin>
Ouch
<MichaelRaskin>
if enableDefaultFonts is true, noto-fonts-emoji is included…
<clever>
MichaelRaskin: the default value is "Noto Color Emoji" so if you simply `fonts.fontconfig.defaultFonts.emoji = [];` it will loose the default value
<clever>
MichaelRaskin: any non-default value, causes the default to be list
<MichaelRaskin>
I guess you can set it to false and add the other default fonts…
<ixxie>
I'm trying to delete the old build, but it nix-store --delete says its 'still alive'... how do I figure out where its used?
<zeorin36>
Would that need to be `mkForce [ "Twitter Color Emoji" ]` or `mkForce "Twitter Color Emoji"`
<clever>
ixxie: nix-store -q --roots
<clever>
zeorin36: i think you just want `= [ "Twitter Color Emoji" ]`
<clever>
zeorin36: you can confirm using nixos-option
<zeorin36>
clever that's what it already is
<clever>
ixxie: also, why are you trying to delete the file?
fenedor has joined #nixos
<clever>
zeorin36: can you confirm the final value, with nixos-option?
<MichaelRaskin>
vika_nezrimaya: Argh. There is lib.uniqList and lib.unique
<zeorin36>
I don't like the Noto Emoji. Some websites will explicitly put Noto Color Emoji in their font stack (since it's the default on many Android devices). If that's the case, fontconfig will match Noto Color Emoji over Twitter Color Emoji
<zeorin36>
But if it's not installed, then it will have to use Twitter Color Emoji.
<zeorin36>
Also for some reason fontconfig is preferring Noto Color Emoji over Twitter Color Emoji atm.
<zeorin36>
Even for other emoji matches
<MichaelRaskin>
vika_nezrimaya: the first one is deprecated because of n^2 complexity, but the second _also_ has n^2 complexity.
<vika_nezrimaya>
lol
ZoomZoomZoom has joined #nixos
<vika_nezrimaya>
if I have two lists, how can I get a list of all stuff that's at least in one list?
<vika_nezrimaya>
can it be less complex possibly?
<MichaelRaskin>
Do you need order?
konobi has quit [Remote host closed the connection]
<vika_nezrimaya>
nope
<amf>
aanderse: oh neat, very helpful, thanks!!
<vika_nezrimaya>
i'm gonna be generating an attribute set from them anyway
fendor has quit [Ping timeout: 264 seconds]
<bqv>
then just concat them
<vika_nezrimaya>
duplicates
<ZoomZoomZoom>
Hey, could anyone please merge #84687? Need it a lot for update before the week is started.
<nschoe>
gchristensen, thanks for the link. Since patchPhase is run immediately after unpackPhase, is it wise to hijack unpackPhase to copy the config.h file before the patches are applied? Otherwise, is there a way I can ¨chain¨ the .override calls? Somethin like ((st.override {conf = ...}).override { patches = ...})?
<vika_nezrimaya>
attr1: attr2: listToAttrs (map (name: { inherit name; value = { attr1 = attr1.${name} or null; attr2 = attr2.${name} or null; }; }) dedup (builtins.concatLists (map builtins.attrNames [attr1 attr2])) - if there are duplicates will there may or may not be time wasted on computing them. Since Nix is lazy I assume there won't be a lot of time wasted but maybe it can be optimized?
<vika_nezrimaya>
assuming dedup is a function that somehow deduplicates lists
<vika_nezrimaya>
but can be replaced with no-op for testing
<vika_nezrimaya>
I'm a bit confused now >.<
<gchristensen>
nschoe: how about prePatch ?
chagra has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
vika_nezrimaya: just how expensive is your mapped function?
<MichaelRaskin>
Attrset construction is probably the cheapest way of deduplicating anyway
<vika_nezrimaya>
well since Nix is lazy I don't assume it'll be too big
<nschoe>
gchristensen, -_- I had not seen this. I just saw the first list, did not scroll down. Sorry :/ That´s what I am looking for indeed.
<gchristensen>
no worries! :)
<vika_nezrimaya>
it's assigning two values comparable to whole NixOS configurations to two attributes
<vika_nezrimaya>
and then it constructs a script mentioning these two values' inner attribute
<vika_nezrimaya>
so it might be comparabl to evaluating a NixOS config twice?
<vika_nezrimaya>
I'm not good at profiling Nixlang
* gchristensen
isn't sure anyone is great at it
zupo has joined #nixos
<vika_nezrimaya>
I'm just hoping Nix is lazy enough
<srxl[m]>
How do I set the interpreter on a shell script in a derivation?
<srxl[m]>
Right now I'm just using sed to replace the whole first line which doesn't feel right
<vika_nezrimaya>
I seriously doubt it'll need to evaluate the value when doing builtins.listToAttrs
<gchristensen>
srxl[m]: what is the first line?
<symphorien>
srxl[m]: maybe you can use patchShebangs ?
<srxl[m]>
what package provides that?
jasom has quit [Quit: WeeChat 2.5]
<clever>
srxl[m]: its part of the stdenv, so all derivations have it
<srxl[m]>
Oh, cool
CptCaptain has joined #nixos
<srxl[m]>
Yep, that one worked
<zeorin36>
clever: just did a garbage collection without deleting old generations, and it's still there.
<CptCaptain>
Is there a way to concatenate or combine paths in Nix?
zaeph1 has joined #nixos
chagra has joined #nixos
<CptCaptain>
Or is converting a string to a path the only way?
<clever>
CptCaptain: path + string results in a path
<clever>
CptCaptain: so you can do ./. + "/foo}
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zaeph has quit [Ping timeout: 256 seconds]
<vika_nezrimaya>
Nix quiz, part i-don-t-know: error: path '/nix/store/<hash>-attribute' is not valid on nix copy --to $mountPoint $FLAKE#attribute - why? :3
<vika_nezrimaya>
am I not understanding how nix-copy works or is nix-copy bugged?
<nh2>
jakobrs infinisil clever: `documentation.dev.enable = true;` does not do it, but `manpages` and `man-pages` both give me `man 2`, and clever's gist includes that and also gives the other POSIX man pages (man 0, 1 and 2) and others
morgrimm has quit [Ping timeout: 256 seconds]
zaeph1 is now known as zaeph
<CptCaptain>
clever: How do I force something to be of a type? Is there documentation on the difference?
<nh2>
slight correction I just found, `man-pages` also gives me sections 0, 1, 2 etc, but the POSIX man pages are something else (sections "0p", "1p" etc.)
<clever>
CptCaptain: what exactly are you trying to set in the nix?
<zeorin36>
BTW I managed to sort out why `noto-font
<zeorin36>
was included: enableDefaultFonts is defaulted to true by the xserver option
<sphalerite>
MichaelRaskin: is it really that complicated though?
zeorin36 has quit [Remote host closed the connection]
Thra11 has joined #nixos
<maddo>
thanks julm
<julm>
:]
<MichaelRaskin>
sphalerite: I think you cannot opt out of propagation handling?
morgrimm has joined #nixos
<nschoe>
gchristensen, It´s taken a bit of time (the time for me to remember how to build derivations, etc.) but I´ve tested and using `prePatch` instead of `preBuild` works like a charm: now both overriding the conf file and applying patches work as intended :)
<nschoe>
I´ll open an issue on st.
<ixxie>
clever: thanks for the debugging tips... I figured it out. But now I am back to the issue of how to run the kexec in the script and immediatly exist the SSH connection
<clever>
ixxie: <enter>~. will force the ssh client to hang up
<CptCaptain>
clever: Something like this myPath = ./prefix + "/${myVar}";
<{^_^}>
[nixpkgs] @pvgoran opened pull request #85003 → Redmine server options → https://git.io/JvhDw
sn3rd has joined #nixos
<clever>
CptCaptain: yeah, that should work just fine
<ixxie>
clever: I need to do this in a script though :/
<CptCaptain>
That's where I get the error
<ixxie>
clever: i've been trying ./kexec_nixos & disown; exit
<CptCaptain>
Anyway, it works. But the warning is a bit nasty
<clever>
ixxie: you may need a script that wraps ssh, or use something like screen+nohup to launch something on the remote end, which keeps running after you close the ssh
<clever>
ixxie: there is also `systemctl kexec`
<sphalerite>
MichaelRaskin: oh, true.
<ixxie>
clever: been trying to somehow wrap ssh, but probably not doing it right
<clever>
ixxie: have you seen `systemctl kexec` ?
<sphalerite>
MichaelRaskin: iirc symlinkJoin also does a less efficient tree, where only the files are actually symlinks and the rest is all "real" directories
<ixxie>
clever: looking into it now
<ixxie>
clever: is it as simple as running that command and logging out?
<MichaelRaskin>
sphalerite: yep, it just uses lndir
<clever>
ixxie: i believe you do the `kexec -l`, skip doing `kexec -e`, and instead do `systemctl kexec`
CptCaptain1 has joined #nixos
<clever>
ixxie: systemd will then do a full and clean shutdown, causing ssh to get killed, and when its fully stopped, it will `kexec -e` for you
<{^_^}>
[nixpkgs] @emilazy opened pull request #85004 → nixos/stage-1: check secret paths before copying → https://git.io/JvhDo
<MichaelRaskin>
sphalerite: the behaviour being prohibitively expensive to change, obviously! I mean, the value of symlinkJoin is that you know exactly what you are getting…
<{^_^}>
[nixpkgs] @veprbl pushed 2 commits to release-20.03: https://git.io/JvhDQ
<jeromelanteri>
hey guys, i'm trying to make a YT video to explain what is NixOS and how to use it. So i'm testing it (fresh new user me), and i have question allready about a command: nix-env -qas
<jeromelanteri>
show me a list of packages avaiable with --- as IPS possibly present.
<jeromelanteri>
well... i get some "coreutils-8.31" packages on 3 lines (2 are -PS and 1 is ---". But why ?
<gchristensen>
I'm not understanding the IPS part of your question?
<jeromelanteri>
I for installed, P for present and S for substitute flag
<jeromelanteri>
but why is there 3 lines about coereutils-8.31 packages and not only one line output there ?
<LnL>
if I recall correctly it means a it's not installed but a substitute is available
<LnL>
ie. you won't have to build it yourself locally
<gchristensen>
interesting. I haven't used nix-env in so long :D
<LnL>
yeah same, so I'm not entirely sure
gnxlxnxx[m] has joined #nixos
<jeromelanteri>
LnL, this i understand good. it means there is some packages used it inside own /nix/store package directory... but why is there 3 lines ? does it mean that 2 packages used one and 1 line for said that, i do not install it myself ?
<gchristensen>
jeromelanteri: interestingly and probably counter intuitively, probably most NixOS users don't use nix-env very much :)
<MichaelRaskin>
gchristensen: I don't believe you! you use it on every nixos-rebuild!
<jeromelanteri>
gchristensen, i like the idea of NixOS to do things isolate. But i really would like to add a nice video to show how to use nixos tools, so i have to well understand
<{^_^}>
[nixpkgs] @Gabriel439 opened pull request #85008 → Upate `buildDhallPackage` to use default version of Dhall → https://git.io/Jvhyu
<jeromelanteri>
MichaelRaskin, so nixos-rebuild is an alias command like call ?
<gchristensen>
jeromelanteri: usually when I want to find a package to install, I use nixos.org/nixos/packages.html or run the command I want: $ ucm
<gchristensen>
The program ‘ucm’ is currently not installed. You can install it by typing:
<gchristensen>
nix-env -iA nixos.unison-ucm
<gchristensen>
and then instead of nix-env -iA, I will use `nix-shell -p unison-ucm` and that will get me in to a shell with the program I wanted, ready to use -- but not globally installed
philr has quit [Ping timeout: 256 seconds]
<jeromelanteri>
does nix-env -i unison would works the same ?
<gchristensen>
if I want it globally installed, I will add it to /etc/nixos/configuration.nix, in `environment.systemPackages`
<{^_^}>
jeromelanteri: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<MichaelRaskin>
jeromelanteri: nixos-rebuild is a script that uses nix-env --set internally
<jeromelanteri>
ok
<gchristensen>
MichaelRaskin is confusing the matter :)
<jeromelanteri>
is there a nice link who is demonstrate all of these use case or do i have to read man pages and try mùyself ?
<jeromelanteri>
MichaelRaskin, ok. Where i can find this script to read inside ?
<gchristensen>
oh no
<LnL>
jeromelanteri: present or installed doesn't necessarily imply a substitute is available, a user might have built it himself
<jeromelanteri>
LnL, we can build we own ?
pbb has joined #nixos
<LnL>
as for nix-env --set, that's not really an operation for users it's more of an internal plumbing command
<jeromelanteri>
LnL this is also an other use case where, for example, i would git clone my app repo, then i can build and start from source repo position. But how to then install it for the logged user ?
<MichaelRaskin>
LnL: it is ~ same level as nix-build, and has nice use cases
<LnL>
ah for that you'd uses the -f flag
gustavderdrache has quit [Quit: Leaving.]
<gchristensen>
MichaelRaskin: I'm worried you're going a bit too nitty gritty for someone wanted to get the 10 minute view :)
<jeromelanteri>
ok, -f flag... i would read it
<LnL>
nix-env -f /path/to/project -i
<jeromelanteri>
gchristensen, i would like to make a 1 hour view, with some timing indicate for people who want to jump on target.
<jeromelanteri>
Lnl, i notice it, thank you
<LnL>
similarly it can also be used to install things from a different release
<jeromelanteri>
then the project path should be inside the $HOME user path to be accessible... correct ?
captjakk has quit [Remote host closed the connection]
elux has quit [Quit: leaving]
captjakk has joined #nixos
<jeromelanteri>
i aslo do not understand what is a channel for NixOS. When i do nixos-channel --list, i have empty output on stdout
<jeromelanteri>
what is a channel ?
griff__ has quit [Quit: griff__]
<jeromelanteri>
i was supposed to have a channel for my nixos distro (something like nixos-09.09 in the list...
captjakk has quit [Ping timeout: 256 seconds]
Henson has joined #nixos
arjen-jonathan has quit [Ping timeout: 260 seconds]
<Henson>
I noticed that in the Nix package search engine for a particular package the "Nix Expression" field now says "Not Specified", whereas only a couple weeks ago it would have a link to the nix expression in the git source tree. Is there a reason for that?
<ixxie>
clever: well, that will take me a while because I never ran my own vm
<clever>
ixxie: just boot the ubuntu iso in something like virtualbox
<hyperfekt>
is there any way to include something like a hosts file in a build environment? i'm trying to package software that wants to resolve a hostname in its tests
eoli3n__ has joined #nixos
<clever>
hyperfekt: libredirect
<{^_^}>
[nixos-homepage] @davidak pushed to davidak-newsx « clean up news »: https://git.io/JvhSp
<{^_^}>
[nixos-homepage] @davidak opened pull request #388 → clean up news → https://git.io/JvhSh
freeman42x has quit [Ping timeout: 265 seconds]
captjakk has joined #nixos
sn3rd has quit [Quit: Leaving]
cole-h has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
justanotheruser has quit [Ping timeout: 265 seconds]
captjakk has quit [Remote host closed the connection]
morgrimm has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
InvisibleRasta has quit [Ping timeout: 265 seconds]
ixxie has quit [Quit: Lost terminal]
pbb has quit [Ping timeout: 265 seconds]
pbb_ has joined #nixos
<miscellaneousbus>
how do i source powerline bindings for bash?
<joepie91>
but I definitely didn't spend much time on a Proper(tm) setup for it
<pie_[bnc]>
ok
<pie_[bnc]>
i just had the idea of searching github so i might have some uck
<pie_[bnc]>
i only got it from rustup, wasnt even sure it was perpackaged anywhere
<pie_[bnc]>
this infra is alien to me
<jeromelanteri>
simpson, thank you. From your own link, who is an html page copy from man nix-channel, i find this: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion'
<jeromelanteri>
do i have to add a channel ? after to read the manual page (that i already do), i can not understand more.
kisonecat has joined #nixos
<clever>
jeromelanteri: you usually have a channel setup to manage the version of <nixpkgs> in use
kisonecat has quit [Client Quit]
<jeromelanteri>
i don't have any.
<esclear>
Is anyone here who has tensorflow 2.1.0 running successfully using nixpkgs-unstable.Python37Packages.tensorflow-bin_2 ?
<clever>
jeromelanteri: you may want to add a channel then, if its using nix-daemon, then the channel should probably be on root
<jeromelanteri>
so do i may have one ? And do i may have one to be able to manage version of nixos (and nixos only or any other packages then ?)
<jeromelanteri>
clever, nothing on root
<clever>
jeromelanteri: run `nix-channel --list` as each user
ottidmes has quit [Quit: WeeChat 2.7.1]
<jeromelanteri>
clever, ho sorry, yes, i have ot on root user...
<jeromelanteri>
clever, so this is only for track nixos version or is it also possible to get some other packages ?
<clever>
jeromelanteri: that channel contains both nixos and nixpkgs
<jeromelanteri>
ok, so nixpkgs is inside nixos channel ? or is it something different ?
<clever>
jeromelanteri: yeah, the nixos channel is just a specific version of the nixpkgs repo
<jeromelanteri>
ok
<jeromelanteri>
so for example, i can add a nixos channel with the last 20.03 unstable version and make the label name "nixos-20.03" ? Then switch from one to an other...
<clever>
jeromelanteri: yep
<jeromelanteri>
very good.
<jeromelanteri>
and then nix-channel serve nothing in any use case from other users than root.
<jeromelanteri>
i can see (if i well understand), that i can rollback to any "generation" linked to each user linked "profile". The default user profile is inside ~/.nix-profile, and then each generation is a step of current package installation (or maybe configuration to) administred.
<jeromelanteri>
each user default profile (or any new one created) is in charge to link applications to isolated package installed...
shibboleth has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
<jeromelanteri>
(tellme if i'm wrong, if not that's fine)
<pie_[bnc]>
arcnmx: do you use the mozilla rust overlay? can you recommend a way to make a buildRustPackage for xargo? I hung up on the fact that is the mozilla overlay already has a cargo index or whatever, i shouldnt need to write my own src fetch expression
<{^_^}>
[nixpkgs] @invokesus opened pull request #85013 → perlPackages.PDL and dep → https://git.io/JvhHj
<pie_[bnc]>
arcnmx: or what would be even better is if theres some kind of rustPackages somewhere that already just lists the crates that exist
avn has joined #nixos
slack1256 has quit [Remote host closed the connection]
<jeromelanteri>
failed to find how to change xfwm version used for get xfce-4.14 from my configuration.nix file.
<avn>
looks like TMPDIR strikes back... nix-build have TMPDIR=/var/buildroot, but builds still happens in /tmp
<arcnmx>
hm, I'm not aware of the mozilla overlay doing anything that nixpkgs doesn't, except for providing binary rust/cargo/std/cross/etc packages. I haven't used xargo with it.
<avn>
(I checked /proc/$pid/environ if it matters)
<arcnmx>
I use a custom/rewritten rust overlay instead because it doesn't mesh that well with nixpkgs cross stdenvs
<arcnmx>
hm, so buildRustCrate uses a package index generated by carnix and whatever superceded it...
<arcnmx>
buildRustPackage uses a different approach that downloads all crates from crates.io as part of the build
<{^_^}>
[nixpkgs] @marsam merged pull request #84957 → python3Packages.gst-python: fix build on darwin → https://git.io/Jvh8D
<arcnmx>
and vendors them. I'm not sure if the specs generated by (not?)carnix are usable in any other way though. If you're trying to cross compile rust, you should be able to use either buildRustPackage or buildRustCrate with a typical cross stdenv
<ixxie>
clever: is there an easier way to get an ubuntu virtualbox going besides manually installing it?
<arcnmx>
just have to replace rustc with an appropriate cross one
<arcnmx>
but generally for buildRustCrate the crate list is autogenerated from the Cargo.lock for a project, and with buildRustPackage isn't not needed at all
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<avn>
clever: have you any ideas regarding TMPDIR?
<clever>
avn: when using nix-daemon, its the daemons TMPDIR, not nix-build's
jluttine has joined #nixos
<cole-h>
yorick: Wouldn't stopping the socket disable the daemon?
<cole-h>
e.g. `systemctl stop nix-daemon.socket`
<avn>
clever: sure, I checked daemon's one
<clever>
avn: but if you run nix-build as root, it wont use the daemon
<avn>
clever: I haven't idea why this issue strike me back
<avn>
ahh, that can affect then
<avn>
clever: can I force root' nix to try to use daemon first?
<clever>
avn: NIX_REMOTE=daemon
<avn>
I want to have 'nixos-rebuild build` and 'sudo nixos-rebuild switch' have same default behavior
init_6 has quit [Ping timeout: 240 seconds]
palo has joined #nixos
<avn>
ahha, I got it. Will try, thank you
<clever>
avn: if NIX_DAEMON isnt set, it defaults to auto
<clever>
avn: and auto will test if you can write to something under /nix, then decide between local and daemon
<pie_[bnc]>
arcnmx: oh hi didnt see you reply (ive got too much stuff open, i gotta get highlighted x) )
<arcnmx>
pie_[bnc]: mm sorry, I don't always trust my client to translate names properly. I think I'm just not entirely sure what you're asking, how to build xargo, how to run xargo, or how to use xargo in a build?
<pie_[bnc]>
arcnmx: fwiw im confused , clueless, and trying to do 10 things at once, because if something doesnt work i try something eles
<arcnmx>
if you're cross-compiling rust with nix, xargo shouldn't really be necessary? but probably easier than customizing std, not sure
<pie_[bnc]>
arcnmx: the bottom line is im trying to devlop a process for writing grub modules in rust, because why not, I started looking at some tutorials for getting rust building against bare metal, i dont know my way around the rust ecosystem
<pie_[bnc]>
arcnmx: everyone says to use xargo to build a different core/std/whatever for a different target triple, none of my target triples are in mozilla or the base nixos stuff, but i dont know how to use nixos cross either, other than some random examples of setting a target triple
<pie_[bnc]>
i tried some variations of setting a rust target triple in the mozilla overlay, and one in the nixpkgs cross setting, and it didnt work
<pie_[bnc]>
thats basically where I stand
o1lo01ol1o has joined #nixos
<pie_[bnc]>
so i figured, well uhh ok i can try running xargo in a nix build sandbox or something
<pie_[bnc]>
btw im trying to build against i686-unknown-none, or i686-none-elf or something like that
<evanjs>
pie_[bnc]: have you tried doing the whole thing with the cross repo yet? Not like that’s super pure 😝
<pie_[bnc]>
but in theory shouldnt i be able to select an arbitrary target and just get stuff to work?
<pie_[bnc]>
evanjs: no i didnt know cross exists until you told me earlier
<pie_[bnc]>
some people say xargo isnt even needed anymore, but when i tell cargo to use a triple thats not in the list it just says, lolno
<arcnmx>
pie_[bnc]: mm cross nix stuff is um, fun. generally you might want to aim for 2 things: 1) have a proper cross stdenv for your target. 2) compile libstd for your target, which xargo can presumably be used
<evanjs>
Basically just overriding targets on the rust you pull in from the moz overlay
<arcnmx>
at that point you can use nixpkgs buildRustPackage or buildRustCrate, but you'll have to override rustc to point to one with your libstd included
<arcnmx>
mozilla overlay just does this but downloads binary libstd instead
<pie_[bnc]>
arcnmx: so several questions 1) should i look at your overlay stuff 2) why isnt there some attrset where I can just rustPackages.xargo :( 3) all the things about building xargo, or not building xargo, or whatever, but really i just want to build my binary and the solution doesnt matter
<arcnmx>
though I haven't myself used it yet because my targets happen to be covered by the official rust binary builds
<pie_[bnc]>
evanjs: it takes the parameters in a separate place but even then the problem is it seems that it just doesnt build stuff itself?
wavirc22 has quit [Ping timeout: 258 seconds]
<pie_[bnc]>
i should write a damn faq about this
<pie_[bnc]>
though at the end of this hopefully ill have a fully declarative nix file that i can just dump somewhere as well
OrangeTetra has quit [Ping timeout: 250 seconds]
wavirc22 has joined #nixos
<pie_[bnc]>
arcnmx: can we make #nixos-rust a thing
morgrimm has joined #nixos
<arcnmx>
dunno, I'm not that interested in xargo in particular because nixpkgs already has its own cross infra, there's not much point in using a helper tool long-term when you can just kind of build pkgs.pkgsCross.arm-embedded.libstd or whatever instead.
<pie_[bnc]>
arcnmx: thats fine
<pie_[bnc]>
arcnmx: im not tied to xargo
<pie_[bnc]>
arcnmx: ideally id like to avoid any secondary tools
<pie_[bnc]>
arcnmx: theres github issues saying xargo should have been merged into cargo like 2 years ago
<pie_[bnc]>
and some saying its not even needed anymore, but i havent seen how
<pie_[bnc]>
strangely enough andi seems to be all alone in nixos-rust
<pie_[bnc]>
evanjs: get in here lol
<andi->
pie_[bnc]: I don't remember why I was in there o.o
<pie_[bnc]>
andi-: do you want to register te channel? :P i dont care to figure that stuff out
knupfer has quit [Quit: knupfer]
<andi->
pie_[bnc]: don't see much of a need
knupfer has joined #nixos
<pie_[bnc]>
true
<pie_[bnc]>
samueldr: can we get a bot in nixos-rust
<pie_[bnc]>
joepie91: Ericson2314: jD91mZM2: fwiw im attempting to make #nixos-rust a thing, so if you know any interested parties...
<pie_[bnc]>
samueldr: thx \o/
morgrimm has quit [Ping timeout: 240 seconds]
<pie_[bnc]>
arcnmx: I cant remember why i poked you originally, i think i saw some stuff in the github search
<pie_[bnc]>
sooo...probably nur
<arcnmx>
I mean I do a lot of cross rust stuff with nix, just haven't yet needed to compile std from source. Been meaning to get around to it, but...
<visl>
I'm setting up nixos for the first time using my laptop. i want to install some packages for my user like resilio-sync, keybase. it seems like the nixos preferred way is to do this in the user environment. what's the best way to define a configuration so it's reproducable?
<hyperfekt>
clever: can't seem to get it to work...
<pie_[bnc]>
visl: a lot of people prototype it with nix-build / nix-shell and then put it in configuration.nix, but theres also home-manager
<pie_[bnc]>
visl: for starters you probably just want to try putting stuff in configuration.nix and then progress towards more complicated stuff
jojojojojo has joined #nixos
<pie_[bnc]>
the simple case is no big deal, just put something from pkgs in the appropriate config option
noam has joined #nixos
<pie_[bnc]>
not sure if i really answered anything there?
<pie_[bnc]>
oh by user environment did you mean nix-env?
<visl>
well, what's the appropriate config option for installing something as the visl user
<pie_[bnc]>
yeah in practice the first thing everybody gets told when they show up here is "dont use nix-env" xD but you *can*
<visl>
resilio-sync, for example, is annoying with ubuntu's package because it sets up a system level service as the resilio user. what i actually want is for the daemon to run as my user, so my synced files are owned as me
<pie_[bnc]>
visl: you can search options here or by looking at man configuration.nix or by poking around and tab completing in nixos-option
<pie_[bnc]>
visl: the information tends to be outdated bt theres nevertheless some good things on nixos.wiki, and also worth searching github issues sometimes on nixpkgs
<visl>
ok. i'll dig around some more and come back with more specific questions
<visl>
is nix-env the thing for managing a user environment?
<clever>
visl: yeah
<pie_[bnc]>
visl: the short answer to your question is stick it in environment.systemPackages, which is listed in the original example configuration you get when installing
<{^_^}>
[nixpkgs] @veprbl pushed 2 commits to release-20.03: https://git.io/Jvh7W
<pie_[bnc]>
visl: i also highly recommend playing with `nix repl`
<visl>
ok cool. will do
<pie_[bnc]>
well, when you need to nayway
<visl>
thanks
<pie_[bnc]>
*thumbs up*
<pie_[bnc]>
good luck
<{^_^}>
[nixpkgs] @oxalica opened pull request #85021 → osu: init at 2020.408.1 → https://git.io/Jvh74
<energizer>
visl: if you're asking for user packages, user.user.<name>.packages seems like a more direct answer than environment.systemPackages
<visl>
energizer: ok i'll look into that as well. thanks
lovesegfault is now known as lovejobsecurity
InvisibleRasta has joined #nixos
lovejobsecurity is now known as lovesegfault
dermetfan has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<kreetx>
infinisil: hi, infinisil -- I re-read what I wrote previously and accidentally wrote something that may have sounded mean (repeating the word "ideally"). I was on the phone and wasn't paying attention..
shabius has joined #nixos
jojojojojo has quit [Remote host closed the connection]
linarcx has quit [Read error: Connection reset by peer]
<hyperfekt>
clever: nvm, i got it
<hyperfekt>
clever++
<{^_^}>
clever's karma got increased to 387
<hyperfekt>
thanks a lot for the hint
<clever>
hyperfekt: what was the issue?
morgrimm has joined #nixos
<hyperfekt>
clever: it wasn't inherited to children
<clever>
hyperfekt: ah
dermetfan has quit [Ping timeout: 265 seconds]
<Athas>
What's a good way to use Nix to build a tarball of my program in CI? Right now I'm moving in the direction of writing a default.nix that produces a package that contains a directory, which I will then tar up using the CI script itself.
<pikajude>
cross compilation is actually pretty complicated :(
<clever>
Athas: you can just run tar in a derivation using pkgs.runCommand
<pikajude>
is there a section on addEnvHooks in the manual? i can't find one
<pikajude>
i need the setup hook for a nativeBuildInput to do one thing and the setup hook for a buildInput to do a different thing
<Athas>
clever: I also need to build the tarball contents first, which requires some buildInputs. I couldn't find good documentation how to do that with pkgs.runCommand.
<pikajude>
but addEnvHooks "$targetOffset" foo and addEnvHooks "$hostOffset" bar end up running both hooks about 100 times
morgrimm has quit [Ping timeout: 256 seconds]
<pikajude>
for the same package
<clever>
Athas: you can build the program normally with stdenv.mkDerivation
<miscellaneousbus>
I believe the powerline package is broken and does not work with modules like python_gitstatus
<miscellaneousbus>
anyone use this before?
<clever>
Athas: and then reference that result in pkgs.runCommand "name.tar" {} "tar -cvf $out ${theapp}"
arjen-jonathan has joined #nixos
<Athas>
clever: right. But I need to do some *additional* work apart from just building the normal program derivation (specifically, build documentation, and that requires some Python dependencies).
linarcx has joined #nixos
<Athas>
But maybe I should roll that into the program derivation itself...
<infinisil>
kreetx: Ohh don't worry about it, I didn't take it as sounding mean :)
<clever>
Athas: yeah, that can be done
<infinisil>
kreetx: I didn't quite get what you were saying with this though. If you need help with your question still I suggest providing more info
<clever>
Athas: of note, any ELF binaries you build with nix, will fail if you just copy them to a non-nix machine
noam has quit [Quit: Leaving]
sogatori has quit [Remote host closed the connection]
<pikajude>
ohh, things in addEnvHooks are run for every dependency
<pikajude>
that didn't occur to me for awhile
<pikajude>
i have this backwards, then. so addEnvHooks belongs in like, a cc wrapper or something
rogue_koder_ has quit [Remote host closed the connection]
<clever>
and those then get mapped to those vars, on line 342
<jeromelanteri>
i'm trying to add a partition (i did formated an ext4 partiotion) for my /home use repo. So i do add the config inside hardware-configurations.nix file. But at rebuild timle i get an error said that fileSystems./home.fstype does not exist
<clever>
jeromelanteri: fsType
<jeromelanteri>
how to add this new partition then move /home users data from original /home content of root partition ?
<clever>
pikajude: not sure what they actually do though
<pikajude>
me neither :)
<jeromelanteri>
clever, oh well... do he moved the data from original one to new partition or do i first have to mount then copy ?
<clever>
jeromelanteri: you may need to boot into single-user or use a bootable usb, to move everything from the old /home to the new fs
<jeromelanteri>
clever, ok, understand. I will mount it and copy...
<clever>
jeromelanteri: you could mount the new one to the "wrong" place like /mnt, then copy everything over, and reboot
<jeromelanteri>
yes
<clever>
jeromelanteri: and if you mount the / device a second time, you can see the /home under the real /home, to rm
<clever>
jeromelanteri: but it will be simpler if booted from a usb stick
OrangeTetra has joined #nixos
LysergicDreams has quit [Ping timeout: 240 seconds]
<kreetx>
infinisil: ah, great. :)
<DamienCassou>
there are some xml files in nixpkgs with documentation inside. Where can I read the generated doc?
<jeromelanteri>
clever, i'm under a Qemu VM. NixOS is the guest
<jeromelanteri>
i also find how to get xfce4-14 instead of 4.12 version...
oranginal has quit [Ping timeout: 256 seconds]
waleee-cl has joined #nixos
<jeromelanteri>
inside the setting configuration.nix, instead of xfce.enable = ture, it is xfce4-14.enable = true
<clever>
jeromelanteri: then you could skip the usb, just shutdown, losetup -P the disk image, and mount both FS's, and mv the files
ixxie has quit [Quit: Lost terminal]
eoli3n__ has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
<kreetx>
infinisil: well, my issue was that I have a web app in haskell, and there are image files that I would like to serve. (I serve them through the haskell app so no nginx or such.) But if I use nixops to deploy it on digital ocean then the content of the assets folder is not included with the binary
<kreetx>
infinisil: which this makes sense. But how do I send the assets to the prod machine seems not to be easy :)
aveltras has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
cosimone has quit [Remote host closed the connection]
OrangeTetra has quit [Remote host closed the connection]
<jeromelanteri>
clever, just mount on /mnt/home then rsync -rv did the job good... maybe better next to effectively remove /home from the partition where data remained...
<clever>
jeromelanteri: i'm always paranoid about missing files, so i tend to just use plain `mv`, it deletes after copying, so it only deletes if the copy finished
o1lo01ol1o has quit [Ping timeout: 265 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fydai has joined #nixos
bqv has joined #nixos
<jeromelanteri>
clever, yes. i usually do rclone files and verbose to check all stuff done well.
<clever>
fydai: well, at least changing the pw will be easy, its not registered yet!
<clever>
oh, verify, yeah, one-time code then
<evertedsphere>
oof
<peelz>
lol
<Athas>
clever: the whole point of my exercise is to build static executables. Surely those will work?
<clever>
Athas: yeah, static would be fine
<evertedsphere>
it's just a trick to get us to want to make friends with him, pratfall effect or whatever
<Athas>
Ugh, I forget... how do I fish out a file from a dependency in my installPhase? I thought that if I had 'buildInputs [ foo ]', then I could do 'cp $foo/bin/whatever ...' in my installPhase, but it seems not to work.
<fydai>
does the nix expression language have a "compiled" version of some sort?
<clever>
fydai: not currently
<fydai>
enough information to build the package but does't depend on the local filesystem or whatever
<clever>
fydai: ah, the drv files are sort of that
<clever>
fydai: basically, the functional language boils down to calls to builtins.derivation, giving it a flat key=value; set, which then gets hashed to create the $out, and serialized into a .drv file
zupo has joined #nixos
<fydai>
hmm thanks, I'll take a look at that
<clever>
fydai: but it looses all dynamic/expression features at that point, its just a static build plan
<{^_^}>
[nixpkgs] @hyperfekt opened pull request #85028 → nym: init at 0.6.0 → https://git.io/JvhdG
<fydai>
is "pulling from network" before or after drv generation?
shafox has quit [Remote host closed the connection]
<hyperfekt>
i swear there is an iron law that no matter how many times you look over a patch you will notice a typo only after having opened the PR. and github even announces your mistake now smh
<ottidmes>
cole-h: it builds fine, and your reasoning with the wrapProgram seems fine, however I get a black screen, but I doubt thats your doing, seems like an theme issue once again
<hyperfekt>
fydai: that's after unless you use builtins.fetch*
<cole-h>
It doesn't appear to work with mkv's from what I've found
jeromelanteri has quit [Quit: Leaving]
<cole-h>
But webms and mp4s work fine
<hyperfekt>
fydai: or do import-from-derivation and related mechanisms
<cole-h>
ottidmes: If you download a youtube video with youtube-dl, you should be able to play it in qimgv now
<ottidmes>
cole-h: if I first fix: QApplication: invalid style override passed, ignoring it.
<evertedsphere>
fydai: maybe there's an X/Y problem here and you'd be better served just saying what you want this for
bqv has quit [Ping timeout: 246 seconds]
<cole-h>
ottidmes: Hmm... is that something I should fix?
<ottidmes>
cole-h: not at all, its on my end, should be fixed any minute
<cole-h>
OK, phew :P
<ottidmes>
whatever happened to breeze-qt4?
bqv has joined #nixos
jumper149 has joined #nixos
o1lo01ol1o has joined #nixos
<cole-h>
btw ottidmes about to force-push
<cole-h>
Figured it would be better to call wrapQtApp manually instead of wrapping the wrapper...
<ottidmes>
cole-h: Hopefully it also fixes my issues, cause even with a theme and without warnings it fails with a black screen
<cole-h>
Maybe, but probably not...
jumper149 has quit [Client Quit]
fydai has quit [Remote host closed the connection]
evertedsphere has quit [Ping timeout: 265 seconds]
<cole-h>
ottidmes: OK, it's up now. Ignore the mass of force-pushes.
<ottidmes>
cole-h: I am rebulding :)
<cole-h>
Fingers crossed
ngiger has quit [Remote host closed the connection]
luc65r has joined #nixos
<luc65r>
Hi
<ottidmes>
no luck, I run it like: /nix/store/lybd5w17yqxfjs0a5cgry49i8zblqyzf-qimgv-0.8.9/bin/qimgv -style Breeze, no error, yet I see a rendering artifact followed by a black screen, a reboot might fix it, but don't want to do that :(
<Pwnna>
So I'm in a nix-shell with an qt + python app that I built. I'm using libsForQt5.callPackages and then mkDerivationWith python37Packages.buildPythonApplication. However, the python "development mode" installed binary are crashing when initializing QT while if i use result/bin/whatever it seems to work
<pikajude>
this is mostly a learning experience energizer
<Pwnna>
The error is qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<Pwnna>
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<pikajude>
although, fun fact, i actually work with nicolas and naersk is really good
luc65r has quit [Remote host closed the connection]
<energizer>
pikajude: cool
<ottidmes>
cole-h: sorry to say, even with adwaita installed it fails with a black screen for me
<cole-h>
You are pointing it at a video file, right?
<pikajude>
problem with naersk is that it builds an entire workspace as one derivation, so the derivation eventually becomes too large
<ottidmes>
cole-h: I am pointing it at nothing... I assume its opening some sort of browser, no?
<cole-h>
No
<cole-h>
Well, yes, but only in the current folder, I believe
<cole-h>
And only if it has image files, etc
<cole-h>
And it doesn't recurse
<energizer>
pikajude: it doesn't create a derivation for each dependency?
<cole-h>
ottidmes: So if you have pictures in ~/Pictures, `qimgv ~/Pictures` should bring those up. If you run `qimgv /some/path/to/video.mp4`, it should open up and play that video file
<pikajude>
no, it creates a derivation for every non-workspace dependency, and one for the workspace
<pikajude>
it's a limitation of cargo unfortunately, you can't do dependency resolution in nix without IFD which naersk is designed to not use
<energizer>
pikajude: what's a non-workspace dependency?
<pikajude>
like, a crate from crates.io that isn't in pwd
<ottidmes>
cole-h: Caught Exiv2 exception '/admin/xfr/video.webm: The file contains data of an unknown image type' Cannot load libcuda.so.1
<cole-h>
Those should be safe
<pikajude>
or rather, to clarify, you *can* do it, but it will break if you try to cross compile (which my usecase does)
<cole-h>
Exiv2 exception is fine because it only detects images... obviously, a webm isn't an image
<ottidmes>
<cole-h> But webms and mp4s work fine
<cole-h>
Great, that's what I was hoping for :P One final force-push since apparently I can just use `qtWrapperArgs` instead of manually calling `wrapQtApp`
<ottidmes>
cole-h: no, I was quoting you XD, you say its should error because it isnt an image, but I found it weird if you say it supports webm's
<ottidmes>
cole-h: and that libcuda error seems relavant, no?
<{^_^}>
[nixpkgs] @marsam merged pull request #84979 → nerdfonts: update.sh: use releases api to generate shas → https://git.io/Jvhwl
<ottidmes>
peelz: i.e. it is passed to nixpkgs which then use it to configure all packages
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
<peelz>
ottidmes: what does "configure all packages" mean?
<{^_^}>
[nixpkgs] @danielfullmer opened pull request #85029 → nixos/systemd-boot: Add basic test → https://git.io/JvhFV
<peelz>
ottidmes: I'm not sure what happens to `nixpkgs.config` after it makes it to pkgs/top-level/default.nix
<ottidmes>
peelz: its made available as a top-level attribute, just like stdenv
<ottidmes>
peelz: you can just track it from there, I did the same to verify what I was saying, if you search for accept_license you can see examples of some packages using it, allowUnfree can be seen used in stdenv/generic, all just get it as part of their other arguments
<{^_^}>
undefined variable 'nixpkgs-19' at (string):296:1
<bqv>
is gcc9 in nixpkgs-19.09?
jmcasey has joined #nixos
<peelz>
ottidmes: ah so the derivation must explicitly reference `config`. I thought it somehow allowed overriding derivation parameters received by callPackage. That makes a lot more sense.
<ottidmes>
> nux eval 'channels."nixos-19.09"' -> "/nix/store/n72vxx92n0ki3f8p7s2x7msn8n6gmnsd-nixos-19.09.git.ce9f1aa" (nux is just some convenience wrapper for me, that also includes my lib by default)
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):296:10
<cole-h>
see if `addOpenGLRunpath $out/bin/.qimgv-wrapped` does anything in a postFixup
<cole-h>
(need addOpenGLRunpath in args and nativeBuildInputs)
<cole-h>
If still no dice, I will indeed find another victim :P I appreciate you at least taking a look, though. ottidmes++
<{^_^}>
ottidmes's karma got increased to 34
<peelz>
Is there a way to reference an inpure path without causing it to get added to the nix store? e.g. "${./.}"
<ottidmes>
cole-h: no dice I am afraid, but again, it might be something amiss in my system/environment, so definitely get a second opinion
<cole-h>
>"${toString ./.}"
<cole-h>
> "${toString ./.}"
<{^_^}>
"/var/lib/nixbot/state/nixpkgs"
<cole-h>
ottidmes: :/ Unfortunate. Thanks again.
<peelz>
cole-h: ah of course. thanks
<cole-h>
Np. I had the same issue -- it's what I use to link my secrets into place
<peelz>
makes sense
zeenk has quit [Quit: Konversation terminated!]
<ottidmes>
I also have an option added called path, such that I can say when creating and installer copy them over to the /nix/store, and otherwise just use their local paths (but thats not used for secrets of course, you dont want those in your installer generally)
jumper149 has quit [Read error: Connection reset by peer]
<peelz>
cole-h: what kind of secrets are you referencing that way? nix files containing strings or e.g. ssh key files, etc?
km_ has joined #nixos
<cole-h>
peelz: atm I'm only doing that in my hm config. Secrets include my IRC credential file, my gitauth file, and my imgur credentials (for uploading all screenshots to a private album)
<peelz>
cole-h: would you say it's a bad idea to have your secrets in the store?
<peelz>
is there no way to control the permissions on certain store entries? I remember seeing some "{censored}" entries getting listed by the nix gc
zupo has joined #nixos
<clever>
peelz: that happens if its in the env vars of a process running as another user
<clever>
peelz: running as root will reveal all secrets
<peelz>
ah
WilliamHamilton has joined #nixos
<WilliamHamilton>
what should I do to activate qemu so that I can run a VM in nixos? I tried `virtualization.libvirtd.enable = true;` and `boot.kernelModules = [ "kvm-amd" "kvm-intel" ];` but I get `Could not access KVM kernel module: No such file or directory`
<blibberblob>
Does anyone here use steam on nixos? I'm getting an error on startup `glXChooseVisual failed`
Guest67661 has quit [Ping timeout: 256 seconds]
philr has joined #nixos
justanotheruser has joined #nixos
<energizer>
is it expected that `nixos-rebuild test` as a normal user gives `write_file '/run/systemd/restart-list' - sysopen: Permission denied at /nix/store/al04k3z7wp7kyxwzh0ncmbplnks1n7rj-nixos-system-beta-20.09pre219796.f601ab37c2f/bin/switch-to-configuration line 128.`?
<blibberblob>
nm, I think I got it, just needed `hardware.opengl.enable = true;`
<clever>
peelz: somebody made a mistake in the grub config generation, and nixos-unstable correctly didnt update
<peelz>
ouch
<clever>
peelz: but then half a dozen people running nixos from nixpkgs-unstable came out of the woodwork, because it bricked their machines
<peelz>
on more reason to stay on stable channels :P
<clever>
peelz: thats why you use the nixos channels on nixos
morgrimm has quit [Ping timeout: 256 seconds]
<clever>
peelz: nixos-unstable tests things, and didnt update, protecting users
jjakob has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<clever>
peelz: nixpkgs-unstable isnt meant for nixos use, so it doesnt test grub
<peelz>
clever: ohh you're talking about nixos-unstable vs nixpkgs-unstable, gotcha
<clever>
peelz: yep
<energizer>
are all these channels gonna be replaced by flakes soon?
<peelz>
not sure about "soon", afaik flakes are still very experimental
<clever>
energizer: if you want nixos to use the home-manager module, then the channel must exist on root
<gchristensen>
the same thinsg will probably exist as flakes
<energizer>
clever: ok
morgrimm has joined #nixos
<buggymcbugfix>
To install fonts [the wiki](https://nixos.wiki/wiki/Fonts) gives an example like `fonts.fonts = with pkgs; [ foo bar baz ];`. How do I find out what are valid values to put in that list? Not just for fonts but in general, e.g. for `time.timeZone`, where do I look up all allowed values?
<clever>
buggymcbugfix: for fonts, its any package that contains a font file, so its a bit fuzzy
<clever>
buggymcbugfix: for timezones, i just run tzselect and it gives an answer
<buggymcbugfix>
clever: so say you wanted to install Inconsolata. How would you look for what variable to put in? Just `nix search inconsolata`?
<clever>
,locate Inconsolata
<{^_^}>
Found in packages: riot-web
<clever>
wut? lol
<clever>
fontforge.out 84,868 x /nix/store/8nkmkg8dm4khchrqcabli1gp0gjp6awp-fontforge-20160404/share/fontforge/pixmaps/Inconsolata-Regular.ttf
<energizer>
buggymcbugfix: pkgs.inconsolata
<clever>
buggymcbugfix: its also in fontforge, so thats what you would add
<clever>
inconsolata-lgc.out 53,852 r /nix/store/51c7i9wk41wwn63p8v5wd3ymhd9y9886-inconsolata-lgc-git-2015-04-18/share/fonts/truetype/Inconsolata-LGC.ttf
<clever>
ah, and there is also pkgs.inconsolata and pkgs.inconsolata-lgc too
<colemickens>
inconsolata is not hard to find I guess ha
<buggymcbugfix>
thanks. how'd you find these? trying to learn how to fish here...
<colemickens>
`nix-env -qaP > /tmp/pkgs; nvim /tmp/pkgs` is my approach
<energizer>
i guessed and checked
<energizer>
nix search inconsolata
morgrimm has quit [Ping timeout: 260 seconds]
<buggymcbugfix>
is there a general method for discovering what are valid values for a given key or do you need to know how it is implemented?
<clever>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<clever>
buggymcbugfix: i used nix-locate locally
<clever>
its a cmd within nix-index
<colemickens>
buggymcbugfix: depends on the option. Some options have enums, some sort of implicitly require you knowing where it's going to land in the usual Linux ecosystem.
<colemickens>
like timezone, the option should hopefully at least have help text on how to list acceptable values but I don't know if it does.
<buggymcbugfix>
colemickens: makes sense. Where would you look for these enums?
<colemickens>
buggymcbugfix: I use the html page, but I think I'm a bit odd in that regard
<{^_^}>
[nixos-homepage] @garbas pushed commit from @davidak to master « clean up news (#388) »: https://git.io/JvhpT
<buggymcbugfix>
might suggest adding that to the manual
<{^_^}>
[nixos-homepage] @garbas pushed 0 commits to davidak-newsx: https://git.io/Jvhpk
maddo has quit [Quit: See ya]
<energizer>
sudo nixos-rebuild test -> 'error: file 'home-manager/nixos' was not found in the Nix search path' even though home-manager appears in `sudo nix-channel list`. i thought it might be a profile issue so i re-logged in in a tty and got the same thing
<energizer>
do i need to reboot or something?
Darkmatter66 has quit [Ping timeout: 250 seconds]
<energizer>
just worried that if i reboot and it can't find the channel i'll be left with a broken system
Intensity has quit [Remote host closed the connection]
mbrgm_ has joined #nixos
<energizer>
rebooted, not broken
jlv has joined #nixos
slack1256 has joined #nixos
<cole-h>
ottidmes: Found my issue
Darkmatter66 has joined #nixos
<cole-h>
ottidmes: qimgv hardcodes the path to mpv as `/usr/bin/mpv` lol
<cole-h>
`sed`ing it to `${mpv}/bin/mpv` and it works fine in my VM.
<ottidmes>
cole-h: if you force push, I am willing to try one last time
<cole-h>
I did :)
<cole-h>
ottidmes++ Thanks for your patience
<{^_^}>
ottidmes's karma got increased to 35
xavierm02 has joined #nixos
<energizer>
aha, i missed --update
<energizer>
implicit global state strikes again
<ottidmes>
cole-h: its working!
<cole-h>
WOOOHOOO!
<cole-h>
So it wasn't just you ^^;
<cole-h>
Sorry for making you doubt your sanity.
<ottidmes>
:P
morgrimm has joined #nixos
kleisli_ has joined #nixos
<jlv>
How can I disable a default PulseAudio module?
<ottidmes>
cole-h: webm thumbs are now working too, still annoying that it shows warnings that it caught correct behavior (those exiv2 exceptions)
<cole-h>
The real issue is: Exiv2 is an image library
<cole-h>
Not a video library
<cole-h>
So if it tries to open a video like an image, of course it'll fail
rogue_koder has quit [Ping timeout: 265 seconds]
<cole-h>
Not to say they aren't annoying (and a red herring in most cases)
thc202 has quit [Ping timeout: 260 seconds]
justsomeguy has joined #nixos
<ottidmes>
cole-h: so I consider it a bug of qimgv, it should simply not report it, I get a whole bunch of noise, but that unrelated to vid support, great job getting it to work!
<ottidmes>
cole-h++
<{^_^}>
cole-h's karma got increased to 21
<cole-h>
Agreed. Maybe I'll get around to reporting it when I'm not busy procrastinating^W working on coursework
<cole-h>
(would also be real neato if you left an r+ ;^) )