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
rosa has joined #nixos
rosa has quit [Client Quit]
mahalel_1 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ericson2314 pushed to stdenv-arm-alias « stdenv: Put back isArm, with deprecation notice. »: https://git.io/vpKKc
mahalel_ has joined #nixos
<leary`> day|flip: write a derivation for the theme so that nix can place the files for you.
rosa has joined #nixos
<day|flip> make a nix file to tell nix to copy theme file to "environment.pathsToLink = [ path/to/app/themes ]" is set?
<{^_^}> [nixpkgs] @aszlig pushed 8 commits to master: https://git.io/vpKKS
<{^_^}> → 4de774a6 by @aszlig: nixos/dhparams: Add a VM test
<{^_^}> → 761266bd by @aszlig: nixos/dhparams: Turn params into a submodule
<{^_^}> → 3e11ff6e by @aszlig: nixos/dhparams: Introduce a 'stateful' option
wchresta_ has quit [Ping timeout: 264 seconds]
stumble has joined #nixos
rosa has quit [Client Quit]
stumble has quit [Client Quit]
<{^_^}> [nixpkgs] @aszlig merged pull request #39526 → nixos/dhparams: Introduce a 'stateful' option → https://git.io/vpCPj
stumble has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #40154 → stdenv: Put back isArm, with deprecation notice. → https://git.io/vpK6e
<leary`> day|flip: yes, though technically the files will only be copied to the nix store; they'll be symlinked to the path you want inside of /run/current-system/sw. I suggest you read the nix pills. 6 & 7 should suffice, though you may need to read earlier ones to understand them.
<day|flip> ok. thanks. i some time wonder when im running nixos. if im in over my head
chessai has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
rosa has joined #nixos
<simpson> day|flip: TBF you're doing a lot of cosmetic customization, and that kind of stuff tends to be ill-supported in distros. I remember similar pains with KDE3 on Gentoo a decade ago.
<day|flip> simpson: it all cool. im just trying to wrap my mind around stuff. the irc client im using is qt5. but only read theme from $out/share/themes and no such option to set a ThemeDir like sddm can
<simpson> day|flip: Bold. FWIW I gave up and learned the default key configs for a tiling WM. I use lightdm, I think, since we're not supposed to use slim anymore. I just don't really care about the decorations anymore.
kisik21 has quit [Ping timeout: 265 seconds]
fare__ has quit [Ping timeout: 260 seconds]
<day|flip> im find using sddm. don't care so much about lightdm due to its headache with its greeter options
rosa has quit [Quit: rosa]
<simpson> Just gotta memorize the key combinations~
<day|flip> im using awesome right now
<simpson> Yeah, that's what I've come to use.
<day|flip> im starting to switch to kitty for my new main terminal. don't care about its simi high ram used. some one that love to used st due to it how good it is.
fxr has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
silver_ has joined #nixos
jperras has joined #nixos
silver has quit [Ping timeout: 264 seconds]
joehh has joined #nixos
xcmw has joined #nixos
fxr has quit [Ping timeout: 248 seconds]
justan0theruser has joined #nixos
<{^_^}> [nixpkgs] @jtojnar opened pull request #40155 → GNOME Updates → https://git.io/vpKPK
muzzy has quit [Ping timeout: 265 seconds]
muzzy__ has quit [Ping timeout: 260 seconds]
muzzy_ has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 256 seconds]
ryantrinkle has quit [Ping timeout: 240 seconds]
<infinisil> The nix bot now doesn't display ugly escape codes when an error occurs :)
<infinisil> > x + 7%@
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):11:14
andreabedini has joined #nixos
chessai has quit [Ping timeout: 255 seconds]
silver_ has quit [Quit: rakede]
andersk has quit [Remote host closed the connection]
jgertm has quit [Ping timeout: 256 seconds]
andersk has joined #nixos
Sonarpulse has quit [Ping timeout: 265 seconds]
jrolfs_ has joined #nixos
joehh has quit [Ping timeout: 240 seconds]
ericsagnes has joined #nixos
MP2E has joined #nixos
chessai has joined #nixos
daig has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
markus1199 has joined #nixos
semilattice has joined #nixos
Supersonic112 is now known as Supersonic
<daig> Hi all! I'm not sure if this is the best place to ask, and I'm sure it's a dumb question, but I'm wondering the best way to modify nested attributes. For example, if I have
<daig> { a = { b = { c = 3; d = 4; }; e = { f = 5; }; }; }
<daig> and I want to modify c, is there anything better than just doing
<daig> x // {a = x.a // {b = x.a.b // {c = 10;};};}
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<daig> in haskell we have lens for immutable updates, which is quite heavyweight
markus1189 has quit [Ping timeout: 248 seconds]
mbrgm has quit [Ping timeout: 256 seconds]
mbrgm has joined #nixos
<maurer> ...you don't need lens for just doing an immutable update in haskell
<maurer> regular update syntax (old_record {replaced_key = replaced_value}) works just fine
<maurer> lens is just when you want to do something fancier
blankhart has quit [Remote host closed the connection]
<johnw> daig: that's a good question
<leary`> > pkgs.lib.recursiveUpdate { a = { b = { c = 3; d = 4; }; e = { f = 5; }; }; } { a.b.c = 10; }
<{^_^}> { a = <CODE>; }
<johnw> nice
<daig> leary: awesome, thanks!
indika_ is now known as indika
<daig> I didn't realize {a.b.c = 10;} was builtin syntax that worked like that
<johnw> yay, it works in hnix too :)
<{^_^}> [nixpkgs] @joelburget opened pull request #40158 → 1password init at version 0.4 → https://git.io/vpK1T
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<{^_^}> [nixpkgs] @Ekleog opened pull request #40159 → cargo-fuzz: init at 0.5.3 → https://git.io/vpK1q
nckx has joined #nixos
jackdk has joined #nixos
sir_guy_carleton has joined #nixos
muzzy has joined #nixos
muzzy_ has joined #nixos
muzzy__ has joined #nixos
rosa has joined #nixos
rosa has quit [Client Quit]
blum has joined #nixos
jgertm has joined #nixos
<blum> Hello. I just installed NixOS, and while it boots properly, I cannot login onto the tty since pressing enter after login prompt seems to be futile.
<blum> Any idea what could be happening? It just jumps to a new line, and eventually seems to hang my whole system.
<Myrl-saki> blum: Stupid question, but is your enter key working?
<Myrl-saki> Oh wait. It jumps to a new line.
<blum> I would assume so. It works in my installation environment, and also jumps to a new line when I press it in the login prompt
<Myrl-saki> blum: Just for reference, how old is the machine?
<Myrl-saki> Or new.
<blum> Pretty new.
<blum> It is a relatively recent laptop.
<blum> Early 2017, maybe?
<clever> blum: which user are you trying to login as?
<blum> root
<clever> and you gave it a root pw when nixos-install was done?
<clever> what about non-ascii characters in the password?
<blum> Yes, I did set the password when prompted to.
jtojnar has quit [Read error: Connection reset by peer]
<Myrl-saki> blum: By "jumps to a new line," do you mean that after `login:`, there's no `password:` or, after inputting your password, it jumps to a new line and hangs?
<blum> I used no non-ascii characters just in case, or at least that was my intention
<blum> Attempted nixos-install twice, but the result is the same.
<blum> No "password:" ever appears, but I can keep writing on the new li,e and even add more new lines
<blum> It seems to hang after a while
<blum> Not sure if related, but the fans seem to be about to lift off like a jet when on the login prompt. This does not happen in the install environment.
daig has quit [Ping timeout: 260 seconds]
<blum> Heard it may have something to do with conflicting nvidia and intel drivers, so I blacklisted i915, to no avail.
<blum> Could it be an xserver thing?
<clever> is xserver enabled in configuration.nix?
<blum> Yes
<blum> Should I try to disable it?
<clever> try turning it off and see what effect it has
<blum> Alrighto
<day|flip> fb?
<blum> Maybe it's a dumb question, but can I just nixos-rebuild from the installation environment rather than nixos-install?
LysergicDreams has quit [Ping timeout: 260 seconds]
<clever> blum: the nixos-install command just runs nixos-rebuild in a chroot
LysergicDreams has joined #nixos
<blum> Makes sense
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<Myrl-saki> clever: Is there a way to interactively... interact with a module?
<Myrl-saki> clever: Say, `nixos-rebuild` will prompt for a password.
<clever> Myrl-saki: not really
<clever> Myrl-saki: though you could maybe use builtins.exec and friends to do abnormal things
<Myrl-saki> clever: Would private files(if? when? supported) be a good bet for declarative passwords?
<clever> maybe
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
chrisbarrett has joined #nixos
<blum> Mm, nixos-install doesn't recognize --chroot, even though the manual references it
<blum> Is it normal?
sgillespie has joined #nixos
<clever> blum: it was renamed to a seperate tool, nixos-enter
<sgillespie> Any way I can get nix-shell to get me into a zsh shell instead of bash?
<clever> sgillespie: nix-shell --run zsh maybe?
Xal_ is now known as Xal
<blum> clever: Ah, nice. Will try it if I have to log into the installation environment again
<blum> Hopefully I don't have to lol.
<clever> blum: and also you need to use `nixos-rebuild boot` when inside the chroot
<mightybyte> Is there a way to make "nix copy --all" continue when it encounters a corrupted path?
<clever> switch wont work right
<mightybyte> I'm trying to copy but it's bailing out on a corrupted path every 30 seconds or so.
<clever> mightybyte: all i can think of is to `nix-store --delete` or `nix-store --repair-path` the corrupted element
blankhart has joined #nixos
<mightybyte> It won't let me delete them because it says they're active.
<mightybyte> I'm using --repair-path, but this is really tedious.
<clever> mightybyte: nix-store --query --roots will tell you why its in use
<blum> clever Myrl-saki: Just disabled a bunch of random things in configuration.nix and now it works. Possibly xserver's doing.
<clever> blum: you can now try turning things back on, and use the generations in grub to revert those changes, then inspect the logs in journalctl
<blum> Nnnice.
<blum> Considering the fans were going crazy, I am going to assume it was something about the GPU drivers.
<sgillespie> Looks like it worked
<sgillespie> Thanks
<blum> Does nouveau get installed by default, or does it use something else?
<clever> blum: run this: `nixos-option services.xserver.videoDrivers`
<clever> blum: and also check `lsmod | grep nv`
<clever> though that might be tricky when its hung
<blum> lsmod reports nvme, but that's bot
<blum> *not it
<blum> nixos-option seems not to list nouveau
stumble has quit [Quit: Leaving]
<blum> So I guess there is my problem lol
<clever> ive got [ "amdgpu" ] for my videoDrivers, with a radeon R7 card
<blum> Got "ati", "cirrus", "intel", "vesa", "vmware" and "modesetting" on my end.
<clever> thats the default value
<blum> Yep
<blum> Will try setting nouveau
<mightybyte> How does the nix store get into a state where it tells me "skipping suspicious writable file"?
<clever> mightybyte: nothing in /nix/store/ should be writable
<mightybyte> Well apparently I have a ton of writable things.
<clever> but that can be a result of unfinished builds
<mightybyte> I'm running "nix-store --optimise" and it's giving me a ton of those messages.
<clever> or the store not being mounted right and somebody went on a chmod spree
<clever> does it say which files are writable?
<mightybyte> Well I've definitely never done that.
<blum> Will report back tomorrow with the results
<blum> Thanks a lot for the help!
muzzy__ has quit [Ping timeout: 240 seconds]
muzzy_ has quit [Ping timeout: 240 seconds]
<mightybyte> Yeah. A bunch of random files across a number of different packages.
<clever> can you paste 1 or 2 as examples?
muzzy has quit [Ping timeout: 268 seconds]
<mightybyte> openssl, aws-sdk-cpp, gnutar, CF-osx, curl, gettext, ...
<clever> that does sound odd
<clever> why are other paths coming up as corrupt and why are you trying to copy all?
<mightybyte> /nix/store/il23i84c7p1g307xv9qasazsgmm4lmkb-gettext-0.19.8/share/locale/pt/LC_MESSAGES/gettext-tools.mo
<mightybyte> I'm trying to copy all because my attempts to create a binary cache have so far completely failed.
<clever> what has failed so far?
<mightybyte> I've tried so many things. I corned shlevy at BayHac the other weekend and we still couldn't get it working.
<mightybyte> I've tried an S3 cache, nix-serve, serving static files, etc.
<clever> do you still have a nix-serve online and publicly accessible?
sgillespie has quit [Quit: leaving]
jtojnar has joined #nixos
<mightybyte> I switched to static files, but yeah. One problem was that things didn't seem to be getting signed.
<clever> try turning nix-serve back on, then give me the URL and a storepath
<mightybyte> And also that it didn't seem like the transitive closure of the package was being copied.
<mightybyte> ...which is why I decided to try the -all approach.
chessai has quit [Ping timeout: 276 seconds]
<elvishjerricco> mightybyte: Have you ever switched to multi-user Nix? I know you've been using Nix on macOS for a while, and the daemon wasn't always the default there
<mightybyte> elvishjerricco: I've been doing this on two newish macs that both have multi-user.
jtojnar has quit [Remote host closed the connection]
<clever> try turning nix-serve back on, then give me the URL and a storepath
<elvishjerricco> mightybyte: Hm. Alright then I have no idea :P
<{^_^}> [nixpkgs] @teto opened pull request #40160 → telnetd: init module → https://git.io/vpKDn
jtojnar has joined #nixos
<mightybyte> It actually seems to be nix 2.0 that may be causing some of these problems.
<clever> there is a signing bug between nix-serve and nix2.0
<elvishjerricco> mightybyte: So you can't even do something like `nix copy /nix/store/one-of-those-paths --to file://$(pwd)/foobar`?
fare__ has joined #nixos
<timclassic> Good evening.
<{^_^}> [nixpkgs] @jtojnar merged pull request #40155 → GNOME Updates → https://git.io/vpKPK
<{^_^}> [nixpkgs] @jtojnar pushed 19 commits to master: https://git.io/vpKDX
<{^_^}> → 3e7bcb69 by @jtojnar: meld: 3.18.0 → 3.18.1
<{^_^}> → 9ad901ae by @jtojnar: gnome3.bijiben: 3.28.1 → 3.28.2
<{^_^}> → 715adbfa by @jtojnar: evolution: 3.28.1 → 3.28.2
spwx has joined #nixos
chrisbar1 has joined #nixos
<spwx> hello, I am running nix on a non nix os base and am wondering how to switch channels back to stable?
rosa has joined #nixos
acarrico has quit [Ping timeout: 240 seconds]
<clever> spwx: nix-channel
<fearlessKim[m]> anyone on nixos unstable could share the output of `ls -l $(nix-store -q $(nix-instantiate '<nixpkgs>' -A iproute))/etc`. Mine is not readable by my user while it used to be :s
chrisbarrett has quit [Ping timeout: 260 seconds]
<spwx> clever: ok thanks you, but i was wondering what the name of the nixpkg stable channel was for none nixos users? i couldnt find it here: https://nixos.wiki/wiki/Nix_Channels
<clever> fearlessKim[m]: that command wont build the derivation, so it can point to paths that dont exist locally
<clever> spwx: nixos-18.03 is the name of the latest stable channel for nixos
<spwx> hmm ok thank you
<spwx> ill try it
drakonis has joined #nixos
<fearlessKim[m]> clever: I suppose most people have iproute and I wouldn't want to make people install they don't have so that ends up fine with me (though it wasn't on purpose)
<timclassic> (pardon this message, trying to fix up my synapse server which requires I send a message here)
<timclassic> (and this one)
<clever> fearlessKim[m]: if you change the -q to -r and run it on your own machine, what happens?
aarvar has quit [Quit: Leaving.]
rosa has quit [Quit: rosa]
<fearlessKim[m]> clever: nothing different, the output was already realized : drw-rw---- 2 root root 4096 1970-01-01 iproute2. previously "all" had read access too I've no idea why it changed, I haven't touched the package
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acarrico has joined #nixos
rosa has joined #nixos
<clever> fearlessKim[m]: nix doesnt allow unreadable files in the store, so that sounds like filesystem corruption
<clever> fearlessKim[m]: which FS are you using?
<fearlessKim[m]> clever: ext4
<clever> whens the last time you ran an fsck?
<leary`> Is there a simple, reliable way to detect that you're in a nix-shell? I want my prompt to draw differently so I don't mix them up with regular shells.
<clever> anything in /lost+found/ ?
<clever> leary`: $IN_NIX_SHELL
<leary`> Nice, cheers.
<fearlessKim[m]> clever: never ? nothing in /lost+found. It seems like I can't run the fsck because it's mounted (it's my main drive/partition). How can I force the fsck on reboot ?
rosa has quit [Client Quit]
<clacke[m]> I
<clever> fearlessKim[m]: if you boot with boot.debug1 added to the kernel params, it will drop you into a shell in the initrd
<clacke[m]> I'm trying to get Nix working on latest Ubuntu, and I can't for my life figure out how to make X startup run my .bash_profile
<clever> then you can run fsck there, and exit the shell to resume booting
<clacke[m]> tried .gnomerc and .Xsession
<teto1> It works well for me if anyone wanna merge https://github.com/NixOS/nixpkgs/pull/39142 (networkmanager hooks)
<clacke[m]> both used to work before, on e.g. Ubuntu-Gnome 16.04
<clacke[m]> Now on Ubuntu mainline 18.04
<clacke[m]> The point is that I want to put ~/.nix-profile/share in my XDG_DATA_DIRS
smichel has quit [Quit: smichel]
sir_guy_carleton has quit [Quit: leaving]
sir_guy_carleton has joined #nixos
<sir_guy_carleton> hello
jD91mZM2 has joined #nixos
rosa has joined #nixos
<jtojnar> clacke[m]: does not ubuntu use .profile by default?
blankhart has quit [Quit: WeeChat 1.9.1]
jrl has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 264 seconds]
jtojnar is now known as jtojnarZzZz
<sir_guy_carleton> does anybody know how the permanently set a monitor resolution in nix?
<jD91mZM2> sir_guy_carleton: services.xserver.xrandrHeads
jrl has joined #nixos
<sir_guy_carleton> yeah but i'm not sure how to configure it exactly
<jD91mZM2> sec I just got it working yesterday, lemme send
<sir_guy_carleton> i put the settings in monitorConfig, but it does seem to stick.
<jD91mZM2> You need to restart X sadly
<fearlessKim[m]> clever: arf I tried rebooting with boot.debug1 and I see the prompt askin for an interactive shell but for some reason the keyboard won't work, well nothing happens when I type. I tried shutdown -rF without success (seems like it was for sysinit). I tried setting fsck.mode=force on boot to no avail
<clever> fearlessKim[m]: ah, you need to add usb drivers to the initrd
<jD91mZM2> sir_guy_carleton: You could also do this by running `xrandr` scripts on startup, but I got some insane issues because of that yesterday so maybe not
<sir_guy_carleton> yeah, i am able to just run the commands in the console and it works fine, it's just not permanent.
<clever> fearlessKim[m]: if you re-run nixos-generate-config, i think it will update /etc/nixos/hardware-configuration.nix to include usb drivers
* clever heads off to bed
<sir_guy_carleton> what's a good pastebin service besides pastebin?
<vaibhavsagar> http://lpaste.net/
fare__ has quit [Ping timeout: 240 seconds]
<day|flip> hastebin.com
<vaibhavsagar> hmm, it seems down :(
<jD91mZM2> sir_guy_carleton: GitHub's good old gist :)
<fearlessKim[m]> clever: thanks for the tips I will try that good night
cransom has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
fare__ has joined #nixos
greymalkin has quit [Ping timeout: 240 seconds]
chrisbarrett has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
<sir_guy_carleton> http://termbin.com/moln : here's what i put in my console that works and what I put into my config file that didn't work
rosa has quit [Quit: rosa]
chrisbar1 has quit [Ping timeout: 240 seconds]
jD91mZM2 has quit [Ping timeout: 248 seconds]
jD91mZM2 has joined #nixos
stumble has joined #nixos
andreabedini has joined #nixos
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos
schoppenhauer has quit [Ping timeout: 260 seconds]
uptime has quit [Quit: SEGFAULT error:: SSL VERSION 12 Error: Unexpected error, SSL VERSION old enough for IRC but not greater than 13.03]
fare__ has quit [Ping timeout: 268 seconds]
schoppenhauer has joined #nixos
rosa has joined #nixos
sellout-1 has joined #nixos
sellout- has quit [Ping timeout: 268 seconds]
tertle||eltret has quit [Quit: Connection closed for inactivity]
<fearlessKim[m]> I have `boot.kernelModules = lib.mkMerge [ "kvm" ]` which triggers `The option value `boot.kernelModules` in `/home/teto/dotfiles/nixpkgs/configuration-lenovo.nix` is not a list.` . Shouldn't that work ?
day|flip has quit [Quit: Communi 3.5.0 - http://communi.github.com]
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #40161 → Use build packages GHC for haskell.packages.integer-simple → https://git.io/vpKSg
iqubic` has joined #nixos
muzzy has joined #nixos
muzzy_ has joined #nixos
muzzy__ has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
drakonis has quit [Read error: Connection reset by peer]
jperras has joined #nixos
fare__ has joined #nixos
semilattice has quit [Ping timeout: 276 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
nallar has joined #nixos
Ross has quit [Ping timeout: 268 seconds]
nallar is now known as Ross
jperras has quit [Ping timeout: 260 seconds]
rosa has quit [Quit: rosa]
<colemickens> I don't have any swapDevices listed, and I don't have any partitions of type linux swap, but yet `switch` is trying to activate a partition as swap.
<colemickens> However, I seem to recall something from during install that makes me not surprised by this.
<colemickens> But I don't remember what it is, or have any ideas where to look. Curious if anyone has suggestions?
rosa has joined #nixos
spwx has quit [Ping timeout: 260 seconds]
uptime has joined #nixos
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
fare__ has quit [Ping timeout: 240 seconds]
iqubic has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spear2 has quit [Remote host closed the connection]
aarvar has joined #nixos
andreabedini has joined #nixos
andreabedini has quit [Ping timeout: 268 seconds]
reinzelmann has joined #nixos
sir_guy_carleton has quit [Quit: Leaving]
orivej has quit [Ping timeout: 268 seconds]
reinzelmann has quit [Quit: Leaving]
rosa has quit [Quit: rosa]
LysergicDreams has quit [Ping timeout: 264 seconds]
reinzelmann has joined #nixos
reinzelmann has quit [Client Quit]
LysergicDreams has joined #nixos
andreabedini has joined #nixos
rosa has joined #nixos
reinzelmann has joined #nixos
rosa has quit [Client Quit]
<jD91mZM2> fearlessKim[m]: Sorry for the late reply, but why are you using mkMerge there?
rosa has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
andreabedini has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> jD91mZM2: in my configuration.nix
rauno has quit [Ping timeout: 240 seconds]
jgertm has quit [Ping timeout: 264 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/85a0cd915b1 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jD91mZM2> fearlessKim[m]: Yes, there. Why?
andreabedini has joined #nixos
rauno has joined #nixos
Guanin has quit [Ping timeout: 240 seconds]
chrisbarrett has quit [Ping timeout: 240 seconds]
rosa has quit [Quit: rosa]
<jD91mZM2> Interesting, my .profile is executed but my $PATH and $EDITOR are still set by NixOS
Guanin has joined #nixos
chrisbarrett has joined #nixos
chrisbarrett has quit [Ping timeout: 248 seconds]
Ariakenom has joined #nixos
<fearlessKim[m]> jD91mZM2: I was trying to merge some values but I gave up on it, in fact I believe my config/initramfs is fine but for some reason I can't type after boot.debug1
<fearlessKim[m]> My endgoal is to try to understand why `ls -l $(nix-store -r $(nix-instantiate '<nixpkgs>' -A iproute))/etc` returns `drw-rw---- 2 root root 4096 1970-01-01 iproute2` instead of sthg like (a+r) `drw-rw-r-- 2 root root 4096 1970-01-01 iproute2`. Clever said it might be an ext4 corruption so I tried to reboot with boot.debug1 but then the kernel (?) asks me to choose between 4 options and all of a sudden my keyboard
<fearlessKim[m]> stops typing
chrisbarrett has joined #nixos
jperras has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
<jD91mZM2> fearlessKim[m]: Oh ok. That's really odd
<fearlessKim[m]> i wonder if it's related to this error https://photos.app.goo.gl/tVXYdRMOr8R2JWkd2
<Aleksejs> Hi, after I upgraded to 18.03, built-in bluetooth fails to work (shows host down error) unless I "systemctl restart bluetooth". Is there any way to fix this?
chrisbarrett has quit [Ping timeout: 240 seconds]
rosa has joined #nixos
<jD91mZM2> Aleksejs: I assume you enabled bluetooth in configuration.nix?
<Aleksejs> sure
<jD91mZM2> Would be great to see any errors. `systemctl status bluetooth` before restarting
<Aleksejs> I forgot to mention that bluetooth fails to work after sleep/resume
<Aleksejs> it works at the restart
<angerman> nix fails to build perl properly for me. The Perl source also seems to contain a `Configure` file that looks like a more recent one than the one that should be in the source distribution. Subsequently the patch phase in nix fails...
<angerman> I don't undertand how that could possibly happen, as the hashes should ensure that the content is the same, no?
jacob has joined #nixos
jacob is now known as Guest79502
<Aleksejs> jD91mZM2: http://vpaste.net/lm4R5
Ariakenom has quit [Read error: Connection reset by peer]
rosa has quit [Quit: rosa]
rosa has joined #nixos
<jD91mZM2> Aleksejs: Awesome! That gives me something to google!
<jD91mZM2> Aleksejs: What configuration have you done so far?
dvim has quit [Quit: WeeChat 2.1]
rosa has quit [Client Quit]
<jD91mZM2> Aleksejs: Ok so this seems like a bug in bluez 5.48, which is what is in the 18.03 repo. Updating bluez to nixos-unstable (not sure how you'd do that since you're probably using the bluetooth service) should fix it
hamishmack has quit [Ping timeout: 264 seconds]
griff_ has joined #nixos
blahdodo has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @dotlambda merged pull request #38794 → brial: init at 1.2.3 → https://git.io/vxAJ0
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vpKdV
<{^_^}> → 8b5ecf91 by Timo Kaufmann: brial: init at 1.2.3
<{^_^}> → 6e6005c2 by @dotlambda: Merge pull request #38794 from timokau/brial-init
stumble has quit [Ping timeout: 240 seconds]
johann__ has joined #nixos
johann__ has quit [Client Quit]
hyper_ch2 has joined #nixos
leat has quit [Ping timeout: 260 seconds]
MercurialAlchemi has joined #nixos
<fearlessKim[m]> nix-store --verify --check-contents actually finds errors :s
blahdodo has joined #nixos
noefk has joined #nixos
<sphalerite_> fearlessKim[m]: you can add --repair, or run nix-store --repair-path on the individual broken paths
ZeDestructor has quit [Quit: o.O]
<fearlessKim[m]> sphalerite_: I did, it was faster than expected, it just finished
<sphalerite_> fearlessKim[m]: if you want to find out how the paths are broken, copy them to /tmp or something before repairing then diff them. It might just be a manifestation of a bug in nix 2.0.0 which was fixed in 2.0.1, where files got renamed to $originalname~nix~case~hack~1
<sphalerite_> fearlessKim[m]: also, for debug1 — try debug1devices instead, it's probably just because it hasn't initialised USB at that point
sphalerite_ is now known as sphalerite
periklis has joined #nixos
<fearlessKim[m]> sphalerite_: did you see the error on my picture https://photos.app.goo.gl/tVXYdRMOr8R2JWkd2 . Is that expected or could it be the reason ?
ZeDestructor has joined #nixos
jgertm has joined #nixos
<sphalerite> fearlessKim[m]: sorry I only have dillo on this laptop currently, can you give a driect link to the image or a page where the image is embedded directly rather than being loaded by javascript crap? >_>
Ariakenom has joined #nixos
<sphalerite> or just paste the error
rosa has joined #nixos
hotfuzz_ has joined #nixos
<sphalerite> afk for about 20min
hamishmack has joined #nixos
hotfuzz has quit [Ping timeout: 260 seconds]
rosa has quit [Client Quit]
<fearlessKim[m]> sphalerite: sure here it is https://image.ibb.co/gOMPin/nixos_error.jpg
Xal has quit [Ping timeout: 260 seconds]
jgertm has quit [Ping timeout: 265 seconds]
Xal has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #40159 → cargo-fuzz: init at 0.5.3 → https://git.io/vpK1q
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpKb4
<{^_^}> → 376c55fc by @Ekleog: cargo-fuzz: init at 0.5.3
<{^_^}> → b1c467ad by @Mic92: Merge pull request #40159 from Ekleog/cargo-fuzz-0.5.3
<Aleksejs> jD91mZM2: thanks for the link, I'll try to update bluez
Xal has quit [Ping timeout: 256 seconds]
<jD91mZM2> Is overriding a package used from a service something you can do without packageOverrides btw?
Xal has joined #nixos
<elvishjerricco> jD91mZM2: Depends on the service. Ultimately it just comes down to whether the writer of the nixos module thought to make the package configurable. Usually the option is named `services.<servicename>.package`.
<elvishjerricco> (and fwiw, use overlays instead of packageOverrides :p)
xAFFE has joined #nixos
<jD91mZM2> elvishjerricco: So for overriding `bluez` version, Aleksejs would have to use packageOverrides?
<jD91mZM2> No, overlays create a whole new package which means it wouldn't override the one used in the service (right?)
<elvishjerricco> jD91mZM2: Not sure about bluez. You can find out by checking https://nixos.org/nixos/options.html for a package option
<elvishjerricco> Overlays are strictly superior to packageOverrides.
<jD91mZM2> Of course they are, but you can't override with overlays
<jD91mZM2> Nope, no package option
<elvishjerricco> Why can't you override with overlays? It should be the exact same thing as packageOverrides but composed better. I use override all the time in overlays
<leary`> As far as I understand it, your overlay is modifying the global pkgs arbitrarily; adding, removing, replacing.
<leary`> If you use it in nixpkgs.overlays, anyway
<jD91mZM2> Oh okay
<sphalerite> jD91mZM2: yes you can override packages in overlays :) self: super: {hello = super.hello.override {foo = baz;};}
<tilpner> leary` - Hmm, how does removal work?
<elvishjerricco> null :P
<elvishjerricco> Not actually removal unfortunately, but often close enough
<tilpner> Will that leave an entry with value null in the final set, or will it be removed- oh
<jD91mZM2> I thought I tried replacing with overlays inside ~/.config/nixpkgs/overlays.nix, but I probably just remember incorrectly
<leary`> tilpner: I take that one back; I forget the overlays use //.
aw_ is now known as aw
<sphalerite> fearlessKim[m]: right, that message is normal if you use one of the debug1 options
<elvishjerricco> jD91mZM2: You have to specify overlays in configuration.nix with nixpkgs.overlays. It won't check your home directory stuff during nixos-rebuild I think
capisce has quit [Read error: Connection reset by peer]
<jD91mZM2> elvishjerricco: Well yeah I was using `nix-env`.
capisce has joined #nixos
<tilpner> elvishjerricco - It should, but "your home directory" might not be what you expect (sudo nixos-rebuild)
<elvishjerricco> Ah. Well then I'm not sure.
<jD91mZM2> I just remember incorrectly
johann__ has joined #nixos
<jD91mZM2> Aaaannywayyyy, how do I use Nix to get a perl module? I'm trying `nix-shell -p perlPackages.HTMLParser`, but `perl -e "use HTML::Entities"` still says "oh noes cant locate"
__Sander__ has joined #nixos
<sphalerite> jD91mZM2: you need to add perl to the list of packages. Also it seems that HTML::Entities isn't in HTMLParser
<sphalerite> nix-shell -p perl perlPackages.HTMLParser --run 'perl -e "use HTML::Parser;"'
<sphalerite> ^ works for me
<jD91mZM2> Oh, so it's kinda like pkgconfig. It won't update unless you also require itself
<tilpner> There is /nix/store/lsqhqpzgv7sqsw3gw1k1k1lp03gifrvi-perl-HTML-Parser-3.72/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi/HTML/Entities.pm
coot has joined #nixos
<sphalerite> err actually it does seem to work with Entities as well. Maybe I made a typo earlier.
<sphalerite> I did. I wrote Entitites.
muzzy has quit [Read error: Connection reset by peer]
muzzy_ has quit [Read error: Connection reset by peer]
muzzy__ has quit [Read error: Connection reset by peer]
<jD91mZM2> sphalerite: It does work, thanks!
<jD91mZM2> It's weird how it doesn't work if you exclude perl. Does it make some kind of wrapper around it?
thc202 has joined #nixos
johann__ has quit [Quit: Leaving.]
<sphalerite> jD91mZM2: it has a setup hook, which goes through all the buildInputs, checks if they contain a lib/perl5/site_perl dir, and if so add it to PERL5LIB
<jD91mZM2> sphalerite: Aha, nice. How comes I can still specify perl before the package? Does it prioritize packages first?
<sphalerite> the setup hook just goes through all the build inputs
<sphalerite> HTMLParser itself doesn't have a setup hook AFAIK
<jD91mZM2> Oh, right
<jD91mZM2> So if I were to do `nix-shell -p perlPackages.HTMLParser --run "nix-shell -p perl"` it wouldn't work?
<jD91mZM2> I was* (I always mess up was/were for I for some reason)
<sphalerite> I think I were is correct there :p but yeah, I think it wouldn't
<jD91mZM2> Wow english is confusing
<sphalerite> I'm not sure myself though!
<{^_^}> [nixpkgs] @Mic92 merged pull request #40158 → 1password init at version 0.4 → https://git.io/vpK1T
<{^_^}> [nixpkgs] @Mic92 pushed commit from @joelburget to master « 1password: init at version 0.4 (#40158) »: https://git.io/vpKxG
<jD91mZM2> sphalerite: Google seems to agree with you. Apparently it differs if it's a hypothetical scenario or not or something. Weird.
<jD91mZM2> omg 1password
<sphalerite> https://en.wiktionary.org/wiki/were I think it's the "simple imperfect subjunctive" case
<sphalerite> yeah
<sphalerite> eww proprietary :p
logzet has joined #nixos
<jD91mZM2> Yeah I don't use 1Password anymore, but it's nice seing something you recognize
jperras has joined #nixos
<sphalerite> haha
Arcaelyx has joined #nixos
<jD91mZM2> It was an OK piece of software (except faaar overpriced), but then they started pushing their new subscriptions way too much. I don't want to be locked out of every single account I've ever had if I forget to pay $2 a month lol
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to release-18.03: https://git.io/vpKx6
<{^_^}> → e8774350 by @vcunat: Merge branch 'release-18.03' into staging-18.03
<{^_^}> → 7979cb54 by @vcunat: utillinux: patch CVE-2018-7738 (upstream)
<{^_^}> → ff510fd8 by @LnL7: Merge #39979: llvm5: 5.0.1 -> 5.0.2
<sphalerite> I've been using keepassx, but want to switch to pass eventually
jperras has quit [Ping timeout: 260 seconds]
<Synthetica> Keepassxc is pretty good
x1n4u has quit [Quit: Bye]
<sphalerite> yay there's a dmenu script for pass
<etu> pass <3
<sphalerite> yeah I might use keepassxc for exporting the passwords
<etu> sphalerite: pass otp is nice, and browserpass :)
<etu> browserpass supports pass-otp nowadays as well
<sphalerite> is pass-otp unlocked using OTPs, or.>?
<etu> Nah
<sphalerite> it generates them
<sphalerite> ?
<etu> It's for storing otp secrets and gives you the six digit codes
<sphalerite> right
<etu> It can also "export" the secret to a qr-code so you can import it to phones and such easily
<sphalerite> I don't use that many services which have an OTP auth option :/
<etu> I have changed all my TOTP's to have pass as main storage, and some of them that I need on the go from time to time I have imported to my phone.
shad has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
vaninwagen has joined #nixos
<etu> sphalerite: github? :)
coot has quit [Quit: coot]
<sphalerite> oh yeah, I should probably activate it there. I never actually log in anyway
<sphalerite> clang takes long to build :(
<jD91mZM2> Can `pass` even take a master password or is it using the GPG keys?
<jD91mZM2> What if you lose it?
<etu> jD91mZM2: It's using GPG only
<elvishjerricco> jD91mZM2: If you lose your gpg keys I think you're screwed.
<sphalerite> jD91mZM2: backup copies of the gpg keys :)
<etu> jD91mZM2: Don't do that :D
<elvishjerricco> Other than that pass is amazing
<elvishjerricco> Love such simple things that work so well
<etu> I have my gpg-key on a yubikey, and backups of the private key in secure locations.
<sphalerite> ^ same
<etu> So I bring the key to the computer I need, and have a way to restore it if I loose it :)
<jD91mZM2> Ok so how do you change your passphrase? You can't change an existing encrypted GPG key can you?
<elvishjerricco> How do you guys synchronize pass between machines? I'm just using it's git integration with a private server, but I'm curious if there are better ways
<etu> elvishjerricco: git
<sphalerite> jD91mZM2: you can change the passphrase on an encrypted gpg key
<etu> jD91mZM2: You can also tell pass to use more than one gpg-key so you can encrypt all the files to more than one key. Which is handy if you have two different ones that should have access :)
<sphalerite> that's just a matter of decrypting and re-encrypting with a different one
<sphalerite> etu: ooooooh
<elvishjerricco> Yea IIUC, gpg's master password actually just a good secret key encrypted with the master password, right?
<etu> sphalerite: Just add another key on a new line to your .gpg-id file, and reencrypt all the files. Then it will use two keys for that directory :)
<etu> elvishjerricco: yeah
<elvishjerricco> etu: Is it possible to encrypt certain subsets of passwords with different sets of gpg keys?
<jD91mZM2> TIL about `gpg(2) --edit-key`
<etu> elvishjerricco: yes, you specify which key that should be used by creating a file called .gpg-id in the directory. Then that key will be used for the entire tree. But you can have sub-dirs and have different .gpg-id files in different directories.
<elvishjerricco> Oh sweet
shad has joined #nixos
<etu> And have several keys for one directory, but not for another. Say shared-work-secrets in one, and you can have all colleges gpg-keys in .gpg-id and pull that repo in as a git subtree or submodule or something :)
<elvishjerricco> Btw, if the gpg key is encrypted by a master password, then making the secret keys public is only as insecure as the master password, right?
<etu> Correct
olto has joined #nixos
<elvishjerricco> Awesome.
<jD91mZM2> How would you backup pass?
<etu> jD91mZM2: I have my encrypted files in a git-repo and have it on all my desktop-systems
<jD91mZM2> nvm ~/.password-store
<etu> Which gives me a backup in terms of the files existing in multiple locations :)
<jD91mZM2> Wait, if I store my gpg key in GNOME Keyring, do I never ever have to unlock my password?
<etu> The harder part to backup is the gpg-key, that you actually have to think about.
dvim has joined #nixos
<elvishjerricco> Yea what's the best way to backup the gpg key?
<jD91mZM2> etu: You seriously have all your passwords in a GitHub repo? lol
<etu> That I don't know. I use raw gpg with smartcard and attend to keysignings and such. Actually using it for emails and signing git commits etc.
<etu> jD91mZM2: Did I say github?
vcunat has joined #nixos
<jD91mZM2> no you didn't
<jD91mZM2> elvishjerricco: gpg2 --export --armor <user>, right?
LysergicDreams has quit [Ping timeout: 264 seconds]
<etu> jD91mZM2: I have them in a git-repo that isn't synced via github.
<jD91mZM2> etu: Ah, my bad
<elvishjerricco> jD91mZM2: I just meant the best place to back it up
<jD91mZM2> etu: When you said "backup" I assumed you had some kind of cloud sync
LysergicDreams has joined #nixos
<etu> elvishjerricco: USB-sticks or printouts in some kind of armored locker :p
<{^_^}> [nixpkgs] @vcunat pushed commit from @volth to release-18.03 « perlPackages.TypesSerialiser: init at 1.0 »: https://git.io/vpKht
<jD91mZM2> elvishjerricco: In dropbox perhaps? ¯\_(ツ)_/¯
rosa has joined #nixos
<etu> jD91mZM2: Offline is prefered for your gpg-key :p
<jD91mZM2> oh?
<jD91mZM2> How would "pass" be used with a phone btw?
<etu> I don't. But I know that people do. But that probably requires less security :p
<elvishjerricco> jD91mZM2: There's "Pass for iOS", which was frustratingly hard to search for in the App Store
<etu> I might be able to plug in my yubikey to my phone and use it, haven't tried that :p
<sphalerite> etu: do you know if the fancy NFC ones allow PGP via NFC? That would be cool
<elvishjerricco> You have to briefly expose keys at a secret url or send them armor encrypted somehow. I don't use it for generating keys though, since I don't think it uses pass for that
<etu> sphalerite: Yeah, but they don't allow keys bigger than 2048 iirc.
<jD91mZM2> Is it insecure to use the same GPG key for signing commits on GitHub and pass?
<elvishjerricco> The QT GUI for pass had a nasty bug where it only generated 1000 possible chains of passwords because it didn't delegate to passs....
<sphalerite> etu: aww
<sphalerite> jD91mZM2: not particularly. Although not doing so does mean that if your github signing key is compromised your password database isn't and vice versa.
<etu> jD91mZM2: No, you expose your public key ID. Nothing else. And as long you trust that nobody can guess your private key from your public key, it's fine. But to avoid that you should have a key that is "long enough".
<elvishjerricco> sphalerite: Can't you use subkeys to make that less of a problem?
<steveeJ> FWIW I use pass on linux and android for over a year, together with a yubikey neo. ping me for any questions on it
<sphalerite> elvishjerricco: oh yeah
<etu> steveeJ: cool! :)
<etu> elvishjerricco: yeah, you can
x1n4u has joined #nixos
redfish64 has quit [Remote host closed the connection]
<sphalerite> steveeJ: do you also use it for SSH? That's all I've really been using my yubikey for so far since getting it
<sphalerite> I never managed to get regular gpg and SSH working simultaneously :/
<steveeJ> sphalerit: yes
<etu> steveeJ: Would a usb-otg cable work with pass android?
<elvishjerricco> I tried using gpg-agent as my ssh auth sock thing. Turns out it doesn't handle ttys correctly so I threw it out. That was a let down
<etu> Since the neo doesn't support 4096-keys
<jD91mZM2> Can't pass be called automatically by scripts without any kind of prompt?
<steveeJ> etu: I had enough doubts not to try it, so I just use NFC
periklis has quit [Remote host closed the connection]
<steveeJ> jD91mZM2: yes, it can, browser plugins do that
<elvishjerricco> jD91mZM2: Thats a common problem among all agent auths though
<etu> I could have a separate key for pass that is shorter and encrypt my passwords for both :D
<steveeJ> jD91mZM2: but if the gpg-agent hasn't cached the PIN it will still popup a window for entering it
rosa has quit [Remote host closed the connection]
<jD91mZM2> I really need to step up my GPG game. I barely know anything about it apparently
<elvishjerricco> I'm guessing you can probably disable the agent if you're concerned about it
jackdk has quit [Ping timeout: 240 seconds]
<steveeJ> etu: yeah, I encrypt my pass database towards two keys too, but for different reasons
rauno has quit [Ping timeout: 276 seconds]
<steveeJ> etu: if you do that, make sure to postfix the key id with a '!', otherwise it won't select the specific subkey you requested
<sphalerite> elvishjerricco: doesn't gpg2 require the agent?
<elvishjerricco> sphalerite: did not know that. I was spitballing :P
<etu> steveeJ: Oh, you just do it with a shorter subkey?
<elvishjerricco> Why though? Seems like giving scripts access like that is a whole that some might want plugged
<etu> steveeJ: You can do that? :D
<elvishjerricco> Hole*
rosa has joined #nixos
<etu> jD91mZM2: GPG manual is horrible. And gpg UX when using the commandline utility is also horrible.
johann__ has joined #nixos
<etu> If you don't know what you're doing. You're lost.
<sphalerite> etu++
<{^_^}> etu's karma got increased to 3
<sphalerite> Reason why I haven't got gpg working for anything other than SSH auth yet.
chrisbarrett has joined #nixos
<steveeJ> etu: I have two yubikeys, one for backup purposes. I have two different subkeys, one for each yubikey, and my pass db is encrypted towards both
<jD91mZM2> sphalerite: Woah, you can use GPG for SSH auth?
<etu> steveeJ: Nice :)
<sphalerite> jD91mZM2: yep
<etu> jD91mZM2: yes, you can have a yubikey with a gpg-key as ssh-key. So you can have a physical ssh-key :)
<steveeJ> etu: it doesn't work nicely for email encryption though, because by default everyone encrypts towards one of your keys only
<etu> I see
<etu> I have to dig into this some day!
Guanin has quit [Ping timeout: 260 seconds]
<jD91mZM2> I think I'll keep using KeePassXC though. I really like having everything in one file, being able to store extra metadata, and not have the names of my services leaked
<etu> steveeJ: I'm guessing that you have a 4096-key as your main key and then a subkey that is 2048 for pass?
<etu> jD91mZM2: pass tomb can solve that part for you :p
<steveeJ> etu: right
<sphalerite> etu: some of the models support 4096-bit keys
Guanin has joined #nixos
<etu> I think, haven't tried that plugin though.
<etu> sphalerite: Not the NFC ones.
<jD91mZM2> etu: Not the metadata part though? I can't store a note or something, right?
<etu> (last time I've checked at least)
<sphalerite> oh right
<etu> jD91mZM2: It's a text file when you decrypt it
<sphalerite> when do we get ECC yubikeys
<etu> jD91mZM2: The rule is that you have the password on the first line
<{^_^}> [nixpkgs] @ysndr opened pull request #40163 → atom: fix git integration → https://git.io/vpKjD
<vaibhavsagar> is anyone running nixos on an odroid-hc1?
<jD91mZM2> etu: Oh. So to separate my password from my metadata I need to show it in my terminal and copy-paste?
<etu> jD91mZM2: Then you can have whatever you want. Browserpass use the format: "login: username-of-site" for storing username in the passfile
<jD91mZM2> nvm -c only copies the first line
<etu> yeah
stumble has joined #nixos
<steveeJ> jD91mZM2: there's also the utility 'passmenu' which is handy
<etu> And browserpass can fill username and password fields for you without showing you the password
<jD91mZM2> jeez there are a lot of extensions
<jD91mZM2> I might have to give pass a try D:
<etu> sphalerite: That would be cool
<etu> sphalerite++
<{^_^}> sphalerite's karma got increased to 2
<elvishjerricco> While we seem to have some gpg experts here... is it possible to work around the tty issues with using gpg for ssh auth?
<jD91mZM2> export GPG_TTY=$(tty)?
<sphalerite> elvishjerricco: `gpg-connect-agent updatestartuptty /bye` iirc
<sphalerite> just running that before trying to auth
<elvishjerricco> sphalerite: But you'd have to do that every time you try to auth to be sure...
<sphalerite> elvishjerricco: yyyyep :/
<elvishjerricco> There's no way to just have it ask on stdin?
* etu haven't used gpg for ssh yet
<sphalerite> Of course what would be best is setting it to tty2 or whatever, then switching to that tty to auth so you know there isn't something logging your pin :D
<steveeJ> elvishjerricco: I had a workaround in place before using home-manager's gpg-agent service, which worked out of the box without any workarounds: https://github.com/rycee/home-manager/blob/master/modules/services/gpg-agent.nix#L110
<sphalerite> steveeJ: but won't that go wrong if you open two terminals then try to use it in the first one?
<elvishjerricco> Yea that's what I'm worried about
<sphalerite> you could put it in your shell prompt x)
TonyTheLion has joined #nixos
<elvishjerricco> Beautiful :P
<sphalerite> although that still wouldn't cover it properly
<steveeJ> sphalerit: why would it? SSH_AUTH_SOCK points to a socket, that never changes
blum has quit [Quit: blum]
<steveeJ> the path is /run/user/1000/gnupg/S.gpg-agent.ssh
<elvishjerricco> steveeJ: It'll have the tty wrong
<sphalerite> steveeJ: yes, but if you open two terminals it will try to ask for a PIN on the second one even if you're using it on the first one
<elvishjerricco> The agent only knows to ask on the tty it was spawned in
<steveeJ> sphalerit: that never happened for me. the gpg-agent which starts up during my xsession caches the PIN
<joko> gpg-agent caches properly for me, too
<sphalerite> sure it caches, but the first entry can go wrong
<steveeJ> it's important to unset SSH_AGENT_PID
<elvishjerricco> The caching isn't the problem. It's the prompting
<elvishjerricco> What does that do?
periklis has joined #nixos
<steveeJ> elvishjerricco: AFAIU if that's set then ssh will try to talk to that instead of the gpg-agent
<joko> https://git.joko.gr/joko/etc-nixos/src/master/modules/x11.nix#L71 have a look on my displayManager.sessionCommands
<steveeJ> sphalerit: I don't know, I actually never had the prompting issue. even my browser plugin can unlock and then the terminal won't ask again
<steveeJ> joko: interesting, I never used GPG_TTY
<joko> The only problem I have with my Yubikey is after suspend, I have to eject it and re-plug it in so that it works
rosa has quit [Quit: rosa]
<elvishjerricco> joko: Looks like you're still setting the tty. I'm guessing if gpg prompted you on another session, like an ssh session, it'd prompt you on the wrong one
<{^_^}> [nixpkgs] @Mic92 merged pull request #40147 → bluemix-cli: init at 0.6.6 → https://git.io/vpKzt
<{^_^}> [nixpkgs] @Mic92 pushed commit from @tazjin to master « bluemix-cli: init at 0.6.6 (#40147) »: https://git.io/vp6vS
<sphalerite> I just use the graphical pinentry now, which works fine and never messes up any ttys x)
<joko> elvishjerricco: what do you mean? E.g. if I press Ctrl+Alt+F2?
<elvishjerricco> sphalerite: Meh. I do a lot of work from my laptop ssh'd into my desktop, where I remotely use stuff like pass and ssh. I can't have it asking for my password on the desktop monitor when I'm on my laptop
<sphalerite> fair enough
rosa has joined #nixos
<elvishjerricco> joko: I mean if you're not at the tty that you started the agent in, then you will not be prompted on your tty
<elvishjerricco> The prompt will appear on the other tty
<joko> elvishjerricco: that is correct, but I rarely leave X's tty
<elvishjerricco> Yea that's a dealbreaker for me :P
* sphalerite doesn't like when packages build on one machine but not on another
<joko> I get it now, you want to connect via SSH and use a GPG key from there
<elvishjerricco> joko: Yea. I do a lot over ssh
<sphalerite> oh yeah, another question for the yubikey users: I remember at one point I had signing working with it, and whenever I tried to sign something it would block and flash until I touched it to authorise the signature. Can I get it to do that for authentication?
betaboon has joined #nixos
<steveeJ> sphalerit: for signing it asks me for the PIN every time, no caching
<steveeJ> sphalerit: I have it on "Signature PIN ....: forced"
<sphalerite> I'd prefer for it to cache the pin, but require me to touch the key
stumble has quit [Ping timeout: 260 seconds]
<steveeJ> sphalerit: you're on your own with that :-D
<sphalerite> aww x)
<sphalerite> oh, there's a #yubikey channel. Maybe I should ask them.
* jD91mZM2 has no idea what a yubikey is
<silver_hook> Do I see this right that kdepim-addons are referenced as where the sources are located, but don’t have any package that actually builds them?
<sphalerite> jD91mZM2: a magical trinket that can do crypto stuff
<sphalerite> silver_hook: probably. That's certainly the case for some other KDE applications
Tehnix1 has joined #nixos
<etu> jD91mZM2: A smartcard that you plug in on USB that you can store your private gpg-key on :)
<etu> jD91mZM2: And it does encryption, so the key can't ever leave the yubikey.
johann__1 has joined #nixos
<jD91mZM2> Is it worth looking into/buying/whatever?
<colemickens> what automation exists around checking github for releases, checking for things newer than the current revision, updating the hash, sending a PR. Are there existing examples? Even if I have to do it per-package, I'm going to setup Hydra anyway...
<jD91mZM2> Isn't it safer (well, less secure, but you wouldn't wanna risk losing all your passwords) to store the encrypted GPG key on dropbox?
<srhb> colemickens: Ask ryantm :)
zybell has quit [Ping timeout: 260 seconds]
<sphalerite> jD91mZM2: it depends on how paranoid you are. They're not super cheap
<sphalerite> jD91mZM2: no, it's not, because it can be copied from dropbox
<sphalerite> you can't copy a key out of a yubikey
jtojnarZzZz has quit [Read error: Connection reset by peer]
Tehnix has quit [Read error: Connection reset by peer]
johann__ has quit [Ping timeout: 260 seconds]
<jD91mZM2> I mean safer as in you don't risk losing your passwords
<colemickens> srhb: oh boy, this is a lot! thanks for the tip
<sphalerite> oh, yeah
<jD91mZM2> Less secure, but then again as long as your master password is good you're fine... right?
jtojnarZzZz has joined #nixos
<etu> jD91mZM2: The yubikey only give you a certain number of times you can try to enter your PIN. And if you enter it wrong it will lock it self and require the admin-pin. Then if that is entered wrong it will wipe itself.
<sphalerite> jD91mZM2: well the yubikey is secure even against the encryption algorithm used to encrypt your key being cracked
<etu> jD91mZM2: And that's why you have your backup :-)
markus1199 has quit [Ping timeout: 240 seconds]
brodul has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « Revert "Merge #39979: llvm5: 5.0.1 -> 5.0.2" »: https://git.io/vp6UQ
<srhb> colemickens: I don't know the details, but hopefully it's a starting point.
rosa has quit [Quit: rosa]
brodul has joined #nixos
rosa has joined #nixos
<sphalerite> jD91mZM2: it can also do OTPs
<{^_^}> [nixpkgs] @vcunat pushed 26 commits to staging-18.03: https://git.io/vp6Ub
<{^_^}> → 39d212d4 by @winniequinn: vscode: 1.21.1 -> 1.22.1
<{^_^}> → debe6649 by @smashedtoatoms: vscode: 1.22.1 -> 1.22.2
<{^_^}> → 92296a77 by @ambrop72: vscode-with-extensions: Move to vscode dir
<jD91mZM2> Alright, I see. It's like a physical encrypted optionally 2FAd password basically?
<sphalerite> no
<sphalerite> it's a little crypto processor that you can send data to and get it back signed, or send encrypted stuff to and get it back decrypted, without the computer that's talking to it ever touching the key
<jD91mZM2> o ok
<sphalerite> by "doing OTPs" I mean it can *generate* OTPs
<etu> YubiKey 4 sadly stopped being open source, so if you want one that support 4096rsa that is open source and open hardware there's another one called nitrokey.
<sphalerite> oh really? Crap
<etu> But the durability when it comes to build quality and form factor of the yubikeys, it's amazing.
<sphalerite> Didn't even realise that :(
<etu> sphalerite: Same for me, after I bought mine :/
<sphalerite> so I've been using proprietary software all this time? D:
<etu> sphalerite: Not if you ask RMS since you can't flash it :p
<colemickens> I figure I'm not important enough for the government to blow their Yubikey backdoor. As long as that's true, the Yubikey's are just too tough.
<colemickens> They're hard to destroy, even intentionally.
<etu> Yeah, build quality is amazing.
<etu> Can handle water and everything
<srhb> But why is there no 4096 bit one that I can use with my android as well. q_q
<steveeJ> wow, these automatic updates are really getting lots of things done: https://github.com/NixOS/nixpkgs/pulls?page=1&q=author%3Ar-ryantm&utf8=%E2%9C%93
<srhb> steveeJ: Yep, it's really good.
<steveeJ> ryantm++
<{^_^}> ryantm's karma got increased to 1
<sphalerite> oooh nitrokey HSM supports ECC!
<steveeJ> srhb: I want one of these :-D
<srhb> steveeJ: Now we just need automatic merges from ofborg and we'll have much less maintainer member overhead. :)
chrisbarrett has quit [Quit: chrisbarrett]
zybell has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jD91mZM2> How do you use nix-shell with unstable?
<etu> It's default?
<jD91mZM2> I'm using 18.03 by default
<sphalerite> jD91mZM2: nix-shell -I nixpkgs=channel:nixos-unstable
<etu> jD91mZM2: oh, I see :)
<sphalerite> naturally, in this case "channel" means "channel from nixos.org", not "user channel"
<sphalerite> >_>
<{^_^}> error: syntax error, unexpected ')', at (string):11:11
<jD91mZM2> sphalerite++
<{^_^}> sphalerite's karma got increased to 3
<steveeJ> sphalerit: does it know the URL?
<etu> infinisil: >_> smiley triggers the bot :D
<silver_hook> sphalerite: Bah, is there a KDE packaging team in Nix?
<srhb> We need to impose a space after > like in lambdabot.
<srhb> My eyes bleed when people write expressions right after > anyway. :|
<sphalerite> steveeJ: yeah, channel:nixos-unstable is shorthand for https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz
<jD91mZM2> Wait how do you use `pass tomb`?
<jD91mZM2> It doesn't seem to realize the tomb plugin
<sphalerite> silver_hook: I don't think there's a team proper
<jD91mZM2> I'm running `nix-shell -p pass passExtensions.pass-tomb` btw
<sphalerite> I'm guessing it doens't have a shell hook for that stuff
<etu> jD91mZM2: In unstable recently you install pass like this: https://github.com/etu/nixconfig/blob/master/profiles/common-graphical.nix#L40
<jD91mZM2> etu: Oh
<silver_hook> sphalerite: Is there at least an unproper “team”? I mean, they seem to have some shortcuts of their own that are not well documented. And coordination on such a big chunk of packages would be a good idea.
s33se has quit [Quit: s33se]
<sphalerite> silver_hook: I think FRidh maintains most of the packages
<sphalerite> silver_hook: oh, there is actually a "kdepimteam"
<srhb> Since we're talking about passwords and encryption, are there any non-horrible browser password managers, preferably with integration with something non-browser-ish as its backend?
<silver_hook> I’d love to help with some of the small non-basic packages, but so far I’ve had little success with packaging KDE stuff.
<sphalerite> oh wait no I think it was ttuegel
<silver_hook> ttuegel AFAIK is also a KDE dev.
<sphalerite> yeah ttuegel is probably the best person to ping in a github issue or whatever
<sphalerite> vandenoever is the other person in the kdepimTeam
<silver_hook> Jos van den Oever He’s a KDE dev for sure :)
Arcaelyx has quit [Ping timeout: 255 seconds]
<silver_hook> …for Tuegel I’m not 100% sure
<sphalerite> ttuegel is definitely very involved with the kde packaging for nixos
<silver_hook> Anyway, I’ll try to ping them. Are they on IRC (or Matrix) often or not really?
Guanin has quit [Read error: Connection reset by peer]
<srhb> Never seen any of them actively on IRC fwiw
<silver_hook> OK, I’ll ping them otherwise then. Thanks :)
__Sander__ has quit [Ping timeout: 240 seconds]
rosa has quit [Quit: rosa]
<{^_^}> [nixpkgs] @Mic92 merged pull request #40056 → xmrig: 2.5.3 -> 2.6.1 → https://git.io/vprpb
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vp6tM
<{^_^}> → 2f467dd5 by R. RyanTM: xmrig: 2.5.3 -> 2.6.1
<{^_^}> → 4dc33d06 by @Mic92: Merge pull request #40056 from r-ryantm/auto-update/xmrig
<{^_^}> → c2b4cfbe by @Mic92: xmrig: restrict to x86
dadadus[m] has joined #nixos
rosa has joined #nixos
<sphalerite> oh pff the build failure for clang wasn't a proper hardware issue, it was an OOM >_>
<srhb> sphalerite: clang itself?
Guanin has joined #nixos
<srhb> (I've seen some weird memory issues with clang _as_ the builder)
rosa has quit [Client Quit]
<sphalerite> srhb: yeah clang itself. Just doesn't like building on 2GB of RAM
<sphalerite> at least not with 4 cores
rosa has joined #nixos
stumble has joined #nixos
cstrauss[m] has joined #nixos
nD5Xjz has joined #nixos
x1n4u has quit [Quit: Bye]
<jD91mZM2> etu: Woah, pass-otp is annoying
MP2E has quit [Remote host closed the connection]
<etu> jD91mZM2: Huh?
<jD91mZM2> etu: Since it takes otpauth uris
asuryawanshi has quit [Remote host closed the connection]
<etu> Yeah, entering it is a hassle. But when it's in place it's amazing. But it also got flags to make it easier.
seanparsons has quit [Read error: Connection reset by peer]
<etu> jD91mZM2: pass otp --help
asuryawanshi has joined #nixos
<etu> jD91mZM2: Shows you an insert command, which takes flags which may help you :)
<jD91mZM2> Ohhh, their README is outdate
<jD91mZM2> d
x1n4u has joined #nixos
<etu> jD91mZM2: In my pass-files I store metadata like: Answays to secret questions and such. Because my answays are usually randomized just like my password. It's not uncommon that sites password restrictions results in my secret questions being harder to guess than my password :p
<etu> jD91mZM2: Answers*
isHavvyGhosting has joined #nixos
<octe> secret questions are so stupid
stumble has quit [Ping timeout: 240 seconds]
<jD91mZM2> octe: Hey bro what's your mother's maiden name again? I was going to write it on her birthday card!
jperras has joined #nixos
rosa has quit [Quit: rosa]
<octe> it's 9d@5kcz9%_@RK),e4!@$d5mH&
<jD91mZM2> Woah, mine too! No way!
x1n4u has quit [Client Quit]
isHavvy has quit [Ping timeout: 265 seconds]
Guanin has quit [Ping timeout: 256 seconds]
<etu> octe: Yeah, that's why I use random strings :p
seanparsons has joined #nixos
rosa has joined #nixos
x1n4u has joined #nixos
jperras has quit [Ping timeout: 276 seconds]
<jD91mZM2> etu: Why specify issuer and account in OTP anyway?
<{^_^}> [nixpkgs] @akru opened pull request #40166 → yrd: init at 0.5.3 → https://git.io/vp6Y6
rosa has quit [Client Quit]
Guanin has joined #nixos
<zybell> because OTP is calculated from that
<jD91mZM2> zybell: Ah. But TOTP isn't?
xy2_ has joined #nixos
<etu> yes
<jD91mZM2> Is that a yes as in "yes it is" or "correct"?
<etu> OTP in this context is probably TOTP
<{^_^}> [nixpkgs] @babariviere opened pull request #40167 → arangodb: Add arangodb as a NixOS service → https://git.io/vp6OG
<{^_^}> [nixpkgs] @brainrape opened pull request #40168 → idrisPackages.vdom: init at 0.6.0 → https://git.io/vp6Or
<{^_^}> [nixpkgs] @leenaars opened pull request #40169 → kcgi: init -> 0.10.5 → https://git.io/vp6Op
knupfer has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed 2 commits to master: https://git.io/vp63t
<{^_^}> → dace4813 by @aszlig: kdepim-addons: Add package expression
<{^_^}> → eb774f30 by @aszlig: akonadi-import-wizard: Add package expression
hotfuzz_ is now known as hotfuzz
<etu> jD91mZM2: They are valid for 30 seconds.
<etu> jD91mZM2: Just like in Google authenticator
Ross has quit [Ping timeout: 240 seconds]
<jD91mZM2> etu: Point is they're the same even though the issuer/account are different
__Sander__ has joined #nixos
klntsky has joined #nixos
<{^_^}> [nixpkgs] @srhb pushed to master « bluemix: Fix eval of maintainers »: https://git.io/vp63Q
stumble has joined #nixos
ihar has quit [Ping timeout: 256 seconds]
ihar has joined #nixos
coot has joined #nixos
Arcaelyx has joined #nixos
stumble has quit [Ping timeout: 268 seconds]
lonokhov has joined #nixos
Ross has joined #nixos
stumble has joined #nixos
logzet has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @tazjin opened pull request #40170 → kontemplate: 1.4.0 -> 1.5.0 → https://git.io/vp6Gm
simukis has joined #nixos
johann__1 has quit [Quit: Leaving.]
maingo has quit [Quit: Connection closed for inactivity]
<stumble> When I set sound.enable = true, I lose sound from the built-in speakers in my Macbook. With sound.enable = false everything's fine, so I don't have a problem ... except that I'd like to understand why this is. I am using alsa.
m0rphism has quit [Ping timeout: 260 seconds]
toby1851 has quit [Ping timeout: 240 seconds]
<goibhniu> hi stumble, I'd recommend: hardware.pulseaudio.enable = true
<Mic92_> *does not much
<{^_^}> [nixpkgs] @teto opened pull request #40171 → openntpd: make -s flag work → https://git.io/vp6GD
mojjo has joined #nixos
<stumble> guibhniu: Thanks. But pulseaudio is already working! What are these options for - to make it managed by systemd?
m0rphism has joined #nixos
<Mic92_> stumble: do you want a system-wide pulseaudio?
<stumble> I think I already have a system-wide pulseaudio. At least, pavucontrol works.
<Mic92_> no does not have to be.
<jD91mZM2> stumble: Did you add it to your package list or something?
<sphalerite> it defaults to being per-users
<stumble> spharelite: I see. Thanks.
<jD91mZM2> goibhniu: Interesting, apparently `hardware.pulseaudio.enable` sets `sound.enable = true` implicitly... So why does the default nixos config (the one generated by nixos-generate-config) have both?
<Mic92_> jD91mZM2: I added this.
<stumble> Everything works if I have sound.enable = true and hardware.pulseaudio.enable = true or if I have both those set to false, but not if I have the former true and the latter false.
<Mic92_> maybe this was not a good idea thouh.
<mojjo> hi! I'm having trouble to get the micorphone working on my nixos installation, audio works... I'm using alsa..
<stumble> jD91mZM2: right!
<stumble> Anyway, I'm much happier now that I understand at least partly.
<stumble> Any obvious advantages of having pulseaudio systemwide rather than per-user?
<Mic92_> sphalerite: could it be that pulseaudio already save sound states on its own?
<sphalerite> yeah sounds likely
<sphalerite> stumble: if you have multiple user sessions open at once, per-user pulseaudio will pause output for the inactive one when you switch. Other than that, I think it's mainly disadvantages. Not sure though
<stumble> sphalerite: thanks.
<jD91mZM2> goibhniu: Oh wait, it only sets `sound.enable = true;` implicitly on unstable. Right.
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/08aea7c3c6b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<stumble> jD91mZM2: ah!
<stumble> Then it all makes sense ... except that sound.enable isn't well documented, but at least the default state works for me.
<goibhniu> jD91mZM2: it makes sense that it would, since it requires ALSA
<{^_^}> [nixpkgs] @Mic92 merged pull request #40170 → kontemplate: 1.4.0 -> 1.5.0 → https://git.io/vp6Gm
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vp6ZB
<{^_^}> → a604fc6f by @tazjin: kontemplate: 1.4.0 -> 1.5.0
<{^_^}> → 9e968fb5 by @Mic92: Merge pull request #40170 from tazjin/kontemplate-v1.5.0
toby1851 has joined #nixos
<goibhniu> I guess the sound.enable option is good for people who don't like pulseaudio
rosa has joined #nixos
<stumble> goibhniu: Yes. Rather renamed if that's its main use though.
Ariakenom has quit [Ping timeout: 264 seconds]
Guanin has quit [Ping timeout: 240 seconds]
<jD91mZM2> I think it makes sense to keep the name since you can't really use pulseaudio without alsa (I think)
<{^_^}> [nix] @domenkozar opened pull request #2142 → Docker 2.0.1 → https://git.io/vp6Z1
<MichaelRaskin> but sound.enable just installs ALSA tools — modules are always there
<stumble> What it doesn't do is enable sound! I already had sound!
robstr has joined #nixos
<{^_^}> [nixpkgs] @scalavision opened pull request #40172 → singularity: 2.4.6 -> 2.5.1 → https://git.io/vp6Z5
<MichaelRaskin> (10 years later) «also, setting sound.enable = false throttles CPU to make sure fans don't create too much sound»
<goibhniu> lol
toby1851 has quit [Ping timeout: 256 seconds]
<Mic92_> MichaelRaskin: this is the nice thing about abstraction. You can change the implementation while semantics stay the same.
Ariakenom has joined #nixos
<MichaelRaskin> This is also the _not_ nice thing about abstraction: you are never sure how areas of responsibility are divided between notions
<mojjo> Mhh, when I enable pulseaudio the mic works but the sound not (opposite with alsa)... any hints for me?
<stumble> mojjo: what happens when you have the defaults (nothing enabled explicitly in configuration.nix)?
<etu> jD91mZM2: I see, well then. Then it's just the secret. The issuer and the other values can be nice to add anyways if you export it by qr to a phone or so so the phone gets a correct name of the entry :)
johann__ has joined #nixos
<goibhniu> mojjo: did you check with pavucontrol? It could be using a different audio interface (e.g. HDMI)
<goibhniu> (when pulseaudio is enabled)
jtojnar has joined #nixos
kyloren has joined #nixos
jtojnarZzZz has quit [Read error: Connection reset by peer]
leat has joined #nixos
c0ffee152 has joined #nixos
joehh has joined #nixos
rosa has quit [Quit: rosa]
coot has quit [Quit: coot]
<kyloren> hello, i get this error "error: attribute 'foo' missing, at (string):1:15" when using some expr "f {}.foo" but using let r = f {}; in r.foo works?
johann__ has quit [Quit: Leaving.]
<kyloren> ah nvm it needs to be parenthesized :)
mbrock has joined #nixos
<mbrock> I have foo.nix which evaluates to { foo = { x = drv1; y = drv2; }; }. First I run "nix build foo", and now I want to use "nix copy" to get drv1 and drv2 uploaded into a remote store...
<mbrock> (But my attempts just don't upload anything)
<mbrock> `nix copy -f foo.nix foo` is what I've been trying
<mbrock> it's not clear to me how Nix handles these "sets of derivations"
<mbrock> oh, I guess I do need to actually give store paths to nix copy
<globin> dtz: had to run when I created it and didn't notice I hadn't enabled it..
toby1851 has joined #nixos
<Synthetica> Nice, thanks :)
smichel has joined #nixos
toby1851 has quit [Ping timeout: 268 seconds]
tmaekawa has joined #nixos
smichel has quit [Remote host closed the connection]
smichel has joined #nixos
chimay has joined #nixos
toby1851 has joined #nixos
<Synthetica> globin: looks like it already broke: https://hydra.nixos.org/jobset/nixos/gcc-8#tabs-errors
<Synthetica> I think that can just be fixed in config?
<globin> Synthetica: naah looks fine
p_l has quit []
Dezgeg has quit [Ping timeout: 255 seconds]
p_l has joined #nixos
toby1851 has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
tilpner__ has joined #nixos
unkn has joined #nixos
jperras has joined #nixos
arianvp2 has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
nckx has joined #nixos
<arianvp2> I'm getting a really weird error
<arianvp2> "Illegal name: .drv"
<arianvp2> when using the following package: https://gist.github.com/arianvp/ce67e737606f9bc409c56afa7bce6b3a
<arianvp2> Anybody know what that could mean? as soon as I add that package to a buildInputs of another, I get that error
<{^_^}> [nixpkgs] @taku0 opened pull request #40173 → flashplayer: 29.0.0.140 -> 29.0.0.171 → https://git.io/vp6lv
<tilpner__> arianvp2: Set name = "something";
<arianvp2> ah
<arianvp2> what a totally absurd error message
<arianvp2> thanks :D
jperras has quit [Ping timeout: 256 seconds]
smichel has quit [Quit: smichel]
sir_guy_carleton has joined #nixos
griff_ has quit [Quit: griff_]
Dezgeg has joined #nixos
<kyloren> hello how do i depend on a shell.nix file
<sir_guy_carleton> is xmobar included with services.xserver.windowManager.xmonad.enableContribAndExtras, or do you have include them in services.xserver.windowManager.xmonad.extraPackages?
<arianvp2> xmobar is a standalone executable. Not a piece of code that xmonad will call
<arianvp2> so you'll have to put it in environment.systemPackages
<sir_guy_carleton> okay, thanks.
mojjo has left #nixos ["Killed buffer"]
mojjo has joined #nixos
<jD91mZM2> kyloren: (import ./shell.nix)?
johann__ has joined #nixos
c0ffee152 has quit [Quit: Lost terminal]
<sphalerite> I'm using a remote builder using the --builders option, but the jobs don't seem to be getting distributed evenly between the local and the remote machine. Anything I can change to make that happen?
tilpner__ has quit [Ping timeout: 260 seconds]
<sphalerite> Because there are 5 things building currently, and 4 of them are building locally with only 1 (that seems to be using only one of the four cores) running remotely
<mojjo> hi guys! Sorry, I had to leave some time ago.. Now I'm back.. still struggeling with a microphone issue on nixos.. With alsa the sound works and mic doesn't.. When I turn on pulsaudio.. it's the other way around.. Pavucontrol however says 'no cards available'.. Any suggestions?
<kyloren> jD91mZM2: i tried that but that doesn't extend the derivation of the first shell.nix
simukis has quit [Remote host closed the connection]
<jD91mZM2> kyloren: What code are you trying to run?
<kyloren> with (import ../shell.nix); stdenv.mkDerivation {name= "stuff"; buildInputs = [..]} where ../shell.nix contain similar thing
<goibhniu> mojjo: just to be clear, you enable pulseaudio, then reboot and pavucontrol says you have no cards available?
<mojjo> goibhniu: didn't reboot...
<kyloren> my goal is to produce a merged derivation
<goibhniu> mojjo: I don't *know* if a reboot is required, but I'd give it a shot.
<mojjo> goibhniu: alright... see you later..
<goibhniu> mojjo: I presume `pactl list` also gives you nothing?
<jD91mZM2> kyloren: try: with import ../shell.nix;
<{^_^}> [nixpkgs] @peterhoeg merged pull request #39921 → NetworkManager nixos: add noDns option → https://git.io/vp2fH
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/vp64D
<{^_^}> → 6c4c36fc by @jD91mZM2: NetworkManager: add noDns option
<{^_^}> → db920b5a by @peterhoeg: Merge pull request #39921 from jD91mZM2/nodns
<mojjo> goibhniu: which package do i need for pactl (don't have this command)
<kyloren> jD91mZM2: doesn't work
griff_ has joined #nixos
<jD91mZM2> kyloren: What exactly are you trying to do? Are you trying to override a variable inside shell.nix?
<kyloren> if i add (import ../shell.nix) to buildInputs it complains about src being not present
<goibhniu> mojjo: it's part of the pulseaudio package on my machine
<goibhniu> mojjo: so, you should have it if you enabled pulseaudio
<kyloren> jD91mZM2: no i want to add the other env as a dependency
<kyloren> the parent shell.nix sets some env variables and has additional dependencies
<kyloren> i want to inherit the derivation and extend the buildInputs
Rusty1_ has joined #nixos
sigmundv_ has joined #nixos
<jD91mZM2> kyloren: Ah, then you want buildInputs = [ (pkgs.callPackage ./shell.nix) ]
acarrico has joined #nixos
<kyloren> jD91mZM2: shell.nix isn't a function though
stumble has quit [Remote host closed the connection]
<mojjo> goibhniu: true, I have it. pactl gives me a lot
stumble has joined #nixos
<jD91mZM2> kyloren: No, but callPackage is
<goibhniu> mojjo: and pavucontrol is still empty?
<mojjo> yes
<goibhniu> and you rebooted?
<jD91mZM2> kyloren: Oh wait, add {} to the end of that. callPackage takes two arguments, my bad
<mojjo> no, I will do this now.
mojjo has quit [Remote host closed the connection]
<mbrock> "nix copy" seems to have its own kind of caching for what is and isn't on S3 and I don't see any mention of it even with -vvv :(((
<jD91mZM2> kyloren: buildInputs = [ (pkgs.callPackage ../shell.nix {}) ]
<mbrock> so many layers of cache problems I'm going mad
<kyloren> jD91mZM2: attempt to call something which is not a function but a set,
<jD91mZM2> kyloren: Please send a gist of the full output
<jD91mZM2> kyloren: Wait, my bad
<sphalerite> mbrock: `strace -e open` to the rescue? :p
mojjo has joined #nixos
<jD91mZM2> kyloren: buildInputs = [ (import ./shell.nix) ]
stumble has quit [Remote host closed the connection]
stumble- has joined #nixos
<kyloren> jD91mZM2: yes, that needs a src
<jD91mZM2> I forgot that shell.nix files usually imports nixpkgs by itself
<mojjo> goibhniu: back from the reboot... and now I have some stuff inside the pavucontrol
<mojjo> (but no sound yet)
<goibhniu> mojjo: very interesting!
<jD91mZM2> kyloren: It does? shell.nix code? output?
<goibhniu> mojjo: when you play some audio, check the interface that's being used in pavucontrol
<mojjo> goibhniu: works now
<kyloren> unpacking sources variable $src or $srcs should point to the source
<mojjo> muted ;-)
<goibhniu> cool :D
<sphalerite> kyloren: what are you trying to achieve exactly?
<sphalerite> what is your shell.nix and what is it you're trying to include it in?
<kyloren> ok , pleaase hold on while i create a paste :) sorry for making it harder
<mojjo> goibhniu: cool, recording works as well. mission complete. thx!
ericsagnes has quit [Ping timeout: 256 seconds]
smichel has joined #nixos
<kyloren> sphalerite: jD91mZM2 https://pastebin.com/HK8ufU9y
<kyloren> think of parent as some common dev environment
stumble- has quit [Quit: Leaving]
xcmw has quit [Ping timeout: 240 seconds]
<sphalerite> kyloren: since the parent shell.nix is a function, you need to call it. However, since all its arguments have defaults, you can just pass it {}
<sphalerite> try (import ../shell.nix {})
<kyloren> sphalerite: yeah that's not the issue, it needs a src for mkDerivation
<sphalerite> kyloren: oooh right, yeah, what that would do is build the shell.nix like any other derivation and add it to the buildInputs of the child one
<sphalerite> kyloren: you may want to look into mkShell.
waleee has joined #nixos
xcmw has joined #nixos
<jD91mZM2> kyloren: Do you want to make the shell.nix an actually dependency or do you just want to merge all the options into one final shell.nix?
<Synthetica> Ugh, does anyone elses spotify take up a full core?
<Synthetica> I'm not sure if it's a nixos issue or a spotify issue
<kyloren> just want to merge
<srhb> Synthetica: Try focusing and unfocusing the window :P
__monty__ has joined #nixos
<srhb> Synthetica: And stopping and starting the music!
<srhb> Synthetica: It's really weird.
<__monty__> Is there no pypy3 in nixpkgs?
<jD91mZM2> kyloren: Oh. Well then you could probably just say: (import ../shell.nix) // stdenv.mkDerivation {
johann__ has quit [Quit: Leaving.]
<jD91mZM2> `import` evaluates the file and the // operator merges the two objects
<kyloren> jD91mZM2: doesn't the 2nd buildInputs override the the parent one
<sphalerite> almost… since the imported thing evaluates to a derivation
<sphalerite> so that doesn't quite do the right thing either.
<kyloren> yeah i tried that first it does override
mojjo has left #nixos ["Killed buffer"]
<jD91mZM2> Ah crap. Does (import ./shell.nix).override { work?
<jD91mZM2> wait i'm an idiot, ignore that
<sphalerite> kyloren: basically composing nix-shells doesn't work very well. mkShell provides some basic functionality, but that's all there is really :/
<sphalerite> jD91mZM2: .override is provided by callPackage, maybe you're thinking of .overrideAttrs?
<jD91mZM2> sphalerite: Yeah but then again I forgot that that also overrides... it's literally in the name... I'm stupid
<sphalerite> In any case, yes, overrideAttrs would work as well. But be ugly and brittle, since you want to extend all the attrs rather than overriding them
<sphalerite> so you'd need to do .overrideAttrs (o: {buildInputs = o.buildInputs ++ [some other stuff];}) and similar
tmaekawa has quit [Quit: tmaekawa]
<kyloren> but i also would need inherit o; ?
Izorkin_ has joined #nixos
ryantrinkle has joined #nixos
Izorkin has quit [Ping timeout: 248 seconds]
<jD91mZM2> By the way, what's all of your opinions on having a separate /home partition? I mean, NixOS doesn't really have to be reinstalled ever, right?
<kyloren> ah it worked .overrideAttrs (o: {(inherit o); name= bar; buildInputs = o.buildInputs ++ [some other stuff];})
<kyloren> thanks guys :)
lord| has quit [Quit: WeeChat 2.1]
<kyloren> inherit (o); sorry ;p
<goibhniu> jD91mZM2: I wouldn't bother with a separate home partition personally
freeman42x]NixOS has joined #nixos
<MichaelRaskin> Reinstalling NixOS wouldn't actually damage /home on the same partition. But I would like /nix to be a bit faster and /home to be a bit more crash-resistant, and I would like overflows in /home and /nix to be separate issues
arianvp2 has quit [Quit: Page closed]
<mbrock> sphalerite: I think that doesn't show me much because the nix-daemon is doing everything
<mbrock> I also haven't been able to dig out the actual location of this secret cache from the C++ codebase, nor found anything in the .sqlite database in /nix/var/nix
<jD91mZM2> btw my hardware-configuration.nix is saying filesystem."/boot/EFI", but `df` shows "/boot". Have I borked something up?
silver has joined #nixos
<jD91mZM2> I used to always mount my EFI partition to /boot/efi, but I can't remember what I did with NixOS. I never did format it though.
<kyloren> if it boots, then it's probably fine
<{^_^}> [nixpkgs] @zimbatm merged pull request #39585 → bazel: 0.11.1 -> 0.12.0 → https://git.io/vplVI
<{^_^}> [nixpkgs] @zimbatm pushed commit from @benbarclay to master « bazel: 0.11.1 -> 0.12.0 (#39585) »: https://git.io/vp6uv
<jD91mZM2> kyloren: Good point. I have actually been getting a few issues with certain configurations, but then I just revert those and do something else. Not sure if that's caused by my boot being weird or the configs being such
TonyTheLion has quit [Quit: leaving]
<sphalerite> mbrock: strace -fe open -p $(pgrep nix-daemon) ?
coot has joined #nixos
<{^_^}> [nixpkgs] @abbradar merged pull request #39507 → dovecot2: added ssl_dh using security.dhparams → https://git.io/vpCqP
<{^_^}> [nixpkgs] @abbradar pushed commit from @qknight to master « dovecot2: added ssl_dh using security.dhparams »: https://git.io/vp6uP
<jD91mZM2> What would happen if I reformatted /boot and ran nixos-rebuild?
<sphalerite> jD91mZM2: nothing bad, unless you've got other OSes on there
<LnL> you loose your previous generations
<etu> Are you sure?
<sphalerite> LnL: surely not?
<jD91mZM2> /boot/loader does contain a bunch of generations.conf files
<jD91mZM2> but maybe those are regenerated as well?
<etu> I'm pretty sure they will be added as well
<LnL> oh, maybe...
<jD91mZM2> Should I try? :P
<etu> But honestly I've not tried :D
<jD91mZM2> Welp, here goes
<sphalerite> jD91mZM2: should be fine :)
<jD91mZM2> I don't need to leave the system, right?
<jD91mZM2> Nothing is using /boot so I can just unmount it, right?
<sphalerite> yeah
<jD91mZM2> "mkfs.fat: /dev/sda6 contains a mounted filesystem"
<jD91mZM2> ...but I unmounted /boot
<jD91mZM2> looks like it's being remounted immediately lol
Izorkin has joined #nixos
* mbrock considers just waiting for a week hoping the cache will be cleared by then, whereever it is
<jD91mZM2> If I go do this from my NixOS installation media, do I run nixos-install after? Will it only reinstall necessary things?
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
<jD91mZM2> What's the difference between nixos-install and nixos-rebuild?
Ben_______ has quit [Ping timeout: 260 seconds]
<sphalerite> nixos-install chroots
<sphalerite> and sets the root password
<jD91mZM2> So that's all? It's safe to use on an existing installation?
<sphalerite> yep
<sphalerite> I think there are some other minor differences
Izorkin_ has quit [Ping timeout: 256 seconds]
<jD91mZM2> I might try nixos-install --chroot --root /mnt and then nixos-rebuild
<sphalerite> but running nixos-install on an existing installation should be fine
<jD91mZM2> Anyway, I'll be back... hopefully
<jD91mZM2> baii
<sphalerite> nixos-install --chroot doesn't exist anymoee
<jD91mZM2> aw
<mbrock> maybe there's someone who really understands the binary cache mechanism whom I could pay a reasonable consulting rate for a walkthrough and troubleshooting session
jD91mZM2 has quit [Quit: WeeChat 2.0]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @abbradar pushed to master « wesnoth: unite with wesnoth-dev »: https://git.io/vp6g3
orivej has joined #nixos
<mbrock> YAY ok I'm happy again after locating /root/.cache/nix/binary-cache-v5.sqlite and deleting it
<sphalerite> mbrock: oh, it *was* that >_>
jperras has joined #nixos
<mbrock> yeah it's a bit of a nightmare when there's a secret local cache caching its own remote cache accesses (which go to a CDN with its own cache)
<mbrock> the root problem was that I needed to add signatures to the binary cache's archives, which doesn't change the filenames
<kyloren> ah this problem with nixos-unstable using older glibc and glibc breaking locale :) nice
<mbrock> it's basically this issue: https://github.com/NixOS/nix/issues/2035
<aminechikhaoui> mbrock: it's possible to set the ttl through options now, right ?
<aminechikhaoui> but it's only on master I think
jperras has quit [Ping timeout: 240 seconds]
jD91mZM2 has joined #nixos
Jackneilll has quit [Quit: Leaving]
<jD91mZM2> Ok so I couldn't actually run nixos-install because of the symlink (lol), but I could nixos-enter and nixos-rebuild --install-bootloader, and it worked, although it shouted at me for not having systemd since it was in a chroot
Neo-- has joined #nixos
navilan has joined #nixos
navilan has quit [Client Quit]
<etu> jD91mZM2: Did all your older generation get put back into place?
<etu> generations*
<jD91mZM2> etu: Ah yes, forgot to say. Seems like it!
<etu> Cool :)
<jD91mZM2> Btw I'm already up to 200. Barely used nixos for a week yet.
deepfire has quit [Ping timeout: 268 seconds]
<etu> You're doing too many generations man :D
<etu> my system is from almost a year ago, recently passed 110
<jD91mZM2> etu: Jesus christ wtf
<jD91mZM2> How in the world
<Taneb> I'm on about 7 but I do most stuff ad-hoc
ericsagnes has joined #nixos
<etu> jD91mZM2: I use more than one computer with a shared config, and commit stuff. And I'm currently at work and I don't do much changes to nix there. It's mostly git pull and nixos-rebuild switch --upgrade
<etu> And sometimes some debugging if something breaks since I'm on unstable :)
<jD91mZM2> Oh. I've sat and debugged X and my VPN killswitch. So maybe it's not surprising :^)
<etu> I also use "nixos-rebuild test" quite frequently when testing stuff
<jD91mZM2> probably a good idea honestly
fendor has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @ruuda opened pull request #40175 → squashfsTools: apply reproducibility patches → https://git.io/vp6an
deepfire has joined #nixos
<jD91mZM2> I always use switch for some reason. I guess when I first read about test I incorrectly got the impression that it overwrote my config with a previous generation if it crashed and ever since then I've avoided it... or something like that
<jD91mZM2> sphalerite: I assume you now understand why I hesitated to boot to a previous generation :^)
jperras has joined #nixos
<etu> Yeah, switch is pretty much "boot + test"
jperras_ has joined #nixos
jperras has quit [Read error: Connection reset by peer]
<jD91mZM2> Well I mean I couldn't run the game "Sonic Generations" on GNU/Linux so what was I supposed to do? I had to run something! /s
<jD91mZM2> NixOS Generations: The game
chimay has quit [Remote host closed the connection]
<srhb> jD91mZM2: You get extra nix points when you cross 1k generations
<{^_^}> [nixpkgs] @abbradar closed pull request #34930 → Fixes for extra flags handling in nixos-install → https://git.io/vAOoY
<srhb> jD91mZM2: And there's a weekly prize for most bytes gc'ed
<jD91mZM2> shrb: Woah, looking forward for winning that tomorrow /s
<jD91mZM2> to*
<srhb> :-)
<etu> srhb++
<{^_^}> srhb's karma got increased to 4
<jD91mZM2> srhb++
<{^_^}> srhb's karma got increased to 5
<jD91mZM2> etu++
<{^_^}> etu's karma got increased to 4
deepfire has quit [Ping timeout: 240 seconds]
kai_w has joined #nixos
chimay has joined #nixos
<srhb> jD91mZM2: can I ask, do you have a background in FP in other languages?
<jD91mZM2> FP?
<srhb> functional programming
<jD91mZM2> Oh, not really. Learned a bit of haskell thanks to xmonad and then one single project
<srhb> Okay. :)
<jD91mZM2> You?
<srhb> Yeah, Haskell before Nix.
<srhb> Gateway drug, in fact.
<disasm> what's a nix function to check if a list is empty?
<srhb> disasm: x: x == [] ? :P
<disasm> that works, lol :)
<makefu> Security Advisory: {^_^} is susceptible to karma manipulation via direct messages <-- infinisil
<srhb> :O
<tilpner> {^_^}++
<{^_^}> {^_^}'s karma got increased to 129
<etu> :O
<srhb> Quick, shut it down!
<{^_^}> [nixpkgs] @abbradar closed pull request #20688 → BItcoin and Electrum servers → https://git.io/v1fS9
owickstrom has joined #nixos
deepfire has joined #nixos
<jD91mZM2> jD91mZM2++
<{^_^}> jD91mZM2's karma got decreased to -1
<jD91mZM2> wait what, I just went down to -33 in DMs
<jD91mZM2> Is it per-channel?
kyloren has quit [Ping timeout: 260 seconds]
<makefu> it seems to be tracked per namespace (channel/dm)
<makefu> so you can ++ in another channel, but not via DM it seems
<MichaelRaskin> MiсhaelRaskin ++
<{^_^}> MiсhaelRaskin's karma got increased to 2
<MichaelRaskin> Looks global
<jD91mZM2> try sending {^_^}++ in DMs to the bot
<makefu> however my haskell-fu is too weak to see where the namespacing happens.
<jD91mZM2> me too thanks
<makefu> namespace for #nixos #bottest and #nixos-borg are in the same namespace
<jD91mZM2> Aaahh
deepfire has quit [Ping timeout: 264 seconds]
fare__ has joined #nixos
olto has quit [Quit: ZNC - https://znc.in]
griff_ has quit [Quit: griff_]
olto has joined #nixos
<infinisil> Sorry the code is a mess :P
tmaekawa has joined #nixos
<{^_^}> [nixpkgs] @abbradar closed pull request #35095 → openssh service: add recommendedCiphers option → https://git.io/vAlRg
<jD91mZM2> infinisil: That is NOT a mess. How dare you say that about your own code?
<{^_^}> [nixpkgs] @abbradar pushed 2 commits to master: https://git.io/vp6rn
<{^_^}> → 61a87491 by @abbradar: pacparser: init at 1.3.7
<{^_^}> → a08645e9 by @abbradar: nginx module: add upstream extraConfig
deepfire has joined #nixos
<jD91mZM2> You should see mine :^)
<infinisil> Heh, yeah I guess it could be worse
<simpson> jD91mZM2: Nobody should suffer the delusion that their code is good, nor that any other code is good. Most code is terrible.
<infinisil> Although, if you ignore the domain part, the plugins are surprisingly clean imo
<infinisil> Mostly
<simpson> IRC bots are always messy. There's a lot of HCI stuff to handle.
<simpson> Er, *human-computer interface.
<infinisil> HCI?
<infinisil> Ah
szicari has joined #nixos
<jD91mZM2> infinisil: Exactly. You know what I would do? I would put this whole thing in one file.
<waleee> infinisil: popularized by Apple as UX
<MichaelRaskin> simpson: there is a lot of code which is correct, and not by accident. It is usually good. People are bad at reading code, though.
<jD91mZM2> So don't call it a mess. Not yet :P
<infinisil> jD91mZM2: It was a single file a week ago, but it got too unmanageable
<jD91mZM2> infinisil: Oh, wow, your project is a week old and you're still maintaining it?
<jD91mZM2> Ok maybe I'm taking this joke too far. But you get the idea
<simpson> MichaelRaskin: Even correct code can be terrible~
<simpson> I see your point. I worry that folks never see mine.
tmaekawa has quit [Client Quit]
<infinisil> The first commit is even in 2017, I picked it up 2 more times since then!
<simpson> jD91mZM2: How's the saying go, "There are two phases to writing code: authorship and regret"
Jackneill has joined #nixos
<MichaelRaskin> I think some prince Siddhartha said something about alleviating that second part
<jD91mZM2> btw why does `fdisk -l` report a bunch of /dev/ram* devices? What are these? Why haven't I seen these before in arch etc?
<MichaelRaskin> simpson: I guess the scary point is that there are cases where — whatever author does — it is a lot of effort to find out if the code is correct only by accident
<dtz> lol @ still maintaining it
<dtz> xD
<infinisil> I'll port it to Idris and prove it being correct
nuncanada has quit [Remote host closed the connection]
<sphalerite> jD91mZM2: I haven't seen any such devices. Maybe you have discrete RAM or something lol
<infinisil> Assuming I get the spec right, the compiler is correct, yadayada
reinzelmann has quit [Quit: Leaving]
nuncanada2 has joined #nixos
<simpson> MichaelRaskin: Sure, and correctness proofs are only as good as the system which they're expressed in. Plenty of code has been correct-but-crashing.
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.17-rc3 -> 4.17-rc4 »: https://git.io/vp6o2
Tehnix has joined #nixos
<MichaelRaskin> simpson: correctness proofs are only as good as the original spec, which is usually not trivial to get right
periklis- has joined #nixos
chimay has quit [Ping timeout: 248 seconds]
<sphalerite> I've just gutted an old thinkpad. Any suggestions for things to do with the parts?
<MichaelRaskin> I ran an experiment on human subjects (combined with a part of a take-home exam)
fare__ is now known as Fare
<sphalerite> (really old thinkpad. A22m)
fendor_ has joined #nixos
andersk has quit [Read error: Connection reset by peer]
<simpson> MichaelRaskin: My favorite example is https://github.com/jwiegley/coq-pipes which took 2yrs and had to make some assumptions.
Tehnix1 has quit [Read error: Connection reset by peer]
<jD91mZM2> sphalerite: Interesting. Does `ls /dev/ram*` show anything?
<simpson> non-trivial indeed!
iqubic has quit [Read error: Connection reset by peer]
<infinisil> simpson: Whoa, interesting
<sphalerite> jD91mZM2: yeah I've got ram0 through ram15
periklis has quit [Ping timeout: 260 seconds]
<sphalerite> lsblk doesn't list them though
<MichaelRaskin> My example is that I asked students in a logic course to formalise a trivial algebraic statement about groups (from scratch — encoding all the axioms by hand) and a lot of submissions could be extended to prove «∀x: x=1» or something on that level
<jD91mZM2> sphalerite: Mine neither, only fdisk
<infinisil> MichaelRaskin: So it wasn't machine-checked?
<sphalerite> jD91mZM2: oh yeah, that does show them
fendor has quit [Ping timeout: 240 seconds]
andersk has joined #nixos
chimay_1 has joined #nixos
<simpson> MichaelRaskin: Yeah, I think that axiom choice is a tough thing to learn, and we *still* haven't come up with a really good solution for automatic proof search, just a few hacks that seem to go fast (SMT in particular, but also complete logic monads)
<simpson> Also almost nobody is working in the easy decideable logics, I feel. We always go for the hard stuff. I'm researching 'regular logic' right now and it's hard because it's relatively rare.
<MichaelRaskin> infinisil: but of course it was. They could check that their axioms formally imply their claims, they were even asked to do it before submission. _I_ visualised the graph of the auto-generated proof, pinpointed the key step and usually saw that it uncovers multiple problems with the axioms.
<MichaelRaskin> simpson: let's move to #nixos-chat
Zgrl__ has joined #nixos
nD5Xjz has quit [Ping timeout: 260 seconds]
<simpson> Oh! Sorry, I though we were already there. fau'u
<infinisil> MichaelRaskin: Ahh I see, I missed the part about them having to do the axioms too
ericnoan_ has quit [Ping timeout: 240 seconds]
<Zgrl__> Hello, i'm using nix for some pkg, what would be the best way to load the bin inside a systemd.service, what is the correct symlink that would be the last version of the bin ?
<sphalerite> Zgrl__: is this on a nixos system or other?
<Zgrl__> nope sphalerite CentOs
<sphalerite> then you'll probably want to either build the systemd service file with nix as well, or install the package into a profile and refer to that profile in the service file
nD5Xjz has joined #nixos
ericnoan has joined #nixos
erasmas has joined #nixos
<infinisil> Zgrl__: You could generate a systemd service file with nix and use that in your system
<sphalerite> Zgrl__: in the latter case, if you want to use the default profile, just have the service refer to /nix/var/nix/profiles/default/bin/<program>
xAFFE has left #nixos ["Error from remote client"]
<sphalerite> Zgrl__: otherwise, write an expression something like writeText "foo.service" ''[Install]\nWantedBy=multi-user.target\n[Service]\nExecStart=${foo}/bin/foo'' and build that, with a symlink, using something like nix build -f foo-service.nix -o /etc/systemd/system/foo.server
<sphalerite> s/server/service
<woffs> is nix capable of function composition, like Haskell does with the . operator?
<sphalerite> woffs: yes, but there's no infix operator for it
<LnL> not with an operator
asuryawanshi has quit [Ping timeout: 268 seconds]
<sphalerite> woffs: you can define it yourself though, using let compose = f: g: x: f (g x);
<infinisil> > compose = f: g: x: f (g x)
<{^_^}> compose defined
<infinisil> > compose (\x -> x + 1) (\x -> x * 2) 10
<{^_^}> error: syntax error, unexpected $undefined, at (string):12:18
<infinisil> > compose (x: x + 1) (x: x * 2) 10
<{^_^}> 21
<woffs> I wanted to beautify (builtins.concatLists (map builtins.fromJSON (map builtins.readFile [ ./file1 ./file2 ])))
waleee has quit [Quit: WeeChat 2.1]
<infinisil> Oh, I have an idea for that
<infinisil> It might be possible to define it such that you can do `compose concatLists (map fromJSON) (map readFile) [ ./file1 ./file2 ]`
<infinisil> Will experiment with it in #bottest to not spam here (but still show my flow)
Izorkin_ has joined #nixos
<woffs> interesting. thanks. but it's ok to stay with the nested map for now, for me
freeman42x[nix] has joined #nixos
Izorkin has quit [Ping timeout: 248 seconds]
<infinisil> > compose = let c = f: v: if builtins.isFunction v then c (x: f (v x)) else f v; in c lib.id
<{^_^}> compose defined
<infinisil> > compose (x: x + 100) (x: x * 3) (x: x - 1) 10
<{^_^}> 127
<infinisil> Very nice
<woffs> very haskellish
<woffs> go make a PR :-)
griff_ has joined #nixos
<infinisil> Heh maybe
<sphalerite> haskellish? Surely not..?
cryp2nomicon has joined #nixos
<infinisil> Yeah, this only works because of nix's dynamic typing
<infinisil> Not really like haskell at all :P
<woffs> ok
<jD91mZM2> So would say it's the reverse
<jD91mZM2> (please tell me somebody here got the reference)
* infinisil does not
<Zgrl__> thanks sphalerite, so i just use /nix/var/nix/profiles/per-user/myusername/profile/bin
<Zgrl__> it's normal that there is 2 profile folder ?
<sphalerite> Zgrl__: yes
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #40161 → Use build packages GHC for haskell.packages.integer-simple → https://git.io/vpKSg
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vp6PC
<{^_^}> → a33756a8 by @ElvishJerricco: Use build packages GHC for haskell.packages.integer-simple
<{^_^}> → f22bfb38 by @Ericson2314: Merge pull request #40161 from ElvishJerricco/ghc-build-packages-integer-simple
<sphalerite> Zgrl__: yes, if you make changes to your profile it'll keep the old version around for rollbacks
<sphalerite> Zgrl__: you can use nix-env --list-generations to show the generations and nix-env --delete-generations to delete them, after which you can't roll back anymore
<Zgrl__> Wow so powerfull thanks a lot !
<{^_^}> [nixpkgs] @matthewbauer pushed 474 commits to staging: https://git.io/vp6PK
<{^_^}> → 9e11e4ba by @volth: go_1_{9,10}: disable TestVariousDeadlines test
<{^_^}> → 8a77a0ae by @volth: go_1_{9,10}: disable TestWritevError test
<{^_^}> → add9f5cf by @k0ral: gmrender-resurrect: init
tmaekawa has joined #nixos
xcmw has joined #nixos
tmaekawa has quit [Client Quit]
deepfire has quit [Ping timeout: 260 seconds]
\\\\\\\\\\\ has quit [Quit: WeeChat 2.1]
dbmikus__ has joined #nixos
deepfire has joined #nixos
MercurialAlchemi has quit [Ping timeout: 256 seconds]
jgertm has joined #nixos
<infinisil> Now, this might be a bit controversial, but here we go:
<infinisil> > random = lib.mod (1103515245 * builtins.currentTime + 12345) 4294967296
<{^_^}> random defined
<sphalerite> lol
<infinisil> >randomUpto = x: builtins.div (random * x) 4294967296
<{^_^}> randomUpto defined
<infinisil> > select = list: lib.elemAt list (randomUpto (lib.length list))
<{^_^}> select defined
<sphalerite> is it just me or is the netboot initramfs creation a lot slower than it needs to be, because it gzip -9s an already-compressed squashfs image?
joehh has quit [Ping timeout: 248 seconds]
<infinisil> > greet = select ["Hello there!" "What's up?" "Hi!" "How are you"]
<{^_^}> greet defined
<infinisil> > greet
<{^_^}> "How are you"
<infinisil> > greet
<{^_^}> "Hello there!"
<infinisil> \o/
<sphalerite> >greet
<{^_^}> "How are you"
<sphalerite> >greet
<{^_^}> "Hello there!"
<hyper_ch2> hi
<sphalerite> >greet
<{^_^}> "Hi!"
<sphalerite> infinisil: rate limit? x)
<infinisil> sphalerite: That might be something worth considering
<sphalerite> infinisil: well apparently it's already rate-limited enough that it didn't output the same greeting each time there
<sphalerite> idk if that's on the IRC side or because nix is so slow
<infinisil> Most likely the latter
<LnL> infinisil: did you reply to my question about building stuff? I forgot
<infinisil> LnL: I think I missed it, what was it?
<hyper_ch2> why doesn't it trigger for "hi"
<infinisil> hyper_ch2: Only listens to the > prefix
<hyper_ch2> but nobody ever uses that prefix when saying "hi"
<LnL> infinisil: I hope that doesn't work, unless you're ok with people starting something like a chromium build on your machine :p
<infinisil> Well it's not supposed to trigger by accident
<infinisil> LnL: Ah yeah, it just does a nix evaluation, no building
<hyper_ch2> if you write a rule that it triggers on "hi" then it's no accident
<infinisil> LnL: nix-instantiate --eval
<LnL> isn't it a repl?
<LnL> > :b (import <nixpkgs> {}).hello
<{^_^}> Unknown command: b
<LnL> ah :)
<infinisil> LnL: It's not a `nix repl` or `nix-repl`, it's my own repl, backed by nix-instantiate
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/08aea7c3c6b (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
jb55 has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
Guanin has joined #nixos
xcmw has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 240 seconds]
doyougnu has joined #nixos
<LnL> and --read-write-mode is off by default now so that's probably also fine
<LnL> does it truncate the output?
endformationage has joined #nixos
dbmikus has joined #nixos
dbmikus__ has quit [Ping timeout: 250 seconds]
<infinisil> LnL: and output is transformed here: https://github.com/Infinisil/nixbot/blob/master/src/NixEval.hs#L201-L202
dhess has quit [Ping timeout: 240 seconds]
dhess has joined #nixos
<LnL> ah ok
<infinisil> I previously tried to pipe it into nix-repl, but got pretty poor results
rsa has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
isHavvyGhosting has quit [Ping timeout: 276 seconds]
civodul has joined #nixos
kai_w has quit [Quit: kai_w]
aarvar has quit [Ping timeout: 264 seconds]
leat has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @emmanuelrosa opened pull request #40176 → gnucash: restore version 2.4 → https://git.io/vp6Hs
Fare has quit [Quit: Leaving]
jperras_ has quit [Quit: WeeChat 2.1]
vaninwagen has quit [Ping timeout: 260 seconds]
logzet has joined #nixos
mkoenig has quit [Quit: Lost terminal]
mkoenig has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 4 commits to master: https://git.io/vp6Q9
<{^_^}> → 26e961c1 by @peti: hackage-packages.nix: automatic Haskell package set update
<{^_^}> → 277ca33b by @peti: LTS Haskell 11.8
<{^_^}> → c5338e5a by @peti: haskell-gi: remember the URL to the PR that explains why the override is necessary
halfbit has joined #nixos
<halfbit> services.cassandra seems to be unknown
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 has joined #nixos
<halfbit> according to nixos-rebuild, but I look in nixpkgs/nixos/modules/services/databases/cassandra.nix and it looks like it should be?
<halfbit> any ideas on how to figure that out
Ariakenom has joined #nixos
<jD91mZM2> halfbit: Might not be pushed to stable yet
<halfbit> its in 18.04
<halfbit> *18.03
<halfbit> in the tagged repo
Mateon3 is now known as Mateon1
<halfbit> I'm using 18.03 as well, in case thats not clear
<jD91mZM2> Ok that's definitely weird
<jD91mZM2> Welp on my system `nixos-option` agrees - no such thing
<jD91mZM2> Is it possible that this is unfree or propietary software?
<halfbit> its not in the module-list.nix
<halfbit> does that matter
<halfbit> seems like that might matter
<jD91mZM2> Yeah that could be it
<halfbit> well what the hell
<jD91mZM2> You might want to open a GitHub issue
<mightybyte> Is there anything like builtins.filterSource that uses the contents of .gitignore to decide what to filter?
<sphalerite> mightybyte: no, because there's no shell glob implementation in nix. Although that's a prime candidate for use of shlevy's plugin mechanism AFAIK
<mightybyte> It would be really nice to have that
Izorkin has joined #nixos
<halfbit> how can I have nix use a local nixpkgs clone again
<halfbit> ah nvm
<halfbit> -I
chimay_1 has quit [Quit: WeeChat 2.1]
<halfbit> I'll just try it and create a PR if it works
Izorkin_ has quit [Ping timeout: 246 seconds]
dbmikus has quit [Ping timeout: 256 seconds]
jperras has joined #nixos
ramses_ has joined #nixos
cstrauss[m] has left #nixos ["User left"]
<ramses_> When upgrading to 18.03 from 17.09, `nixos-rebuild switch --upgrade` finishes with "error(s) occurred while switching to the new configuration" but no error is been shown. Is this a known thing? Should I be worried?
maingo has joined #nixos
<Synthetica> On that note, can I remove the `system.stateVersion` line from my config if I'm on unstable? Will that do anything?
<drakonis> ^ its not a good idea i guess
<ramses_> Hold on, I found the error now, it says "Failed to start NetworkManager-wait-online.service: Unit NetworkManager.service not found."
<srhb> Synthetica: Never unless the release notes tell you otherwise.
jgertm has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #40179 → mesa: 17.3.9 -> 18.0.3 → https://git.io/vp6FA
ramses_ has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @dtzWill opened pull request #40180 → texlive-bin: fix build by using updated poppler patch → https://git.io/vp6bn
sigmundv_ has quit [Quit: Leaving]
humanoyd has joined #nixos
doyougnu has quit [Ping timeout: 246 seconds]
rihards has joined #nixos
coot has quit [Quit: coot]
dbmikus_ has joined #nixos
ryantrinkle has quit [Ping timeout: 276 seconds]
<jD91mZM2> Uhhh how do I depend on a python package in buildInputs?
shabius has quit [Quit: Leaving]
<jD91mZM2> Using `nix-shell -p python pythonPackages.X` works, but using `buildInputs = [ python, pythonPackages.X ];` doesn't seem to
<{^_^}> [nixpkgs] @fpletz pushed 4 commits to release-18.03: https://git.io/vp6NN
<{^_^}> → 042cd6ec by @taku0: oraclejdk: add version 10
<{^_^}> → 5d7d0842 by @matthewbauer: openjdk: get rid of warning
<{^_^}> → 58c56a84 by @taku0: oraclejdk: 10 -> 10.0.1
<jD91mZM2> Note: I'm trying to use it from the installPhase. Maybe buildInputs doesn't reach there?
<{^_^}> [nixpkgs] @dtzWill closed pull request #40180 → texlive-bin: fix build by using updated poppler patch → https://git.io/vp6bn
<jD91mZM2> Ok yeah so python buildInputs don't work at runtime
<jD91mZM2> oh noes
shabius has joined #nixos
<Synthetica> jD91mZM2: propagatedBuildInputs?
<jD91mZM2> I tried there too, but I noticed that I might have done it incorrectly. Hold on
<jD91mZM2> yeah no didn't work :(
<globin> or (python3.withPackages (ps: with ps [ numpy ]))
<simpson> Do you have more detail?
<globin> depends on what you want to achieve
<jD91mZM2> I'm trying to build a nix expression for a script which depends on dbus-python
owickstrom has quit [Read error: Connection reset by peer]
<simpson> Okay. Could you pastebin your current expression?
<jD91mZM2> sec
<jD91mZM2> ok nvm I got it
<jD91mZM2> turns out I was an idiot and set PYTHONPATH in a wrapper script
* jD91mZM2 does a facepalm at self
<yorick> we're seeing "acquiring/releasing lock: Resource deadlock avoided" on nix 1d974. anyone else?
<yorick> (build fails with that)
asuryawanshi has joined #nixos
xcmw has joined #nixos
cryp2nomicon has quit [Quit: leaving]
lonokhov has quit [Quit: WeeChat 2.0]
<halfbit> whats a nixos guys gotta do to get a curses.h around here
<halfbit> nix-env -i ncurses doesn't give me squat
<elvishjerricco> !libraries
<yorick> halfbit: ncurses.dev
<elvishjerricco> hm how do you do that again?
<halfbit> is that new that I need a .dev there for stuff?
<halfbit> I don't remember needing that for openssl or anything else
<yorick> halfbit: it mostly works
<simpson> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
drakonis has quit [Remote host closed the connection]
<halfbit> what about forcing a specific gcc
<halfbit> which gcc shows 7.3, my default.nix for nix-shell has 6
szicari has quit [Quit: szicari]
<simpson> `gcc7Stdenv` will get you a GCC 7 stdenv.
<halfbit> I get that, but this particular project seems to barf with gcc 7
<halfbit> so I had gcc6 in my buildInputs
Zgrl__ is now known as Zgrl__afk
<halfbit> but its still going for the gcc 7.3.0 binary
<simpson> Oh, hm. Yeah, there's a way to do that but I don't remember it offhand. Time to go to the manual.
szicari has joined #nixos
jperras has quit [Ping timeout: 246 seconds]
<halfbit> let me know what you find
<halfbit> I looked, I couldn't find it
jgertm has joined #nixos
jperras has joined #nixos
<halfbit> I feel like this is because I'm using stdenv
<halfbit> stdenv.mkDerivation
<simpson> That's what you're supposed to do.
<johnw> simpson: I think I did finally work out how to avoid making those assumptions
<simpson> So, I found this incantation, `overrideCC gccStdenv gcc6`, which on Linux gets me a stdenv that theoretically should be using GCC 6.
<halfbit> simpson: where'd you find that at
<simpson> So you could say `let stdenv = pkgs.overrideCC pkgs.gccStdenv pkgs.gcc6 in ...`
<simpson> halfbit: I read my local nixpkgs.
<simpson> johnw: Nice.
<halfbit> simpson: the periods make me read what your saying in a snarky tone, not sure if thats the intention or not
griff_ has quit [Quit: griff_]
<hodapp> less snarky than if it ends with a wink emoticon for no clear reason ;)
dhess has quit [Ping timeout: 255 seconds]
dhess has joined #nixos
ajp has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 256 seconds]
<srhb> I read (...) as (this bit omitted)
<srhb> I vote to use … for snark.
ajp has joined #nixos
<hodapp> I am not sure those are the periods referenced
<halfbit> simpson: appreciate you finding that bit for me though, I dig in nixpkgs here and there when I have to
<halfbit> not that familiar with it
<halfbit> trying to not be
<simpson> halfbit: I'm not sure what you mean. With `let ... in ...` I am merely indicating that there is more code that could be there, but has been omitted since it isn't immediately relevant. I could use the Unicode ellipsis … but not everybody has it in their fonts.
<halfbit> simpson: wasn't talking about the ..., was talking about the . at the end of each thing you say
<__monty__> Don't stop doing it, simpson, us puncuation addicts need to stick together.
<simpson> halfbit: I speak, type, and think in complete sentences. I can't turn it off easily. If it makes you feel better, I don't really feel like I speak English; I feel like I carefully select words which almost, but not quite, entirely miss the meaning which I wanted to convey.
Neo--- has joined #nixos
<halfbit> no worries
<halfbit> appreciate the help
Neo-- has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
smichel__ has joined #nixos
smichel has quit [Ping timeout: 260 seconds]
smichel__ is now known as smichel
griff_ has joined #nixos
<{^_^}> [nixpkgs] @va1entin opened pull request #40181 → keepassxc: 2.3.1 -> 2.3.2 → https://git.io/vpiev
leat has joined #nixos
<jD91mZM2> How do I make a command line program available as runtime dependency?
szicari has quit [Quit: szicari]
szicari has joined #nixos
<goibhniu> jD91mZM2: AFAIK, you can add something to the build output that refers to it
<jD91mZM2> goibhniu: What do you mean?
chessai has joined #nixos
<jD91mZM2> ok one solution is to just manually add `export PATH="$PATH:{lib}/bin"`
<goibhniu> nix scans the output for run time dependencies, so if you add a script which calls the command line program, that should do the trick
* goibhniu presumes there's a more elegant way
<halfbit> so it appears that somehow -Werror=format-security is being set as a compiler flag, and this project, zephyr, fails to build some stuff with that set
<halfbit> they actually have -Wno-format-security added as a flag
kisik21 has joined #nixos
<halfbit> looking closer at gcc, its wrapped in a pretty elaborate bash script
<jD91mZM2> goibhniu: You mean something like `${lib}/bin/thing --version` in installPhase? That didn't work
<halfbit> anyone have some knowledge behind that and where that compiler flag might be set?
<goibhniu> jD91mZM2: not in the install phase, it needs to be in $out
<jD91mZM2> halfbit: Yeah it's really annoying. You can disable it with disableHardening=["all"], or even better: replace all with the specific things
szicari has quit [Ping timeout: 256 seconds]
<halfbit> thanks
<halfbit> yeah, wow, I would've never found that
<halfbit> going to file a ticket about that bs
<jD91mZM2> It's for a reason: Compiling manually from nix-shell should always give the same behavior as it would from the build script
<jD91mZM2> And that behavior is to add those flags, because they're really good for most things
<jD91mZM2> I wish it was better documented though, or perhaps added first to CFLAGS so they could be overriden
<jD91mZM2> goibhniu: That didn't seem to work either. I added `parted --version` to $out/bin/multibootusb
<goibhniu> jD91mZM2: how about: installPhase = "echo ${lib} > $out/.run-time"
smichel has quit [Quit: smichel]
<goibhniu> (where "lib" is the thing you want included)
<jD91mZM2> goibhniu: What's .run-time?
jperras has joined #nixos
<goibhniu> jD91mZM2: I just made that up, it can be any file
<halfbit> I get that its good, but the project maintainers probably understand better than the packagers what flags work well
<jD91mZM2> goibhniu: nope, didn't work
smichel has joined #nixos
xcmw has quit [Ping timeout: 250 seconds]
* goibhniu may well have the escaping wrong too ... just trying to explain the idea
<halfbit> where do you add disableHardening=["all"]
<__monty__> halfbit: Are you sure? Most maintainers have never even heard of nix.
<halfbit> I added that in stdenv.mkDerivation = { disableHardening=["all"]
<halfbit> I'm saying a project maintainer usually sets up their build flags for whatever compiler their using specifically so that project compilse and works
szicari has joined #nixos
taktoa has quit [Remote host closed the connection]
<jD91mZM2> halfbit: Add it to nix-shell, yes. But you can also make it an environment variable using export
<jD91mZM2> (Just FYI because it's fun, don't change anything, you did everything correctly)
<halfbit> ?
xcmw has joined #nixos
<jD91mZM2> Sounds good to me!
<halfbit> it didn't work though
<jD91mZM2> oh
<halfbit> I still get the bogus -
<jD91mZM2> oh wait
<halfbit> -Werror=format-security flag
<jD91mZM2> "disableHardening"
<jD91mZM2> hardeningDisable*
<jD91mZM2> my bad
<jD91mZM2> i'm sorry
alexteves has joined #nixos
<halfbit> thanks man
coot has joined #nixos
dbmikus_ has quit [Quit: WeeChat 2.1]
dbmikus has joined #nixos
kisik21 has left #nixos [#nixos]
periklis- has quit [Ping timeout: 248 seconds]
griff_ has quit [Quit: griff_]
<halfbit> finally
<halfbit> it builds
<halfbit> thanks everyone
Neo--- has quit [Ping timeout: 256 seconds]
mog has quit [Ping timeout: 276 seconds]
Arcaelyx has quit [Max SendQ exceeded]
mog has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9e968fb553b (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @bfrog opened pull request #40183 → Cassandra service → https://git.io/vpiUY
griff_ has joined #nixos
jrolfs_ has joined #nixos
__monty__ is now known as toonn
toonn is now known as __monty__
Arcaelyx has joined #nixos
mipmop has joined #nixos
<fogbugz234> Have you guys noted a memory leak on journald? Both on 18.03 and unstable systemd-journald is now taking 80 MB of RAM and growing to 120 after a few hours. My logs are pretty empty.
<fogbugz234> FYI, systemd-journald had an issue with memory leaks last year, but the bug is now closed
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #40184 → multibootusb: init at 9.2.0 → https://git.io/vpiUb
fendor_ has quit [Ping timeout: 264 seconds]
<Synthetica> fogbugz234:
<jD91mZM2> fogbugz234: I'm noticing nothing over on my end. Mine is only taking 0.3% MEM according to htop
<Synthetica> Looks like it: https://imgur.com/a/fy7hvBm
<Synthetica> 4 days uptime, spent most of it in standby
<Synthetica> Oh, circled the wrong thing
<Synthetica> Still, you get the idea
rauno has joined #nixos
orivej_ has joined #nixos
orivej has quit [Ping timeout: 255 seconds]
mipmop has quit [Quit: Konversation terminated!]
<fogbugz234> jD91mZM2: OK, I'm pretty sure mine has a leak. I'm gonna strace it.
<Synthetica> just @ me if you need any data from my system
<leary`> So I wrote a little article/demo thing on composable, modular haskell overlays. If people are interested it'd be good to get some feedback: https://github.com/LSLeary/haskell-overlays
xcmw has quit [Ping timeout: 256 seconds]
kier has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #40154 → stdenv: Put back isArm, with deprecation notice. → https://git.io/vpK6e
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vpikp
<{^_^}> → 302c4c5f by @Ericson2314: stdenv: Put back isArm, with deprecation notice.
<{^_^}> → 5bdfe37d by @Ericson2314: Merge pull request #40154 from obsidiansystems/stdenv-arm-alias
Sonarpulse has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #40185 → stdenv: Put back isArm, with deprecation notice. → https://git.io/vpiIG
evhan has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Ericson2314 pushed 0 commits to stdenv-arm-alias: https://git.io/vpiIu
bollu has quit [Quit: Ping timeout (120 seconds)]
monotux has quit [Quit: Ping timeout (120 seconds)]
<__monty__> leary`: I'll definitely check it out later.
bollu has joined #nixos
monotux has joined #nixos
oida has quit [Ping timeout: 255 seconds]
aw has quit [Ping timeout: 264 seconds]
aw has joined #nixos
aristid has quit [Remote host closed the connection]
drakonis has joined #nixos
evhan has joined #nixos
seequ has quit [Ping timeout: 264 seconds]
aristid has joined #nixos
dhess has quit [Ping timeout: 240 seconds]
seequ has joined #nixos
dhess has joined #nixos
unkn has quit [Quit: moo]
oida has joined #nixos
muzzy has joined #nixos
muzzy_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
muzzy__ has joined #nixos
asuryawanshi has joined #nixos
<{^_^}> [patchelf] @stmarkevich opened pull request #148 → fix reading and writing big files (e.g. > 2Gb) → https://git.io/vpiLb
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #40185 → stdenv: Put back isArm, with deprecation notice. → https://git.io/vpiIG
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.03: https://git.io/vpitO
<{^_^}> → 302c4c5f by @Ericson2314: stdenv: Put back isArm, with deprecation notice.
<{^_^}> → 9746c1ac by @Ericson2314: Merge pull request #40185 from obsidiansystems/stdenv-arm-alias
jD91mZM2 has quit [Quit: WeeChat 2.0]
griff_ has quit [Quit: griff_]
willghatch[m] has joined #nixos
shoogz has quit [Ping timeout: 265 seconds]
<{^_^}> [nixops] @nh2 opened pull request #948 → Hetzner partitioning script → https://git.io/vpim4
toby1851 has joined #nixos
shoogz has joined #nixos
dbmikus has quit [Ping timeout: 246 seconds]
raynold has joined #nixos
Havvy has joined #nixos
<timokau[m]> Is the riot desktop client really not packaged for nixos? If not, where do I find it?
knupfer has joined #nixos
toby1851 has quit [Ping timeout: 256 seconds]
<drakonis> i usually just run it on my browser but alright
<drakonis> you want riot-web
<drakonis> timokau[m],
<{^_^}> [nixpkgs] @abbradar opened pull request #40186 → [WIP] Fix taffybar → https://git.io/vpiOs
dbmikus_ has joined #nixos
<timokau[m]> drakonis: But that doesn't provide an executable
<drakonis> its the thing they use
<drakonis> by default it doesn't provide executables
<timokau[m]> drakonis: Who uses?
<drakonis> riot's devs
<drakonis> "Riot can also be run as a desktop app, wrapped in electron. You can download a pre-built version from https://riot.im/desktop.html or, if you prefer, build it yourself. Requires Electron >=1.6.0"
toby1851 has joined #nixos
<drakonis> ah right, those exist
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0c4cadfc283 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<drakonis> there's no package for it
<__monty__> Ugh, electron.
<drakonis> its a good time to learn the chops
<drakonis> also write your experiences
logzet has quit [Remote host closed the connection]
jgertm has quit [Ping timeout: 255 seconds]
xcmw has joined #nixos
dbmikus_ has quit [Quit: WeeChat 2.1]
jb55 has quit [Ping timeout: 256 seconds]
dbmikus has joined #nixos
<mpickering> Does anyone have an example of how to set up the postgres service? services.postgresql = { enable = true; package = pkgs.postgresql; }; is failing on nixos-rebuild
<mpickering> "File "/var/db/postgresql/PG_VERSION" does not contain valid data."
<Ralith> drakonis: packaging electron/nodejs apps is a terrible introductory experience
<drakonis> yes
jb55 has joined #nixos
<drakonis> package other things then :v
ixxie has joined #nixos
<timokau[m]> drakonis: I don't need an introduction anymore and don't really want to fight with electron right now :D Thanks for researching.
<tilpner> drakonis - My /etc/profiles/per-user/till/bin/riot is just a writeScript
<tilpner> drakonis - Containg /nix/store/89b17amqhvwr5cn6dwhr5ymy8f2s2383-chromium-65.0.3325.181/bin/chromium --app='https://riot.im/develop'
<timokau[m]> Ralith: Nice! Why haven't you upstreamed that?
<tilpner> *Containing
<drakonis> hmm, is there any example code on parsing nix files?
vaninwagen has joined #nixos
<drakonis> other than looking at nix's source?
<{^_^}> [nixpkgs] @bfrog closed pull request #40183 → Cassandra service → https://git.io/vpiUY
<Ralith> timokau: because it involves a gigantic autogenerated .nix file which isn't welcome on nixpkgs
<Ralith> 10k lines
asuryawanshi has quit [Remote host closed the connection]
<timokau[m]> Ralith: But the gigantic autogenerated node-packages nix files are already in nixpks
alex`` has quit [Quit: WeeChat 2.1]
toby1851 has quit [Ping timeout: 246 seconds]
asuryawanshi has joined #nixos
* Ralith shrug
<drakonis> node has to be regenerated often :V
<Ralith> that's the reason i was given for the closed PR
<timokau[m]> Ralith: `node-packages-v6.nix` currently has 45k lines, `node-packages-v8.nix` has 10k
<Ralith> it might be accepted if we could refactor things so that nixpkgs only needs a single node-packages.nix which everything shares
<Ralith> anyway, it works fine as a third party thing
<timokau[m]> Ralith: Do you have a link to that PR? Can't find it on github
<Ralith> timokau: if you want to try to get it gracefully inlined into those, be my guest!
<Ralith> it was ages ago
<manveru> there's no way you'll get all of npm into nixpkgs anytime soon :P
<manveru> though it might be a cool PoC
<Ralith> manveru: we don't want "all of npm," we want "the closure of this specific package" :p
<halfbit> so there's a fix for cassandra in a PR, is the best route to use that just to add the git repo as a remote, check it out, and nixos-rebuild switch -I nixpkgs=mynixpkgs ?
<halfbit> it seems like that would mean using everything in the git repo then at that version right, not just cassandra
<manveru> Ralith: the problem with node/electron apps is though that they always have thousands of dependencies
<timokau[m]> Ralith: manveru Yeah its somehow arbitrary to already have huge generated files that are re-generated all the time and then reject a specific package
<halfbit> npm is evil for a lot of reasons
<ixxie> the dreaded node-packages files :P
<drakonis> the dreaded node dependency tree
<halfbit> npm install, why is my little app taking 1gb of disk space...
<Ralith> timokau: I think the most recent barrier I ran into for improving this towards mergability was gracefully handling how riot has two different npm projects with the same name in the same repository
<Ralith> and you need both of them
<drakonis> hmm, i really want to get started on my insane "tag every nixpkgs package" project
<drakonis> make it orderly
<manveru> drakonis: i think there's a parser for nix in haskell
<timokau[m]> Ralith: Sounds horrible
<timokau[m]> Don't you use the same node2nix nixpkgs uses?
<Ralith> timokau: yes, but I use it with relative paths to a submodule instead of package names
<Ralith> if you want to investigate and fix the upstream stupidness/find a better way that would be great!
<manveru> anw, i packaged a few electron apps, but don't expect any of them to get merged
Guest16037 is now known as judson
<judson> I'm having trouble with simp_le on a nixops server.
<manveru> it's relatively easy with yarn2nix... maybe i should make a secondary repo for those
<Ralith> it is certainly not impossible to sort out, I just have a very limited tolerance for dealing with npm idiocy
<judson> Slightly urgent, as the cert is going to expire...
<manveru> judson: via nginx?
<drakonis> manveru, i'll take a look at it
<judson> Apache.
* manveru hides
jb55 has quit [Ping timeout: 255 seconds]
<judson> manveru, what's wrong with that?
<timokau[m]> Ralith: Ah I see.
<timokau[m]> I really don't know anything about js or npm and don't really want to learn that now :D
<timokau[m]> Its really a shame its not upstream. Damn npm I guess
MaJoe[m] has joined #nixos
jgertm has joined #nixos
<judson> It looks like the version of simp_le that's installed is doing a new registration with letencrypt each time, but "298:DEBUG:acme.client:189: request_challenges with new_authzr_uri deprecated."?
<judson> The error is "detail": "Registration key is already in use"
<sphalerite> Any yubikey users (ping steveeJ ): where do I find yubikey-piv-tool in nixpkgs?
<johnw> sphalerite: just nipkgs.yubico-piv-tool?
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
<sphalerite> johnw: *facepalm* thanks
<sphalerite> I was searching for yubikey-piv-tool
<sphalerite> tbf that's what the people in #yubikey wrote :D
<Ralith> has anyone gotten U2F working in firefox yet?
xcmw has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #40151 → sit: better fix for aarch64 bug → https://git.io/vpKwz
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpin2
<{^_^}> → 480d52eb by @yrashk: sit: better fix for aarch64 bug
<{^_^}> → ab4a04c3 by @xeji: Merge pull request #40151 from yrashk/sit-aarch64-isel
griff_ has joined #nixos
jrolfs_ has quit [Ping timeout: 255 seconds]
<judson> RE nixops - I just got 100% on my nixos disk.
<judson> Is there a quick way to expand that?
<johnw> Ralith: U2F works fine fro me
<johnw> Ralith: go to about:config, and set security.webauth.u2f to true
<johnw> works fine for GitHub, but Google still doesn't allow it
rihards has quit [Quit: rihards]
halfbit has quit [Quit: WeeChat 2.0]
humanoyd has quit [Quit: WeeChat 2.1]
coot has quit [Remote host closed the connection]
coot has joined #nixos
knupfer has quit [Remote host closed the connection]
<__monty__> leary`: It's an interesting idea. Haven't really come across the problem though. Do you have examples of where you missed composition?
sir_guy_carleton has quit [Quit: Leaving]
coot has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #40136 → fzf: fix vim plugin patch phase → https://git.io/vpKJn
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpiCK
<{^_^}> → b917daaf by @sh4r3m4n: fzf: fix vim plugin patch phase
<{^_^}> → 06ef2ec0 by @xeji: Merge pull request #40136 from sh4r3m4n/fzf-fix
doyougnu has joined #nixos
robstr has quit [Quit: WeeChat 1.9.1]
jgertm has quit [Ping timeout: 246 seconds]
vcunat has quit [Quit: Leaving.]
vaninwagen has quit [Quit: WeeChat 2.1]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/9746c1ac170 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> [nixpkgs] @matthewbauer pushed to staging « unixtools: fixup bad merge »: https://git.io/vpiWd
funfun has joined #nixos
griff_ has quit [Quit: griff_]
smichel has quit [Quit: smichel]
funfun has quit [Client Quit]
ixxie has quit [Quit: Lost terminal]
<leary`> __monty__: The only example I have is the demo files in the repo (which are just the overlays I'm currently using). Before I factored them like this I had one giant ugly overlay for all the haskellPackages changes, and it was going to get worse the second I started hacking on another Haskell project.
<Ralith> johnw: which firefox are you using?
<johnw> Ralith: 59.0.2
<Ralith> johnw: no, which pcakage?
<Ralith> package*
<johnw> i don't install it through Nix
<johnw> well, I do, but by downloading the macOS .dmg
<Ralith> well, this being #nixos, I'm asking about the nix firefox, which is broken :P
<johnw> ah, I see
<johnw> I'm here for the Nix part, not the OS part :)
<johnw> since we don't have just #nix or #nixpkgs
<Ralith> notably, I do have the config set, and it works fine in chrome
<Ralith> this is currently preventing me from ditching chrome; very annoying
Guest79502 has quit [Quit: Lost terminal]
Ariakenom has quit [Quit: Leaving]
phreedom_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #40172 → singularity: 2.4.6 -> 2.5.1 → https://git.io/vp6Z5
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpi8H
<{^_^}> → aad0a825 by @scalavision: singularity: 2.4.6 -> 2.5.1
<{^_^}> → e7f3dab6 by @xeji: Merge pull request #40172 from scalavision/master
phreedom has joined #nixos
<Guanin> Hi, I want to setup wallabag, and I see it is packaged here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/web-apps/wallabag/default.nix Is the correct way now to reference to that package as root for the nginx directory (I don'
<Guanin> * I don't really know how to describe it right now, but I've seen some blog post that does it in a similar way)
jgertm has joined #nixos
<hodapp> huh. I use wallabag on NixOS but it seems that instead of using someone's package I just stuck it in a Docker container
andrey has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40142 → i3lock/i3lock-color: meta: improve description → https://git.io/vpKCz
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpi48
<{^_^}> → 4ee409a5 by @rkoe: i3lock/i3lock-color: meta: improve description
<{^_^}> → c53e3d26 by @xeji: Merge pull request #40142 from rkoe/fix/i3lock-description
<judson> My option to expand this disk under NixOPS is more like "snapshot, grow volume, remount by hand" - is that right?
<{^_^}> [nixpkgs] @matthewbauer opened pull request #40187 → Disable installing frameworks for qt → https://git.io/vpi4N
zemm has quit [Ping timeout: 240 seconds]
andrey has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #40173 → flashplayer: 29.0.0.140 -> 29.0.0.171 → https://git.io/vp6lv
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpiBG
<{^_^}> → 219b1c1e by @taku0: flashplayer: 29.0.0.140 -> 29.0.0.171
<{^_^}> → 86b37d1f by @xeji: Merge pull request #40173 from taku0/flashplayer-29.0.0.171
zemm has joined #nixos
<colemickens> @judson what's your scenario? There's "boot.growPartition" that will auto-grow the root partition
ryantrinkle has joined #nixos
<colemickens> granted, it doesn't work for me (yet).
<{^_^}> [nixpkgs] @xeji pushed commit from @taku0 to release-18.03 « flashplayer: 29.0.0.140 -> 29.0.0.171 »: https://git.io/vpiBb
<bebarker> I have a question regarding reproducible environments - it is a bit long, so I put it here: https://stackoverflow.com/questions/50242387/how-to-record-a-reproducible-profile-in-nix-especially-from-nix-env
<srhb> bebarker: That's basically what nix-env, but in a two phase way.
<srhb> bebarker: Er, what nix-env does.
<bebarker> srhb, doe the phases relate to the environment generations, or is that something else?
<srhb> bebarker: First, it produces a .drv file (Which you can make obvious by using nix-instantiate) and then it installs that derivation
<{^_^}> [nixpkgs] @dezgeg merged pull request #30900 → base profile: add mkpasswd to system packages → https://git.io/vFIGS
<srhb> bebarker: Try: nix-instantiate -E 'with import <nixpkgs> {}; hello' -- and then run nix-env -i on the path it spits out.
<{^_^}> [nixpkgs] @dezgeg pushed commit from @abbradar to master « base profile: add mkpasswd to system packages »: https://git.io/vpiRP
<{^_^}> [nixpkgs] @rycee pushed to master « eclipse-plugin-jsonedit: 1.1.0 -> 1.1.1 »: https://git.io/vpiRy
dbe has quit [Ping timeout: 256 seconds]
<srhb> It's usually much more practical to define nix expressions fit for whatever environment you need though, pinned to a specific revision or not.
hamishmack has quit [Ping timeout: 240 seconds]
olto has quit [Ping timeout: 260 seconds]
<bebarker> srhb, yes, I'm doing that in some limited cases; I probably need to do it more often, which I expect I'll gradually evolve to doing - thanks for pointing it out. Looking into your suggestion now with trepidation..
<mog> andi-, ping
<srhb> bebarker: I don't know if anyone suggested this yet, but ephemeral nix-shell environments are really powerful and a nice workflow. You define a shell.nix for each of your projects and just enter them whenever you need them.
<bebarker> srhb, I think that would make a lot of sense in C and other native languages - I've been doing a lot of JVM stuff (Scala) - so far, I only need one environment there in nix for all my projects. For Python, even though we use Pipfiles, I DO use nix-shell
<bebarker> srhb, so for nix-instantiate, if I'm doing this for what is effectively my user environment, should I do --add-root to keep things from being gc'd?
<__monty__> srhb: Only if you're basically always connected to the internet though.
<bebarker> (the Python stuff tends to require various system dependencies)
szicari has quit [Quit: szicari]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<__monty__> bebarker: I think you might be looking for what I'm using, which is based on johnw's nix-config: https://github.com/jwiegley/nix-config/blob/master/overlays/10-haskell.nix
<__monty__> He's somewhat of a power user, so you can chick out mine for a much simpler version: https://github.com/toonn/nix-config/blob/master/config.nix (He's refactored since I copied from him.)
<bebarker> __monty__, thanks, I'm going to jot them both down in a safe place, as I'm slowly learning Haskell anyway so that should be quite nice
<__monty__> I don't pin to versions anywhere but he does, it's the package names with _10_0_2-esque suffixes. These are examples for haskell of course but I'm sure you can apply them to other collections of packages.
griff_ has joined #nixos
<bebarker> __monty__, yeah, I don't want to pin (usually) in my .nix file - I want updates, unless something breaks - I guess the .drv file will be good for that
<__monty__> Also note that there's an (open?) issue on removing myEnvFun so my config might stop working in the near future.
<simpson> bebarker: The thing to pin is your .nix file *and* nixpkgs revision.
<simpson> If you pin your *entire* Nix expression, then you should get a reproducible build, assuming reproducible compilers and all that.
<infinisil> Including the nixpkgs version in the nix expression
lord| has joined #nixos
<bebarker> that's a good point, what's the quickest way to get the current revision?
<symphorien> nix-info
<symphorien> there are other incantations but I can't remember them
<infinisil> nix-info does `nix-instantiate --eval '<nixpkgs/lib>' -A nixpkgsVersion'
<infinisil> So I guess there's that
jperras has quit [Quit: WeeChat 2.1]
<colemickens> any experienced pypi2nix users have any tips for me? Trying to package something and running into issues with `wheel` I believe. https://github.com/garbas/pypi2nix/issues/194
jrolfs_ has joined #nixos
arianvp2 has joined #nixos
<catern> does the meta attributes things upport multiple licenses?
<arianvp2> Heya! :D
<arianvp2> How does the command "$ nix copy --to s3://my-bucket?region=eu-west-1" work ?
<arianvp2> where does it get the s3 credentials form?
freeman42x]NixOS has quit [Remote host closed the connection]
<symphorien> catern: you can put a list of licenses
freeman42x]NixOS has joined #nixos
<MichaelRaskin> And a comment, because multi-license semantics is approximately _never_ obvious
<bebarker> cool, I get info like channels(brandon): "nixos-18.09pre139319.1d9330d63a5, nixpkgs-18.09pre139198.9d0b6b9dfc9", which seems to be what we want. How does one specify these as arguments to nix-env?
drakonis has quit [Read error: Connection reset by peer]
<bebarker> infinisil, thanks, I do like the nix-instantiate option
<catern> symphorien: neat thanks
asuryawanshi has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @nicknovitski opened pull request #40188 → minikube fixes and hyperkit driver → https://git.io/vpiup
hiratara has quit [Ping timeout: 255 seconds]
hiratara has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<bebarker> So given a version for nixpkgs like 18.09pre139198.9d0b6b9dfc9 - how does one use that version?
<bebarker> (need to drive home, will check back as bbarker there)
rauno has quit [Ping timeout: 246 seconds]
arianvp2 has quit [Ping timeout: 260 seconds]
griff_ has quit [Quit: griff_]
MP2E has joined #nixos
jb55 has joined #nixos
tom has joined #nixos
tom is now known as Guest16351
<mightybyte> How do you install multi-user nix on linux? When I did the install it gave me single user.
<Guest16351> hi. Ive just started learning nix. I installed plan9port package but the program doesnt start... where do i look for logs... or where do i start debuging?
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/vpi2R
<{^_^}> → ae8d6b08 by @xeji: Revert "poppler_utils: 0.63.0 -> 0.64.0" (#39742)
<{^_^}> → b7ad8d66 by @xeji: Revert "poppler_data: 0.4.8 -> 0.4.9" (#39524)
<Guest16351> @mightybyte add more users at the configuration.nix file
<bbarker> Guest16351, which command are you trying to use - is it on your path? I assume so since otherwise you'd get an error I imagine
<bbarker> Guest16351, you might also need to try nix-shell -p plan9port (though not sure that is necessary)
<bbarker> (then run any plan9 commands after that)
<Guest16351> the only command I found was 9
<Guest16351> no acme
<clever> Guest16351: configuration.nix only has an effect when running nixos, which is already a multi-user setup
spwx has joined #nixos
<bbarker> Guest16351, hmm, yeah, that does seem to be an issue - I only see 9 as well
xy2_ has quit [Ping timeout: 240 seconds]
<spwx> hello, i am running the nixpkg manager and am trying to get an application, pipenv, to work. It manages python environments. However it only works when I install it in a seperate shell (nix-shell -p pipenv). Does anyone know what could be going on?
<bbarker> spwx, are you having issue with locales?
<bbarker> spwx, or is it not finding pew?
hiratara has quit [Quit: ZNC - http://znc.in]
<spwx> bbarker, it isnt finding pew i believe
<bbarker> Guest16351, looking at https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/system/plan9port/default.nix - not immediately sure what might be going on, but it has been years since I used that package
<spwx> Error while finding module specification for 'pipenv.pew' (ModuleNotFoundError: No module named 'pipenv')
<bbarker> spwx, yeah, i had that issue, not sure what is up; I was able to use `pip install pipenv` though, but with some workarounds, i will post the issue
hiratara has joined #nixos
<{^_^}> [nixpkgs] @catern opened pull request #40189 → Add pythonPackages.immutables, pythonPackages.contextvars → https://git.io/vpiam
hamishmack has joined #nixos
<bbarker> spwx, weird, I thought i posted an update with the workaround but i don't see it, will do so now.
<spwx> bbarker: alright, thanks for that. I'll just do the same for now
<Guest16351> bbarker, nix-shell -p fetched a few bash packages. I am running shell fish... I guess that migh be a problem
niklob has joined #nixos
niklob has quit [Client Quit]
mkoenig has quit [Ping timeout: 240 seconds]
<bbarker> spwx, added a comment there
<spwx> see it, thanks bbarker
<bbarker> spwx, sorry, should be export LANG, updated
rauno has joined #nixos
mkoenig has joined #nixos
<bbarker> So, given the output from `nix-instantiate --eval '<nixpkgs/lib>' -A version` - what is the way to actually use that when installing packages using various nix utilities (though if it is specific, I'd be most interested in nix-shell and nix-env)?
tertle||eltret has joined #nixos
<{^_^}> [nixpkgs] @catern opened pull request #40191 → add pythonPackages.outcome, pythonPackages.trio → https://git.io/vpiaN
c0ffee152 has joined #nixos
<infinisil> bbarker: `pkgs = import "${(import <nixpkgs> {}).fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; rev = "<your revision hash>"; sha256 = "<the hash of the output>"; }}" {}`
__monty__ has quit [Quit: leaving]
<infinisil> Then pkgs refers to the exact pkgs at that revision
Guest16351 has quit [Ping timeout: 260 seconds]
<infinisil> I squashed everything into a single expression here, feel free to make it more readable :P
tomtomtom has joined #nixos
<bbarker> infinisil, wow, thanks, I shall try it out tonight ... this may be inspiration for a possible contribution to nixos/nix ... :)
<infinisil> \o/
<tomtomtom> thanks barker for help. Im off to sleep, will try to find it tomorrw
<tomtomtom> regarding plan9port
<bbarker> infinisil, so for e.g. 18.09pre139198.9d0b6b9dfc9 , the rev is just whatever comes after the last "." - but what is the sha256 of?
<infinisil> Indeed, well it's the shorthand version of it, the full one is about 3 times longer or so, but the short one should still work
<bbarker> tomtomtom, sure ... sorry I couldn't tell you more than confirming the issue for me as well
<infinisil> ,tofu bbarker
<{^_^}> bbarker: 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.
<bbarker> infinisil, ah, ok, right, I remember fetchFromGithub retrieved it before - makes sense
<infinisil> Alternatively use `nix-prefetch-url --unpack github.com/nixos/nixpkgs/archive/<revision>.tar.gz`
<infinisil> Which has the advantage of only needing to fetch it once, it will output the hash
tomtomtom has quit [Ping timeout: 260 seconds]
Dezgeg has quit [Ping timeout: 265 seconds]
<judson> Is there a better place to ask about NixOps?
<judson> I'm trying to update a server, in order to (hopefully) fix a LetsEncrypt issue. But it's an ec2 micro, and its nixos volume is like 3G, which is 100% full.
<srhb> judson: This is a fine place. I don't think there's a better one.
<judson> I could do a fresh install, but I don't want to lose the ElasticIP.
<clever> judson: have you tried a nix-collect-garbage on the remote machine?
<judson> I get 500MB back... trying the deploy again.
joehh has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40187 → Disable installing frameworks for qt → https://git.io/vpi4N
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/vpiwe
<{^_^}> → c4cac55d by @matthewbauer: qt510: disable framework build on macOS
<{^_^}> → 03308d12 by @matthewbauer: Merge pull request #40187 from matthewbauer/disable-framework-for-qt
<judson> nixops implied there weren't generations on the remote machine, so I assumed that wouldn't work :/
chessai has quit [Remote host closed the connection]
shabius has quit [Quit: Leaving]
<infinisil> !m {^_^}
<[0__0]> You're doing good work, {^_^}!
sanscoeur has quit [Ping timeout: 265 seconds]
drag has joined #nixos
greymalkin has joined #nixos
jrolfs_ has quit [Ping timeout: 250 seconds]
Dragg has joined #nixos
Dragg has quit [Client Quit]
<jtojnar> infinisil: does not Nix 2 only fetch once regardless?
<infinisil> jtojnar: Huh? what do you mean?
<judson> clever, srhb: no good. Needs more than the 500M freed up by gc
<jtojnar> infinisil: I think files with a wrong hash are still saved to the store, so it will only be downloaded once, if you update the hash after the error
<infinisil> jtojnar: Hmm.. that doesn't coincide with my experience. I see it fetching stuff again every time.
shabius has joined #nixos
aarvar has joined #nixos
<jtojnar> infinisil: just tried it, the source was only downloaded once
shabius has quit [Quit: Leaving]
<pie_> i just got this when starting firefox...it seems ominous...
<pie_> JavaScript error: jar:file:///nix/store/09f0grsjv28d007qwv792qigqxrhrffh-firefox-unwrapped-59.0.2/lib/firefox/omni.ja!/components/XULStore.js, line 70: Error: Can't find profile directory.
<infinisil> jtojnar: I see, nice! I haven't done a lot of nix writing lately
<{^_^}> [nixpkgs] @matthewbauer pushed to master « git-secrets: fix homepage url »: https://git.io/vpirr
greymalkin has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/8bf6df2b8e8 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
slyfox has quit [Ping timeout: 264 seconds]
andreabedini has joined #nixos
greymalkin has joined #nixos
erasmas has quit [Quit: leaving]
slyfox has joined #nixos
joehh has quit [Ping timeout: 250 seconds]
Sonarpulse has quit [Ping timeout: 256 seconds]
andreabedini has quit [Client Quit]
<clever> judson: as root, on the remote machine, run this: ls -l /nix/var/nix/profiles/
<clever> judson: how many system links exist?
deepfire has quit [Ping timeout: 240 seconds]
deepfire has joined #nixos
spwx has quit [Ping timeout: 260 seconds]
muzzy__ has quit [Ping timeout: 260 seconds]
muzzy has quit [Ping timeout: 260 seconds]
muzzy_ has quit [Ping timeout: 260 seconds]
shabius has joined #nixos
jrolfs_ has joined #nixos
jperras has joined #nixos
deepfire has quit [Ping timeout: 256 seconds]
ryantrinkle has quit [Ping timeout: 246 seconds]
deepfire has joined #nixos