gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<clever> nixos-rebuild will give a clear error if it fails to apply the changes
<srl295> clever: yeah, that was it. z vs s
<srl295> by sublaunch i mean using `build-vm` and qemu (very cool!)
<clever> ah
Fare has joined #nixos
<srl295> clever: especially since i'm a few miles away from my server, so i can see if it works before rebooting :)
viric has quit [Ping timeout: 264 seconds]
semantimancer has joined #nixos
<semantimancer> clever: chiming in to say that did the trick. Thanks again.
<clever> semantimancer: yep
semantimancer has quit [Client Quit]
<srl295> Next Q.. even with `services.xserver.enable=false`, using a vm and qemu -display curses launches a graphical something (I'll check what exactly later ^ ) …  is there a way to keep text ttys only?
papika has left #nixos ["The Lounge - https://thelounge.chat"]
<clever> srl295: one sec
<clever> srl295: even with xserver off, it wants to open an SDL window to render the text console
<clever> but
<srl295> this is with -display curses
<clever> srl295: virtualisation.graphics = false;
<clever> this option sets -display for you
<srl295> hm ok
blankhart has joined #nixos
<clever> but sadly, it only works under build-vm, and does not work for switch
<clever> so you have to comment it out when not testing
<srl295> clever: i wondered about that, is there a way to have a different .nix (or a different inclusion or something) for switch vs build-vm?
<clever> you could create a new vm.nix that contains: { ... } { imports = [ /etc/nixos/configuration.nix ]; virtualisation.graphics = false; }
<srl295> the manual (which i opened a PR to fix the fdisk commands) says 'comment this out temporarily etc…'
<clever> and then use nixos-rebuild build-vm -I nixos-config=vm.nix
<srl295> aha. ok i thought something like that
szicari has joined #nixos
<bbarker> So in Nix 2.0.x, doing nix-env -if foo.nix should still add any binaries being included from derivations in foo.nix into the current PATH by some means, right? Cause it isn't the case for me :(
<bbarker> Maybe I should reinstall
blonkhart has joined #nixos
<clever> bbarker: reinstall isnt likely to fix it
<srl295> this is my PR to fix the fdisk instructions https://github.com/NixOS/nixpkgs/pull/39942 … thanks everyone for nixos!
<clever> bbarker: nix is very likely to give you the exact same binaries and result in the same issue
<clever> bbarker: what error do you get when you try that cmd?
<bbarker> clever, i did install in a slightly odd way: https://github.com/CornellCAC/docker-nix-intellij/blob/nix2_update/Dockerfile#L99 However, this all worked in nix 1.11.x. basically, previously they would be linked into /home/brandon/.nix-profile/bin; now /home/brandon/.nix-profile doesn't exist
<bbarker> clever, the highlighted line fails because sbt is not on the path (nor anything else installed from scala-default.nix)
<bbarker> i probably botched something, maybe i'll try to manually add /home/brandon/.nix-profile and /home/brandon/.nix-profile/bin earlier and see if that works, or maybe i'll just try using the nix install script inside the container first
viric has joined #nixos
Fare has quit [Ping timeout: 268 seconds]
<clever> bbarker: .nix-profile not existing is fairly common
<clever> bbarker: nix-env will auto-create .nix-profile when you do the first nix-env -i command
<bbarker> maybe --falback is doing something odd in nix 2; unfortunately i don't have a reference system
<clever> .nix-profile is supposed to be a symlink to a profile
<clever> which is also not existing by default
<clever> lrwxrwxrwx 1 clever users 45 Oct 11 2015 .nix-profile -> /nix/var/nix/profiles/per-user/clever/profile
<bbarker> hmm, /nix/var/nix/profiles/per-user/brandon/profile/bin exists for me but only has the nix stuff installed. however, i'm quite sure i saw all my software being compiled and added to the nix store anyway, so i guess something went wrong with the profile creation
<bbarker> when i say 'nix stuff' i mean nix commands
xcmw has quit [Ping timeout: 240 seconds]
<bbarker> trying it without --fallback, will see how it goes, thanks, clever
<clever> bbarker: you may need to symlink .nix-profile to /nix/var/nix/profiles/per-user/brandon/profile
semilattice has joined #nixos
szicari has quit [Quit: szicari]
mekeor has quit [Ping timeout: 255 seconds]
andreabedini has joined #nixos
Rusty1_ has joined #nixos
boomshroom has quit [Quit: WeeChat 2.0]
freeman42x[nix] has quit [Ping timeout: 256 seconds]
justanotheruser has quit [Ping timeout: 240 seconds]
Shados_ has quit [Quit: Shados_]
justanotheruser has joined #nixos
jgertm has quit [Ping timeout: 276 seconds]
MP2E has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
daveo has joined #nixos
<daveo> A new Discord is out
<daveo> a new Discord is out
<daveo> wish I knew how to make a derivation
Shados has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
xcmw has joined #nixos
<Myrl-saki> daveo: Do you have nixpkgs cloned?
<daveo> I will do it now
<daveo> github?
<Myrl-saki> Yep.
<daveo> about to `git clone https://github.com/NixOS/nixpkgs.git`
<Myrl-saki> daveo: That or use nixpkgs-channels.
<daveo> it is now cloning
<daveo> may take a while
<daveo> but it's at 10% already
acarrico has quit [Ping timeout: 240 seconds]
<bbarker> nixpkgs is the most impressively sized git repo i think i've cloned, though intellij/idea may be up there ;-)
<Myrl-saki> daveo: While you're at it, read up on "local nixpkgs."
mizu_no_oto has joined #nixos
<Myrl-saki> bbarker: Ikr
<Myrl-saki> bbarker: I never expected it to reach 1 GB.
<bbarker> might be good to advise a shallow clone for most people, though not 100% sure that works, as I usually don't worry about it
<daveo> I have plenty of space
<bbarker> works for typical use cases I mean. But I'm pretty sure it'd be fine
<{^_^}> [nixpkgs] @thoughtpolice pushed 4 commits to master: https://git.io/vpaE3
<{^_^}> → 8f5c258c by @thoughtpolice: icestorm: 2018.03.21 -> 2018.05.03
<{^_^}> → 922e7889 by @thoughtpolice: arachne-pnr: 2018.03.07 -> 2018.05.03
<{^_^}> → f17f6866 by @thoughtpolice: yosys: 2018.03.21 -> 2018.05.03
silver has quit [Read error: Connection reset by peer]
<bbarker> clever, actually failing earlier (but maybe it is progress): error: opening lock file '/nix/var/nix/profiles/per-user/brandon/profile/bin.lock': Permission denied
<bbarker> clever, however, when I look at /nix/var/nix/profiles/per-user/brandon/profile, there is no bin.lock, and the installing user owns the parent directory
<clever> bbarker: your symlink is pointing to the wrong path
<clever> it must point to profile, not bin
<Myrl-saki> clever: So, uh... I actually was able to compile rustc.
<Myrl-saki> clever: Does this mean I'll compile Firefox next? :P
<clever> Myrl-saki: lol
cryp2nomicon has quit [Read error: Connection reset by peer]
<bbarker> clever, indeed, horrible typo
<Myrl-saki> clever: In this build machine, around 60 GB is used, and 50 GB of that is me and my random package building funsies.
Synthetica has quit [Quit: Connection closed for inactivity]
xcmw has quit [Ping timeout: 248 seconds]
cryp2nomicon has joined #nixos
xcmw has joined #nixos
<infinisil> Hey, quick info, {^_^} has gotten an upgrade by me! It has 2 new functionalities: First of all, it can link to PRs: #39615 and nixops#865
<{^_^}> https://github.com/NixOS/nixpkgs/pull/39615 (by jtojnar, open): GDM wayland improvements
<{^_^}> https://github.com/NixOS/nixops/pull/865 (by mogorman, open): Key/Value backend
<jtojnar> 🎉
<infinisil> Second, and probably more interesting: There are dynamically definable commands now. Quick demo:
<infinisil> ,
<{^_^}> All commands: -A ask callPackage channels cloudfront escape" escape'' help library notfound pills stateVersion stuck tofu unfree
<infinisil> ,pills
<infinisil> ,foo = I am Foo!
<{^_^}> foo defined
<infinisil> ,foo
<{^_^}> I am Foo!
<infinisil> ,foo =
<{^_^}> foo undefined
<infinisil> ,pills <someuser>
<infinisil> And most importantly:
moriarty has joined #nixos
<infinisil> ,libraries
<{^_^}> infinisil: Did you mean library?
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
Ben______ has joined #nixos
moriarty has left #nixos [#nixos]
<Ben______> Hi
<infinisil> (This concludes the short demo)
<Ben______> I'm trying to add emacs configuration as per the manual.
<infinisil> Feel free to add commands you find useful or change them to be more useful, anybody can do that
<Ben______> configuration.nix contains:
xcmw has quit [Ping timeout: 264 seconds]
<Ben______> environment.systemPackages = with pkgs; [ wget atom firefox htop git (import /home/ben/NixFiles/emacs.nix {inherit pkgs; }) ];
<Ben______> But nixos-rebuild build gives:
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ben______> error: undefined variable 'zoom-frm' at /home/ben/NixFiles/emacs.nix:26:5
<Ben______> Oh, wait, maybe I should actually check that file...
Supersonic112 is now known as Supersonic
<infinisil> Oh and one last thing regarding the commands: If you wanna try them out freely and mess around with them, do it in #nixos-borg or #bottest
<bbarker> clever, the plot thickens:
<bbarker> building '/nix/store/0mmcjs3r52df02p41x4yjzxsmwc5b84k-user-environment.drv'...
<bbarker> error: getting status of '/nix/store/ykw67fndn30y4x8lqy0zqpirpg22g0sg-scala-env/lib/libunwind-generic.a': No such file or directory
<bbarker> builder for '/nix/store/0mmcjs3r52df02p41x4yjzxsmwc5b84k-user-environment.drv' failed with exit code 1
<bbarker> error: build of '/nix/store/0mmcjs3r52df02p41x4yjzxsmwc5b84k-user-environment.drv' failed
<clever> bbarker: that is a nix 2.0 bug, you have a symlink pointing to nothing in one of your packages, and it breaks nix hard
wchresta_ has joined #nixos
<clever> bbarker: uninstall scala-env using with "nix-env -e /nix/store/ykw67fndn30y4x8lqy0zqpirpg22g0sg-scala-env" and i think it will be fixed
mbrgm has quit [Ping timeout: 248 seconds]
<infinisil> ,paste = Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<{^_^}> paste defined
mbrgm has joined #nixos
<angerman> Sonarpulse: if I have a patch for ghc842, can Ijust overwrite ghc842?
<angerman> Sonarpulse: e.g. add some appendPatch stuff?
<Sonarpulse> angerman: yeah
<Sonarpulse> I think any patch from you is official enough :)
<Sonarpulse> you can fetchPatch from phabricator too
<Sonarpulse> which is nice
<Sonarpulse> or commit if it is on the 8.4 branch
<Sonarpulse> (from cgit or whatever its called)
<angerman> Sonarpulse: nah. I mean in a local override.
<Sonarpulse> sure you can do that
<Sonarpulse> though might slow down bootstrapping
<elvishjerricco> angerman: I've been meaning to ask about ghc842 cross compilers in nixpkgs... Seems to always have a weird error with the make rules. Is that what you're patching?
<angerman> elvishjerricco: O_o
acarrico has joined #nixos
<angerman> elvishjerricco: no. I'm just rearranging iserv
<elvishjerricco> angerman: Ah. Have you been able to build cross compilers from ghc842?
<angerman> someone please put all the ghc derivations on a common base... 🙏
<angerman> elvishjerricco: I think so. Will probably know in a few hours if I can build the win32 cross compiler from 842.
<bbarker> clever, hmm, but scala-env is what I need to use - it is basically my entire user environment, sans a few things I keep around for specific nix-shells - would it be easier to find the offending package? I'll see if I can find the bug report
<clever> bbarker: then you want to make an override on scala-env that deletes lib/libunwind-generic.a
<Sonarpulse> angerman: yeah that and GCC
<Sonarpulse> it's a real pain
<clever> bbarker: that is a dead symlink and its breaking nix
<Sonarpulse> I wonder if hnix could automatically do it haha
<angerman> Sonarpulse: I don't think hnix can represent comments yet.
<angerman> Sonarpulse: so we don't have any exact-print like refactoring I beleive.
<Sonarpulse> eventually!
<elvishjerricco> angerman: I've only tried aarch64 multiplatform, android prebuilt, and ios prebuilt, but they all fail because the some things think the boot library files are just called `libHS.a` instead of `libHSfoo.a`
<Sonarpulse> i gotta bounce
<Sonarpulse> walk home with laptop
<Sonarpulse> carry the torch, elvishjerricco
<angerman> Sonarpulse: better not bounce then.
<Sonarpulse> haha
<angerman> elvishjerricco: have you been mentioning this a few days ago someplace already? This sounds familiar.
<elvishjerricco> Yea I mentioned it last week.
<angerman> Ahh, not my brain plaing tricks on me.
Ben______ has quit [Ping timeout: 260 seconds]
<angerman> elvishjerricco: alright, let's see what I run into... (after fixing my ghc842 expression...)
stephenjudkins has joined #nixos
<elvishjerricco> angerman: FWIW, here's the build log from the last time I tried: https://www.irccloud.com/pastebin/3GNmkKGr/
<elvishjerricco> After it configures it immediate fails in the build phase
<angerman> wow, the difference between 8.4.2.nix and head.nix are annoying.
<elvishjerricco> angerman: Yea I would not be upset if you factored out all the common stuff for the GHCs :P
Sonarpulse has quit [Ping timeout: 256 seconds]
Ben______ has joined #nixos
wchresta_ has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
MiguelazoDS has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 has joined #nixos
Mateon3 is now known as Mateon1
jrl has joined #nixos
<bbarker> clever, great, spot on again, that fixed my last major bug - all seems well now at the system level
<angerman> elvishjerricco: hmm the 842 derivation looks a bit strange. Only minor items though, so I don't really know yet why your librayr names get munched.
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
<elvishjerricco> angerman: One thing is noticed is that it doesn't run ./boot in configurePhase. Does that happen automatically in ./configure?
<elvishjerricco> But adding that didn't fix anything
<angerman> elvishjerricco: no. but should not be needed with source dists.
deepfire has quit [Ping timeout: 264 seconds]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
hakujin has joined #nixos
stephenjudkins has joined #nixos
MiguelazoDS has left #nixos [#nixos]
normaluser has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
deepfire has joined #nixos
hakujin has quit [Ping timeout: 268 seconds]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
normaluser has quit [Client Quit]
jperras has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
stephenjudkins has quit [Remote host closed the connection]
daveo has quit [Ping timeout: 248 seconds]
stephenjudkins has joined #nixos
Ben______ has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
boothead has quit [Ping timeout: 260 seconds]
muzzy has joined #nixos
muzzy__ has joined #nixos
muzzy_ has joined #nixos
jrolfs has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 256 seconds]
muzzy__ has quit [Ping timeout: 276 seconds]
muzzy_ has quit [Ping timeout: 276 seconds]
muzzy has quit [Ping timeout: 276 seconds]
nur0n0 has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
miguel has joined #nixos
miguel is now known as Guest83877
Fare has joined #nixos
Guest83877 has left #nixos [#nixos]
muzzy has joined #nixos
muzzy__ has joined #nixos
muzzy_ has joined #nixos
jrolfs has joined #nixos
muzzy__ has quit [Ping timeout: 265 seconds]
muzzy_ has quit [Ping timeout: 265 seconds]
muzzy has quit [Ping timeout: 265 seconds]
spear2 has quit [Quit: Leaving]
ryantrinkle has quit [Ping timeout: 240 seconds]
Neo--- has quit [Ping timeout: 240 seconds]
stumble has quit [Quit: Leaving]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
rosa has joined #nixos
schoppenhauer has quit [Ping timeout: 268 seconds]
schoppenhauer has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
jethroksy has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
jperras has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 256 seconds]
ryantrinkle has joined #nixos
wchresta_ has joined #nixos
jethroksy has quit [Remote host closed the connection]
jayq has joined #nixos
andreabedini has joined #nixos
wchresta_ has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nallar has joined #nixos
nur0n0 has joined #nixos
Ross has quit [Ping timeout: 256 seconds]
nallar is now known as Ross
nur0n0 has quit [Client Quit]
<angerman> that's weird. enableParallelBuilding = true; but it doesn't seem to build with -jN
<angerman> e.g. it seems like it's building packages in parallel, but not the package itself...
<Ralith> angerman: enableParallelBuilding is necessary but not sufficient
<Ralith> nix also has to be told to actually do parallel builds
<angerman> Ralith: --cores 0?
<Ralith> for example
jayq has quit [Ping timeout: 240 seconds]
mike_ has joined #nixos
mike_ is now known as Guest93844
<angerman> Ralith: hmmm... ok. I've broken something locally then.
rosa has quit [Quit: rosa]
cryp2nomicon has quit [Read error: Connection reset by peer]
Guest93844 has quit [Client Quit]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nixos
drakonis has joined #nixos
katyucha has joined #nixos
user__ has joined #nixos
<user__> Hello chat, I'm new with this distro and I faced some issues. I wanted to change the background image of the screen login in kde and I couldn't cause sddm/themes is located at /nix/store which is read-only.
<user__> Change that picture is not a big problem, but I felt I was not completely free to make changes. How do I deal with that.
<user__> Apologize if this is not the place for this kind of questions
user__ has quit [Quit: Page closed]
doyougnu has quit [Ping timeout: 260 seconds]
drakonis_ has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
hakujin has joined #nixos
<Lisanna> what nixos configuration is used when making the PXE image with "nix-build -A netboot nixos/release.nix"?
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<Lisanna> ahh... maybe I should solve a more trivial problem first: error: a 'aarch64-linux' is required to build '/nix/store/0lcllwrkw2f4xqpkpx5hzdmnr7r6b35c-append-initrd-secrets.drv', but I am a 'x86_64-linux'
stephenjudkins has joined #nixos
<Lisanna> ...do I /really/ need an aarch64-linux to make a PXE image?
hakujin has quit [Ping timeout: 260 seconds]
sigmundv has quit [Quit: ZNC 1.6.6 - http://znc.in]
sigmundv has joined #nixos
jD91mZM2 has joined #nixos
MercurialAlchemi has joined #nixos
krey has quit [Ping timeout: 240 seconds]
cryp2nomicon has joined #nixos
Guanin_ has quit [Ping timeout: 256 seconds]
rosa has joined #nixos
cryp2nomicon has quit [Read error: Connection reset by peer]
katyucha has quit [Ping timeout: 240 seconds]
Guanin_ has joined #nixos
greska[m] has quit [*.net *.split]
jluttine[m] has quit [*.net *.split]
danielrf has quit [*.net *.split]
trikl[m] has quit [*.net *.split]
uvnikita[m] has quit [*.net *.split]
gridaphobe has quit [*.net *.split]
cstrahan has quit [*.net *.split]
eddyb has quit [*.net *.split]
Kim has quit [*.net *.split]
shlevy has quit [*.net *.split]
deanman has quit [*.net *.split]
woboats has quit [*.net *.split]
spion has quit [*.net *.split]
amfl has quit [*.net *.split]
srid has quit [*.net *.split]
zimbatm has quit [*.net *.split]
pauldub has quit [*.net *.split]
pointfree has quit [*.net *.split]
yurrriq has quit [*.net *.split]
zielmicha_ has quit [*.net *.split]
sjanssen has quit [*.net *.split]
joshie has quit [*.net *.split]
sjanssen has joined #nixos
shlevy has joined #nixos
zimbatm has joined #nixos
yurrriq has joined #nixos
gridaphobe has joined #nixos
Kim has joined #nixos
zielmicha_ has joined #nixos
woboats has joined #nixos
pointfree has joined #nixos
amfl has joined #nixos
srid has joined #nixos
pauldub has joined #nixos
spion_ has joined #nixos
trikl[m] has joined #nixos
greska[m] has joined #nixos
uvnikita[m] has joined #nixos
cstrahan has joined #nixos
danielrf has joined #nixos
jluttine[m] has joined #nixos
joshie has joined #nixos
<jD91mZM2> How come /etc/X11/xorg.conf doesn't exist? I'm trying to read the generated config for a better understanding of why my thing doesn't work
LnL has quit [Ping timeout: 260 seconds]
jwynn6 has quit [Ping timeout: 260 seconds]
mbrgm has quit [Ping timeout: 240 seconds]
deanman has joined #nixos
Ben_______ has quit [Ping timeout: 260 seconds]
LnL has joined #nixos
jwynn6 has joined #nixos
mbrgm has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
jperras has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
ixxie has quit [Ping timeout: 240 seconds]
jD91mZM2 has joined #nixos
<jD91mZM2> How would I handle monitor configuration in LightDM? I've tried to use the Xorg config using services.xserver.xrandrHeads, but it's not working. I've tried to use the display-setup-script, but since it's ran with a basic environment, xrandr is not in $PATH.
cryp2nomicon has joined #nixos
cryp2nomicon has quit [Client Quit]
<Lisanna> jD91mZM2 a lot of nixos programs have their configuration generated based on what's in your /etc/nixos/configuration.nix, which means you won't always find config files for them in /etc
Ariakenom has quit [Quit: Leaving]
<jD91mZM2> What do you mean?
<jD91mZM2> Ok I just found services.xserver.exportConfiguration. Is this related?
<Lisanna> jD91mZM2 yeah, that looks like exactly the thing you want
<Lisanna> services.xserver.exportConfiguration = true;
<jD91mZM2> At last! A clue!
<Lisanna> that should give you an /etc/X11/xorg.conf file to inspect
<Lisanna> also there's a search which shows all the xserver related config options
<jD91mZM2> Darn, I wish I knew about that page sooner
<Lisanna> it's indispensable <3
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/301f14e993e (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jD91mZM2> Has that been there all this time?
<jD91mZM2> AAAAHHHH
<jD91mZM2> Ok anyway I'm restarting Xorg. Be right back.
jD91mZM2 has quit [Quit: WeeChat 2.0]
tertle||eltret has quit [Quit: Connection closed for inactivity]
jD91mZM2 has joined #nixos
<jD91mZM2> Didn't work. Weird.
<Lisanna> jD91mZM2 you added the line to /etc/nixos/configuration.nix?
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jD91mZM2> I added it to /etc/nixos/monitor.nix and imported that, but yeah
<Lisanna> alright
<Lisanna> then you did nixos-rebuild switch ?
<jD91mZM2> The /etc/X11/Xorg.conf exists now, but LightDM didn't give a crap
<Lisanna> oh, okay
<jD91mZM2> Does the monitor need to have the right name? xrandr can't seem to decide if it's eDP1 or eDP-1, depending on which distro I'm on
<Lisanna> afraid I don't know anything about X, all my NixOS instances are more or less GUI-less ):
LysergicDreams has quit [Ping timeout: 260 seconds]
<jD91mZM2> Alright
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has quit [Read error: Connection reset by peer]
olto has joined #nixos
<Lisanna> jD91mZM2 out of curiosity, you are using services.xserver.displayManager.lightdm right?
smichel has joined #nixos
<jD91mZM2> Yup
rauno has joined #nixos
<jD91mZM2> Interesting thing: Xorg.log complains about "Output eDP-1-1 has no monitor section"
<jD91mZM2> But xrandr says "eDP1"
<jD91mZM2> So I might just need to change my ouput = "eDP1" to output = "eDP-1-1"
<jD91mZM2> Restarting X again, brb
jD91mZM2 has quit [Quit: WeeChat 2.0]
jD91mZM2 has joined #nixos
<jD91mZM2> Nope, that didn't work either.
jedai has joined #nixos
rotaerk has quit [Quit: ZNC - http://znc.in]
semilattice has quit [Ping timeout: 276 seconds]
katyucha has joined #nixos
jedai|2 has quit [Ping timeout: 276 seconds]
reinzelmann has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #39948 → [18.03] matrix-synapse: 0.26.1 -> 0.28.1 (security update) → https://git.io/vpaZJ
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to release-18.03: https://git.io/vpaXW
<{^_^}> → 202c9e6d by @florianjacob: matrix-synapse: 0.26.1 -> 0.28.1
<{^_^}> → 76f1b17c by @florianjacob: canonicaljson: 1.0.0 -> 1.1.3
<{^_^}> → a824fbca by @florianjacob: python-frozendict: 0.5 -> 1.2
dbe_ has joined #nixos
jethroksy has joined #nixos
andreabedini has joined #nixos
LysergicDreams has joined #nixos
winem_ has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
dbe_ has quit [Ping timeout: 260 seconds]
jacob_ has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/301f14e993e (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
rotaerk has joined #nixos
wchresta_ has joined #nixos
jperras has joined #nixos
xAFFE has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
lord| has quit [Ping timeout: 264 seconds]
jperras has quit [Ping timeout: 240 seconds]
lord| has joined #nixos
Ariakenom has joined #nixos
jD91mZM2 has joined #nixos
<jD91mZM2> Ugh, I give up. I'll just get used to LightDM looking horrible lol
rosa has quit [Quit: rosa]
wchresta_ has quit [Ping timeout: 240 seconds]
<sphalerite> jD91mZM2: I think you can use display-setup-script, you just need to template the full path to xrandr into it
<jD91mZM2> Exactly, the complete path to xrandr
<sphalerite> so rather than doing xrandr --output eDP-1 --auto, you do ${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --auto or whatever
<jD91mZM2> But it's in a scri- wait, environment variables
<jD91mZM2> I feel stupid now
<jD91mZM2> I always expected display-setup-script to take a file, not an entire expression
wchresta_ has joined #nixos
<sphalerite> whether it takes a file or an expression, you can make that in nix as well
katyucha_ has joined #nixos
<sphalerite> well, everything's an expression
<sphalerite> but whether it's a *path* expression or a *string* expression, you can make it with nix.
<jD91mZM2> I mean I thought it'd take the path to a .sh
<jD91mZM2> So I couldn't really pass parameters
<jD91mZM2> extraSeatDefaults = ''
<jD91mZM2> display-setup-script=PATH="$PATH:${pkgs.xrandr}/bin" /root/.screenlayout/default.sh
<jD91mZM2> '';
<jD91mZM2> $PATH won't be replaced by Nix, right?
<sphalerite> a string using just plain templating, and a path using pkgs.write{Text,Script,ScriptBin}
<sphalerite> oh, hm, I'm not sure that will work actually
katyucha has quit [Ping timeout: 260 seconds]
<jD91mZM2> I mean, $PATH won't be interpolated the same way ${pkgs.xrandr} will?
<sphalerite> but you can do something like extraSeatDefaults = let display-setup-script = pkgs.writeScript "display-setup" ''#!${pkgs.stdenv.shell}\nexport PATH=$PATH:${pkgs.xorg.xrandr}/bin\nexec /root/.screenlayout/default.sh''
<sphalerite> in "display-setup-script=${display-setup-script}"
<sphalerite> um, plus a semicolon before "in"
<jD91mZM2> Ooo writeScript looks cool. Will it create a temporary file?
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/472ed7520c3 (from 42 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<sphalerite> no, it will create a permanent file in the nix store
<jD91mZM2> oo
<jD91mZM2> I'll try both. Be right back (I really wish my TTYs weren't bugging out right now so I didn't have to quit IRC every time)
stephenjudkins has quit [Remote host closed the connection]
<sphalerite> of course you can put the whole xrandr config in the nix-templated script rather than then calling out to /root's
<sphalerite> then it's all in the nixos config!
<jD91mZM2> Using pkgs.writeScript?
stephenjudkins has joined #nixos
<sphalerite> yeah so rather than putting exec /root/.screenlayout/default.sh in the written script you just put the xrandr commands themselves
<sphalerite> that depends on whether you want to be able to change the screen layout without rebuilding your system config
<jD91mZM2> Maybe. I don't want too much inline though, especially not hardware configuration
<jD91mZM2> Anyway, I'll try the first approach now (the non-writescript one)
jD91mZM2 has quit [Quit: WeeChat 2.0]
Fare has quit [Ping timeout: 268 seconds]
Tucky has joined #nixos
<sphalerite> What's a good tool for comparing binary files?
<etu> Depends on what you want to compare I'd say
jD91mZM2 has joined #nixos
<jD91mZM2> Hello from a TTY! The non-writescript thing didn't work, but I'll try writescript now. Just had to check the arguments :P
jD91mZM2 has quit [Client Quit]
<sphalerite> etu: two PNGs where the image data is the same
<woffs> sphalerite, cmp ist the most trivial
<woffs> sphalerite, you could also use diff -u <(bmore file1) <(bmore file2)
alex`` has quit [Ping timeout: 265 seconds]
xy2_ has joined #nixos
jD91mZM2 has joined #nixos
<woffs> (or "hexdump -C" instead of bmore)
<etu> sphalerite: For images I'd say that imagemagic compare can be useful
<jD91mZM2> sphalerite: The script is written, but LightDM says it returns an error. I can run it manually and it seems to work (although it can't connect to display since ther is none)
<woffs> sphalerite, or vimdiff :-)
alex`` has joined #nixos
<etu> sphalerite: But imagemagick diff will highlight visual differences. If that's needed.
<sphalerite> etu: the image data is the same, so that's not what I want
<etu> sphalerite: Sometimes those that you barely can spot yourself. Like encoding things.
hyper_ch2 has joined #nixos
<sphalerite> even those shouldn't happen with PNG, surely
<sphalerite> although actually maybe there are some differences earlier on
<sphalerite> I'm XYing, aren't I… what I'm trying to achieve is to make nixos-icons fixed-output
jD91mZM2 has quit [Client Quit]
toby1851 has joined #nixos
jD91mZM2 has joined #nixos
<sphalerite> hm, vim -d says "could not create diffs"
<sphalerite> oh right, installing diffutils fixes that one.
asuryawanshi has joined #nixos
jrolfs has joined #nixos
<sphalerite> jD91mZM2: maybe it can't connect to the display when it's alunched by lightdm either
smichel has quit [Quit: smichel]
<sphalerite> maybe the journal has some useful information
xy2_ has quit [Ping timeout: 276 seconds]
<sphalerite> oh, it may also be that the script doesn't run as root and as such can't read /root/*
periklis has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
Maxdaman1us is now known as Maxdamantus
<jD91mZM2> The script was written by writeScript and didn't use /root
ertes has quit [Ping timeout: 256 seconds]
<jD91mZM2> And no info. Just "oh noes non-0 exit code D:"
<sphalerite> oh, so much for that theory then.
<jD91mZM2> "Whoopsie doopsie! We did a fucky wucky! A little fucky boingo! Our code monkeys are working VEWY HAWD to fix dis!" -LightDM
<sphalerite> Maybe `exec >>/tmp/display-setup-log 2>&1` at the top of your script so you get its output in the file
<sphalerite> hahaha
<sphalerite> where's that from again?
<jD91mZM2> A tweet, hold on
<{^_^}> [nixpkgs] @vbgl opened pull request #39961 → ocamlPackages.git: 1.11.4 -> 1.11.5 → https://git.io/vpayk
<sphalerite> and set -x for good measure
<jD91mZM2> Honestly I don't really feel like messing anymore with LightDM. It can stay broken for now :P
MichaelRaskin has quit [Quit: MichaelRaskin]
<sphalerite> I don't like lightdm
<jD91mZM2> What are you using?
<sphalerite> sddm
<jD91mZM2> Didn't sddm not support non-root X or something bad like that?
<sphalerite> although I think what I might not like about lightdm is the degree to which nixos supports it. Although some of the stupid behaviour is definitely in lightdm itself
jrolfs has quit [Ping timeout: 264 seconds]
wchresta_ has quit [Ping timeout: 264 seconds]
<sphalerite> I know of no such thing
<sphalerite> but yes, my X is running as root :/
<jD91mZM2> To be honest I have no idea if mine is :P
ckauhaus has joined #nixos
<jD91mZM2> Which packages should I nix-env, and which packages should I keep in packages.nix? Should I keep them all in one place or should I try to make separate global/user packages?
<sphalerite> it's up to you. Different people have different preferences.
<jD91mZM2> But my preferences suck
<jD91mZM2> I'd rather use somebody else's :^)
wchresta_ has joined #nixos
<adisbladis[m]> jD91mZM2: My preference is to never install anything with nix-env :)
<sphalerite> I have a fairly small system and put most stuff in my user environment, which has the benefit of making system upgrades fast and my user stuff portable between machines (even non-nixos ones with nix, or ones I don't have root on)
<adisbladis[m]> I do put _some_ stuff in my user env, but that is with home-manager. Not with nix-env.
<sphalerite> other people prefer putting everything in the system profile, which means that all the version changes are synced together.
katyucha_ has quit [Ping timeout: 264 seconds]
<adisbladis[m]> My reasoning is simple: Either it's something I care about and then it should be declarative or it's ephemeral and then I use nix-shell.
<sphalerite> I use nix-env declaratively :)
<adisbladis[m]> nix-env is in a weird middle-spot for me.
<sphalerite> !-A
<{^_^}> 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.
<sphalerite> with an overlay like the one linked there ^
smichel has joined #nixos
<adisbladis[m]> sphalerite: Pretty neato if you dont want all the weight of home-manager :)
<jD91mZM2> What do I do with custom packages? nix-env? Global with a callPackage call? Or just submit everything to nixpkgs?
<sphalerite> yeah, and I'm not the biggest fan of the module system.
<adisbladis[m]> jD91mZM2: Now you have at least two opinions :)
smichel has quit [Client Quit]
<jD91mZM2> yay :D
<sphalerite> jD91mZM2: submitting stuff to nixpkgs is always welcome
<sphalerite> for private stuff, overlays are good
<sphalerite> (and you can use the overlays on a system or user level)
<jackdk> jD91mZM2: it's also one of the nicest submission processes I've been through, having had to package for debian, gentoo, arch over the years
<jD91mZM2> I've only ever packaged to the AUR, and that was kinda nice because it was automatic
spear2 has joined #nixos
<adisbladis[m]> jackdk: +++
<{^_^}> jackdk: +'s karma increased to 1
<jD91mZM2> But I need to package a lot more programs with NixOS since I shouldn't just install dependencies directly
<sphalerite> wait we have karma now??
<adisbladis[m]> sphalerite: I didn't even know :P
<sphalerite> but lol that parsing
<nyanloutre[m]> adisbladis: doge++
<{^_^}> adisbladis: doge's karma increased to 1
<jD91mZM2> What are overlays btw? Where can I find info?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/472ed7520c3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<adisbladis[m]> jD91mZM2: In Nix it's quite easy to contribute upstream so imho that should be the first option
<adisbladis[m]> Also you get a nice fuzzy feeling inside
<jD91mZM2> Even for my own stuff though? That feels scary
xy2_ has joined #nixos
<sphalerite> jD91mZM2: for your own stuff which you don't think anyone else will find useful, just use an overlay
<ckauhaus> :-)
coot has joined #nixos
<adisbladis[m]> ckauhaus: Good article :)
<ckauhaus> thanks
jrolfs has joined #nixos
orivej has joined #nixos
winem_ has quit [Ping timeout: 255 seconds]
<jackdk> well + has mad karma now :-)
<adisbladis[m]> + ++
<{^_^}> + 's karma increased to 1
<jD91mZM2> Awesome, thanks for all the info!
eqyiel has quit [Remote host closed the connection]
<nyanloutre[m]> adisbladis: 🐧++
<{^_^}> adisbladis: 🐧's karma increased to 1
<jD91mZM2> c++
<{^_^}> c's karma increased to 1
<jD91mZM2> :>
<sphalerite> I like how many "adisbladis: foo" things have good karma now
<sphalerite> Also. If it's positive karma, where does all the negative karma to balance it out go o.o
<adisbladis[m]> Hahah :D
<adisbladis[m]> We dont do negative karma
* tilpner does things++
<tilpner> Aww
<{^_^}> https://does-it-work-in.links/test's karma increased to 1
<jD91mZM2> oh god
<jD91mZM2> ​++
<{^_^}> ​'s karma increased to 1
<makefu> ++++
<{^_^}> ++'s karma increased to 1
<makefu> --
<makefu> no negative karma?
<sphalerite> karma karma karma++
<{^_^}> karma karma karma's karma increased to 1
<jackdk> rampant karma inflation here we come!
<sphalerite> who has unleashed this upon us…
* tilpner points at infinisil
wchresta_ has quit [Ping timeout: 240 seconds]
<sphalerite> infinisil++
<{^_^}> infinisil's karma increased to 1
<etu> Have we seen other numbers than 1?
<jD91mZM2> spalerite++ adisbladis++
<{^_^}> spalerite++ adisbladis's karma increased to 1
<jD91mZM2> oh noe
<etu> infinisil++
<{^_^}> infinisil's karma increased to 2
<etu> yes, that works
<sphalerite> I wonder if we can get it to overflow. >:)
<etu> oh that spam to reach that
<sphalerite> (not really going to try that)
<etu> Good :D
oltoAltn has joined #nixos
<etu> I should build karma for my irc-bot in my private channel that I share with a bunch of friends :)
<sphalerite> !karma infinisil
<sphalerite> I wonder how you query it without bumping it
<tilpner> You grep the logs for the last bump c.c
olto has quit [Ping timeout: 240 seconds]
<sphalerite> lol
<etu> :DD
<sphalerite> tilpner++
<{^_^}> tilpner's karma increased to 1
jackdk has quit [Ping timeout: 260 seconds]
<tilpner> !ping
<infinisil> Haha
<tilpner> Oh well, I'll wait for the repo instead
<infinisil> The karma function was added in a minute yesterday, it's super primitive
<sphalerite> no, really? :p
reinzelmann has quit [Ping timeout: 255 seconds]
<infinisil> I shall make it better eventually
wchresta_ has joined #nixos
asuryawanshi has joined #nixos
<infinisil> Well it actually took more like 10 minutes
<etu> :DD
knupfer has joined #nixos
<tilpner> does it also trigger on [ some items ] ++ anotherList?
<infinisil> But, if you haven't seen it:
katyucha has joined #nixos
<tilpner> Oh, good
<infinisil> ,
<{^_^}> All commands: -A areyoualive ask callPackage channels cloudfront escape" escape'' help library notfound paste pills ping stateVersion stuck tofu unfree
<infinisil> ,stuck tilpner
<infinisil> ,foo = bar
<{^_^}> foo defined
<tilpner> infinisil - Make it answer queries too!
<sphalerite> it answers queries for factoids alreadt
<infinisil> You can define them dynamically like this though
<infinisil> !
<infinisil> With previous factoids you needed a PR to add one
<sphalerite> yeag but I mean for queries
<tilpner> sphalerite - I'm doing something wrong then
<infinisil> Queries?
<sphalerite> tilpner: /query {^_^} !-A
<infinisil> Ahhh
<tilpner> No, that's another part, sphalerite
<etu> PRIVMSG's not in a channel :)
<tilpner> Yes, bot interactions outside of a channel
<sphalerite> I know, that's what I mean by how it does them for factoids already
<infinisil> I'll do that eventually
<infinisil> ,foo =
<{^_^}> foo undefined
<infinisil> Feel free to add stuff you deem worthy
<tilpner> ,loop = ,loop {^_^}++
<{^_^}> ,loop = ,loop {^_^}'s karma increased to 1
<{^_^}> loop defined
<tilpner> ,loop
<{^_^}> ,loop {^_^}++
periklis has quit [Ping timeout: 260 seconds]
<infinisil> Hah
<infinisil> Ain't no loops for {^_^}
spear2 has quit [Remote host closed the connection]
<infinisil> If you really wanna try to break the bot and spam stuff you can do that in #bottest
* tilpner is too easily distracted by IRC bots
<etu> tilpner: loops in irc-bots usually don't work because the irc-server never sends your own messages back.
<sphalerite> etu: they work excellently with multiple bots though.
<etu> sphalerite: yes, but not with a single one :)
<tilpner> I think my ZNC does, would have to check though
eqyiel has joined #nixos
reinzelmann has joined #nixos
<sphalerite> jD91mZM2: btw for viewing nixos options, there's also `man configuration.nix` which is nice because it's offline and matches your system version
winem_ has joined #nixos
thc202 has joined #nixos
Fare has joined #nixos
<adisbladis[m]> You get html docs too :)
<sphalerite> oh yeah, `nixos-help`
<infinisil> Btw this is probably my favorite new command:
<infinisil> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
nschoe has joined #nixos
<sphalerite> While I'm not too pleased about the ownership on nixos.com (nsfw!), I do like that we have some of the more fancy TLDs like nixos.wiki and nixos.community
winem_ has quit [Remote host closed the connection]
<sphalerite> vaugely related, whose bright idea was it to put DNS names backwards hierarchically?
jperras has joined #nixos
xy2_ has quit [Ping timeout: 248 seconds]
<jD91mZM2> ooo nice sphalerite
<jD91mZM2> Thanks!
<jD91mZM2> sphalerite++
<{^_^}> sphalerite's karma increased to 1
<sphalerite> I'm rich!
hamishmack has quit [Ping timeout: 260 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nschoe has quit [Ping timeout: 265 seconds]
<adisbladis[m]> sphalerite: You gotta cash in on that sweet karma
toby1851 has quit [Remote host closed the connection]
<adisbladis[m]> I got lots of karma spread over different "accounts" now. Diversified karma.
jperras has quit [Ping timeout: 240 seconds]
arianvp2 has joined #nixos
nick_l has joined #nixos
<jD91mZM2> Halp! nixos.overlays takes a list of functions, right? So I should be able to do it inline?
knupfer has quit [Ping timeout: 265 seconds]
<jD91mZM2> nixos.overlays = [(self: super: with super.libs; { ... })]?
<sphalerite> yes
<sphalerite> s/libs/lib/
<jD91mZM2> "value is a function while a set was expected, at /nix/var/nix/.../modules.nix"
<sphalerite> oh and s/nixos/nixpkgs/
<jD91mZM2> Oh yeah my bad
<jD91mZM2> But the config has the correct things and it doesn't wooooork
<sphalerite> hm. Did you maybe forget a trailing {} on a callPackage within the overlay?
<jD91mZM2> Nope
<sphalerite> I think it should be super.callPackage, although that shouldn't be what's causing this error
<jD91mZM2> Yep, that doesn't fix it
<sphalerite> the name "overlay" would be more suitable than "overlays", since it's just a single overlay, but again that won't fix the error
<jD91mZM2> I'm probably gonna make it inline instead of a let..in. Just want to make it work first
<jD91mZM2> nix is a complicated language
<sphalerite> you don't need the with super.lib; but again that shouldn't affect it…
<jD91mZM2> Ok hmm, using (import ./overlay.nix) doesn't work either
<jD91mZM2> So apparently the problem isn't just that it's inline
<sphalerite> what does z.nix look like?
PLPD-Bot has joined #nixos
Plato[m] has joined #nixos
<sphalerite> also maybe try building with --show-trace and pasting the traceback
<jD91mZM2> Show-trace just shows a bunch of things from modules.nix
<jD91mZM2> But nothing from any of my configs
<Plato[m]> When using "cp ${fetchurl { ... }} $out/", I end up with a filename that has the hash prepended. Can I instruct fetchurl to use the real file name?
<sphalerite> yeah could you still paste it? it might be helpful
<jD91mZM2> wait wait wait sphalerite
<Plato[m]> Or is it a problem with the string conversion?
<jD91mZM2> The error was from somewhere else
<sphalerite> Plato[m]: no, but you can specify the destination
<jD91mZM2> whoops
<sphalerite> jD91mZM2: :)
<jD91mZM2> One of my imports had an extra parameter left over
<sphalerite> jD91mZM2: nix's debugging facilities and error messages leave a lot to be desired.
<etu> jtojnar: Bah, I'm giving up on that gnome extension... Too much weirdness for me to grok... Don't even know where to start and what they could do to make it better :/
<Plato[m]> sphalerite: How do I do that? Or put differently, is fetchurl documented somewhere?
<sphalerite> Plato[m]: so cp ${fetchurl {…}} $out/…
<etu> jtojnar: Would be nice to have it to get rid of kdeconnects qt deps and to have better integration... but yeah...
<Plato[m]> sphalerite: Okay, but then I have to find out the filename myself somehow.
__Sander__ has joined #nixos
<sphalerite> Plato[m]: or if you don't want to repeat the name, I think you could also do something like let file = fetchurl {…}; in "cp ${file} $out/${file.name}" — not 100% sure if this will work correctly though
<sphalerite> I think it will work with nixpkgs's fetchurl, but I'm very uncertain about builtins.fetchurl for this
orivej has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @cillianderoiste merged pull request #39389 → tbs: updated to kernel-4.14 → https://git.io/vpsij
<{^_^}> [nixpkgs] @cillianderoiste pushed 5 commits to master: https://git.io/vpa7X
<{^_^}> → 884e6a7b by @ck3d: tbs: updated to kernel-4.14
<{^_^}> → 56b1a13e by @ck3d: Merge remote-tracking branch 'channels/nixpkgs-unstable' into tbs
<{^_^}> → 8446ba26 by @ck3d: added lost entry in all-packages.nix
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #39963 → freetds: 1.00.80 -> 1.00.91 → https://git.io/vpa7j
hakujin has joined #nixos
aramiscd has joined #nixos
aramiscd has quit [Client Quit]
aramiscd has joined #nixos
hakujin has quit [Ping timeout: 248 seconds]
aramiscd has quit [Client Quit]
asuryawanshi has quit [Ping timeout: 264 seconds]
aramiscd has joined #nixos
arianvp2 has quit [Quit: Page closed]
coot has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 240 seconds]
rosa has joined #nixos
rosa has quit [Quit: rosa]
oltoAltn has quit [Quit: ZNC - http://znc.in]
spear2 has joined #nixos
wchresta_ has quit [Ping timeout: 260 seconds]
toby1851 has joined #nixos
olto has joined #nixos
Guanin_ has quit [Remote host closed the connection]
<etu> jD91mZM2: In your z pr, url's doesn't have to have quotes like strings, no big deal but urls are fine on their own. They are paths like all other paths afaik :)
<jD91mZM2> Aha, nice. Thanks!
civodul has joined #nixos
rosa has joined #nixos
toby1851 has quit [Ping timeout: 240 seconds]
<adisbladis[m]> etu: They _can_ be quoted too
<adisbladis[m]> And we are quite a few people who would rather drop the special url syntax and just let them be plain strings
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<etu> adisbladis[m]: yes, of course. I'm not saying that it needs to be changed. Just an educational note.
<adisbladis[m]> etu ++
<{^_^}> etu 's karma increased to 1
<jD91mZM2> etu ++
<{^_^}> etu 's karma increased to 2
<jD91mZM2> adisbladis ++
<{^_^}> adisbladis 's karma increased to 1
<etu> "etu " now got karma but not "etu" :D
<jD91mZM2> ah crap
<jD91mZM2> etu++
<{^_^}> etu's karma increased to 1
<jD91mZM2> adisbladis++
<{^_^}> adisbladis's karma increased to 1
rosa has quit [Client Quit]
<etu> I think that needs to be normalized by infinisil :p
<alaricsp> Somebody fix that regexp :-)
humanoyd has joined #nixos
<adisbladis[m]> I dunno.. I consider it a feature
<jD91mZM2> Is there a way to avoid importing every package used in buildInputs? Something like `with pkgs`, but that actually works
<adisbladis[m]> jD91mZM2: What's wrong with `with pkgs`?
<jD91mZM2> Wait it does work, nvm
<jD91mZM2> I just used it in another occurance as well
<jD91mZM2> I'm a moron
<adisbladis[m]> jD91mZM2: Though we generally prefer not to use that kind of construct in nixpkgs
<jD91mZM2> aw ok
<jD91mZM2> Why not?
rosa has joined #nixos
<adisbladis[m]> jD91mZM2: It's clearer if you explicitly list all your inputs
<adisbladis[m]> And easier to override
paraseba has quit [Ping timeout: 265 seconds]
<adisbladis[m]> Imagine having to `somePackage.override { pkgs = ( pkgs // { python=myPython; } ) }` instead of `somePackage.override { python = myPython; }`
<jD91mZM2> I've never overrode a package so I wouldn't know :P
<adisbladis[m]> jD91mZM2: Ahh :) Anyway, in the first case you have to override the whole `pkgs` attribute set and pass that in. In the second case you simply pass the package and that's it.
<etu> jD91mZM2: yeah, you can override dependencies and versions and everything for more or less any package. That way nix is very flexible :)
<jD91mZM2> Wait, I can use this to finally update discord?
<adisbladis[m]> jD91mZM2: You can use it to upgrade/downgrade pretty much anything
<etu> Yeah, sure. For that you should be able to just change version and hash of the downloaded file.
<jD91mZM2> I'm honestly really confused why it's not updated yet - it was merged into unstable ages ago
orivej has joined #nixos
<jD91mZM2> And howoldis says unstable updated yesterday... so why can't I see the new version?
hamishmack has joined #nixos
<etu> jD91mZM2: I think something like this could work: pkgs.discord.overrideAttrs (oldAttrs: rec { version = "your version number"; src.sha256 = "new hash matching new file"; });
<jD91mZM2> Yeah yeah but I'm kind of more confused over why it hasn't been updated yet
<jD91mZM2> nixos-unstable should have it by now
<jD91mZM2> Wait
<jD91mZM2> I've been looking at the wrong commit
<jD91mZM2> The commit I found updated it to 0.0.4, not from 0.0.5. Whoops!
paraseba has joined #nixos
<etu> jD91mZM2: the age written on howoldis isn't always how old the actual commits are or when they are merged. It's how long ago the channel moved forwards.
<etu> And sometimes the tests seems to take time, so I've seen that a channel moved forwards to something that is a week old :p
justanotheruser has quit [Ping timeout: 248 seconds]
<jD91mZM2> Oh
<adisbladis[m]> I wrote a little thingy a while back to check what's in nixpkgs-channels at any given rev: https://ptpb.pw/pTew/bash
hamishmack has quit [Client Quit]
<jD91mZM2> etu++
<{^_^}> etu's karma increased to 2
<adisbladis[m]> Can be used like: `./nix-whatsin.sh nixos-unstable | grep -i discord`
<jD91mZM2> adisbladis++
<{^_^}> adisbladis's karma increased to 2
<adisbladis[m]> Yaaay :)
<etu> yay
<jD91mZM2> Fake internet points are the best points!
<etu> Indeed
MP2E has quit [Remote host closed the connection]
<srhb> jD91mZM2: Often the tests aren't the last thing to finish either. The entire evaluation has to be done.
<srhb> (That is, nothing still queued.)
<etu> srhb++
<{^_^}> srhb's karma increased to 1
rosa has quit [Quit: rosa]
<srhb> woo, karmas.
wchresta_ has joined #nixos
<adisbladis[m]> Sweet sweet karma
<adisbladis[m]> I added that tool to a new repo: https://github.com/adisbladis/nix-toolbox
<sphalerite> adisbladis[m]: you can make it shorter by just doing -f https://github.com/…$rev.tar.gz rather than -f '<nixpkgs>' with -I
rosa has joined #nixos
<jD91mZM2> Yesterday sphalerite helped me package a program which for some reason can't find the libpulse runtime dependency normally for some reason. This works using patchelf or a LD_LIBRARY_PATH wrapper. But how would I continue developing an application like this?
<jD91mZM2> I can't keep on patching the binary every single time I compile it, can I?
<sphalerite> probably use a nix-shell that sets LD_LIBRARY_PATH, or have a script that wraps the executable
<sphalerite> the former is probably easier since you can use it with cargo run
<sphalerite> all the arguments passed to mkDerivation (apart from a few special exceptions) just become environment vairables for the builder, so you can just set LD_LIBRARY_PATH = "${libpulseaudio}/lib"; in the expression you wrote for it and nix-shell into that.
<adisbladis[m]> Also protip: `nix-shell -A pkg` will drop you in to a nix-shell with the build time closure of `pkg`
<jD91mZM2> Would it be bad to add it to the package file so I don't have to copy-paste it in order to use it in nix-shell?
<sphalerite> It doesn't compose with an existing LD_LIBRARY_PATH unfortunately, but you can cross that bridge when (if) you come to it I guess? x)
Shados has quit [Ping timeout: 240 seconds]
<adisbladis[m]> jD91mZM2: LD_LIBRARY_PATH is a (fragile) hack
asuryawanshi has joined #nixos
<jD91mZM2> What do you suggest instead adisbladis?
<sphalerite> jD91mZM2: yeah kind of. I'd recommend writing a shell.nix that looks like (import ./default.nix).overrideAttrs (orig: {LD_LIBRARY_PATH = …;})
hamishmack has joined #nixos
<adisbladis[m]> jD91mZM2: What sphalerite said, nix-shell
<{^_^}> [nixpkgs] @srhb merged pull request #39953 → runInLinuxVM: fix ext4 and crc32c-intel interactions → https://git.io/vpaCo
<{^_^}> [nixpkgs] @srhb pushed 2 commits to release-18.03: https://git.io/vpax5
<{^_^}> → a629e50b by @cleverca22: runInLinuxVM: fix ext4 and crc32c-intel interactions
<{^_^}> → b56c386d by @srhb: Merge pull request #39953 from cleverca22/fix-virtualbox
<{^_^}> [nixpkgs] @srhb merged pull request #39954 → runInLinuxVM: fix ext4 and crc32c-intel interactions → https://git.io/vpaCF
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vpaxF
<{^_^}> → 977f9a12 by @srhb: Merge pull request #39954 from cleverca22/fix-virtualbox-master
<{^_^}> → 51998c67 by @cleverca22: runInLinuxVM: fix ext4 and crc32c-intel interactions
<jD91mZM2> nix-shell would still use LD_LIBRARY_PATH behind the scenes though?
<adisbladis[m]> jD91mZM2: You can use `nix-shell -A package` to get a nix-shell with all the build goodies from `package`
asuryawanshi has quit [Remote host closed the connection]
spear2 has quit [Remote host closed the connection]
<adisbladis[m]> So if there is already a nix package you may not have to create a shell.nix for your project
asuryawanshi has joined #nixos
<sphalerite> adisbladis[m]: you're missing part of hte context — they've already got their thing building with nix including in nix-shell
<jD91mZM2> Yeah. Is it fine to make an environment variable inside default.nix to avoid having to make a shell.nix wrapper that adds it?
<sphalerite> it just doesn't run because it can't find libpulseaudio at runtime without patchelfing or wrapping
Shados has joined #nixos
wchresta_ has quit [Ping timeout: 240 seconds]
<sphalerite> jD91mZM2: I'd recommend not doing it because you don't actually want LD_LIBRARY_PATH set to that for the build
asuryawanshi has quit [Remote host closed the connection]
<sphalerite> the shell.nix can be as simple as what I wrote above though
<jD91mZM2> "simple"
<sphalerite> I mean, probably nothing would go wrong with putting it in default.nix too. It just feels wrong :p
<adisbladis[m]> sphalerite: Ahh, sorry for the noise then
asuryawanshi has joined #nixos
<jD91mZM2> Is there no way to make shell.nix auto-patch the binary so I don't have to use the binary inside nix-shell every time?
humanoyd has quit [Ping timeout: 255 seconds]
<sphalerite> at what point is it supposed to get patched?
<jD91mZM2> IDK! When cargo build is run... somehow?
<sphalerite> actually one other hack that might work is setting NIX_LDFLAGS to ensure that the path gets added to the executable's RUNPATH when it's first generated, rather than patching it after the fact. Not sure about the exact flags to pass though
rosa has quit [Quit: rosa]
rosa has joined #nixos
<jD91mZM2> Ok so imagine I get my package pushed officially to nixpkgs
<jD91mZM2> And imagine I'm using the shell.nix method you posted
<jD91mZM2> How would I import that nix file from shell.nix?
<sphalerite> (import <nixpkgs> ()).packagename
<sphalerite> err s/()/{}/
simukis has joined #nixos
<jD91mZM2> Say then I need to add a dependency. Obviously I can't wait for the new nix to be merged. Can I specify the file path to nixpkgs?
<sphalerite> yeah just replace <nixpkgs> with /path/to/nixpkgs, or pass -I nixpkgs=/path/to/nixpkgs to nix-shell or nix-build or whatever
<jD91mZM2> Oh, nice
<srhb> jD91mZM2: My NIX_PATH actually has nixpkgs=/home/sarah/src/nixpkgs. rebelrebel
<jD91mZM2> Nice! Can I use that like a channel?
<jD91mZM2> nix-env -iA local.xidlehook?
<sphalerite> nix-env -f path/to/nixpkgs -iA idlehook
<jD91mZM2> No, I mean with the NIX_PATH settings
<sphalerite> not with the current nix-env because it uses the historical wart ~/.nix-defexpr
<adisbladis[m]> jD91mZM2: `<nixpkgs>` is just short-hand for looking up nixpkgs from NIX_PATH
jmiven has quit [Quit: co'o]
<sphalerite> one day we will have a bunch of consistent nix tools that all use NIX_PATH and live under the nix command
<sphalerite> The biggest missing piece is something for managing user environments, something like `nix install` or `nix env`
<sphalerite> but for now we have to deal with nix-env's crap :p
jmiven has joined #nixos
<sphalerite> you can do nix-env -f '<local>' -iA xidlehook, if you have local=/path/to/nixpkgs ono your NIX_PATH, though
<tilpner> nix-env can honor NIX_PATH too, it's just not backwards-compatible to make it the default
<sphalerite> or nix build local.idlehook && nix-env -i ./result
<sphalerite> tilpner: how?
<jD91mZM2> So that means I need to use <local> instead in shell.nix
<tilpner> sphalerite - echo -n "import <nixpkgs>" > ~/.nix-defexpr/default.nix
<tilpner> sphalerite - And then possibly remove all other entries from nix-defexpr
<sphalerite> tilpner: but that doesn't look up across all of NIX_PATH
<sphalerite> I want to be able to use the same args as for nix build, for nix-env
<tilpner> The exact same flags? That's not going to happen, but you didn't mention that earlier
<sphalerite> >one day we will have a bunch of consistent nix tools that all use NIX_PATH
<sphalerite> "consistent" is the key word :p
<sphalerite> actually, I just came up with a hack.
* sphalerite rubs hands together gleefully
Ariakenom has quit [Ping timeout: 240 seconds]
Plato[m] has left #nixos ["User left"]
humanoyd has joined #nixos
joehh has joined #nixos
<jD91mZM2> What's your opinion on NixOS and rust packages? Should I add stuff like cargo-release so it can be installed using nix-env over `cargo install`?
<jD91mZM2> opinons*, I can't get enough
<sphalerite> did you mean: onions?
<tilpner> Generally yes, there's already precedent with cargo-edit and cargo-vendor
<tilpner> But I would prefer rustPackages.* over that
<jD91mZM2> I can't find cargo-edit in nix search
amir has quit [Ping timeout: 276 seconds]
joehh has quit [Ping timeout: 240 seconds]
<tilpner> Oh, it's marked as broken
<jD91mZM2> kek
katyucha has quit [Ping timeout: 240 seconds]
<jD91mZM2> sphalerite: What exactly is "orig" in overrideAttrs btw? Can I use overrideAttrs in my configuration.nix in order to override a package version?
<srhb> Speaking of which, shouldn't we start deprecating packageOverrides at some point?
<sphalerite> srhb++
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #39968 → xidlehook: init at 0.4.5 → https://git.io/vpaj6
<{^_^}> srhb's karma increased to 2
<srhb> Woah, at this rate I'll be fully ascended by the end of the day.
<sphalerite> :D
wchresta_ has joined #nixos
amir has joined #nixos
<jD91mZM2> sphalerite: That doesn't show the parameters anywhere tho?
<jD91mZM2> Only an example that uses oldAttrs, whatever that is
joehh has joined #nixos
<sphalerite> jD91mZM2: oldAttrs and orig are both just possible names for the argument to the function you're passing in
<srhb> jD91mZM2: (foo: bar foo) and (baz: bar baz) are the same functions :)
<sphalerite> the name doesn't actually matter, you can choose whaty ou want
<jD91mZM2> Why does it even have a name?
<sphalerite> in case you want to use it.
<srhb> Or you can be extra specific about _not_ using it and do (_: bar)
<srhb> That's usually nice from a readability standpoint, but less often seen in nix.
<sphalerite> say you want to add a build input to some existing thing without removing the original ones: foo.overrideAttrs (orig: {buildInputs = orig.buildInputs ++ [openssl];})
<sphalerite> orig, or oldAttrs, or blart, whatever you want to call it. According to the manual oldAttrs is the convention, although I usually use orig (or just o) because oldAttrs is more of a fuss to type :p
puckipedia has quit [Quit: *eh*]
puckipedia has joined #nixos
joehh has quit [Ping timeout: 265 seconds]
jperras has joined #nixos
<jD91mZM2> So overrideAttrs basically adds the key:value to a map, and then merges everything in that map for the final value?
<sphalerite> it takes what was previously passed to mkDerivation (let's call it oldAttrs), then passes (oldAttrs // (yourFunction oldAttrs)) into mkDerivation
<sphalerite> and yourFunction is what you passed to oldAttrs
srl295 has quit [Quit: Connection closed for inactivity]
kier has quit [Read error: Connection reset by peer]
<srhb> overrideAttrs
<sphalerite> um. Yes.
<sphalerite> srhb++
<{^_^}> srhb's karma increased to 3
<sphalerite> Again.
<srhb> \o/
kier has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<jD91mZM2> I have no idea what // is :P
<adisbladis[m]> jD91mZM2: Attribute set merging
<jD91mZM2> Aha
<adisbladis[m]> `{foo="foo";} // {bar="bar";}` results in {foo="foo"; bar="bar";}
<{^_^}> [nix] @edolstra pushed to 2.0-maintenance « Bump version »: https://git.io/vpVeM
<sphalerite> {a = 1; b = 2; c = 3;} // {c = 4; d = 5;} ⇒ {a = 1; b = 2; c = 4; d = 5;}
<adisbladis[m]> With the right attribute set taking precedence
<jD91mZM2> Woot! Cool!
wchresta_ has quit [Ping timeout: 256 seconds]
<adisbladis[m]> jD91mZM2: Just beware that it's only merges top-level attributes, not nested.
<jD91mZM2> Aha
<jD91mZM2> Ah crap, overriding discord version variable doesn't seem to actually update the source
<jD91mZM2> self: super:
<jD91mZM2> {
<jD91mZM2> discord-latest = super.pkgs.discord.overrideAttrs (orig: {
<jD91mZM2> name = "discord-latest";
<jD91mZM2> version = "0.0.5";
<jD91mZM2> });
<jD91mZM2> }
<adisbladis[m]> jD91mZM2: No you have to override src too
<leary`> The module system on the other hand does merge with arbitrary nesting. Why don't we have an operator for that?
<sphalerite> it's been proposed
<jD91mZM2> IT WORKED!!11111 WOOOT!
<jD91mZM2> Although I didn't have to update the sha256 sum. I believe this is a bug.
<TimePath> there's lib.recursiveUpdate
<etu> jD91mZM2: No, that only means that you got the old version
fendor has joined #nixos
<etu> jD91mZM2: Because you already had that source on your system it didn't download the link to check it. It used the already existing source with that hash.
<Shados> jD91mZM2: if Nix recognizes the sha256 as already existing in the store, it just uses that file as cached, basically
dvim has quit [Quit: WeeChat 2.1]
NightTrain has joined #nixos
<adisbladis[m]> leary`: Personally I think such behaviour should not be hidden in an operator, a utility function is more suitable
<etu> jD91mZM2: !tofo
<etu> !tofo
<etu> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<etu> There we go
<adisbladis[m]> jD91mZM2: src is what's called a fixed-output derivation (which means the sha256 is _exactly_ what you expect).
<adisbladis[m]> jD91mZM2: If that hash is already present in the cache nix will happily go ahead and use it
<Shados> {^_^}: or just use nix-prefetch-{url,git,etc} utilities
<adisbladis[m]> Which in your case is the old version
<sphalerite> Shados: {^_^} is a bot :p
Ariakenom has joined #nixos
<Shados> looks like we have nothing to fear from a possible robotic revolution then
<jD91mZM2> Actually the new version works
<jD91mZM2> I have discord 0.0.5 now
<TimePath> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
* adisbladis[m] had tofu for lunch
<etu> {^_^}++
<{^_^}> {^_^}'s karma increased to 114
<etu> woha
<etu> {^_^} has been helpful :D
joehh has joined #nixos
<leary`> TimePath: adisbladis[m]: a utility function is fine too, I just wasn't sure it could be expressed in regular nix. I'll have to take a look at the source for that one.
<jD91mZM2> How do I get the new hash?
<jD91mZM2> just sha256sum <file it downloaded>?
<adisbladis[m]> jD91mZM2: Either through what the nice bot just told you or you can use `nix-prefetch-url`
hakujin has joined #nixos
<jD91mZM2> Yeah but when it downloads the source it doesn't tell me the new sum in a nice way like it would have if it would have failed instead
<jD91mZM2> I find "woah, it works (and your sha256 is totally not incorrect at all)" and then having to manually get the downloaded sha more annoying than "oh noes, <hash> does not match <correct hash>
<jD91mZM2> "
<Shados> jD91mZM2: nix-prefetch-url https://your.file
<adisbladis[m]> jD91mZM2: Yes it is one of the rough edges of the nix UX
<Shados> will download, checksum, add to store (caching it effectively) and print out the relevant stuff for you
freeman42x]NixOS has joined #nixos
<adisbladis[m]> jD91mZM2: There has been some discussion about fixing it but there are huge implications around how that is done.
wchresta_ has joined #nixos
<jD91mZM2> Alright. Btw currently now in my override the url is hardcoded, because `version` isn't in scope. Is there a nicer way?
<adisbladis[m]> jD91mZM2: You can make your override attribute set recursive
hakujin has quit [Ping timeout: 256 seconds]
<jD91mZM2> OOOOOOOO so that's what rec means
<jD91mZM2> Nice!
<jD91mZM2> Thanks1
<jD91mZM2> adisbladis++
unkn has joined #nixos
<{^_^}> adisbladis's karma increased to 3
wchresta_ has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b56c386dc3d (from 67 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<cmcdragonkai> When adding a new user to `extraGroups` and perform nixos-rebuild. The user is not immediately associated with that group right?
<cmcdragonkai> It requries resigning in, or rebooting or using su - $USER.
<adisbladis[m]> cmcdragonkai: Yes it is but not for any running session
<adisbladis[m]> Exactly
rosa has quit [Quit: rosa]
<cmcdragonkai> adisbladis[m]: I added "plugdev" to my extra groups. After rebuilding. I did su - $USER, and run id, no plugdev.
<cmcdragonkai> Also I checked /etc/groups, still no plugdev.
jethroksy has quit [Remote host closed the connection]
<cmcdragonkai> Does adding extraGroups not actually change /etc/group. You have to create the group as well?
<jD91mZM2> Nono, it should definitely create the group
fendor has quit [Ping timeout: 264 seconds]
<jD91mZM2> Are you sure you did it correctly, lol?
<cmcdragonkai> Yea I'm pretty sure. Got the group into my extraGroups. Then ran nixos-rebuild.
<cmcdragonkai> I'm testing adding an extra module for ledger nano s. Similar to the nitrokey module here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/nitrokey.nix
<cmcdragonkai> Basically a new udev rule, and adding users to the group. "plugdev".
<cmcdragonkai> Should we be using something like "ledger" group. Similar to the nitrokey module. Or just use plugdev as the default group?
<ij> I would like to imperatively place a secret key file to a host with nixops. How should I go about doing that?
<yorick> isDir = path: pathExists (path + "/."); doesn't really check if something is a dir
fabolous has joined #nixos
<fabolous> what is this page? http://www.thedubber.altervista.org/ip/
<yorick> nice try
<ij> I could add it to the activation script!
silver has joined #nixos
jD91mZM2 has quit [Ping timeout: 260 seconds]
jD91mZM2 has joined #nixos
<yorick> ij: nixops copy?
<jD91mZM2> Sorry about leaving. My computer just shutdown randomly OwO
<ben> did you run nixos-rebuild switch
<jtojnar> etu: I might give it a try later
taktoa has joined #nixos
fendor has joined #nixos
<cmcdragonkai> What's the alternative to plugdev?
<{^_^}> [nixpkgs] @yorickvP opened pull request #39970 → impure.nix: stringify path from NIX_PATH → https://git.io/vpVJh
<cmcdragonkai> Is plugdev deprecated now? Is there a new way to add USB devices and have normal users be able to access them?
<adisbladis[m]> cmcdragonkai: Iirc thats something systemd takes care of nowadays
<adisbladis[m]> It used to be polkit
<cmcdragonkai> For example the arch instructions for this usb is `uaccess`.. etc.
<cmcdragonkai> That's not what happens when I plug in my ledger.
<cmcdragonkai> Chrome isn't able to access it.
<adisbladis[m]> Ahh its still polkit
<adisbladis[m]> Works fine with firefox and chromium
<adisbladis[m]> cmcdragonkai: You need some additional stuff
<adisbladis[m]> Gimme a sec
<cmcdragonkai> So it is that uacess and udev-acl.
<cmcdragonkai> That's that stuff.
<cmcdragonkai> What's with the hidraw, is that neded as well?
<adisbladis[m]> cmcdragonkai: hardware.u2f.enable
<cmcdragonkai> adisbladis[m]: Why is that needed?
xcmw has joined #nixos
<cmcdragonkai> I mean why does ledger nano S require those specific udev rules + the u2f package?
<adisbladis[m]> cmcdragonkai: Upstream were/are missing those udev rules. I think they have been added since but I'm not sure.
gmarmstrong has joined #nixos
<adisbladis[m]> Ahh look at this: https://github.com/NixOS/nixpkgs/pull/39950 :)
fabolous has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
acarrico has joined #nixos
rauno has quit [Ping timeout: 256 seconds]
wchresta_ has joined #nixos
<gmarmstrong> adisbladis: I thought that was about ledger-cli and got very confused. I knew accounting was weird, but why does my finance journal need access to /dev? :D
<adisbladis[m]> Haha :D
<cmcdragonkai> adisbladis[m]: Cool PR. but in that PR there's nothing about u2f
<cmcdragonkai> adisbladis[m]: So is u2f actually needed at all?
<adisbladis[m]> cmcdragonkai: u2f is the only interface that your browser groks to talk to the device
<cmcdragonkai> adisbladis[m]: That's very strange. Because I ran ledger nano s before with the OWNER rule instead. And the chrome app did work and find the ledger nano s.
<cmcdragonkai> I didn't have the u2f module
<adisbladis[m]> It's not needed to use the ledger, it is needed to use it with the browser
<adisbladis[m]> So if you wanna use anything like metamask the u2f layer is required
<{^_^}> [nixpkgs] @peti merged pull request #39903 → haskellPackages.blank-canvas: 0.6.3 -> 0.6.2 → https://git.io/vpg8E
<{^_^}> → 4680fe67 by @endgame: haskellPackages.blank-canvas: 0.6.3 -> 0.6.2
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/vpVUN
<{^_^}> → f2b58139 by @peti: Merge pull request #39903 from endgame/hold-blank-canvas
<cmcdragonkai> adisbladis[m]: Does the hardware.u2f.enable = true; Bring all the CLI apps mentioned in the u2f README?
<jD91mZM2> I literally just added udiskie to my package list and it allows me to mount usb devices from my normal user. I do have the "wheel" group though - that may be it?
<adisbladis[m]> cmcdragonkai: All it does is setting `services.udev.packages = [ pkgs.libu2f-host ];`
<{^_^}> [nixpkgs] @edolstra pushed to master « nix: 2.0.1 -> 2.0.2 »: https://git.io/vpVTY
<adisbladis[m]> Just in a more discoverable and easy to understand fashion
<{^_^}> [nixos-homepage] @edolstra pushed to master « Nix 2.0.2 released »: https://git.io/vpVT3
<adisbladis[m]> jD91mZM2: That's managed by systemd/polkit. If you are the user of the current active desktop session you get permission to do things like that.
<jD91mZM2> Oh
<jD91mZM2> So it doesn't work for him because he's not in a DE?
<{^_^}> [nixpkgs] @WilliButz opened pull request #39971 → prometheus-postfix-exporter: 0.1.1 -> 0.1.2 → https://git.io/vpVTE
<jD91mZM2> or xorg session?
<cmcdragonkai> I'm using XMonad
<jD91mZM2> Hey, me too! (I do have xfce enabled though so I can use xfce4-panel)
<cmcdragonkai> I don't have a DE environment behind it
<cmcdragonkai> just raw xmonad
<infinisil> Using xmonad too \o/
<adisbladis[m]> Get a room...
<jD91mZM2> Oh no, I have that too. But I have xfce installed as well just for xfce4-panel
<adisbladis[m]> jD91mZM2: I believe it's more important how you launch your sessions and such.. But I am no expert
<infinisil> I'm not surprised that xmonad is rather popular on nixos, because Haskell
<jD91mZM2> Is there a way to query installed system packages (and dependencies) btw?
<jD91mZM2> xfce4-panel requies a lot of packages installed to work, and I have no idea what those are, so I just enabled services.xserver.xfce.enabled
<jD91mZM2> Although that's a really bad way of doing it and I'd love to know which packages are currently installed so I can move all those to my systemPackages list
<adisbladis[m]> I use a full KDE DE + exwm as my wm
<adisbladis[m]> I really like it
<jD91mZM2> Emacs WM?!?!?
<adisbladis[m]> jD91mZM2: Shouldn't the package for xfce-panel work as-is?
xcmw has quit [Ping timeout: 264 seconds]
<adisbladis[m]> jD91mZM2: Yeah it's AWESOME
<jD91mZM2> It should, but it doesn't seem to. In fact even after installing the whole of xfce, it didn't work until I booted into a proper xfce environment and then back
<jD91mZM2> Seems like when booting into xfce it creates some necessary configs.. or something
<jD91mZM2> IDK
<jD91mZM2> Are you at least using evil mode in emacs?
<adisbladis[m]> Nope
<adisbladis[m]> Good old emacs bindings <3
<{^_^}> [nix] @edolstra pushed 0 commits to refs/tags/2.0.2: https://git.io/vpVkn
<jD91mZM2> You have to forgive me - I was under the impression that I was talking to a sane person
<jD91mZM2> :P
xcmw has joined #nixos
<adisbladis[m]> jD91mZM2: You'll soon notice that emacs is _really_ popular in nix circles ;)
<jD91mZM2> Okay pure xfce4panel does work, as long as you have used xfce at least once. That's really werid.
<jD91mZM2> weird*
<yorick> adisbladis[m]: and there's still no good nix-mode
<adisbladis[m]> yorick: Don't remind me :'(
<unacceptable> vim 4eva
<jD91mZM2> yass
<cmcdragonkai> can someone simply explain what is u2f for and why i should care?
<yorick> cmcdragonkai: you know those codes that google makes you type from your phone? u2f tokens are the same idea, but without any typing
asd_ has joined #nixos
asd_ has quit [Client Quit]
<adisbladis[m]> unacceptable: Obligatory read, third segment https://www.gnu.org/fun/jokes/ed-msg.html
<adisbladis[m]> cmcdragonkai: Multi factor authentication standard utilising hardware security modules
<cmcdragonkai> is it portable across multiple systems?
<cmcdragonkai> is ledger nano s a u2f thingy?
<adisbladis[m]> cmcdragonkai: And in the case of devices like the ledger u2f is used to sign transactions
<adisbladis[m]> cmcdragonkai: Yes?
<adisbladis[m]> cmcdragonkai: It has an applet for u2f
<adisbladis[m]> cmcdragonkai: The very popular js lib web3.js (used in metamask which you may know of) can use u2f to sign transactions
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b56c386dc3d (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<cmcdragonkai> alright i'm enalbing hardware.u2f.enable then
gmarmstrong has quit [Quit: Quit]
<unacceptable> adisbladis[m]: I have read that, years ago
<jD91mZM2> Never mind my never mind - xfce4 panel does not work out of the box after all. You need xfce4-session. Darn it.
<cmcdragonkai> I only use xmonad, because before I was using it with KDE
<jD91mZM2> I should probably try some other panel which doesn't depend on xfce
<cmcdragonkai> And things just broke
<cmcdragonkai> nothing worked
<cmcdragonkai> so i threw away plasma5
<cmcdragonkai> but it's really nice
<cmcdragonkai> wish the plasma 5 would have a nice window manager like xmonad
acowley has quit [Ping timeout: 240 seconds]
<jD91mZM2> xmonad is supposedly really easy to integrate with DEs, unlike i3
<jD91mZM2> Maybe you could try combining plasma and xmonad?
<kahiru> cmcdragonkai: you can replace kwin with any other wm, you just have to configure the replacement wm properly
<{^_^}> [nixpkgs] @ikervagyok opened pull request #39972 → mathematica: add mesa, fix `libGL.so.1 not found` messages → https://git.io/vpVIM
acowley has joined #nixos
<cmcdragonkai> that's what i tried all that time before
<cmcdragonkai> xmonad + plasma 5
raynold has quit [Quit: Connection closed for inactivity]
<cmcdragonkai> ok so this doesn't quite make sense to me. On a new 18.03 machine. All I do is add "plugdev" to the extraGroups of my user. nixos-rebuild, reboot, and still no plugdev when I run `id`. Is `plugdev` meant to be created some how. Note that I have mutableUsers = false;.
rauno has joined #nixos
Neo--- has joined #nixos
<cmcdragonkai> Maybe... I actually need to say `users.extraGrp
<cmcdragonkai> `users.extraGroups`
<cmcdragonkai> Not just extraGroups for a specific user.
NightTrain has quit [Ping timeout: 256 seconds]
<jD91mZM2> Yeah if it doesn't exist you need to create it
<cmcdragonkai> It appears you can leave out the GID.
<cmcdragonkai> I saw in the wiki that lp and scanners group should also be used for scanners. But these were created without me having to explicilty set the group in the `users.groups` set.
freusque has quit [Ping timeout: 256 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<cmcdragonkai> Hmm I don't really like this style, it's too implicit. Groups are just magic strings coming from everywhere.
<cmcdragonkai> Coming from potentially anywhere.
jqtrde has quit [Quit: WeeChat 2.0.1]
jD91mZM2 has joined #nixos
disasm has quit [Quit: WeeChat 2.0]
humanoyd has quit [Quit: WeeChat 2.1]
<infinisil> etu: I have cleaned up the karma counter regex :)
wchresta_ has quit [Ping timeout: 248 seconds]
<etu> infinisil ++
<{^_^}> infinisil's karma got increased to 4
<etu> :D
knupfer has joined #nixos
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
katyucha has joined #nixos
xcmw has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
<adisbladis[m]> Gah.. I think I lost my ledger nano s somewhere....
krey has joined #nixos
i-am-the-slime has joined #nixos
<i-am-the-slime> Hello
<i-am-the-slime> Docker is frying me.
<srhb> Yeah, this happens...
<i-am-the-slime> I need to map my docker binary into a container
<i-am-the-slime> so saying - /usr/bin/docker:/usr/bin/docker
<i-am-the-slime> does not fly with nixos
<i-am-the-slime> But even /run/current-system/sw/bin/docker is some funky shell-script with hardcoded paths
<adisbladis[m]> You could map /nix/store ro?
<i-am-the-slime> Ah okay, so that it would find the stuff?
<adisbladis[m]> Yeah
daveo has joined #nixos
<jD91mZM2> What panel are you guys using? I used to use xfce4-panel but it's acting really weird so I might just try some other one
lord| has quit [Quit: WeeChat 2.1]
Rusty1_ has joined #nixos
jperras has joined #nixos
<yorick> jD91mZM2: polybar
reinzelmann has quit [Quit: Leaving]
jperras has quit [Ping timeout: 240 seconds]
maingo has quit [Quit: Connection closed for inactivity]
ckauhaus has quit [Quit: Leaving.]
grw has quit [Ping timeout: 264 seconds]
<jD91mZM2> yorick: are you using the siji font as well?
<yorick> jD91mZM2: I think so
disasm has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sir_guy_carleton has joined #nixos
daveo has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 268 seconds]
Ross has quit [Ping timeout: 268 seconds]
Ross has joined #nixos
waleee has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
Ross has quit [Ping timeout: 260 seconds]
Ross has joined #nixos
<jD91mZM2> Does anybody happen to know the fix for xfce4-panel having an empty "Add New Items" dialog?
lonokhov has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
lonokhov has quit [Client Quit]
<silver_hook> Hm, since 18.03 LibreOffice looks very spartan (almost like an old Motif look)
lonokhov has joined #nixos
<silver_hook> Ideally I’d like to have it look like (and intagrate with) Plasma, but at this stage, even just the stock LibreOffice look would be great.
<silver_hook> Any ideas?
<{^_^}> [nixpkgs] @voobscout opened pull request #39973 → https://github.com/NixOS/nixpkgs/issues/39927https://git.io/vpV3B
orivej has joined #nixos
<{^_^}> [nixpkgs] @voobscout closed pull request #39973 → https://github.com/NixOS/nixpkgs/issues/39927https://git.io/vpV3B
gchristensen has joined #nixos
<gchristensen> phew, I was gone for so long!
<{^_^}> [nixpkgs] @symphorien closed pull request #39286 → nixos: sign kernel modules; add security.enforceModuleSignature option → https://git.io/vpYfY
fendor has joined #nixos
andreabedini has joined #nixos
gnihton[m] has joined #nixos
<silver_hook> waleee: In that case it’s an odd new bug with NixOS.
xcmw has joined #nixos
<silver_hook> waleee: http://i.imgur.com/zBiUPj7.png
i-am-the-slime has quit [Ping timeout: 260 seconds]
<silver_hook> `swriter` and `sudo swriter` look the same.
szicari has joined #nixos
<{^_^}> [nixpkgs] @voobscout reopened pull request #39973 → https://github.com/NixOS/nixpkgs/issues/39927https://git.io/vpV3B
<waleee> silver_hook: I were referring to the answer in the stackoverflow link, ie. that you could try to set the JAVA_OPTS environment variable with the wanted look-and-feel
<{^_^}> [nixpkgs] @Ma27 opened pull request #39974 → simplescreenrecorder: port to qt5 → https://git.io/vpVGv
xcmw has quit [Ping timeout: 276 seconds]
nick_l has quit [Ping timeout: 260 seconds]
<silver_hook> waleee: I tried the GTKLookAndFeel and the WindowsLookAndFeel and it doesn’t seem to change anything.
joehh has quit [Ping timeout: 248 seconds]
blankhart has quit [Ping timeout: 260 seconds]
blonkhart has quit [Ping timeout: 240 seconds]
<waleee> silver_hook: did you remember to re-source .bashrc or whichever file you exported the variable from?
<silver_hook> I just did `set -x` in Fish
xcmw has joined #nixos
pangool has joined #nixos
jperras has joined #nixos
xcmw has quit [Client Quit]
pangool has left #nixos [#nixos]
xcmw has joined #nixos
<waleee> silver_hook: I have no idea if that works the same way as in bash or not, is JAVA_OPTS set if you do an echo of it?
<silver_hook> It echoes the last setting, yes.
<leary`> exit
<leary`> oops..
leary` has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 256 seconds]
freusque has joined #nixos
Neo--- has quit [Ping timeout: 256 seconds]
xAFFE has left #nixos ["Error from remote client"]
aarvar has quit [Ping timeout: 268 seconds]
cryp2nomicon has joined #nixos
cryp2nomicon has quit [Client Quit]
leary` has joined #nixos
cryp2nomicon has joined #nixos
<waleee> silver_hook: try setting _JAVA_OPTIONS with the look and feel, https://wiki.archlinux.org/index.php/java#GTK_LookAndFeel
cryp2nomicon has quit [Client Quit]
<sphalerite> silver_hook: waleee: yeah this is indeed an odd new bug with nixos
<sphalerite> it was introduced sometime between the 18.03 release and now iirc
cryp2nomicon has joined #nixos
<waleee> ok, I saw some github issues with android-studio, but nothing on libreoffice
<silver_hook> sphalerite: Is it filed already?
eddyb has joined #nixos
leary` has quit [Remote host closed the connection]
<jD91mZM2> How do I specify the channel for a certain package in configuration.nix?
<cryp2nomicon> waleee: how's android development in nixos? is it ok?
asuryawanshi has quit [Ping timeout: 256 seconds]
katyucha has quit [Ping timeout: 265 seconds]
andreabe_ has joined #nixos
andreabe_ has quit [Client Quit]
<jD91mZM2> Does anybody else have issues with icons btw? I'm using Numix-Circle and the icons aren't really loading at all
justanotheruser has joined #nixos
<waleee> cryp2nomicon: I'm not using android-studio on nixos. I noticed that it had some issues filed for the look-and-feel when searching for possible fixes
linarcx has joined #nixos
leary` has joined #nixos
zybell_ has quit [Ping timeout: 256 seconds]
<waleee> cryp2nomicon: but intellij is a "piece of complaining about updates"-software though
<sphalerite> silver_hook: not that I know of, haven't checked
<cryp2nomicon> waleee: sounds like not well.. then
<gchristensen> 12 hour ofborg outage info: https://www.patreon.com/posts/12hr-ofborg-18600393
<silver_hook> sphalerite: I haven’t found it either.
justbeingglad has joined #nixos
winem_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iyzsong has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
zybell_ has joined #nixos
justbeingglad has left #nixos [#nixos]
linarcx has quit [Ping timeout: 264 seconds]
humanoyd has joined #nixos
griff_ has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
ryantrinkle has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
jperras_ has joined #nixos
blankhart has joined #nixos
erasmas has joined #nixos
wchresta_ has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #39977 → minitube: 2.4 -> 2.9 → https://git.io/vpVC1
justbeingglad has joined #nixos
sir_guy_carleton has quit [Quit: Leaving]
justbeingglad has left #nixos [#nixos]
<{^_^}> [nixpkgs] @xeji merged pull request #39971 → prometheus-postfix-exporter: 0.1.1 -> 0.1.2 → https://git.io/vpVTE
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpVWO
<{^_^}> → 23d98f9e by @WilliButz: prometheus-postfix-exporter: 0.1.1 -> 0.1.2
<{^_^}> → 026dc16b by @xeji: Merge pull request #39971 from WilliButz/update-postfix-exporter
<jD91mZM2> Where do I get the cargoSha256 value from?
<clever> jD91mZM2: i think your only option is to put in the wrong hash, then look at the error nix gives
<jD91mZM2> The thing is I'm using an old hash that should cause an issue.... but doesn't
<clever> if you use the exact hash you used before, nix will believe you and assume nothing has changed
<jD91mZM2> ah
<clever> you need to increment a digit or 2, to make it invalid
<jD91mZM2> That's pretty clever, thanks!
<jD91mZM2> clever+=
<jD91mZM2> clever++
<{^_^}> clever's karma got increased to 1
<clever> heh, didnt know the bot did that
<srhb> If it had before, I think your karma would be _somewhat_ higher ;)
<clever> yeah
<jD91mZM2> Wait what, the cargo hash is exactly the same?
fendor has quit [Ping timeout: 256 seconds]
<jD91mZM2> "with sha256 hash '<old hash>' instead of the expected hash '00000...'"
<{^_^}> [nixpkgs] @FRidh merged pull request #38530 → pytorch: 0.2.0 → 0.3.1 with CUDA and cuDNN → https://git.io/vxHcq
<{^_^}> [nixpkgs] @FRidh pushed commit from @andersk to master « pytorch: 0.2.0 → 0.3.1 with CUDA and cuDNN (#38530) »: https://git.io/vpVWM
<clever> did you update the cargo.lock file?
patrl has joined #nixos
<jD91mZM2> I bumped the version number, yeah
Jackneilll has quit [Quit: Leaving]
<clever> if you check the build output, did it fetch the new version?
<jD91mZM2> I mean I can install the package using nix-env and it has the latest one
fendor has joined #nixos
Ariakenom has quit [Ping timeout: 256 seconds]
wchresta_ has quit [Ping timeout: 264 seconds]
<clever> i try to only use nix-build when testing, nix-env can cause issues
<jD91mZM2> I was using nix-build first and then nix-env to install
<clever> ah
<clever> not sure then
<jD91mZM2> I'll just assume some spooki ghost did something spooki
jD91mZM2 has quit [Quit: WeeChat 2.0]
Synthetica has joined #nixos
dbmikus has joined #nixos
jD91mZM2 has joined #nixos
<infinisil> clever: i just added the karma thing yesterday
Jackneill has joined #nixos
<dtz> Is https://github.com/NixOS/nixpkgs/pull/39866 "safe" to merge re:mass-rebuilds? Not sure if those rebuild tags get updated as the PR evolves. I think they do. I've checked hashes of stdenv.cc and compared to master, so things should be good... but just wanted to check O:)
<dtz> FWIW the rebuild script says lots of things change, not sure what's going on there.
<gchristensen> dtz: they do get updated as the PR evolves
<gchristensen> dtz: https://www.patreon.com/posts/12hr-ofborg-18600393 it is behind right now though
<dtz> oh, okay
<leary`> Why does fontforge look so much worse on NixOS than it did on Debian? E.g. the icons you can see on the fontforge.github.io page aren't being used, but some ugly bitmaps instead. Anything I can do about this?
<{^_^}> [nixpkgs] @hedning opened pull request #39978 → Make plymouth work with gdm wayland → https://git.io/vpV8G
<dtz> gchristensen: <3 ty
patrl has quit [Quit: WeeChat 2.0]
<gchristensen> dtz: thank WilliButz for filling in for my deficient monitoring :P
<clever> infinisil: ah, that explains things
patrl has joined #nixos
patrl has quit [Client Quit]
patrl has joined #nixos
<infinisil> Along with the command thing and the PR thing
Ariakenom has joined #nixos
<dtz> leary`: mine seems to look awfully like the screenshot
<dtz> maybe I've installed some theme bits it wants, honestly I find those things a bit confusing :3
patrl has quit [Client Quit]
patrl has joined #nixos
<leary`> dtz: Then I guess it's deriving its look from something in the environment. Best guess you're using a DE that sets something somewhere, or just pulls in an optional dependency.
cryp2nomicon has quit [Quit: leaving]
cryp2nomicon has joined #nixos
cryp2nomicon has quit [Client Quit]
<leary`> No idea how to figure out what that is though, since google hasn't gotten me very far. :|
cryp2nomicon has joined #nixos
<dtz> leary`: using awesome-wm, but to avoid this sort of issue I went and installed all the themes (and the deps for a full kde env) "just in case" lol :/
<dtz> so in a way, yes I probably have deps already xD
patrl has quit [Client Quit]
patrl has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
Sonarpulse has joined #nixos
jD91mZM2 has joined #nixos
carl_ has joined #nixos
<carl_> hi
patrl has quit [Quit: WeeChat 2.0]
patrl has joined #nixos
<carl_> First i would thank everyone here
patrl has quit [Client Quit]
phdoerfler has joined #nixos
<carl_> i am beginner and i have problem getting nix work
<{^_^}> [nixpkgs] @dtzWill merged pull request #39866 → gcc8: init at 8.1.0 → https://git.io/vpzaQ
<{^_^}> [nixpkgs] @dtzWill pushed 10 commits to master: https://git.io/vpVRY
<{^_^}> → 659363fb by @Synthetica9: gcc8: init at 8.1.0
<{^_^}> → 736dab4a by @Synthetica9: gcc8: register to all-packages
<{^_^}> → 728eb276 by @Synthetica9: gcc8: added myself as maintainer
xcmw has quit [Ping timeout: 264 seconds]
fendor has quit [Ping timeout: 255 seconds]
jgertm has joined #nixos
wchresta_ has joined #nixos
linarcx has joined #nixos
<jD91mZM2> carl_ What's the issue?
orivej has quit [Ping timeout: 264 seconds]
<srhb> carl_: (It's always a good idea to write out your issue instead of asking for undefined help, more people will respond that way. And welcome! :-))
<jD91mZM2> shrb Related: http://www.nohello.com/
<gchristensen> simpson: have you made a tahoe-lafs-based binary cache yet?
<jD91mZM2> Apparently somebody made a website just for that lol
<simpson> gchristensen: I have done some experiments. I don't have a `fetchtahoe` yet.
jmeredith_ has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<gchristensen> I don't want a fetchtahoe, but like a `--substitutors` / binary cache
<simpson> I've also done experiments with Dat. There can't be an obvious `fetchdat` because the Dat tooling insists on writing a .dat into *any* folder it manages.
stephenjudkins has joined #nixos
<gchristensen> ack
<simpson> Oh, interesting. I could set up an HTTP thing backed by Tahoe, but I haven't felt the pressure for that.
yegortimoshenko has joined #nixos
<gchristensen> hmm ok I'm might like something like that ... may have to play around.
ertes-w has quit [Quit: Bye!]
kiloreux has quit [Read error: Connection reset by peer]
carl_ has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
wchresta_ has quit [Ping timeout: 268 seconds]
periklis has joined #nixos
linarcx has quit [Quit: Konversation terminated!]
<jD91mZM2> Aaahh! Turns out all this time my issues with xfce4-panel have been becaue of - or rather, the lack of - `environment.pathsToLink = [ "/share/xfce4" ];`
<jD91mZM2> Would it break anything to add that to the xfce4-panel package, or would that cause "duplicated configuration" issues when using the normal xfce service?
carl_ has joined #nixos
fendor has joined #nixos
<carl_> the problem happens when i invoke "nixos-rebuild switch" on the config file https://justpaste.it/2gip5
<jD91mZM2> ... but what problem? A error?
<clever> carl_: you have 2 attribute sets in the same file, the }\n\n{ has to be removed
<clever> 3 actually, there is another redundant }\n\n\n{ at the top half
<carl_> the error "error: attempt to call something which is not a function but a set, at /etc/nixos/configuration.nix:3:1 (use '--show-trace' to show detailed location information) building Nix..."
kiloreux has joined #nixos
waleee has quit [Quit: WeeChat 2.1]
cryp2nomicon has quit [Read error: Connection reset by peer]
<carl_> thank you. i removed them and it worked.
stephenjudkins has quit [Remote host closed the connection]
nschoe has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9d0b6b9dfc9 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
cryp2nomicon has joined #nixos
<globin> Synthetica: If you haven't created the defaulting to gcc8 PR i can do so in the next few hours including setting up a hydra jobset
<carl_> i know this happened cause i do not understand what the config file is and what is its structure. i tried the official manual but things seem a little more complicated to me. Any good tutorial on nix configuration available?
<etu> jtojnar++ for creating the issue upstream
<etu> jtojnar++
<{^_^}> jtojnar's karma got increased to 1
knupfer has joined #nixos
<jtojnar> etu: would mconnect or gconnect work for now?
<nschoe> Hi everyone, is there something tricky about nginx? I've enabled it in my configuration.nix, I've used pkgs.lib.readFile for the 'config' entry, and I have a fairly standard, basic config file, but when I try to access localhost, I've got "[error] 18098#18098: *2 "/var/spool/nginx/html/index.html" is not found (2: No such file or directory)" in nginx log. But I have no idea where this /var/spool/nginx thing comes from.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/18098 (by stesie, closed): idea.phpstorm: 10.0.4 -> 2016.2.1
<nschoe> Any idea?
ryantrinkle has joined #nixos
tosh[m] has joined #nixos
<nschoe> Ho I think I understand: I have to actually rebuild the configuration to test the new file...
<jD91mZM2> Oh lol yeah
Tucky has quit [Remote host closed the connection]
<nschoe> This is not convenient :/
<jtojnar> jD91mZM2: the issue is pakags cannot contain NixOS modules
<{^_^}> [nixpkgs] @adisbladis merged pull request #39957 → nix-prefetch-git: fix handling of submodules with spaces → https://git.io/vpa8D
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/vpVg1
<{^_^}> → 9fe26eed by @lionello: nix-prefetch-git: fix handling of submodules with spaces
<{^_^}> → f7860724 by @adisbladis: Merge pull request #39957 from enumatech/fix/nix-prefetch-git-spaces
jperras_ has quit [Ping timeout: 248 seconds]
<jD91mZM2> jtojnar: Aww. Would `services.xserver.xfce-panel.enable = true;` make sense?
jperras_ has joined #nixos
doyougnu has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
smichel has joined #nixos
carl_ has quit [Quit: Page closed]
<jtojnar> jD91mZM2: I do not think this would be much more discoverable than pathsToLink
Jackneill has quit [Quit: Leaving]
<jD91mZM2> I think so. If you search nixpkgs' github for "xfce4-panel" it'd pop up
<jtojnar> jD91mZM2: maybe we could introduce meta.extensionPoints to derivations, and a NixOS module that would link the extension points of installed packages automatically
<jD91mZM2> Or if you add it to `man configurations.nix`
<jD91mZM2> extensionPoints sounds great though
<clever> `man configurations.nix` is auto-generated from every mkOption defined in the nixos modules
nuncanada has joined #nixos
<jD91mZM2> I meant that services.xserver.xfce-panel would then show up
AstroBadger has left #nixos ["WeeChat 1.6"]
cryp2nomicon has quit [Quit: leaving]
<jtojnar> jD91mZM2: another possibiilty would be patching xfce-panel to use XDG_DATA_DIRS instead of a fixed Nix profile and creating `xfce-with-plugins` derivation (see for example `gimp-with-plugins` or `deadbeef-with-plugins`)
<jD91mZM2> You should write these ideas to GitHub so more people can see them
<jtojnar> jD91mZM2: I think there are already several issues about this somewhere
<jtojnar> it is more general issue than xfce-panel
<jD91mZM2> Ah
hakujin has joined #nixos
<jD91mZM2> How can you go more general though? Wasn't this issue specifically about xfce-panel?
<jtojnar> well other programs have plug-ins too
Jackneill has joined #nixos
<jtojnar> but plug-in problem is not really solved in Nix as of yet
<jD91mZM2> Good point
<maurer> I wonder if we could do it by adding more values to XDG_DATA_DIRS to point into .nix-profile, and populating symlinks to plugin dirs in there
<maurer> It sounds tricky, but it might work
<jtojnar> programs either have `*-with-plugins` wrapper
<jtojnar> or pick up plug-ins from XDG_DATA_DIRS
<maurer> Yeah, actually, .nix-profile/share is already in XDG_DATA_DIRS
<maurer> is there any reason we can't just drop the plugins in there?
<jtojnar> maurer: I think on bash they are dropped there https://github.com/NixOS/nixpkgs/issues/33277
<jtojnar> if you have some setup hook in path
<jD91mZM2> But dropping plugins to a folder doesn't really follow the "everything works if you copy paste your config" model...
<maurer> jtojnar: I was more suggesting that rather than adding /nix/store/package/share to XDG_DATA_DIRS, putting a symlink in .nix-profile/share/, at least for imperative stuff
<maurer> jD91mZM2: Yeah, you need with-plugins style for that to really work
<jtojnar> maurer: adding a symlink to the profile is what adding the path to pathsToLink does
<maurer> (Of course, the downside to the profile approach is that it will not work with nix-shell I think)
<maurer> (You'd need to use a hook to add to XDG_DATA_DIRS there)
<Synthetica> globin: I'm gonna have diner first, I can do it in an hour or so. Not sure how I'd setup the Hydra jobset tho
<jtojnar> maurer: right, and it gets complicated with some plugins in e.g. lib/programname (deadbeef)
yegortimoshenko has quit [Quit: Page closed]
stephenjudkins has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #39979 → llvm5: 5.0.1 -> 5.0.2 → https://git.io/vpVwz
<globin> Synthetica: you could most probably not do that, therefore the offer that I can do it in one go :)
<Synthetica> globin: Would it hinder you if I created the PR? I basically have that ready to go now
<globin> Synthetica: I'd probably push it as another branch to the nixos/nixpkgs repo for fixing up the issues, so that more people can collaborate on it
<Synthetica> Okay, I'll leave it up to you then.
<globin> Synthetica: will ping you, testing a basic build first, before pusing
<Synthetica> globin: Okay :)
nick_l has joined #nixos
maingo has joined #nixos
<dtz> \o/ thanks
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39973 → https://github.com/NixOS/nixpkgs/issues/39927https://git.io/vpV3B
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @voobscout to master « ntfs-3g: fix debian url »: https://git.io/vpVrn
jgertm has quit [Ping timeout: 260 seconds]
freusque has quit [Quit: WeeChat 2.0]
andrewmiller1 has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
<jtojnar> jD91mZM2: I have starting a discussion about how plug-ins are to be implemented on my to-do list but it probably will not get to the top anytime soon
<jD91mZM2> Awesome, thanks!
<jtojnar> jD91mZM2: one idea would be `*-with-plugins` for everything and relying on something like intensional store where items would be defined by their interface (ABI/directory tree)
<nick_l> I have imports = [ ./foo.nix ] Now, I want to generalize foo.nix, so I added {bar}: to the top of the module foo.nix, but how can I then use "imports" in combination with this generalized version of foo.nix?
<jtojnar> jD91mZM2: basically `-with-plugins` style works great for programs but the libraries (gstreamer, enchant, …) are the hard part
jgertm has joined #nixos
<jD91mZM2> To be entirely honest I'm not completely sure what you mean
<{^_^}> [nixpkgs] @matthewbauer pushed to master « dunst: remove fetchpatch »: https://git.io/vpVoQ
xy2_ has joined #nixos
<jtojnar> jD91mZM2: currently, if you override a library, everything needs to be rebuilt
<jD91mZM2> Oh
optikfluffel has joined #nixos
<jtojnar> intensional store would cause the rebuilds only if the output would change
* jD91mZM2 goes away from keyboard for a sec, sorry
<jtojnar> so you could change the expression/dependencies as long as you have reproducible outputs and the output is the same
andrewmiller1 has quit [Ping timeout: 260 seconds]
<jtojnar> I would like it so that the output could change as well, as long as it were ABI compatible
shoogz has quit [Ping timeout: 255 seconds]
optikfluffel has quit [Client Quit]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<jtojnar> we would need a strong enough type system for describing outputs
blankhart has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @globin pushed to gcc8 « gcc: default to gcc8 »: https://git.io/vpVK9
phdoerfler has quit [Quit: Leaving.]
<woffs> still fighting with gcc7
xcmw has joined #nixos
sanscoeur has joined #nixos
blankhart has joined #nixos
shoogz has joined #nixos
AstroBadger has joined #nixos
wchresta_ has joined #nixos
jgertm has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @StillerHarpo opened pull request #39980 → lolcat: 99.9.10 -> 99.9.11 → https://git.io/vpV6P
taktoa has quit [Remote host closed the connection]
<Lisanna> Hey, wondering if anyone can help me understand how the PXE image is built (nixos/release.nix -A netboot). Specifically, what NixOS configuration is used, and can it be changed?
AstroBadger has left #nixos ["WeeChat 1.6"]
lonokhov has quit [Quit: WeeChat 2.0]
wchresta_ has quit [Ping timeout: 265 seconds]
Lisanna2 has joined #nixos
<nick_l> How can I access a variable set via set-args in an imported (as in imports = [ ./module.nix ]) module? Example of setting a variable via set-args: nixops set-args --arg nrMachines 10
<{^_^}> [nixpkgs] @7c6f434c pushed to master « openscad: fix build by switching to git master and Qt5 »: https://git.io/vpViy
<jD91mZM2> jtojnar: Wow, that would indeed be great
<jD91mZM2> Does it currently rebuild even if you only change settings?
<jD91mZM2> Like services.xserver.displayManagers.lightdm.background or something minor
jperras_ has quit [Quit: WeeChat 2.1]
smichel has quit [Quit: smichel]
orivej has joined #nixos
<jtojnar> jD91mZM2: that is currently usually handled by global settings in /etc
<jtojnar> so only the etc derivation needs to be rebuild
<jD91mZM2> Ah
smichel has joined #nixos
<jtojnar> on the other hand, if you want to change something like https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/speechd/default.nix#L1-L13
<jtojnar> you would need to rebuild everything that depends on at
<jD91mZM2> Oh wow
<{^_^}> [nixpkgs] @timokau opened pull request #39981 → [WIP] Sage on nixos → https://git.io/vpVP9
<jtojnar> jD91mZM2: it makes sense since if one bit in a library changes, Nix cannot tell whether the depending programs will still work
<jD91mZM2> Yeah, there's no concept of build-time/run-time options. Just options.
<jD91mZM2> Would be great if there could be some kind of phase for regenerating configs that could somehow be used to distinguish
<jD91mZM2> (Sorry if I'm saying something stupid, I don't know nix)
knupfer has quit [Ping timeout: 240 seconds]
daveo has joined #nixos
periklis has quit [Ping timeout: 255 seconds]
jgertm has joined #nixos
xcmw has quit [Ping timeout: 256 seconds]
smichel has quit [Quit: smichel]
xcmw has joined #nixos
<LnL> there's a difference between buildtime and runtime dependencies
<LnL> but changing either results in a new store path
<nick_l> Is nix-collect-garbage -d the most aggressive I can get?
<nick_l> I see that I have two versions of systemd in my store for example.
<srhb> nick_l: /run/booted-system is probably holding onto one
<Pneumaticat> Hmm does NixOps support 32 bit systems!
<Pneumaticat> *?
<LnL> the currently booted system will stay alive until you reboot and the current becomes that
<nick_l> Is there any way to do that more efficient in a cloud environment?
Czen has quit [Quit: Tumbling down]
<srhb> nick_l: Only by doing Unsafe Things.
<nick_l> srhb: that's my secret middle name.
Czen has joined #nixos
<LnL> why? the last booted system is the only one known to boot correctly
simukis has quit [Ping timeout: 276 seconds]
<LnL> just because you where able to switch to the current one doesn't necceceraly mean it works
<LnL> (eg. kernel upgrades)
andrewmiller1 has joined #nixos
<nick_l> OK, other question. Is there an easy way to see how much space every service takes in journalctl output?
<andrewmiller1> exploring nix and nixpkgs code via github.com and grep is a pain. i'm new to development. is there a way to easily explore the source code?
<LnL> I know how to limit the journald size, not sure if you can query the usage
zeronineseven has joined #nixos
Czen has quit [Client Quit]
jrolfs has quit [Ping timeout: 256 seconds]
<nick_l> LnL: I already have: SystemMaxFileSize=5M MaxFileSec=48h '';
<nick_l> LnL: but I also see log files that are older than that on the system.
<andrewmiller1> nick_l: does journalctl --disk-usage work for you?
Czen has joined #nixos
<nick_l> andrewmiller1: Not really, but cool command: Archived and active journals take up 306.6M in the file system.
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @tadfisher opened pull request #39982 → nixos/powerManagement: add "med_power_with_dipm" scsiLinkPolicy → https://git.io/vpVM9
reinzelmann has joined #nixos
<nick_l> So, I basically want to throw away logs when there is too much.
<nick_l> (yes, yes, I know that storing them on some external system is better and that will likely also be done at some point)
tmaekawa has joined #nixos
<LnL> journald or logfiles?
<LnL> maybe one of the services just writes to a file and doesn't rotate it
<nick_l> SystemKeepFree
<nick_l> That's the solution I need.
<{^_^}> [nixpkgs] @ookhoi opened pull request #39983 → fix-way-cooler - remove 'mv' commands not needed anymore, and replace… → https://git.io/vpVDa
tmaekawa has quit [Client Quit]
<andrewmiller1> nick_l: journalctl -N | grep -i disk and journalctl -N | grep -i us may also give more ideas for customizing anything you're looking into
zeronineseven has quit [Quit: Konversation terminated!]
winem_ has quit [Ping timeout: 240 seconds]
muzzy has joined #nixos
muzzy__ has joined #nixos
muzzy_ has joined #nixos
<nick_l> Documentation for that option is uhm... sub-optimal.
<nick_l> It is 5% or 5.
seville has joined #nixos
daveo has quit [Ping timeout: 240 seconds]
unkn has quit [Ping timeout: 256 seconds]
<nick_l> Actually, I mean 20, not 5.
<andrewmiller1> i see
kiloreux has quit [Quit: Leaving]
<nick_l> Total disk usage: 2.6 GiB Apparent size: 128.0 TiB
<nick_l> LOL
<mightybyte> Is there a way to figure out which nixpkgs version corresponds to a specific stack snapshot?
<jD91mZM2> Does anybody have any recommendations for how to build a NodeJS package? Should I just use npm like normal or should I use node2nix? What's the advantage of either?
<nick_l> Looks like ncdu doesn't work.
<jD91mZM2> ncdu works for me... kind of. I don't remember if it used to be possible to navigate to a previous dir, but it isn't now.
<Dezgeg> sure you can, just pick the top directory which is /..
jrolfs has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<jD91mZM2> Dezgeg: Yeah but... never mind
asuryawanshi has joined #nixos
<jD91mZM2> I just couldn't remember if it used to be possible to change to a dir outside of the one you selected, but probably not
nschoe has quit [Ping timeout: 276 seconds]
AstroBadger has joined #nixos
<nick_l> error: executing SQLite statement 'pragma synchronous = normal': disk I/O error (in '/nix/var/nix/db/db.sqlite')
<nick_l> Any way to fix that?
<nick_l> Don't really see any hardware errors otherwise.
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #39970 → impure.nix: stringify path from NIX_PATH → https://git.io/vpVJh
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vpVST
<{^_^}> → 20bb5fb0 by @yorickvP: impure.nix: stringify path from NIX_PATH
<{^_^}> → 9c86ccb6 by @Ericson2314: Merge pull request #39970 from yorickvP/patch-1
TonyTheLion has quit [Quit: leaving]
<{^_^}> [nixpkgs] @Mic92 merged pull request #39121 → pass: refactor extension packaging → https://git.io/vpIPh
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpVSV
<{^_^}> → 0c2a7fa4 by @tadfisher: pass: refactor extension packaging
<{^_^}> → 230fe4ab by @Mic92: Merge pull request #39121 from tadfisher/pass-extensions-refactor
<clever> nick_l: export NIX_REMOTE=local
<clever> nick_l: export NIX_REMOTE=daemon i mean
<{^_^}> [nixpkgs] @Mic92 merged pull request #39914 → gcc49: backport retpoline support → https://git.io/vpg73
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vpVSH
<{^_^}> → ada2fc08 by @nlewo: gcc49: backport retpoline support
<{^_^}> → 1537dca7 by @Mic92: Merge pull request #39914 from nlewo/pr-retpoline
<{^_^}> → 5b6129f6 by @nlewo: gcc49: remove darwin support
<jD91mZM2> sphalerite: I'm currently reading https://nixos.org/nixos/nix-pills/automatic-runtime-dependencies.html. How comes this isn't done automatically for libpulse and xidlehook?
<jD91mZM2> Is it because it's a runtime dependency only so it can't detect it? somehow?
<clever> jD91mZM2: when a build is done, nix will basically grep the output for the path of every build-time dependency
<clever> and any that are found in the output become a runtime dependency
<clever> but if you dont explicitely use the path of pulseaudio, and expect to find it in the env, nix wont know you depend on it
<jD91mZM2> What do you mean use the path of pulseaudio?
<jD91mZM2> I'm linking to it if that's what you mean
<clever> if you are linking to it, then gcc should put its path into the rpath field of the ELF file
<clever> and then it becomes a runtime dependency
<jD91mZM2> Which it doesn't for my program, strangely enough. It adds a bunch of other stuff, but not libpulse
<clever> can you gist your code and nix expression? or post a github link
xcmw has quit [Ping timeout: 260 seconds]
<nick_l> On the topic of libpulse I love that guy who wrote an empty replacement for libpulse. libcardiacarrest orso?
<nick_l> How much do you have to hate some piece of software to do that?
<jD91mZM2> As you can see the nix expression currently uses wrapProgram to change LD_LIBRARY_PATH
<clever> jD91mZM2: the wrapProgram call should be causing it to be a runtime dep
muzzy has quit [Ping timeout: 240 seconds]
muzzy_ has quit [Read error: Connection reset by peer]
muzzy__ has quit [Read error: Connection reset by peer]
<jD91mZM2> It works with wrapProgram, yes
<jD91mZM2> but not without
<clever> let me check the rust source...
<jD91mZM2> I'm using libpulse-sys
hotfuzz_ has joined #nixos
<andrewmiller1> mightybyte: "stack snapshot"/
<andrewmiller1> ?
<clever> jD91mZM2: do you know if it uses dlopen?
<clever> jD91mZM2: does ldd show it as depending on libpulse?
<jD91mZM2> Nope! Probably not, lemme check
<jD91mZM2> #[link(name = "pulse")] extern "C" { ... }
<jD91mZM2> Seems like it's linking like normal
<jD91mZM2> ldd:
<jD91mZM2> libpulse.so.0 => not found
<clever> its possible that the rust compiler lacks the rpath stuff gcc has
hotfuzz has quit [Ping timeout: 265 seconds]
<clever> you probably want to use patchelf to add ${libpulseaudio}/lib to the rpath
<jD91mZM2> sphalerite has already established using `readelf -d` that the library is marked as NEEDED, but it's not in RUNPATH
<clever> the same as if you where packaging unfree software
<jD91mZM2> Oh, so it's up to the compiler?
<clever> yeah
<Dezgeg> not patchelf but rather passing -rpath ${pulseaudio}/lib to the linker
<clever> the gcc nixpkgs uses is a bash script, that sets a bunch of gcc flags to ensure the rpath is configured right
<jD91mZM2> The Nix Pills thing I linked made it sound like it was doing some patch magic
<clever> Dezgeg: yeah, that would be better, if we can pass custom flags to the rust linker
<Dezgeg> how does the rust linker work anyway? do they call 'ld' from PATH? or do they integrate the lld linker or something?
humanoyd has quit [Quit: WeeChat 2.1]
<clever> jD91mZM2: it just greps the output binaries for the input paths, and gcc does -rpath and winds up containing the pulse path
<Dezgeg> some googling claims something like: cargo rustc -- -C link-args="-Wl,-rpath,/scratch/library/"
<clever> wrap the flags for wrapping the flags that wrap flags!
<jD91mZM2> Shouldn't it be entirely possible to make a tool that automatically patches any binary?
<jD91mZM2> I mean, patchelf exists and works wonderfully
<clever> idealy, there should be a setup hook in the cargo building stuff in nixpkgs
<clever> that will add every path from $buildInputs to the -rpath flags
<clever> thats what nixpkgs does with gcc
<mpickering> Can I upgrade to nix 2.0 yet easily? This issue is still open - https://github.com/NixOS/nix/issues/1900
muzzy has joined #nixos
muzzy_ has joined #nixos
muzzy__ has joined #nixos
Lisanna has quit [Quit: Lisanna]
<{^_^}> [nixpkgs] @nicknovitski closed pull request #35063 → yarn: add yarnpkg binary to outputs and use nodejs dependency → https://git.io/vAW3W
jrolfs has quit [Ping timeout: 260 seconds]
<thoughtpolice> mpickering: If you're willing to blast /nix/store, then yes, it's very easy. But otherwise I don't think there's a clean upgrader to the new daemon-based installer, for now.
<catern> man, I wish there was a "nix install" command which was cached
<thoughtpolice> mpickering: Assuming you're not using NixOS, of course. Because if you were I imagine you wouldn't need to ask (it's trivial, there)
<catern> nix-env --install is so terribly slow
<mpickering> Well I am using NixOS
<catern> and I hate to tell my users to use nix-env -iA, which is not at all intuitive
<mpickering> But updating nixpkgs and then nixos-rebuild switch doesn't install 2.0?
<thoughtpolice> The real solution is to just never tell them about anything other than -iA, then there's nothing non-intuitive about it because there's only one option.
<thoughtpolice> You can make that nicer by using an overlay or something to make user environments more declarative, anyway. You should always get used to using attribute names, IMO.
wchresta_ has joined #nixos
<thoughtpolice> mpickering: Well, I'm on nixpkgs-unstable, and I have 'nix.package = pkgs.nixUnstable' on my machine, which is at 2.1, but I believe nixStable was also bumped to 2.0 recently
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vpVQh
<{^_^}> → d2028096 by @StillerHarpo: lolcat: 99.9.10 -> 99.9.11
<{^_^}> → 5786a8ec by @nlewo: Merge pull request #39980 from StillerHarpo/lolcat
<{^_^}> [nixpkgs] @nlewo merged pull request #39980 → lolcat: 99.9.10 -> 99.9.11 → https://git.io/vpV6P
<thoughtpolice> mpickering: Are you on 18.03 or unstable?
<mpickering> ok right, so I will try again
<mpickering> I am on a custom checkout
<mpickering> which is usually quite recent
<thoughtpolice> You can use Import-From-Derivation to write a custom nix.package as well if you want, if you want new-nix, but a locked, older nixpkgs checkout
<mpickering> It's two weeks old. 651239d5ee66d6fe8e5e8c7b7a0eb54d2f4d8621
<mpickering> So if something changed in that time I will try it again
<{^_^}> [nixpkgs] @ryantm closed pull request #39876 → mattermost: 4.8.0 -> 4.9.1 → https://git.io/vpzDL
jrolfs has joined #nixos
<dtz> idk how anyone lives without tab completion of nix commands lol--particularly attributes/attribute names
<dtz> huge advantage of the '-A' variants is you can tab-complete your way to what you mean xD
<thoughtpolice> Yeah, attribute names are what you use 99.9% of all places anyway, so IMO any real usage should just bite the bullet and always use them.
Lisanna2 has quit [Ping timeout: 276 seconds]
<thoughtpolice> mpickering: No, that should be way more than recent enough. nixStable was bumped to 2.0 sometime back in Feburary.
szicari has quit [Quit: szicari]
szicari has joined #nixos
<thoughtpolice> mpickering: Just to be clear, you're *sure* you're building with your nixpkgs clone, and not some channel, e.g. nixos-version matches exactly?
szicari has quit [Client Quit]
<thoughtpolice> Because unless your nix.package is explicitly set to nix1, I think it should upgrade with more or less no intervention.
<mpickering> How do I check this?
jperras has joined #nixos
<thoughtpolice> git rev-parse HEAD in your nixpkgs clone, i.e. what version you *expect* to be on
<thoughtpolice> then just check the hash against the output of `nixos-version`, to be 100% sure
<thoughtpolice> You can also use `nixos-option nix.package` I think to maybe get the path to the Nix version your configuration.nix is set to use, which should be unambiguous, as well.
<{^_^}> [nixpkgs] @jtojnar opened pull request #39985 → {opencv,firefox,libcanberra}: {upgrade,drop} GStreamer 0.10 dependency → https://git.io/vpV5v
wchresta_ has quit [Ping timeout: 240 seconds]
Cale has quit [Ping timeout: 264 seconds]
zybell_ has quit [Ping timeout: 240 seconds]
nick_l has quit [Quit: Page closed]
civodul has joined #nixos
griff_ has quit [Quit: griff_]
<catern> is it possible to pass an arbitrary expression to 'nix run'?
nschoe has joined #nixos
<dtz> catern: i think so, if this is the sort of thing you mean: $ nix run '(import <nixpkgs> {}).hello' -c hello
<dtz> note that the expression needs to start with an open paren, for reasons
<dtz> (just like how `nix eval '2'` is an error but `nix eval '(2)'` and `nix eval '(2)+3'` work
<catern> dtz: ah, I see, okay, that was what I was missing
<catern> (the open paren)
jD91mZM2 has quit [Quit: WeeChat 2.0]
acarrico has quit [Ping timeout: 276 seconds]
<catern> also is there really no "nix install" command?
<andrewmiller1> catern: in your bash profile: function nixe-reevaluate() { echo nix-shell --pure --run '\"$@\"' | sh; }
<catern> the new "nix" command has such beautiful output :)
<infinisil> catern: But have you seen the man page?
<catern> andrewmiller1: what's that in response to?
<andrewmiller1> catern: is it possible to pass an arbitrary expression to 'nix run'
<catern> infinisil: sbaugh@sbaugh-sandbox ~/.local/src $ man nix; No manual entry for nix
<catern> :(
<infinisil> Exactly..
<infinisil> Not having a man page is what mostly prevents me from using it
<andrewmiller1> alias nixe='nixe-reevaluate';
ambro718 has joined #nixos
<andrewmiller1> i separate it because i have a longer function to skip re-evaluation and jus trun
<andrewmiller1> and switch them out for nixe
<infinisil> It's weekend time, should I try to add nix evaluation to the bot here?
reinzelmann has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @orivej pushed to master « poco: support MySQL »: https://git.io/vpVdQ
<catern> Also is 'nix-env --install' pretty much deprecated?
<catern> Is --install --attr the new future
<mpickering> thoughtpolice: you were right. I rebuilt and it now works. Cheers.
<catern> Seems a lot better
fendor has quit [Ping timeout: 256 seconds]
<andrewmiller1> catern: with --install you can install many in one command
<andrewmiller1> catern: but it's simple to make a script with a for loop for -iA
<Dezgeg> doesn't nix-env -i -A foo -A bar work?
<catern> also, is there a tutorial for Nix that instructs users to use nix-env -iA?
<catern> the ones I can find all suggest -i
<catern> that's old and busted, my users deserve the new hotness :)
<thoughtpolice> Dezgeg: yea, that's how I normally do it.
<{^_^}> [nixpkgs] @dotlambda merged pull request #39943 → restic-rest-server module: init → https://git.io/vp2js
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vpVF3
<{^_^}> → 7f53ee84 by @bachp: restic-rest-server module: init
<{^_^}> → b051cdfd by @dotlambda: Merge pull request #39943 from bachp/restic-rest-server
<thoughtpolice> Though using an overlay to just name all the local packages I want in a sorta-declarative way is a lot nicer, IMO.
xcmw has joined #nixos
<andrewmiller1> Dezgeg: you're right it works
<thoughtpolice> mpickering: Nice. Yeah I really wish there was a better way to link my configuration.nix directly to a version of nixpkgs
<thoughtpolice> mpickering: Right now I just have an alias for -I nixpkgs=/path/to/nixpkgs but ideally I would be able to 'bootstrap' my configuration.nix much like I do using builtins.fetchTarball for my projects.
<johnw> thoughtpolice: that's a nice idea
<thoughtpolice> I keep all my configurations in git so I could add a submodule but I hate them out of principle.
nschoe has quit [Ping timeout: 256 seconds]
<johnw> "pinned bootstrapping"
<dtz> fwiw I think -A is only needed once
<dtz> nix-env -iA nixos.bash nixos.hello
<maurer> Is there a way to allow use of caches for all but the last package in a nix-build -A request?
<maurer> Specifically, I'm looking to grab the kernel build directory from nix-build -A linux_latest before it installs, and wanted to nix-build -K to get it
<thoughtpolice> johnw: Yeah, nixos-rebuild would need some way of being told the nixpkgs checkout to use... In an ideal world, you could do 'nixos-rebuild' even with an empty NIX_PATH. That's _almost_ possible today, I think.
<thoughtpolice> Some of the NixOS tests do things like 'import <nixpkgs/nixos/some/thing/or/another.nix>', but nothing in NixOS itself uses direct NIX_PATH-ish includes; they all use relative paths instead. But that's just the tests, at least.
<thoughtpolice> I think
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39426 → googleearth: remove → https://git.io/vpZ1x
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpVFy
<{^_^}> → 81c1b9c9 by @woffs: googleearth: remove
<{^_^}> → ac18012d by @matthewbauer: Merge pull request #39426 from woffs/googleearth
<thoughtpolice> Actually I'm not sure if nixos-rebuild works with an empty NIX_PATH. In any case it would be good if it could... Then I could have all of my machines trivially bootstrapped from the same nixpkgs version at all times.
<johnw> yep
<johnw> I'd like that too
<thoughtpolice> Building image closures with an empty NIX_PATH works though, more or less, IIRC. (I just can't remember if nixos-rebuild itself does anything like 'import <nixpkgs>', maybe it doesn't)
<johnw> you can at least achieve this when using nix-docker to bootstrap NixOS within Docker containers, which is what I mostly now do to start up NixOS
<thoughtpolice> Right now an alias is basically the best way to go, AFAICS
<thoughtpolice> Yeah, if you build the actual system closure yourself with nix-build, then you can just switch-to-configuration manually.
<infinisil> Um, was the ssh-substituter-hosts option changed?
<thoughtpolice> That _can_ work and be done with a pinned version, using the fetchTarball strategy, in fact.
<thoughtpolice> So maybe I should just write a small alternative to nixos-rebuild myself...
MichaelRaskin has joined #nixos
freeman42x[nix] has joined #nixos
nschoe has joined #nixos
<infinisil> Ah I think it got changed to just extra-substituters
<{^_^}> [nixpkgs] @dtzWill opened pull request #39986 → llvmPackages: update default 5 -> 6 → https://git.io/vpVbz
<{^_^}> [nixpkgs] @matthewbauer pushed to master « rl-1809: add googleearth »: https://git.io/vpVba
<infinisil> I think
nschoe has quit [Ping timeout: 256 seconds]
<catern> maurer: could you just do the build of all the first n-1 things, allowing caches, and then do the build again without caches with the last thing added on? the second time they'd be already built/downloaded
<maurer> catern: Yeah, what I've done now is nix-shell -A linux_latest, the ndid another run of nix-build with caches disabled
<maurer> seems kinda janky just force a particular build, but what can you do
andrewmiller1 has quit [Quit: Page closed]
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 240 seconds]
<Dezgeg> if you plan to ctrl-c it anyway maybe nix-build --check would do
<maurer> Hm, check doesn't appear in the man page
<maurer> what does it do?
dbmikus has quit [Quit: WeeChat 2.1]
<Dezgeg> a rebuild to check for bitwise reproducibility (with the second result thrown away, I think)
bebarker has joined #nixos
zybell has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #39977 → minitube: 2.4 -> 2.9 → https://git.io/vpVC1
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpVAE
<{^_^}> → 39c63320 by @Ma27: minitube: 2.4 -> 2.9
<{^_^}> → 5c63fbda by @xeji: Merge pull request #39977 from Ma27/update-minitube
<tmplt> Which package contain the X11/xpm.h header? Apparently, xorg.libXpm only contain shared libraries
<bebarker> I'm probably missing something obvious, but after searching and skimming the docs, I haven't found the answer; I'd like an easy way to test out my local nixpkgs clone, by doing nix-env -if test-env.nix. Is there a way to specify the path to the local nixpkgs clone, in e.g.: with import <nixpkgs> {}; ?
<leary`> Hmm, I just found logs from fontforge in my ~/.xsession-errors: it's looking for it's shares in /run/current-system/sw/share/fontforge, which doesn't exist. I checked $(dirname $(readlink $(which fontforge)))/../share and I can see that the files it's looking for are present, just apparently not symlinked. Sounds like a bug?
phdoerfler has joined #nixos
jacob_ has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « kotlin: move LICENSE to separate place »: https://git.io/vpVxA
<{^_^}> [nixpkgs] @matthewbauer pushed to master « openjdk: move license »: https://git.io/vpVxj
<bebarker> ^ sorry if the above isn't the nix way to do it - I'm open to alternative ways, but would prefer something on the simple side
<{^_^}> [nixpkgs] @matthewbauer pushed to master « openjdk: move license (again) »: https://git.io/vpVpL
<elvishjerricco> bebarker: You've got a few options. You could code the path into your file. i.e. replace `import <nixpkgs> {}` with `import ./nixpkgs {}`. Or you can tell nix to substitute `<nixpkgs>` using `-I`: `nix-env -I nixpkgs=./nixpkgs -if ./test-env.nix`
katyucha has joined #nixos
dbe_ has joined #nixos
xcmw has quit [Ping timeout: 264 seconds]
sydney has joined #nixos
ixxie has joined #nixos
ChongLi has quit [Ping timeout: 264 seconds]
sydney has quit [Quit: Leaving]
globin has quit [Ping timeout: 260 seconds]
<bebarker> elvishjerricco, awesome, the first one was definitely sufficient for me, also easy to just swap it out with my existing production env as a single-line-swap
ixxie has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @LnL7 merged pull request #39928 → Ruby: 2.3.6 -> 2.3.7, 2.4.3 -> 2.4.4, 2.5.0 -> 2.5.1 → https://git.io/vp2nm
<{^_^}> [nixpkgs] @LnL7 pushed 3 commits to master: https://git.io/vpVjQ
<{^_^}> → f99ded29 by @manveru: Ruby: 2.3.6 -> 2.3.7, 2.4.3 -> 2.4.4, 2.5.0 -> 2.5.1
<{^_^}> → 814938a7 by @LnL7: ruby: fix darwin dependencies
<{^_^}> → b5968f26 by @LnL7: Merge pull request #39928 from manveru/update-ruby
radvendii has joined #nixos
ldlework has quit [Ping timeout: 256 seconds]
smichel has joined #nixos
<radvendii> For certain matomo features, I have to add things to various directories, but when I use the matomo nixos service, it puts the directory in the nix store, which is immutable
daveo has joined #nixos
<radvendii> is there a way to add a file to a service / package in configuration.nix?
<radvendii> or do i have to abandon the nix-style install, and install it manually?
<johnw> radvendii: can you create another package whose 'src' is the output of the other package?
phdoerfler has quit [Quit: Leaving.]
jrolfs has quit [Ping timeout: 264 seconds]
<johnw> then you can setup the 'out' for that package to exactly what you need
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vpwfK
<{^_^}> → 62855fc0 by @catern: pythonPackages.supervise_api: 0.4.0 -> 0.5.3
<{^_^}> → bee495e9 by @dotlambda: Merge pull request #39931 from catern/supup
<{^_^}> [nixpkgs] @dotlambda merged pull request #39931 → pythonPackages.supervise_api: 0.4.0 -> 0.5.3 → https://git.io/vp2ul
<radvendii> johnw: but then there's the added complication of getting the service to use the right package
<johnw> yes, true
<johnw> although, you could override the package that it wants to use
<radvendii> hm. Can I just override the matomo package to begin with?
<johnw> why not?
<johnw> try using overrideDerivation, and then append some modifications to the buildPhase
<{^_^}> [nixpkgs] @xeji merged pull request #39963 → freetds: 1.00.80 -> 1.00.91 → https://git.io/vpa7j
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwJn
<{^_^}> → e730e05d by @peterhoeg: freetds: 1.00.80 -> 1.00.91
<{^_^}> → 45788b45 by @xeji: Merge pull request #39963 from peterhoeg/u/freetds
<radvendii> right, but that just creates a new derivation right? how do i change what the original package does?
<johnw> that overrides a derivation
<johnw> it would look like this:
<johnw> super.some-package.overrideDerivation (attrs: { buildPhase = attrs.buildPhase + '' new commands to modify $out go here ''; })
<radvendii> hm ill try that
<radvendii> and that just goes in the main part of configuration.nix?
<johnw> well, personally I'd make it an overlay
<radvendii> what does that mean?
<johnw> nixpkgs.overlays = [ (self: super: ...) ];
goibhniu has quit [Ping timeout: 265 seconds]
<johnw> it's a list of functions that each gets to override nixpkgs definitions
<johnw> that way you can gloablly change what how that particular package is defined
<radvendii> oh that sounds like exactly what I wanted
katyucha has quit [Ping timeout: 256 seconds]
<johnw> i believe that for NixOS, overlays can just reference a directory containing functions defined in files
jperras has quit [Quit: WeeChat 2.1]
raynold has joined #nixos
raynold has quit [Excess Flood]
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @xeji merged pull request #39913 → shutter: wrap `XDG_DATA_DIRS` with `hicolor-icon-theme` → https://git.io/vpgQn
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwkC
<{^_^}> → 40226e64 by @Ma27: shutter: wrap `XDG_DATA_DIRS` with `hicolor-icon-theme`
<{^_^}> → 4c8c3146 by @xeji: Merge pull request #39913 from Ma27/shutter/add-hicolor-icon-theme
raynold has joined #nixos
xcmw has joined #nixos
xcmw has quit [Client Quit]
xcmw has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #39974 → simplescreenrecorder: port to qt5 → https://git.io/vpVGv
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwIn
<{^_^}> → b4bfc02d by @Ma27: simplescreenrecorder: port to qt5
<{^_^}> → da69dc40 by @xeji: Merge pull request #39974 from Ma27/ssr-qt5
smichel has quit [Quit: smichel]
wchresta_ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #39926 → python3Packages.yowsup: 2.5.2 -> 2.5.7 → https://git.io/vp23Z
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vpwtx
<{^_^}> → cf50edf5 by @Ma27: python3Packages.yowsup: 2.5.2 -> 2.5.7
<{^_^}> → f79e0fcf by @dotlambda: Merge pull request #39926 from Ma27/update-yowsup
<zybell> jtojnar:plugins:as I analyse it you need 3 (small) packages per extension point: 1) path package,provides a symlink into /run for link to package 3. 2) contract package,depends on 1,provides an output that explains the way the packages are linked,computer readable (script or lib),human readable good to have,all expanders depend on it. 3)point package, depends on 2) and 1), imports the list of all *reverse* dependecies of 2) as deps into a
<zybell> dir.sets the /run link to that dir and provides (via its dep on (1) )a way to access that plugin dir in the hosts. The hosts depend on 3).
Slabity has joined #nixos
wchresta_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Ma27 opened pull request #39987 → yubikey-personalization-gui: port to qt5 → https://git.io/vpwqz
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @svanderburg pushed to master « libgdiplus: remove conflicting libungif that causes segfaults when opening a GIF file »: https://git.io/vpwqo
<{^_^}> [nixpkgs] @megheaiulian opened pull request #39988 → gitkraken: 3.4.0 -> 3.6.0 → https://git.io/vpwqi
dbe_ has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 240 seconds]
<jtojnar> zybell: I am not sure I undestand the need for the path package
<jtojnar> why cannot the symlink be provided by the contract package?
coot has joined #nixos
jrolfs has joined #nixos
coot has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patrl has joined #nixos
<catern> you know what would be nice for a default.nix in the Nix repo?
<catern> something that does (import <nixpkgs>).nixUnstable.override { src = ./.; }
<clever> catern: i think you can nix-build release.nix -A build
rauno has quit [Ping timeout: 256 seconds]
globin has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
<radvendii> can I do bash parameter substitution inside a nix file? Like inside unpackPhase = ''...'' I want to put ${src%.gz}, should that be valid?
<radvendii> do i have to escape something?
<radvendii> (because it's not working as is)
<clever> ''foo ''${bar} baz''
daveo has quit [Ping timeout: 265 seconds]
daveo has joined #nixos
<radvendii> that seems mismatched
<radvendii> is that intentional?
<clever> thats how you escape the $
<radvendii> oh weird
<clever> yeah
ixxie has joined #nixos
phdoerfler has joined #nixos
<ixxie> Evening ^^ anybody happen to know about the NixOps digital ocean backend?
Neo-- has joined #nixos
phdoerfler has quit [Ping timeout: 240 seconds]
muzzy__ has quit [Ping timeout: 256 seconds]
muzzy_ has quit [Ping timeout: 256 seconds]
muzzy has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #39541 → linux-mptcp: enable advanced schedulers → https://git.io/vpWTc
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpw3r
<{^_^}> → a050133e by @teto: linux-mptcp: enable advanced schedulers
<{^_^}> → 01e6e4c5 by @xeji: Merge pull request #39541 from teto/mptcp_scheduler
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to release-18.03: https://git.io/vpw3D
<{^_^}> → 0b12dee0 by @manveru: Ruby: 2.3.6 -> 2.3.7, 2.4.3 -> 2.4.4, 2.5.0 -> 2.5.1
<{^_^}> → 94a3649e by @LnL7: ruby: fix darwin dependencies
lord| has joined #nixos
hakujin has quit [Ping timeout: 248 seconds]
xcmw has joined #nixos
<radvendii> I've set up a nix override that downloads and installs an extra piece, but when I diff it with a version that I downloaded myself, I get that there are differences (they're binary files, so I don't know what exactly)
<radvendii> any idea what would be causing this?
<radvendii> fetchurl is also completely ignoring the checksum as far as I can tlel
<radvendii> because I know the checksum is wrong but it's not complaining
<srhb> radvendii: Did you ensure to not leave the hash at the old value?
<srhb> radvendii: Otherwise Nix will conclude that it already has that file and carry on happily with the old one.
<radvendii> srhb: ohhh
<radvendii> srhb: hahaha. whoops
<radvendii> that's why it's ignoring the hash
<srhb> radvendii: More like the url. :-)
<radvendii> right
<radvendii> very clever
<radvendii> sort of
<radvendii> I think this has confused me in the past, too
<srhb> Yes, it's a common gotcha.
<srhb> It would be extremely costly to always download and verify though, so it's hard to avoid.
<srhb> Just a tradeoff of fixed output derivations.
hiratara has quit [Ping timeout: 265 seconds]
<clever> the storepath is based on the name and the sha256
<clever> so if neither has changed, it reuses the old one
<radvendii> wait but the name was completely different
<clever> if you fetchurl an http://example.com/foo-1.2.3.tar.gz, then the version is in the name
<clever> what url did you give fetchurl?
<radvendii> but the hash came from some random thing i copy-pasted
<clever> and what was the old url?
olto has quit [Quit: ZNC - http://znc.in]
<radvendii> i don't remember
<clever> can you gist the nix expression?
layus has quit [Quit: ZNC 1.6.5 - http://znc.in]
<radvendii> which nix expression?
<clever> that was calling fetchurl
hiratara has joined #nixos
layus has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<clever> was it fetchurl or fetchzip?
<radvendii> it was fetchurl
<radvendii> (just the hash)
<{^_^}> [nixpkgs] @megheaiulian opened pull request #39989 → virtualbox: fix pci_get_device removed in kernel 4.17 → https://git.io/vpwsx
<clever> i would expect that to work
<clever> though the tarballs.nixos.org may get in the way
<srhb> The /urlselect
<srhb> Woops
aarvar has joined #nixos
<radvendii> you would expect what to work? the gist I sent you does work, but that's because I updated the hash
<radvendii> before it was the same hash as the tremulous file
<clever> i would expect it to have a different storepath and to correctly fail if you reuse an old hash
<radvendii> oh
<radvendii> yeah
<clever> but, if the old hash is mirrored on tarballs.nixos.org
<clever> that mirror doesnt include the name in the hashing
<clever> and it may mess up
<clever> i can see that happening for any hash in nixpkgs
<clever> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever> but that hash is safe to use
<clever> bitcoin would be broken if anybody ever found that hash :P
<radvendii> hahaha
<radvendii> that's a good call
<radvendii> does it have to have the right number of zeros?
<clever> yeah
<radvendii> gotcha
<radvendii> how many is it?
<radvendii> wow. i can count
<srhb> 52.
<radvendii> thanks
<srhb> Which makes 52i0 very handy in vi
<radvendii> yuuup
<clever> needed an escape after the 0, but that does work nicely
ixxie has quit [Quit: Lost terminal]
globin has quit [Remote host closed the connection]
Slabity has quit [Ping timeout: 240 seconds]
joehh has joined #nixos
<srhb> My vimrc just magically knows when I want to quit insert mode. :-)
<clever> doesnt seem to replicate things with arrow keys in it though
<clever> so i cant just 5ispace<down><escape>
<Dezgeg> arrow keys aka heresy?
<srhb> Hmm, I have arrow keys killed in insert mode, never thought of that.
<radvendii> clever: yeah at that point you probably want macros
<radvendii> srhb: how does it know when you want to exit?
<srhb> radvendii: It doesn't, I was joking. Sorry. :P
<radvendii> srhb: oh. I could totally imagine that being a vim package though
<clever> Dezgeg: how else would you move the cursor while in insert mode? lol
<srhb> (But I can type jk together and it exits insert mode)
<radvendii> Dezgeg: exit insert mode
<radvendii> clever*
<radvendii> srhb: I feel like once you allow special keybindings for multiple keys pressed together, you've oppened the floodgates
<{^_^}> [nixpkgs] @bbarker opened pull request #39990 → Add package: git-secrets → https://git.io/vpwGw
<clever> radvendii: the cursor moves 1 to the left when i edit insert mode, and there is no way to get the cursor to the position at the end of a line
<srhb> radvendii: My vimrc has been static for I think 10 years. No additions or removals. Seems ok. :)
<clever> exit*
<srhb> clever: Think of the cursor as having two positions instead, left corner and right corner. :P
sdemos has quit [Ping timeout: 240 seconds]
<srhb> Now it's always at the end of the line!
<srhb> :-)
* srhb ducks
<clever> lol
hamishma_ has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdemos has joined #nixos
sdemos has quit [Changing host]
sdemos has joined #nixos
rauno has joined #nixos
sm0rux has joined #nixos
patrl has quit [Ping timeout: 256 seconds]
<leary`> When nix is building the system path, it doesn't seem to uniformly stow the contents of ${program}/share. E.g. I get ${mpv}/share/zsh/site-functions/_mpv but not ${mpv}/share/mpv/subfont.ttf. What's the deal with that?
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39795 → atlas: 3.10.2 -> 3.10.3 → https://git.io/vp0oU
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwZg
<{^_^}> → 24761ef5 by R. RyanTM: atlas: 3.10.2 -> 3.10.3
<{^_^}> → 8e6684ca by @matthewbauer: Merge pull request #39795 from r-ryantm/auto-update/atlas
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39783 → acpica-tools: 20180313 -> 20180427 → https://git.io/vp0BV
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwZV
<{^_^}> → 71594fa9 by R. RyanTM: acpica-tools: 20180313 -> 20180427
<{^_^}> → 4cf0e358 by @matthewbauer: Merge pull request #39783 from r-ryantm/auto-update/acpica-tools
daveo has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39750 → palemoon: 27.8.3 -> 27.9.0 → https://git.io/vp0kl
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwZH
<{^_^}> → 4f715a56 by R. RyanTM: palemoon: 27.8.3 -> 27.9.0
<{^_^}> → ce3e0f2e by @matthewbauer: Merge pull request #39750 from r-ryantm/auto-update/palemoon
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39740 → picard-tools: 2.18.2 -> 2.18.3 → https://git.io/vpRFb
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwZb
<{^_^}> → 4ea3841d by R. RyanTM: picard-tools: 2.18.2 -> 2.18.3
<{^_^}> → a733bbfb by @matthewbauer: Merge pull request #39740 from r-ryantm/auto-update/picard-tools
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39736 → spidermonkey_52: 52.6.0 -> 52.7.4 → https://git.io/vpR7G
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwZx
<{^_^}> → ecc7f83e by R. RyanTM: spidermonkey_52: 52.6.0 -> 52.7.4
<{^_^}> → c8f8f546 by @matthewbauer: Merge pull request #39736 from r-ryantm/auto-update/spidermonkey
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39679 → buildbot: 1.1.0 -> 1.1.1, fix build → https://git.io/vpB3H
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwnU
<{^_^}> → cd0aee5c by @lopsided98: buildbot: 1.1.0 -> 1.1.1
<{^_^}> → 22a88fcc by @matthewbauer: Merge pull request #39679 from lopsided98/buildbot-update
NightTrain has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #38660 → btrbk: fix SSH filter script; clean up build inputs → https://git.io/vx55q
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vpwnc
<{^_^}> → 759e66f6 by @tadfisher: btrbk: fix SSH filter script
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<{^_^}> → d031891c by @tadfisher: btrbk: clean up build inputs
<{^_^}> → 54fa4256 by @matthewbauer: Merge pull request #38660 from tadfisher/btrbk
hiratara has quit [Quit: ZNC - http://znc.in]
<zybell> jtojnar:ok,you caught me. I was cheating. The /run link must be maintained at boot. Therefore exists an additional package. That package depends on all path packages and restores the /run link at boot time. To not make every point package depend on it the path (and its restore script) is spirited away in its own package. For symmetry the boot package can be constructed like a point package for a restore contract, and the contract package for
<zybell> that would be a dependency of every path package. With some creative scripting the boot script could then install a *subset* of currently installed plugins in user profiles.
hiratara has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « vscode: 1.22.2 -> 1.23.0 »: https://git.io/vpwcL
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.03: https://git.io/vpwcm
<{^_^}> → c114f619 by @winniequinn: vscode: 1.21.1 -> 1.22.1
<{^_^}> → b995dcf9 by @smashedtoatoms: vscode: 1.22.1 -> 1.22.2
<{^_^}> → 40a97926 by @NeQuissimus: vscode: 1.22.2 -> 1.23.0
orivej has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nixos
NightTra1n has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @xeji opened pull request #39991 → fleet, panamax: remove → https://git.io/vpwcR
NightTra1n has quit [Client Quit]
<{^_^}> [nixpkgs] @xeji merged pull request #39988 → gitkraken: 3.4.0 -> 3.6.0 → https://git.io/vpwqi
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwc6
<{^_^}> → 401fa334 by @megheaiulian: Upgrade gitkraken to 3.6.0
<{^_^}> → f9429940 by @xeji: Merge pull request #39988 from plumelo/feature/gitkraken-3.6.0
griff_ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #39939 → theme-obsidian2: init at 2.5 → https://git.io/vp2dq
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwcX
<{^_^}> → bfb3232a by @romildo: theme-obsidian2: init at 2.5
<{^_^}> → 34497806 by @xeji: Merge pull request #39939 from romildo/upd.obsidian-2
jrolfs_ has quit [Ping timeout: 260 seconds]
sir_guy_carleton has joined #nixos
<ij> yorick, what's nixops copy?
doyougnu has quit [Ping timeout: 240 seconds]
joehh has quit [Ping timeout: 260 seconds]
<stammon> hi there. I'm trying to build a homemanager configuration, where i have a main configuration, which sets the machinename (and other things) and then imports other configuration and passes the machine name to those imported config files. A very simplified version of what I want to do looks like this: https://pastebin.com/0BKyJLgF . I tried a lot and always get errors, as I have not fully understood how mkOption and the config variable in nixexpressions work.
<stammon> Can someone have a look at it?
<jtojnar> zybell: still getting lost in this
<jtojnar> but at least this should be possible to implement
<srhb> stammon: What's the problem?
<{^_^}> [nixpkgs] @xeji merged pull request #39797 → adapta-gtk-theme: 3.93.0.258 -> 3.93.1.1 → https://git.io/vp0Kc
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwCE
<{^_^}> → d1357281 by R. RyanTM: adapta-gtk-theme: 3.93.0.258 -> 3.93.1.1
<{^_^}> → b1e20c9d by @xeji: Merge pull request #39797 from r-ryantm/auto-update/adapta-gtk-theme
andreabedini has joined #nixos
krey has quit [Ping timeout: 264 seconds]
andreabe_ has quit [Ping timeout: 260 seconds]
wchresta_ has joined #nixos
daveo has joined #nixos
<ajmccluskey> Morning (from Brisbane, Australia) everyone!
<ajmccluskey> I was about to embark on a hard disk upgrade in my NixOS laptop. I've previously used `dd` to clone drives and then expanded partitions and LVM stuff with success, but are there any caveats for NixOS?
<srhb> ajmccluskey: I don't think so. As long as all the identifiers used to mount the various partitions stay the same.
<stammon> srhb: Right now it's Module `/home/timon/experimentdir/configuration.nix' has an unsupported attribute `host'. This is caused by assignments to the top-level attributes `config' or `options'
<ajmccluskey> srhb: cool, thanks. I was thinking I might need to regenerate hardware-configuration.nix from an install USB if the UUIDs change.
<ajmccluskey> But I'll deal with that if it comes up. I guess the UUIDs for the volumes will be the same if I clone?
<stammon> But I've fighted with so many other errors and I am not even sure whether I'm on the right way
<srhb> ajmccluskey: I think so.
NightTra1n has joined #nixos
blankhart has quit [Ping timeout: 256 seconds]
<srhb> stammon: Okay, perhaps it will help with a minimal example
NightTra1n has left #nixos [#nixos]
NightTrain is now known as elevator_1
<stammon> well I already pasted a pastebin, but here is a nixpaste as well: http://nixpaste.lbr.uno/jQ-XY2i3?nix
elevator_1 has quit [Quit: leaving]
wchresta_ has quit [Ping timeout: 240 seconds]
radvendii has quit [Quit: WeeChat 2.0]
<srhb> stammon: Oh, I thought I sent you a link to a working minimal example.
lord| has quit [Quit: WeeChat 2.1]
<srhb> stammon: Anyway. There are several problems
<Myrl-saki> Who here uses nixops?
<srhb> stammon: in machinename.nix it should be config.host.hostname, not host.hostname
<srhb> Myrl-saki: By show of hands?
* srhb watches the crowd
<Myrl-saki> :P
<Xal> More binary packaging woes:
<Myrl-saki> How do I delete the resources of a nixops?
<Myrl-saki> myrl@myrl:~$ nixops delete
<Xal> can I "fake" the presence of /lib/ld-linux... ?
<Myrl-saki> error: cannot delete this deployment because it still has resources
<Myrl-saki> Xal: chrootenv?
<srhb> Myrl-saki: I think it's called destroy. Be wary, it really does.
<Xal> Myrl-saki: thank you! couldn't figure out what to google
<Myrl-saki> I wrote `nixops destroy` thinking that it'll display a help menu uwu
<Myrl-saki> waiting for exclusive deployment lock...
<srhb> stammon: I don't think the double mkOptions make any sense
<srhb> stammon: It should basically just be host = { hostname = mkOption { ...
lord| has joined #nixos
disasm has quit [Ping timeout: 260 seconds]
erasmas has quit [Quit: leaving]
<srhb> stammon: That's.. It I think. If your imports really do work.
<Myrl-saki> srhb: Thanks!~
<zybell> Xal do you know that you can run ld-linux...as a command before the prog?
AluisioASG has quit [Ping timeout: 255 seconds]
Sonarpulse has quit [Ping timeout: 268 seconds]
<Myrl-saki> Xal: I'm not so sure how well it works bw.
<Myrl-saki> btw
<Xal> zybell: normally I would use patchelf, but this situation is a little unconventional
norfumpit has quit [Ping timeout: 256 seconds]
<srhb> Myrl-saki: Welcome :)
swflint has quit [Ping timeout: 240 seconds]
<Xal> the program is creating an executable in memory, and it expects that the linker be available at /lib64/...
<Xal> patching the binary is also not really an option
tertle||eltret has joined #nixos
<zybell> Do `/path/to/ld-linux... /path/of/program args` and you will see
norfumpit has joined #nixos
xy2_ has quit [Ping timeout: 240 seconds]
swflint has joined #nixos
<Xal> zybell: the program itself is statically linked
AluisioASG has joined #nixos
<srhb> Xal: Sounds like it might be time for buildFHSEnv
<Xal> yep!
<zybell> or symlink lib64 to /proc/self/fd/6
<zybell> the you can point it wherever you want
<zybell> *then
<zybell> by prog 6</erstatz/lib64 args
swflint has quit [Ping timeout: 255 seconds]
norfumpit has quit [Ping timeout: 240 seconds]
<zybell> *ersatz
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AluisioASG has quit [Ping timeout: 256 seconds]
<zybell> grrrm!
<clever> Xal: what exactly is the program? upx?
<Myrl-saki> Nixops deploy cannot SSH to root on my EC2 machine. Got any idea?
<zybell> password or pubkey?
<clever> Myrl-saki: are you able to ssh to it normally?
<Myrl-saki> clever: I don't think so either. I tried from my computer and thorugh another VPS.
<Myrl-saki> zybell: How would I know?
<Myrl-saki> Er
<Myrl-saki> How to know?
<Xal> clever: IDA freeware
<Myrl-saki> english is hard
<clever> Xal: check to see what happens if you run `upx -d` on the binary
jrolfs_ has joined #nixos
<clever> Myrl-saki: nixops -d deployment ssh host -v
<clever> nixops blindly passes all params after the hostname to ssh, so you can feed ssh a -v
<zybell> Do you have a pubkey set up or do you want to login by password?
<Xal> clever: yeah it isn't packaged with upx
<Xal> upx -d fails
<Myrl-saki> zybell: How is the pubkey set up? Using the accessKeyId, or?
<clever> Xal: a few options i can see, libredirect, find out how it is packet, or buildFHSEnv
<clever> Myrl-saki: if nixops created the ec2 instance, it auto-configures a keypair
<Myrl-saki> clever: Right.
<clever> and you must not change the keypair name in the deployment files
<clever> or nixops just stops using it
<Xal> clever: it uses an installer that has a few prompts, is there some way I could script it with `expect` or something?
<Xal> a command-line prompt, not a gui one
<clever> Xal: probably, ive not done it though
xcmw has joined #nixos
<Xal> actually there might be an unattended install mode
<Myrl-saki> clever: replacing temporary host key...
<Myrl-saki> ssh_exchange_identification: read: Connection reset by peer
<Myrl-saki> could not connect to ‘root@54.179.190.54’, retrying in 1 seconds...
<zybell> Xal echo?
<Myrl-saki> `nixops destroy` works though, FWIW.
<zybell> (echo yes;echo IAccept;...)|install
<Xal> it's got one of those silly probably-not-legal eulas
<Myrl-saki> clever: Also, the machine itself gets deployed.
<clever> Myrl-saki: is the keypair setup in the deployment file?
<clever> Myrl-saki: resources.ec2KeyPairs.edgekey = { inherit region accessKeyId; }; or similar
<Myrl-saki> clever: Yes.
<clever> it should just work then
<clever> check the console output on the ec2 instance, nixops has a cmd for that
Mateon3 has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<stammon> srhb: I finally found my error. Thanks for pointing out my mistakes. My actual error which I had caused all my headache was not present in the minimal example.
<srhb> stammon: Oh, typical. :) Great that you found it.
<stammon> I made the imports statement dependant of the variable I was passing around
<srhb> Fun!
daveo has quit [Ping timeout: 256 seconds]
<srhb> Infinite recursion is tricky business.
<stammon> yes I got that infinite recursion error and was thinking that I have something wrong with mkOption
<stammon> thats why I tried to change it in so many ways
<stammon> but the error was never there
<Myrl-saki> clever: No output.
<stammon> also I accidentaly built once my minimal homemanager configuration, which essentially deleted all the installed programs
<Myrl-saki> clever: "(not available")
<Myrl-saki> ...I don't know how brackets work, do I.
<stammon> can you explain me how exactly that infinite recursion happens?
<stammon> or point me to some ressource which explains how imports, options and config variables work
<clever> stammon: the value of pkgs passed to your module comes from config._module.args.pkgs
<Myrl-saki> clever: I think I found what happenned.
<Myrl-saki> You need to ensure that your EC2 security groups are set up to allow (at the very least) SSH traffic from your network. By default, NixOps uses the security group default. You can set the option deployment.ec2.securityGroups to use other security groups:
<clever> stammon: and nixos cant compute where _module.args comes from, until it has evaluated all of the imports
<clever> stammon: so imports can never refer to pkgs
<clever> Myrl-saki: that would do it
<stammon> thx that makes perfect sense
NightTrain has joined #nixos
acarrico has joined #nixos