gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<ottidmes> gchristensen: my big bit of Nix code in that shell function does that on a broader scope, all attributes of the package + all attributes of the meta attribute of the package
jasongrossman has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
hamishmack has joined #nixos
<ottidmes> gchristensen: so actually there more unrelated attributes to the package itself are inside attrset passed to mkDerivation the more likely my function will be able to pinpoint the location, because those attributes will not be reset
carlosdagos has joined #nixos
<gchristensen> aye
<gchristensen> cool!
tdbgamer has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
mbrgm has joined #nixos
__monty__ has quit [Quit: leaving]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eadwu has joined #nixos
thc202 has quit [Ping timeout: 246 seconds]
shpx has joined #nixos
hamishmack has joined #nixos
shpx has quit [Ping timeout: 268 seconds]
xkapastel has joined #nixos
<duairc> Wow, this is incredible, not only was I able to import old commits of nixpkgs to get ancient versions of GHC, I was able to add them to my environment.systemPackages and the binary builds are still cached! Didn't have to build anything and they all seem to actually work too
goibhniu1 has quit [Ping timeout: 244 seconds]
<gchristensen> isn't it magic?
sinner has joined #nixos
<duairc> And like, *of course they work*, that's just a property of how Nix is built, unless the kernel made some funny change somewhere along the way
sinner is now known as Guest35183
<gchristensen> =)
<duairc> I am surprised the binaries are still cached though, do they get cached forever?
<Myrl-saki> Apparently, builtins.toJSON can not necessarily be reified back with fromJSON.
<gchristensen> ...eh, Myrl-saki?
<Myrl-saki> [myrl@myrl-lappy:/tmp/tmp.qT1vZLRsxI]$ nix eval '(builtins.fromJSON (import <nixpkgs> {}).weechat.pkgs)'
<Myrl-saki> error: the string '[{"paths":["/nix/store/q0aw9i16mj12mswj11arir2rb7fr821m-weechat"],"priority":5},{"paths":["/nix/store/p6g25z4da2jcqk551l4zgscflfj2f6m6-weechat-headless"],"priority":5}]' is not allowed to refer to a store path (such as '!out!/nix/store/kja56wqdcjf490b17f61dw8s130i84hk-weechat.drv'), at (string):1:2
<gchristensen> heh.
<Myrl-saki> It's a srs problem. ; ~ ;
<Myrl-saki> It means that there's no way to get the underlying `weechat` without changing the derivation itself.
<gchristensen> ...eh?
<Myrl-saki> Oh.
<Myrl-saki> Apparently, a weechat-unwrapped package exists in master now.
<Myrl-saki> gchristensen: The commit message has almost the same rationale as me.
<gchristensen> ah
<Myrl-saki> TL;DR. The underlying weechat binary can not be treated like other derivaitons in 18.09.
<Myrl-saki> So I can not for example, get the source of the weechat package from `nix repl`
abathur has joined #nixos
<gchristensen> ah
<gchristensen> that is not good
Eram has quit [Quit: leaving]
<Church-> I have read so much dang wm code
<Church-> Yeesh
<samueldr> I don't presume we have a "hello"-like simple fixed-output derivation that can be used for... uh... misc. purposes in nixpkgs?
<Church-> Probably not.
<gchristensen> what, uh, kind of misc purposes?
<Church-> That'd be easy
<samueldr> sandboxed testing
<samueldr> running nix within a nix build to test a thing using nix
<gchristensen> oh cool
<samueldr> so: no store, no cached binaries, no <nixpkgs>.fetchurl
<gchristensen> I should really, really focus on my TAGS impl... :| :| :|
<samueldr> builtins.fetchurl has a different output than fetchurl
abathur has quit [Ping timeout: 240 seconds]
<gchristensen> ouch
<Church-> samueldr: That sounds awful
gagbo has quit [Ping timeout: 268 seconds]
Eram has joined #nixos
<Church-> Wanna trade? You can write my xlib code. :D
abathur has joined #nixos
<samueldr> do you want a WM written in bash?
<Church-> That would be better
<Church-> I have read... 4000 lines of C today?
<Church-> My brain is melted
<Church-> And it's xlib magic C.
<Church-> ...
* Church- gets a rope for after he writes that port
<dmc> lol
<gchristensen> compiz-fusion.sh
<Church-> Oh god pls no
<Church-> There's like no to ask this stuff too
<Church-> Since nobody writes fucking xlib code anymore.
<Church-> no one*
<Church-> Apologies on the language
<gchristensen> thanks :)
<Church-> Aye
<jackdk> next you'll be telling us you've taken up TSR writing
<Church-> TSR?
<samueldr> hmmm, requireFile almost would have been it :/
<jackdk> terminate and stay resident. old DOS thing where you'd load your program, hook into interrupts, then return control to command.com
<ottidmes> I must be misunderstanding nix-store --query --deriver or run into some bug, but why is this: https://gist.github.com/msteen/3b1e473cd2f1f4bc0a9ed354eb807af5
strobelight has joined #nixos
alex`` has quit [Ping timeout: 244 seconds]
Guest35183 has quit [Ping timeout: 268 seconds]
jb55 has quit [Quit: WeeChat 2.3]
acarrico has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53000 → vala_0_38, vala_0_40, vala_0_42: add configuration to disable graphviz (to reduce closure size) → https://git.io/fhkbT
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/fhcrz
eadwu has quit [Ping timeout: 268 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
eadwu has joined #nixos
<protocol> haven't seen TSRs mentioned in... decades
<protocol> wow
<gchristensen> thank goodness
* samueldr wonders if it's good sign or bad sign to have a nix string with nix code in a nix expression
hellrazor has joined #nixos
<Church-> jackdk: Heh that takes me back to some dos programming.
hph^ has joined #nixos
orivej has joined #nixos
hellrazo1 has quit [Ping timeout: 245 seconds]
Dedalo has quit [Ping timeout: 268 seconds]
acarrico has joined #nixos
Rusty1 has joined #nixos
silver has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dtzWill opened pull request #53980 → zotero: -> 5.0.60 → https://git.io/fhcoh
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhcKJ
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 268 seconds]
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tdbgamer has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes> is there some easy way to get to the data within a .drv file from a shell?
teto has joined #nixos
Diagon has joined #nixos
<teto> it seems like I have grub entries that are not valid anymore because the kernels have been garbage-collected. Is that expected ?
<ottidmes> teto: yeah, only if you do nixos-rebuild boot or nixos-rebuild switch --install-bootloader (I believe that flag is necessary for switch to have the same effect), will it remove those entries
acarrico has quit [Ping timeout: 240 seconds]
iqubic` is now known as iqubic
<teto> ottidmes: I was kinda surprised, but I guess generating bootloader entries is sensitive enough we don't want to run it everytime ?
<ottidmes> teto: I do not know the exact reasoning behind it, but it will probably something like that, yes
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
iqubic has joined #nixos
<gchristensen> you don't need --install-bootloader
<samueldr> wrt my earlier question, this is a simple fixed-output derivation that is sandbox friendly https://github.com/samueldr/nix-universal-prefetch/blob/d61f47f0f5ee9ee43d4e2039838edf85d908463b/test/default.nix#L61-L69
<gchristensen> the trouble is the bootloader entries are not part of the normal store garbage process, and there is no hook for garbage collection to tell nixos to prune those entries
<ottidmes> gchristensen: I saw that flag mentioned a few times in similar context, but after checking the logs it seems it was only relevant when changing bootloaders
aanderse_ has quit [Read error: Connection reset by peer]
aanderse_ has joined #nixos
<samueldr> a good way to reason of that behaviour is how it's not adding or removing bootloader entries, but regenerating the list from what's in the store
Diagon has quit [Quit: Leaving]
chessai has quit [Remote host closed the connection]
<samueldr> nix itself has no concept of "outside the store" so collecting there can't affect those :/
<gchristensen> outside ... the ... store ..? :confused:
<ottidmes> gchristensen: samueldr: do any of you know how to deal with the notation in a .drv, I wish it used JSON instead...
<gchristensen> nix show-derivation /nix/store/the.drv
<samueldr> never looked at a .drv
<ottidmes> gchristensen: how about that! thanks!
<ottidmes> samueldr: nix-store --query keeps reporting useless information while the right information is right there in the .drv, so I figure, better get it straight from there
<jasongrossman> samueldr: LLOL at the allegory of the cave.
<ottidmes> gchristensen: no wonder I did not remember it reporting it as json, considering the description "show the contents of a store derivation."
bandali has quit [Quit: ZNC 1.7.1 - https://znc.in]
<gchristensen> we cannot free ourselves from phenomenal state but dangit we can try, samueldr
<samueldr> ouch, no, bad samueldr, no self nerd-sniping
<samueldr> what if... the bootloader was aware of nix generations innately?
<samueldr> like, I have a rough idea congealing that makes me think it's a week-end project that's doable... which is scary :)
<jasongrossman> Or the holographic theory of the universe.
Supersonic has quit [Ping timeout: 252 seconds]
<jasongrossman> I'm happy GCing my boot partition manually. After all, it's a different partition, and doesn't fill up at the same time as my /nix (or indeed ever).
thadthemad has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest97276
bandali has joined #nixos
<gchristensen> mine can only fit like 25 :| generations
strobelight_ is now known as strobelight
<teto> I might open an issue because seeing 3/4 generations in bootloader gave me a false sense of security (like I can fallback 3 generations in the past) while I could only get back one generation
<samueldr> my idea, would store zero, and considering secure boot, if the drive being opened was encrypted, would have (I think) passable security
<teto> which was enough to save my ass
Supersonic has joined #nixos
<gchristensen> aye, it is impossible to GC the current system, or the system which was booted
Guest97276 has quit [Ping timeout: 258 seconds]
<gchristensen> samueldr: what is your idea? :)
<samueldr> kexec-based bootloading
<gchristensen> ...oh? :o
<samueldr> not sure what hurdles are there for real, but there are at least two reall implementation of the idea
jb55 has joined #nixos
<samueldr> and I know there's a third one I can't remember the name
thadthemad has quit [Ping timeout: 268 seconds]
<samueldr> though here it would be a specialized one, nixos-only thing
kvda has joined #nixos
<q6AA4FD> is there any support for nim-lang/nimble a la haskellPackages/cabal2nix
<gchristensen> samueldr: nice. some hardware doesn't handle kexec very well, but I only know of one chassis which doesn't. so.... I'd ignore that.
<samueldr> I think the idea is to *not* add the fancy drivers for anything, boot nomodeset and such and then you're pretty fine for 99% of the cases
<jasongrossman> teto: Good point.
<samueldr> (knowledge from previous reading sessions)
<q6AA4FD> samueldr: you could maybe actually make it aware if you built it into the initramfs and used refind
<gchristensen> cool!
<samueldr> q6AA4FD: what do you mean?
sanscoeur has quit [Ping timeout: 250 seconds]
<q6AA4FD> refind will automatically populate its entries based on the kernel.efi files in its boot directory, and use the name to pair with an initramfs
<samueldr> ah, the idea here is not have pairs of initrd and kernels in the ESP :)
<q6AA4FD> oh, i see. i didn't realize initramfs were large enough to cause a problem
<samueldr> q6AA4FD: is this your usual nickname?
<q6AA4FD> samueldr: yup, why do you ask?
<samueldr> don't remember interacting with you, and it looks like a placeholder when nickserv boops a nick
<q6AA4FD> my initramfs is 5.6M, does nixos expand tem?
<samueldr> (no offense)
d4g has joined #nixos
<ottidmes> I am trying to figure out whether it is possible to determine whether a given hash is pointing to an older version. I had hoped it was a matter of asking the output (which is reused if the hash stays the same but e.g. url is changed) what its derivation was, but that information seems useless, it point to the very first derivation that produced the output, which tends to be a bogus hash when applying TOFU)
<samueldr> it depends what you add to them I guess, and how many generations you want to keep
<q6AA4FD> nah, you're good. i've just got into nix, so i can document my 2k line .org file full of shell scripts in a less ad-hoc way. and 6AA4FD is the hex code for sky blue
<gchristensen> nice
<jasongrossman> q6AA4FD: Some people have very small boot partitions, but big /nix partitions, so they're used to keeping lots of generations.
<gchristensen> my initrd + kernels are 19mb
<samueldr> around the same here
<jasongrossman> Same.
<ottidmes> 33.6M
d4g_ has quit [Ping timeout: 245 seconds]
<gchristensen> dropbear or something?
<ottidmes> worse, openssh
<gchristensen> oops
<ottidmes> by choice, I do not mind a larger initrd, but dont like the idea of having multiple pieces of important software doing the same thing
<samueldr> gchristensen: which makes me think, wouldn't sshing-in to select a generation be nice?
<gchristensen> yes!
<gchristensen> like a P.reboot eXecution Environment but better
<{^_^}> [nixpkgs] @matthew-piziak opened pull request #53981 → add textlint to nodePackages → https://git.io/fhcXZ
<samueldr> if you're interested in the existing implementation of the idea I know of http://ftp.cvut.cz/kernel/people/geoff/petitboot/petitboot.html
<samueldr> though I'm not sure how ready it is for x86_64 I think it's mainly geared to be used as firmware for Open Power architecture
<srk> > builtins.match "^[0-9]+\.$" "100"
<{^_^}> [ ]
<srk> doesn't look right
<samueldr> srk: looks right to me, there's a dot, no?
<samueldr> well, a period
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srk> would expect it to match "100." but not just "100"
<ottidmes> does anyone know if somehere is being tracked (in the sqlite db of the Nix store maybe) what derivation actually produced an output, rather than just claiming it will produce it?
<gchristensen> > builtins.match "^[0-9]+\.$" "100."
<{^_^}> [ ]
<samueldr> oh, I see
<samueldr> > builtins.match "^[0-9]+\\.$" "100"
<{^_^}> null
* samueldr hates regexes in strings
<srk> yeah!
<srk> that's it
<gchristensen> petitboot is great looking
<teto> I opened an issue about the garbage-collection/bootloader pb at https://github.com/NixOS/nixpkgs/issues/53982 if you want to submit ideas
<{^_^}> #53982 (by teto, 1 minute ago, open): garbage-collected kernels outdate bootloader entries
<infinisil> ottidmes: You can query the deriver from outputs
<infinisil> (nix-store -q --deriver <some output>)
<ottidmes> infinisil: in theory yeah, but I am not getting the right answers from there
<ottidmes> infinisil: I am basically getting the first ever derivation claiming to build the output
<gchristensen> worth filing a bug over that
<ottidmes> gchristensen: guess I will just do that, otherwise it makes it useless
<gchristensen> although it will always be true that many drvs may have produced a given path
aleph- has joined #nixos
<samueldr> gchristensen: what makes my idea worth looking into as a side-project is how it would be useful for mobile-nixos since there's no way to run a real bootloader easily on the targeted devices
<samueldr> * (no sane and safe way)
<clever> samueldr: when i ran linux on my treo 650, the cpu lacked an MMU, so any app could just hijack the cpu and run another OS
<samueldr> that's cheating
<gchristensen> LOL
<jackdk> beautiful. I am reminded of LOADLIN.EXE and GRUB4DOS
strobelight has quit [Ping timeout: 268 seconds]
<clever> jackdk: the last machine i tried loadlin on, was a 486SX, and it lacked the FPU
<clever> so it needed a special linux build to even work
<samueldr> walking uphill both ways
bhipple has joined #nixos
sigmundv_ has quit [Ping timeout: 246 seconds]
<bhipple> If I run nix copy --to file:///tmp/foo, is there a way I can unpack foo and install it without nix on the machine?
snajpa has quit [Ping timeout: 244 seconds]
<bhipple> Essentially, I'm looking to create a bootstrap.tar.gz that has a custom nix and a pre-built environment, that can be unpacked and installed on servers to get the nix toolchain on there
<bhipple> Wondering what the most efficient wayt to do this might be
aleph- has quit [Ping timeout: 258 seconds]
aither has quit [Ping timeout: 252 seconds]
snajpa has joined #nixos
Lingjian has joined #nixos
eadwu has quit [Ping timeout: 268 seconds]
aleph- has joined #nixos
aither has joined #nixos
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
jackdk has quit [Ping timeout: 246 seconds]
Lingjian has quit [Ping timeout: 252 seconds]
<wedens> is there some example of cross-compiling cmake+qt application on linux -> mingw?
<ottidmes> gchristensen: filed the issue https://github.com/NixOS/nixpkgs/issues/53983
<{^_^}> #53983 (by msteen, 23 seconds ago, open): nix-store --query --deriver does not work as expected
vielmetti has quit [Ping timeout: 250 seconds]
rprije has joined #nixos
<q6AA4FD> does anyone have a minimal example of a derivation or package where all the major phases are overwritten so a package in an unsupported language can be built?
hamishmack has joined #nixos
vielmetti has joined #nixos
<bhipple> I'd look at the generic/setup.sh stdenv script to see all of the phases
<q6AA4FD> bhipple: alright, thanks
<bhipple> These are all the phases you get by default, but if you want to stomp all of them at once you can just set phases = [x, y, z]
<bhipple> in your package's nix expression
<q6AA4FD> bhipple: by stomp, you mean limit the phases that are run to the array provided?
<bhipple> If you don't provide an attribute called phases in your nix expr, you get exactly the ones in that list; you can provide your own to overwrite which phases do or do not get run
<bhipple> you can also substitute in your own implementation of any given phase. The cmake and waf helpers do this, for instance, with the hook mechanism
<q6AA4FD> bhipple: i see, thanks for your help!
xkapastel has quit [Quit: Connection closed for inactivity]
<bhipple> You're welcome. Normally you don't have to replace all of the phases, you likely just have to replace buildPhase and installPhase
<bhipple> here's an example doing that, while still keeping the default unpackPhase and stuff: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/text/par/default.nix#L20-L28
doyougnu has quit [Ping timeout: 268 seconds]
<q6AA4FD> thanks
abathur has quit [Ping timeout: 246 seconds]
ashkitten has quit [Quit: WeeChat 2.2]
pie___ has joined #nixos
<iqubic> So I'm doing some haskell development and everytime I update my project's cabal file, I need to remember to run cabal2nix. IS there a way to get nix to do that for me?
aleph- has quit [Ping timeout: 268 seconds]
ashkitten has joined #nixos
<iqubic> It would be best if cabal2nix could be run when I call nix-shell.
fusion809 has joined #nixos
tdbgamer has quit [Ping timeout: 258 seconds]
pie__ has quit [Ping timeout: 268 seconds]
<ghostyy> i have a question - i am making a custom option for my nixos system configuration, it involves setting boot.initrd.postDeviceCommands to a shell script with some environment variables defined by nix variables (eg in the script i might have $foo, and in the options definition i might have foo = mkOption { type = types.listOf types.str; }
<ghostyy> how do i define boot.initrd.postDeviceCommands so that it expands those variables based on the nix variables in the options definition?
mtesseract has joined #nixos
<ottidmes> iqubic: there is callCabal2nix which I believes does that, but I have not tried it yet
abathur has joined #nixos
doyougnu has joined #nixos
counting1ort has joined #nixos
countingsort has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #53941 → llvm_6, llvm_7: build all default targets → https://git.io/fhnxu
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to staging « llvm_6, llvm_7: build all default targets (#53941) »: https://git.io/fhcSe
tzemanovic has joined #nixos
<iqubic> I'd like to know how that works.
tzemanovic has quit [Ping timeout: 252 seconds]
abathur has quit [Ping timeout: 240 seconds]
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zgrep has quit [Quit: This is me *really* leaving.]
zgrep has joined #nixos
reinhardt has joined #nixos
ddellacosta has quit [Remote host closed the connection]
zgrep has quit [Quit: This is me *really* leaving.]
zgrep has joined #nixos
<ghostyy> how do i do shell substitution in builtins.readFile
ddellacosta has joined #nixos
<infinisil> ghostyy: A bit more specific?
ottidmes has quit [Ping timeout: 258 seconds]
<ghostyy> i am setting boot.initrd.postDeviceCommands to a shell script in an external file
<ghostyy> in that file i use variables that are supposed to refer to nix variables with the ${foo.bar} syntax
<infinisil> Oh, builtins.readFile can't do that
<ghostyy> ah
<ghostyy> do you know how to do that then?
<infinisil> You'd have to define the file as a Nix file, wrap everything in '', and make it a function so you can pass the arguments
<ghostyy> ah... so its impossible basically
<infinisil> And then `import ./file.nix { foo = "..."; }'
<ghostyy> the shell substitution syntax works fine when its inline
<infinisil> Well, there's some alternatives
<ghostyy> eg blahblah = "... ${foo.bar} ..."; works
<infinisil> Yeah, because that's a Nix expression
<infinisil> Nix can't import non-expressions
<ghostyy> ah..
<infinisil> You could use builtins.scopedImport to avoid having to declare the arguments at the top of the file
<infinisil> Or a more common approach is to use @foo@ where you need the arguments (declare it as a normal file and use those), then run a `substituteAll` over the file in a runCommand to insert the arguments
<ghostyy> if i just used boot.initrd.postDeviceCommands = ''\n...${foo.bar}..\n'' would that work?
<ghostyy> ooh
<ghostyy> substituteall sounds way better
<ghostyy> since id like to keep it in a seperate file
<infinisil> You can't have Nix in the file then though, it's gonna be a simple string substitution
<infinisil> And yes, that example you mentioned does work (try it out)
<ghostyy> ah i see, thank you!
<infinisil> :)
* infinisil goes to sleep now
reinhardt has quit [Quit: Leaving]
Rusty1 has quit [Quit: Konversation terminated!]
vk3wtf has quit [Ping timeout: 252 seconds]
thadthemad has joined #nixos
doyougnu has quit [Ping timeout: 268 seconds]
thadthemad has quit [Client Quit]
doyougnu has joined #nixos
bhipple has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.3]
reinhardt has joined #nixos
doyougnu has quit [Ping timeout: 258 seconds]
romanofskiWork has quit [Ping timeout: 250 seconds]
reinhardt has quit [Ping timeout: 268 seconds]
romanofskiWork has joined #nixos
tzemanovic has joined #nixos
tzemanov_ has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/fhcQG
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « Revert "ocamlPackages.zarith: use buildOcaml instead of mkDerivation" »: https://git.io/fhcQn
tzemanovic has quit [Ping timeout: 252 seconds]
tzemanov_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #53984 → ocamlPackages.zarith: use buildOcaml instead of mkDerivation → https://git.io/fhcQ0
dermetfan has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 244 seconds]
palo1 is now known as palo
vk3wtf has joined #nixos
Eram has quit [Remote host closed the connection]
rauno has quit [Ping timeout: 264 seconds]
hyper_ch2 has joined #nixos
dermetfan has quit [Ping timeout: 250 seconds]
reinhardt has joined #nixos
thadthemad has joined #nixos
<q6AA4FD> oo
thadthemad has quit [Quit: Mutter: www.mutterirc.com]
thadthemad has joined #nixos
freeman42x has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #53984 → ocamlPackages.zarith: use buildOcaml instead of mkDerivation → https://git.io/fhcQ0
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « ocamlPackages.zarith: use buildOcaml instead of mkDerivation »: https://git.io/fhc5X
thadthemad has quit [Ping timeout: 268 seconds]
freeman42x has joined #nixos
jasongrossman has quit [Ping timeout: 268 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Remote host closed the connection]
rauno has joined #nixos
sinner has joined #nixos
sinner is now known as Guest39954
jasongrossman has joined #nixos
Ariakenom has joined #nixos
goibhniu has joined #nixos
Makaveli7 has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
Tucky has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
civodul has joined #nixos
Guanin has joined #nixos
<fusion809> Hi, which package provides the Python module pari_instance, because I'm getting this error https://paste2.org/J0FUnHg7 when installing SageMath 8.5 from nixos-unstable.
juhulian has quit [Ping timeout: 258 seconds]
thc202 has joined #nixos
<schmittlauch[m]> Hi, I want to install Nix on a system I have no root access on -> I cannot create a /nix directory. How do I install Nix with a different nix store location located in my home directory?
<elvishjerricco> schmittlauch[m]: Linux or macOS?
<schmittlauch[m]> linux
<schmittlauch[m]> elvishjerricco: precisely: Ubuntu
<elvishjerricco> schmittlauch[m]: If your distro has user namespaces, you can use a chroot nix store. Otherwise you'll have to forego the binary cache (which assumes `/nix`), and bootstrap a big compiler toolchain.
<elvishjerricco> As for how exactly to do those things, I'm not exactly sure TBH
<schmittlauch[m]> eww, I thought that was easier
<elvishjerricco> schmittlauch[m]: IIRC, it's not too bad to install it in a custom location if you don't mind losing the binary cache
<schmittlauch[m]> but I see that RPATHs probably should be absolute
<elvishjerricco> The nix expressions automate the whole bootstrapping for you
<elvishjerricco> so that's mostly a CPU time problem, not a complexity problem
<schmittlauch[m]> elvishjerricco: it's a university machine I don't use that often, so I might not have the CPU time available. let's see how I do it
plakband has joined #nixos
dermetfan has joined #nixos
<schmittlauch[m]> elvishjerricco: Can you point me to resources describing on how to set up nix in a namespaced chroot?
<elvishjerricco> schmittlauch[m]: Not sure a resource exists, TBH. I know it's possible, but I'm not sure anyone's ever take the time to document it. You can check the Nix manual: https://nixos.org/nix/manual.
<immae> you can find it hear schmittlauch[m]: https://nixos.org/nix/manual/#sec-building-source
<immae> here*
<immae> You have to build nix from source and specify another path
knupfer has joined #nixos
<{^_^}> [nixpkgs] @gebner pushed to master « elan: 0.7.1 -> 0.7.2 »: https://git.io/fhcxG
gagbo has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #53450 → openblas: fix cross-compilation → https://git.io/fh3zc
<{^_^}> [nixpkgs] @FRidh pushed to staging « openblas: fix cross-compilation »: https://git.io/fhcxX
<{^_^}> [nixpkgs] @FRidh pushed 8 commits to python-unstable: https://git.io/fhcx5
plakband has quit [Quit: WeeChat 2.3]
Makaveli7 has quit [Ping timeout: 252 seconds]
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 7 commits to staging: https://git.io/fhcp2
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « buildPython*: enable strictDeps »: https://git.io/fhcpo
<{^_^}> [nixpkgs] @FRidh closed pull request #53977 → pythonPackages.cython: 0.29.1 -> 0.29.2 → https://git.io/fhcEG
regulus_ has quit [Ping timeout: 244 seconds]
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
jrddunbr has quit [Ping timeout: 252 seconds]
rauno has quit [Ping timeout: 268 seconds]
jrddunbr has joined #nixos
ng0 has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/97e0d53d669 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
__monty__ has joined #nixos
georgyo has quit [Ping timeout: 264 seconds]
georgyo has joined #nixos
adulteratedjedi has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhcj3
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53937 → fava: 1.7 -> 1.9 → https://git.io/fhnAw
sigmundv_ has joined #nixos
adulteratedjedi has joined #nixos
ThatDocsLady has joined #nixos
Taneb has joined #nixos
<Taneb> Is there a nice guide I can link a coworker about using a package from unstable when everything else is on stable?
orivej has quit [Ping timeout: 244 seconds]
<joepie91> this looks suspect :)
<Ashy> has anyone here got vagrant with libvirt working?
<Taneb> goibhniu: perfect, thanks
<goibhniu> great
erictapen has joined #nixos
knupfer has quit [Remote host closed the connection]
Dedalo has joined #nixos
d5[m] has joined #nixos
erictapen has quit [Ping timeout: 258 seconds]
dogbread has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fhCUm
vk3wtf has joined #nixos
<dogbread> whats the difference between haskellPackages.shellFor and haskellPackages.developPackage {returnShellEnv=true;}?
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
erictapen has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
rauno has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53895 → pythonPackages.black: fix build → https://git.io/fhnDj
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhCko
thadthemad has joined #nixos
thadthemad has quit [Client Quit]
ubert has joined #nixos
orivej has joined #nixos
regulus_ has joined #nixos
erictapen has quit [Ping timeout: 272 seconds]
Ariakenom has quit [Ping timeout: 268 seconds]
<siraben> What's the right way to upgrade to nixos-unstable?
<siraben> Change the channels of root?
simukis has joined #nixos
<Mic92> siraben: yes
<siraben> When do I ever want to add channels for my user?
<Mic92> siraben: when you want to have different one from root.
<Guanin> e.g. in a shared setup (remote server), where one user wants to install newer software (so he might want to switch to unstable)
<siraben> How do you guys separate your packages from the configuration.nix file?
init_6 has joined #nixos
<Mic92> Can you elaborate your question?
<siraben> Well, I currently have all the packages I want in configuration.nix, maybe there is a way to install these packages only for my user?
<siraben> In the event I have a multi-user setup
<Guanin> I use home-manager as a module
hedning has joined #nixos
<Mic92> home-manager
<Guanin> But there is also users.users.<name?>.packages
<siraben> I see
<Guanin> So if you do not need the features of home-manager, you can just stick to that setting :)
<siraben> What about a declarative Firefox config?
<siraben> I'm still trying to figure that part out
abathur has joined #nixos
<lassulus> someone wanted to do something for home-manager afair?
hedning has quit [Client Quit]
<Mic92> does not cover addons or so
hedning has joined #nixos
<siraben> Hm, does it allow configuration for about:config?
<Guanin> Nice to know :) I'll guess I have to try something later today
<Guanin> you can use user.js for that
abathur has quit [Ping timeout: 268 seconds]
<wedens> btw, can thunderbird be feasibly configured via some config file?
<Guanin> I'd *guess* that it's configurable by a user.js, too - although accounts might be a bit harder to manage
Guanin has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d6c86cb4f01 (from 59 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
plakband has joined #nixos
klntsky has quit [Ping timeout: 256 seconds]
klntsky has joined #nixos
winem_ has joined #nixos
Makaveli7 has quit [Quit: Leaving]
Ariakenom has joined #nixos
dave_uy has quit [Quit: Ping timeout (120 seconds)]
dave_uy has joined #nixos
erictapen has joined #nixos
<duairc> So when I try to run ghci I get an error about not being able to find libz.so
<duairc> It seems to be a fairly common thing, and can be solved by running ghci inside nix-shell -p zlib
<duairc> But is there a way that I don't have to do that?
Asmadeus has joined #nixos
<duairc> Also, I can't seem to build anything that depends on postgresql, it keeps not finding libpq-fe.h even though I have postgresql installed
<duairc> Ah, nix-shell fixed that
<duairc> I guess I'll just get used to using nix-shell
init_6_ has joined #nixos
<etu> duairc: direnv is nice if you want to get nix-shell environments automatically when entering directories
<duairc> etu: Okay, cool, I'll look into that
<etu> duairc: "use nix" in an .envrc loads the shell.nix in the same directory :)
init_6 has quit [Ping timeout: 268 seconds]
<duairc> I am kind of stressed at this point though, I've spent the last week setting up and learning NixOS and I'm not able to get any actual work done! Obviously that's my own problem, but I just hope I reach the summit of this learning curve soon...
init_6_ is now known as init_6
dogbread has quit [Quit: Konversation terminated!]
alex`` has joined #nixos
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 250 seconds]
knupfer has joined #nixos
tmaekawa has joined #nixos
<{^_^}> [nixpkgs] @roberth pushed to master « Revert "nixos/modules/misc/nixpkgs.nix: Use pure Nixpkgs function" »: https://git.io/fhCsn
tmaekawa has quit [Client Quit]
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
<plakband> I posted here yesterday about my mac mini, the live CD runs fine but when booting from disk I get a black screen after GRUB ((no)modeset has no effect).
<duairc> Actually even with nix-shell I'm still getting the libz.so error
<{^_^}> [nixpkgs] @primeos pushed to master « swayidle: init at 1.1 »: https://git.io/fhCsr
<plakband> Today I found out that I can actually boot from disk by first loading rEFInd from my live disk, and then booting normally from there (still going through GRUB)
<plakband> Anybody have an idea what causes this, and how I can boot without the disk?
silver has joined #nixos
<plakband> s/the disk/live disk
juliendehos has quit [Remote host closed the connection]
juliendehos has joined #nixos
sakalli_ has joined #nixos
sakalli_ has quit [Excess Flood]
sakalli_ has joined #nixos
periklis has joined #nixos
Jackneilll has joined #nixos
Jackneill has quit [Read error: Connection reset by peer]
sakalli_ has quit [Client Quit]
<Taneb> Is there a way to make a hydra server use an alternative nix store?
estrom has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « swaylock: init at 1.2 »: https://git.io/fhCGh
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/97e0d53d669 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<estrom> Does supplying and applying boot.kernelPatches also generate a new nixos generation like 'normal' configuration? I.e. will I be able to hop back to an unpatched build of the kernel?
<estrom> Also, instead of supplying e.g. 'pkgs.kernelPatches.ubuntu_fan_4_4' can I supply my own git patches?
<duairc> estrom: For your first question, I can't see any reason why not
knupfer has quit [Ping timeout: 250 seconds]
knupfer has joined #nixos
<duairc> And for your secondly, yes, I also don't see why not, they're just derivations like any other
<duairc> Take a look at nixpkgs/pkgs/os-specific/linux/kernel/patches.nix to see how they're defined
<duairc> Sorry, they're not derivations actually, they're {name, patch} attrsets
<duairc> name is a string and patch is a path
acarrico has joined #nixos
<estrom> duairc: That's really neat. I like so far how simple the nixos experience has been
<estrom> Can I find the nixpkgs/pkgs/os-specific/linux/kernel/patches.nix file on my machine? Currently looking at it on github
<duairc> estrom: nix-instantiate --eval --expr '<nixpkgs>'
hooo has joined #nixos
<estrom> Thanks for helping out :)
<hooo> should I start using nixos for all my needs?
ottidmes has joined #nixos
<etu> hooo: Sure, if you want to do that :-)
<srhb> hooo: Maybe, if it suits your needs!
<hooo> I'm so pissed off again today, Centos networking doesnt work anymore for no apparent reason. There is always something wrong with linux
<hooo> I should have never accepted any of these system updates
<etu> hooo: NixOS could hopefully be consistently broken then ;)
<etu> Since it's reproducible
<hooo> what about rollback support
<srhb> hooo: That is indeed one of the main magic tricks. If an upgrade breaks your world, you can usually postpone fixing it by booting into an earlier system.
<hooo> the only thing that worries me about nixos is all the new stuff I have to learn about
<srhb> Yep, it's a steep learning curve.
<etu> hooo: Yeah, the rollbacks have saved me more than once :-)
<rauno> A question, is there some restrictions by nixos with network namespaces ?
<rauno> Having a struggle with mesos and it's networking cni
knupfer has quit [Ping timeout: 258 seconds]
<ottidmes> Is there any existing Nix tool that can answer me this question or is there a way I can query the Nix store DB directly. I tried this, but I get an error about attempting to write a readonly database: sqlite3 /nix/var/nix/db/db.sqlite 'SELECT COUNT(drv) FROM DerivationOutputs WHERE path = "/nix/store/swzxzspyqad5qdbbpiwr20bg8p7nl0ph-test.txt"'
knupfer has joined #nixos
brejoc has joined #nixos
rauno has quit [Read error: Connection reset by peer]
<ar> hm. i've installed libvirt on nixos (added libvirt to "environment.systemPackages"), and things like virsh and libvirtd binaries are now available, libvirtd systemd unit doesn't show up
<ottidmes> hmm the readonly error was just simply running it as root
plakband has quit [Quit: WeeChat 2.3]
<mightybyte> I'm trying to use the NixOS gitlab-runner service to do CI. But I keep getting the following error:
<mightybyte> "Failed to start process: exec: "su": executable file not found in $PATH"
<mightybyte> Anyone know how to fix this?
<hooo> How exactly does nixos ensure that packages do not depend on each other? I dont understand what the config language being functional or whatever has to do with this
brejoc has quit [Ping timeout: 268 seconds]
<mightybyte> hooo: It stores every package in a unique content-addressed location
<hooo> so does it make docker obsolete?
<wedens> depends on what use case you have in mind
<mightybyte> Not completely, but it can be used in many of the same things you'd want docker for.
<wedens> btw, you can us nix to create small and reproducible docker images
<ottidmes> mightybyte: you probably have to add /run/wrappers/bin to your PATH
Makaveli7 has joined #nixos
drgbr has joined #nixos
<mightybyte> ottidmes: How do I do that? This is all in configuration.nix so my default assumption is that that's already handled.
<gchristensen> hooo: when a package is built, it is built in a sandbox which contains nothing but the packages explicitly listed as a dependency
<gchristensen> hooo: so it cannot accidentally depend on something you happened to have installed, because it can't look at your system
<ottidmes> mightybyte: well if PATH is overwritten at some point, the system can set it properly all it wants, so you probably have to check first where where the error is exactly coming from and what the environment is like at that point
fuzzy-id has joined #nixos
<duairc> I saw that cyris212 had the same problem as me with zlib.so a few days ago, they said that nuking ~/.ghc worked for them, but it didn't for me
<duairc> Specifically, snap fails to build for me, looking for zlib.so
<mightybyte> duairc: Are you responding to me?
<wedens> mightybyte: I'd probably try services.gitlab-runner.environment.PATH = [ "/run/wrappers/bin" ];
<mightybyte> wedens: Cool, thanks. I'll give that a try
mkoenig has quit [Ping timeout: 240 seconds]
<duairc> mightybyte: I wasn't responding to you, but it is funny I see you in #nixos at the exact moment when I'm trying (and failing to build) snap. I didn't know you used NixOS. Do you still contribute to snap?
erictapen has quit [Ping timeout: 268 seconds]
mkoenig has joined #nixos
periklis has quit [Ping timeout: 268 seconds]
rauno has joined #nixos
fuzzy-id has quit [Remote host closed the connection]
<mightybyte> duairc: Heh yes, that is kind of funny. I am still the primary maintainer of snap.
<mightybyte> duairc: Usually I build snap in a "nix-shell -p zlib" shell.
erictapen has joined #nixos
<wedens> mightybyte: actuall... I think `services.gitlab-runner.preStart = "export PATH=/run/wrappers/bin:$PATH"` has more chances to work :)
<duairc> mightybyte: Yeah, I've seen that trick, and it works for other libraries that depend on zlib, but for some reason I still get the zlib.so error when it tries to build snap
leotaku has quit [Remote host closed the connection]
leotaku has joined #nixos
<mightybyte> duairc: How are you trying to build snap? I think "nix-shell -p haskellPackages.snap" should work.
<duairc> mightybyte: Well I have a big cabal project with lots of pacakges, and I'm just trying to build the whole thing with cabal... I'm not using the derivations in haskellPackages, because I'm on nixos-unstable and they're all built with GHC 8.6, but a few of my dependencies still need 8.4 so I'm stuck on that
<duairc> Maybe there's a better way, I'm still very new to this
<ottidmes> duairc: then just use haskell.packages.ghc844 instead
<duairc> Oh wow, didn't realise you could just do that
<mightybyte> duairc: Oh, then you have to declare zlib as a dependency of your package.
<duairc> mightybyte: But it's snap-core itself which fails to build
<mightybyte> duairc: If you get snap via nix, it will know that zlib is a dependency. But if you get it via cabal, it will not.
<duairc> But okay, I'll try using haskell.packages.ghc844
d5[m] has left #nixos ["User left"]
<mightybyte> duairc: Yeah, s/snap/snap-core/ in all of my above comments should be a valid substitution.
<mightybyte> duairc: Try using this default.nix file with your project: https://gist.github.com/mightybyte/95091fe328ac6afca630764e461effa9
<duairc> mightybyte: Great, I'll try that out, thanks
<mightybyte> duairc: That's a nice general default.nix template that should build most haskell packages that don't have version dependencies incommpatible with your current version of nixpkgs.
<mightybyte> So just put that in your project directory and do nix-build.
abathur has joined #nixos
gagbo has quit [Quit: I'm out !]
<duairc> I haven't really got the hang of using nix with Haskell development yet... I guess I'll have to take that plunge now, but I haven't gotten any work done in over a week because I've been getting everything on my laptop set up and I was hoping I could just continue with the cabal way I know without having to learn more stuff just to get something done.
<mightybyte> duairc: Once you have some kind of a nix specification of your project, running "nix-shell" will drop you into a shell where all the dependencies are available. Then you can do normal cabal builds from there.
<duairc> mightybyte: Thanks, I really appreciate you helping me out here!
<mightybyte> duairc: You could continue with the cabal way, but you'd have to install all the non-haskell dependencies manually (kind of like you'd have to do with macOS, other Linux distros, etc).
<ottidmes> mightybyte: to fix your problem I think it should be: systemd.services.gitlab-runner.path = [ "/run/wrappers" ]; instead. I checked, path is defined with an apply of: apply = ps: "${makeBinPath ps}:${makeSearchPathOutput "bin" "sbin" ps}"; which if you test it has to be minus the /bin:
<ottidmes> > let ps = [ "/run/wrappers" ]; in "${makeBinPath ps}:${makeSearchPathOutput "bin" "sbin" ps}"
<{^_^}> "/run/wrappers/bin:/run/wrappers/sbin"
jomik has joined #nixos
<mightybyte> ottidmes: Great thanks! I'll try that now.
myskran has joined #nixos
Dedalo has quit [Ping timeout: 244 seconds]
abathur has quit [Ping timeout: 272 seconds]
<mightybyte> ottidmes: That seems to have fixed it! Should I open a bug about this? It seems like services.gitlab-runner should just work.
rauno has quit [Ping timeout: 268 seconds]
<wedens> mightybyte: PR would be great
<wedens> I may also need to use gitlab runner soon and I'd rather not remember to add this :)
<mightybyte> wedens: Ish, I'm afraid I don't know how to do that off-hand. Would it be a change to this line? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/continuous-integration/gitlab-runner.nix#L112
<{^_^}> [nixpkgs] @hedning merged pull request #53967 → osquery: fix build → https://git.io/fhc8D
<{^_^}> [nixpkgs] @hedning pushed 2 commits to master: https://git.io/fhCWr
<mightybyte> I also don't know how to make NixOS use a newer version of nixpkgs to test this.
<mightybyte> jomik: In configuration.nix?
<wedens> jomik: you can't do that for nixos modules
<jomik> Oh, for modules. Woops :D
gagbo has joined #nixos
gagbo has quit [Client Quit]
init_6 has quit []
ThatDocsLady_ has quit [Ping timeout: 268 seconds]
<wedens> I think testing modules using nixpkgs master will involve build-vm or something.. I'm curious myself about the exact procedure :)
<hooo> why doesnt the /etc/nixos/configuration.nix file contain partition tables and stuff like that?
<ottidmes> mightybyte: I think it suffices to test in on your own NixOS version, just take the master version of the gitlab-runner module, place it in your configuration directory, add disabledModules = [ "services/continuous-integration/gitlab-runner.nix" ]; to it to use it instead of the one in <nixpkgs/nixos>, and import it
<{^_^}> [nixpkgs] @dtzWill merged pull request #53975 → aminal: 0.8.5 -> 0.8.6 → https://git.io/fhc0V
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhCld
<mightybyte> ottidmes: I don't have time to try to figure out the fix right now, so I created this issue to track it. https://github.com/NixOS/nixpkgs/issues/53985
<{^_^}> #53985 (by mightybyte, 1 minute ago, open): NixOS services.gitlab-runner builds fail
symphorien has joined #nixos
<duairc> mightybyte: The default.nix file you gave me, if I have a big folder with lots of cabal packages managed by a cabal.project file, does that work for that? Or do I to have .nix files in each .cabal project?
tdbgamer has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
Makaveli7 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Ma27 opened pull request #53986 → nixos/prometheus-dovecot-exporter: enhance `socketPath` documentation → https://git.io/fhC8h
<wirew0rm> hooo: because it is autogenerated by nixos-generate config from the currently mounted devices and overwritten on subsequent runs. you can find it in /etc/nixos/hardware-configuration.nix which gets imported by configuration.nix
Makaveli7 has joined #nixos
<wedens> it's not a "partition table" though
pointfourone has joined #nixos
jomik has joined #nixos
<qyliss^work> Only if somebody goes to the trouble of making the backport PR, I think
<{^_^}> [nixpkgs] @globin pushed to gcc-8 « mesos: fix build with gcc8 »: https://git.io/fhC4R
<jomik> Maybe I should just toss my machine onto unstable... D:
<wedens> jomik: why not just use a package from unstable?
<wedens> or module
<jomik> How do I make the lightdm service use unstable then?
<jomik> Ah, rebuilding nixos, may need to restart.
<wedens> jomik: I don't think you need lightdm from unstable to use different greeter
<jomik> Probably not. But how do I get the enso greeter service from unstable ?
<wedens> by adding it to imports. `imports = [ "<unstable>/modules/services/x11/display-managers/lightdm-greeters/enso-os.nix" ];
jomik1 has joined #nixos
<jomik1> wedens I am back :D
Makaveli7 has quit [Quit: Leaving]
<wedens> `imports = [ <unstable/modules/services/x11/display-managers/lightdm-greeters/enso-os.nix>]` should be correct, I think :)
<wedens> `imports = [ <unstable/nixos/modules/services/x11/display-managers/lightdm-greeters/enso-os.nix>]` -_-
<jomik1> I guess I need an "unstable" channel then, ye?
<ottidmes> or if unstable is not in NIX_PATH but defined in an overlay as unstable = ...; then you would do: imports = [ (pkgs.unstable.path + "/nixos/modules/services/x11/display-managers/lightdm-greeters/enso-os.nix") ];
<wedens> `imports = [ unstable + "/nixos/modules/services/x11/display-managers/lightdm-greeters/enso-os.nix" ]` if you don't use channels
<jomik1> Ye okay.
<jomik1> I normally use a fetchFromGitHub thingy
jomik has quit [Ping timeout: 244 seconds]
<wedens> I've forgotten about braces inside expressions in lists in nix. again.
<wedens> * around
<jomik1> Btw, if I have an <unstable> channel, how can I then inherit from that in an overlay? If that makes sense.
<duairc> How do I convert a string like "../package" into an absolute path?
<wedens> jomik1: what do you mean "inherit"?
<wedens> duairc: path in the store?
<duairc> wedens: That's probably what's needed ultimately
<jomik1> wedens: `self: super: { inherit (unstable) thefuck direnv; }`
<wedens> > toString ./.
<{^_^}> "/var/lib/nixbot/state/nixpkgs"
<wedens> > "${./.}"
<{^_^}> access to path '/var/lib/nixbot/state/nixpkgs' is forbidden in restricted mode
romildo has joined #nixos
<romildo> After updating my unstable nixos system yesterday, I cannot run my local virtual machines with gnome-boxes anymore.
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f9bd1533773 (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<wedens> duairc: `toString path` will result in a "regular" path, "${path}" will copy to the store and provide a path in the store
<duairc> wedens: But my "path" is already a string
<duairc> Because it's derived from a variable which is a string
<romildo> I am getting the following messaging when running gnome-boxes from the terminal:
<romildo> (gnome-boxes:5243): Boxes-WARNING **: 12:23:38.938: libvirt-broker.vala:66: Failed to update domain 'boxes-unknown-2': Failed to set domain configuration: Cannot check QEMU binary /nix/store/cxbnr3h07d527d3lp16yjc2a9l9d6zk2-qemu-3.1.0/bin/qemu-system-x86_64: No such file or directory
<jomik1> I have `unstable = import (fetchFromGitHub {...} {}`, how would I replace that to just track `<unstable>` ?
<wedens> import <unstable> {}
<jomik1> Thanks :)
<duairc> wedens: I figured it actually, thanks!
<romildo> It seems that gnome-boxes is trying to use a qemu binary that is not installed anymore.
<romildo> Any clues?
jomik1 has quit [Quit: WeeChat 2.2]
knupfer has quit [Remote host closed the connection]
rauno has joined #nixos
reinhardt has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @hedning merged pull request #53960 → gtk3: 3.24.2 -> 3.24.3 → https://git.io/fhcfB
<{^_^}> [nixpkgs] @hedning pushed 2 commits to staging: https://git.io/fhCR6
<Taneb> Is there a nice way to say "Someone must type the password in to decrypt this drive during boot"?
<gchristensen> in code? or in words?
<gchristensen> because in words, that sounds nice
<Taneb> In code, ideally that I can put in my configuration.nix
<gchristensen> sure, is it LUKS?
<Taneb> No, ZFS
<gchristensen> no idea about encrypted zfs
<gchristensen> but with luks, if it for a password, it just ... prompts
<gchristensen> does it not work already?
<duairc> I'm using encrypted ZFS and it "just works" for me
<duairc> Well, I guess that's for /, I don't know how to do it for arbitrary drives
<Taneb> duairc: this isn't for /
<rauno> damn got dc before, has anyone idea about that network namespace question i asked before? as is there any limitation by nixos itself ?
<duairc> Taneb: I'd be interested to know if you figure this one out
<Taneb> I'm configuring a fileserver, the OS is on an SSD but the files are on a bunch of HDDs with encrypted ZFS
<duairc> I guess this is slightly different, but I think I want to make a LUKS partition that has within it two partitions: one for swap, and one containing a key, which is then used to decrypt a ZFS /
<gchristensen> Taneb: and it doesn't already work?
morr has quit [Quit: WeeChat 2.3]
<cransom> rauno: no, no arbitary network namespace i've ever ran into.
<ottidmes> it seems like the sqlite3 executable wants to always open the DB in read/write mode, I tried: sqlite3 file:///nix/var/nix/db/db.sqlite?mode=ro 'SELECT COUNT(*) FROM DerivationOutputs WHERE path = "/nix/store/swzxzspyqad5qdbbpiwr20bg8p7nl0ph-test.txt";' but I still get the error: attempt to write a readonly database, guess I will try the python bindings and see if it too complains
jabranham has joined #nixos
<Taneb> gchristensen: I've always had to decrypt the password after boot
<duairc> gchristensen: Awesome, I'll look at that later
<Taneb> gchristensen: maybe because it's not in my hardware-configuration.nix?
morr has joined #nixos
<duairc> gchristensen: Your ZFS partition is inside LUKS? I mean I want to use native ZFS encryption, but use LUKS to store the key for it
<{^_^}> [nixpkgs] @NinjaTrappeur opened pull request #53988 → bazel: fix python stub paths → https://git.io/fhC0A
brejoc has joined #nixos
<gchristensen> duairc: correct. I didn't pick ZFS encryption because it isn't stable yet.
tommyangelo has joined #nixos
brejoc has quit [Client Quit]
<{^_^}> [nixpkgs] @bjornfor opened pull request #53989 → nixos/pam: add pam_nologin.so by default → https://git.io/fhCEQ
<tommyangelo> `nixos-rebuild` is silently failing after a couple of downloads. There are no errors, it just stops. I can't find any related issues on github. Has anyone seen this behaviour before?
<wedens> tommyangelo: try adding -vvv
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<ottidmes> tommyangelo: are you on NixOS? what version of NixOS are you on? or what version of Nix are you using?
<tommyangelo> wedens: tried that, it just stops after a successful curl call. No errors are output
<duairc> tommyangelo: You haven't enabled nerdfonts, have you? I was experiencing behaviour like that when I did, basically it turns out it was downloading a 2GB tarball in the background, it wasn't actually stopped
<gchristensen> is it stopped, or is it still executing?
<tommyangelo> ottidmes: nixos 18.03 on a Vultr VM. nix is 2.0.4
<tommyangelo> duairc: no, this is a very minimal config on a server to run one service.
<duairc> In the source-overrides of haskell.lib.developPackage, is there a way to get them to apply transitively to dependencies as well?
<{^_^}> [nixpkgs] @dotlambda opened pull request #53990 → [WIP] esphomeyaml: init at 1.10.0 → https://git.io/fhCua
<tommyangelo> gchristensen: stopped afaict. The command exits, and top doesn't show any thing
<ottidmes> tommyangelo: then we can rule out the Nix 1.x being a problem, because a common problem when updating from 17.09 also had these symptoms, but it is apparantly something else
<{^_^}> [nixpkgs] @globin pushed 262 commits to gcc-8: https://git.io/fhCuD
Makaveli7 has joined #nixos
gagbo has joined #nixos
<jabranham> Does anyone have an example of using the nixos options borgbackup that I can take a look at?
<wedens> jabranham: you can try finding something useful on github https://github.com/search?l=Nix&q=services.borgbackup&type=Code
<jabranham> wedens: good idea, thanks
<teto> trying to fetch msmtp master since it fixes a bug. I override src with fetchFromGitLab https://paste.ubuntu.com/p/p8rt7YpWsV/ yet I can't generate the proper url. It's an hosted gitlab instance. Anyone knows what's wrong ?
<jabranham> teto: not sure, but you could just use fetchGit
samrose has quit [Read error: Connection reset by peer]
<Taneb> OK, I seem to have screwed something up somewhere
<Taneb> "nixos-rebuild test" looks like it's hanging
<wedens> teto: it doesn't look like existing commit
<teto> wedens: yet the commit should exist https://gitlab.marlam.de/marlam/msmtp/commit/9f9948732a0153a54f7324873fdb5cafbcd9d2d6 . I have a hardtime with gitlab, too many github habits
<teto> confusing thing is that sha=$rev in fetchFromGitLab def { rev } : url = .... ?sha={rev} .
gagbo has quit [Ping timeout: 240 seconds]
<wedens> it's probably some old gitlab version that doesn't have api that fetchFromGitLab uses
<Taneb> Whenever I do a nixos-rebuild switch I get "cp: cannot stat '/run/keys/initrd-ssh-key': No such filre or directory"
<{^_^}> [nixpkgs] @FRidh merged pull request #53972 → openblas: 0.3.4 -> 0.3.5, rework a bit → https://git.io/fhc0E
<{^_^}> [nixpkgs] @FRidh pushed commit from @dtzWill to staging « openblas: 0.3.4 -> 0.3.5, rework a bit (#53972) »: https://git.io/fhCaJ
<Taneb> This file used to be necessary when I was trying to get an initrd ssh server, but I removed mention of that from the nixos config files and yet this error persists
<gchristensen> sounds like you didn't completely remove it. are you sure you saved?
Guest74 has quit [Quit: Guest74]
<gchristensen> :thinking: I wonder if you have to delete the system profile for that generation
endformationage has joined #nixos
<Taneb> gchristensen: I've definitely saved
<Taneb> How would I delete a system profile?
<gchristensen> sudo rm /nix/var/nix/profiles/system-the-number-link
<Taneb> This is when I regret not writing down what each of these are...
<cransom> those have valid timestamps at least
<clever> Taneb: there is also a safer command, to prevent you from deleting an active one
linkrage has joined #nixos
<clever> [root@amd-nixos:~]$ nix-env --profile /nix/var/nix/profiles/system --list-generations
tzemanovic has joined #nixos
<clever> [root@amd-nixos:~]$ nix-env --profile /nix/var/nix/profiles/system --delete-generations 42
<clever> thats the "proper" way to do it
<gchristensen> ah right on, clever
tzemanov_ has joined #nixos
<clever> gchristensen: and for extra points, can you identify what this command does?
<clever> NIX_REMOTE=local?root=/mnt/img/ nix-env --profile /mnt/img/nix/var/nix/profiles/system --set -f '<nixpkgs/nixos>' -A system -I nixos-config=/mnt/img/etc/nixos/configuration.nix --option system aarch64-linux
iqubic has quit [Ping timeout: 268 seconds]
<gchristensen> uhhh builds a nixos system in that "remote"store? :thinking~
<clever> gchristensen: thats 80% of it, but what about the last 3 flags?
<ottidmes> clever: do you perhaps know if you can query the Nix store db.sqlite file without root?
<gchristensen> I assume it uses a remote builder to make it an aarch64 system in that remote store
<clever> ottidmes: `nix-store --query --something`
<clever> gchristensen: nope, --option system convinces nix that the "local" machine is aarch64
<clever> so builtins.currentSystem claims aarch64
<gchristensen> oh jeeze
<gchristensen> ok, so binfmt magic?
<clever> exactly!
<gchristensen> !!
<clever> that was used to modify an rpi image to have ssh enabled by default, because the user had no way to hook up a monitor
<gchristensen> omg!
<ottidmes> clever: I doubt you mean literally --something, I checked the nix-store manpage and tried the options listed, but unless I missed something you cannot query for all derivers for some output, like: sqlite3 /nix/var/nix/db/db.sqlite 'SELECT drv FROM DerivationOutputs WHERE path = "/nix/store/swzxzspyqad5qdbbpiwr20bg8p7nl0ph-test.txt";'
<gchristensen> clever: nix is sooo cool
<clever> and without ssh, you cant do anything, and cant use it as a remote builder
<clever> ottidmes: you can, one sec
tzemanovic has quit [Ping timeout: 252 seconds]
<teto> wedens: I feared so. I fell back on fetchurl which works. Thanks for the help !
<clever> $ nix-build '<nixpkgs>' -A glibc
<clever> /nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27
Ariakenom has quit [Ping timeout: 244 seconds]
<clever> ottidmes: to start with, i have a single output from a split-output package
<clever> $ nix-store --query --deriver /nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27
<clever> /nix/store/w9qswqwxbwymi1v068m8ha6yqz4cl64f-glibc-2.27.drv
<clever> now i have its .drv file
<clever> cat: /nix/store/w9qswqwxbwymi1v068m8ha6yqz4cl64f-glibc-2.27.drv: No such file or directory
<clever> ottidmes: dang, only works if the given drv exists in the store
<ottidmes> clever: does not work, --deriver uses the deriver field, which points to _a_ deriver, different info
<clever> yeah, and its the wrong drv
halfbit has joined #nixos
erasmas has joined #nixos
<clever> you probably need root then, or blindly loop over every .drv, or a new command in the daemon protocol
<clever> gchristensen: that SD card also needed a `switch-to-configuration boot` as well, but thats easy enough
<ottidmes> clever: I inspected the database itself and --deriver is useless, it actually refers to a old wrong hash deriver that just happened to be the first to mention the output, not the one actually building the output
<clever> gchristensen: the bigger pain-point, is that the fresh img from hydra, lacks /etc/NIXOS, and /nix/var/nix/profiles/system, so nixos-enter really doesnt like it
<gchristensen> ack
<{^_^}> [nixpkgs] @dywedir merged pull request #53933 → hexyl: 0.3.1 -> 0.4.0 → https://git.io/fhnb1
<{^_^}> [nixpkgs] @dywedir pushed to master « hexyl: 0.3.1 -> 0.4.0 »: https://git.io/fhCVP
romildo has quit [Ping timeout: 258 seconds]
<clever> gchristensen: also, due to entirely lacking a /etc, the configuration.nix for above was missing, so we had to nixos-generate-config one, and then fix it to not use grub
<gchristensen> I don't have an /etc on boot either, what is the trouble?
cyounkins has joined #nixos
<gchristensen> and I think nixos-generate-config doesn'at use grub for rpi?
<clever> nixos-rebuild and friends, on a fresh aarch64 image
<clever> gchristensen: no ssh, had to run nixos-generate-config on an x86 machine
<gchristensen> ooh right
<samueldr> the sd image hasn't had an activation made, AFAIUI, it's basically a copy of the closure + script to initialise the nix db at boot and activate
<clever> samueldr: switch-to-configuration must have been ran though, for /boot/ to be configured?
<clever> ahh
<samueldr> nothing is "ran" for the sd image
gagbo has joined #nixos
<clever> line 49 is the closest you get
<samueldr> yeah, let me rephrase "nothing from the resulting system is ran", it it makes more sense
<samueldr> all copied to FSes and then there's a pinky promise to rehydrate things as needed at first boot
<samueldr> makes it possible to do the images without having to run a VM
<{^_^}> [nixpkgs] @FRidh pushed 224 commits to staging-next: https://git.io/fhCwZ
o1lo01ol1o has joined #nixos
<makefu> u
<{^_^}> [nixpkgs] @FRidh pushed 225 commits to staging: https://git.io/fhCwB
<makefu> wupps :)
hyper_ch2 has quit [Quit: Page closed]
THFKA4 has quit [Ping timeout: 252 seconds]
<tommyangelo> ok
THFKA4 has joined #nixos
<tommyangelo> I found out what the problem was. The nix process is being OOMed
<Taneb> OK, on booting it dumps me in a maintenance terminal and tells me I need to fix things. "zfs load-key -a; zfs mount storage/encrypted" fixes things adequately
orivej has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @arianvp opened pull request #53991 → build-support/make-initrd: Don't derive derivation name from file name → https://git.io/fhCrY
<Taneb> "boot.zfs.requestEncryptionCredentials = true" seemed to make no difference, and neither did "boot.zfs.forceImportAll = false"
<Taneb> gchristensen: any clue what I might be missing?
<gchristensen> no idea, I've never used ZFS encryption
<Taneb> Ah, no worries
<Mic92> Taneb: do you have one or multiple pools?
ThatDocsLady_ has joined #nixos
<Taneb> Mic92: one pool, with one sub-dataset
<Mic92> Taneb: is the pool your filesystem?
<Mic92> *root fs
<Taneb> No
<Mic92> Taneb: is your root fs encrypted?
<Taneb> No
<Taneb> Although it's not the end of the world to make it so, just a bit of effort
<{^_^}> [nixpkgs] @fgaz opened pull request #53992 → Fix some dead links → https://git.io/fhCoG
<Mic92> Taneb: then this currently don't work because we only unlock the root pool via password. Data pools are imported by a systemd service where we only support key files: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/zfs.nix#L433
Tucky has quit [Quit: WeeChat 2.2]
<gchristensen> oh that should be fine, though, since the luks device containing the key can be passed as the key file, no?
<Taneb> Mic92: ach, that's frustrating
tzemanov_ has quit [Remote host closed the connection]
tzemanovic has joined #nixos
knupfer has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<Mic92> Taneb: if your rootfs is encrypted, you could put a key there for decryption of your data pool
tzemanovic has joined #nixos
<gchristensen> isn't that what Taneb already has?
tzemanovic has quit [Remote host closed the connection]
<Mic92> I don't have the context here.
<Taneb> gchristensen: no, only one, non-root dataset is encrypted
<Mic92> Taneb: should work too
tzemanovic has joined #nixos
<gchristensen> you have a luks partition with a key on it, right?
tzemanovic has quit [Remote host closed the connection]
<Taneb> gchristensen: no, I've been using a prompt
shibboleth has joined #nixos
<Mic92> You can add a key also postpone I think
<{^_^}> [nixpkgs] @fgaz opened pull request #53994 → maintainers: update fgaz's email address → https://git.io/fhCoo
tzemanovic has joined #nixos
<gchristensen> ohhhh duairc has the key on a partition
<Ankhers> Anyone having issues building blender-2.79b on NixOS?
tzemanovic has quit [Remote host closed the connection]
shibboleth has quit [Remote host closed the connection]
tzemanovic has joined #nixos
shibboleth has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<Mic92> zfs-import-partition.serviceConfig.RequiresMountsFor= should then assigned the key location
tzemanovic has joined #nixos
<Taneb> Mic92: thanks for your help, I'll give that a go
<Mic92> this makes sure that systemd mounts the cryptdevice partition before starting the zfs import service
tzemanovic has quit [Remote host closed the connection]
<simpson> Ankhers: I was able to build /nix/store/brja0pngfibd92g675qi3zwk8i3jwx1f-blender-2.79b just now. How is it not working?
<rnhmjoj> do builder.sh scripts need a shebang?
<Mic92> rnhmjoj: as far as I know nix starts the builder with builder.sh as an argument
<Ankhers> simpson: A lot of undefined reference errors. One sec. I didn't realize I had limited scrollback. Let me run it again and I will post the log.
<rnhmjoj> mic92: so it should be safe to remove...
<rnhmjoj> it seems so
linkrage has quit [Quit: Leaving]
<duairc> Is it possible to overlay the set of haskell packages available from inside developPackage?
Lears has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @globin pushed to gcc-8 « emscripten: 1.37.36 -> 1.38.22 »: https://git.io/fhC6C
babic has joined #nixos
xkapastel has joined #nixos
<babic> is there a nicer way to do something like let shared = import ./shared.nix; in with shared.nixpkgs; stdenv.mkDerivation { # ...
<babic> the goal with shared.nix is to share stuff between different nix files in the same project (duh)
pointfourone has left #nixos ["Leaving"]
<babic> like enforce the same pinned nixpkgs in shell.nix and default.nix and/or dockerImage.nix
<clever> babic: make a single default.nix that loads others with callPackage
erictapen has quit [Ping timeout: 268 seconds]
eeva has joined #nixos
<duairc> overrides (in Haskell developPackage) seems to not do anything, or at least only apply to direct dependencies of the project, not transitive ones
<clever> duairc: you want haskellPackages.override { overrides = ...
Lears has joined #nixos
<duairc> clever: I don't have to duplicate the override logic in multiple places? I mean technically the pkgs that will result from what you have there, pkgs.haskell.packages.ghc843 won't have that new stuff, only pkgs.haskellPackages
<clever> duairc: you can also skip the nixpkgs config and just directly to myHaskellPackages = pkgs.haskell.packages.ghc843.override { overrides = ....
<babic> clever: I'm not sure that's the same use case, my shared.nix is more like the lib.nix from that repo. But thanks for introducing me to that repo, it will help with other stuff I'll want to do.
<duairc> clever: I guess I'm missing some sort of bigger picture here. Two weeks ago, (at least from a Haskell point of view), I knew nothing about Nix. I have a big repo with a bunch of cabal packages and a cabal.project file that ties them all together. I just want to be able to build and test it, but there seem to be so many different ways to do that. Cabal itself doesn't work anymore because it can't find
<duairc> zlib.so no matter what I do. I don't know all the different approaches to Haskell in Nix fit together. I've read many things but they all seem to make each other obsolete (or not?). with your myHaskellPackages thing, where do I put that, and how do I use that to build my project?
philippD has joined #nixos
<clever> duairc: nix can only provide a shell suitable for a single cabal file by default
<clever> duairc: so most cabal files must be built by nix in /nix/store/ and then you get a shell suitable for developing one
<__monty__> You can manually create an environment with a ghcWithPackages that has *all* the required packages though. As long as there's no conflicts.
<duairc> So if I have a bunch of cabal packages that aren't on Hackage or known by Nix at all, how do I build a project that where all these packages depend on each other without repeating myself? Do I make a default.nix for each package?
<clever> duairc: make a foo.nix for foo.cabal, using cabal2nix, then callPackage all of those inside the overrides = ... block of a haskell package override
<{^_^}> [nixpkgs] @Mic92 merged pull request #52733 → jetbrains: 2018.3.1 -> 2018.3.2 → https://git.io/fhJFy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhCPQ
<clever> so when foo.cabal depends on bar, it will look for a bar attr in that set
Makaveli7 has quit [Ping timeout: 244 seconds]
<duairc> clever: Okay, but I the thing I'm missing is, where does the "haskell package override" go, how do I actually use it? You have it in config.nix, how does that get used by nix-build or nix-shell or whatever?
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to release-18.09: https://git.io/fhCXJ
<clever> duairc: you can either use it in a nixpkgs override set like https://github.com/input-output-hk/cardano-shell/blob/develop/release.nix#L2-L4
dermetfan has quit [Ping timeout: 268 seconds]
<clever> duairc: or you can just directly use the return value of something like pkgs.haskell.packages.ghc843.override { overrides = ....
<duairc> Okay, well one thing I wasn't getting before was that this gets passed to nixpkgs as the config parameter, that makes sense, I think
<duairc> I'm a little bit closer now
<clever> duairc: if the config param of nixpkgs is missing, it will automatically load ~/.nixpkgs/config.nix
<duairc> Wow, I never knew that
<duairc> Is that not ~/.config/nixpkgs instead of ~/.nixpkgs? Or are they interchangable?
tzemanovic has joined #nixos
<clever> duairc: ~/.nixpkgs is the old one, it has since moved to ~/.config/nixpkgs/
<clever> but it will look for both
<duairc> That makes sense, just checking
<clever> it will even look for $NIXPKGS_CONFIG which has a higher priority
knupfer has quit [Remote host closed the connection]
<clever> which defaults to the non-existant file /etc/nix/nixpkgs-config.nix
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<duairc> clever: I think I've just about put all these pieces together now... or at least I can see how to get something that will work, it might not be pretty at least it's a start
<duairc> Thanks, I really appreciate it
tommyangelo has quit [Quit: Leaving]
pSub has joined #nixos
pSub has joined #nixos
pSub has quit [Changing host]
<{^_^}> [nixops] @PsyanticY opened pull request #1079 → EC2_backend: Fix mispelled function → https://git.io/fhC1J
<{^_^}> [nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fhC1Z
<{^_^}> [nixops] @AmineChikhaoui merged pull request #1079 → EC2_backend: Fix mispelled function → https://git.io/fhC1J
cyounkins has quit [Ping timeout: 246 seconds]
<Taneb> Mic92: I've encrypted the root fs, now I just need to decide a good place to put the key for the ZFS dataset
orivej has joined #nixos
<mdash> How do I get systemd to see new unit files after `nixos-rebuild switch`? In particular, a system user session
<mdash> i've upgraded syncthing but 'systemctl --user cat syncthing.service' still shows the old one
<mdash> I tried `systemctl --user daemon-reload` but that doesn't seem to have done it
<{^_^}> [nixpkgs] @yorickvP opened pull request #53995 → pg_tmp, ephemeralpg: fix on darwin and merge → https://git.io/fhCMm
<{^_^}> [nixpkgs] @globin pushed 2 commits to gcc-8: https://git.io/fhCMY
<Taneb> Mic92: thanks a lot for your help
tilpner has joined #nixos
<Mic92> Taneb: the root fs should be mounted first in any case.
ddellacosta has joined #nixos
<Mic92> Taneb: I will mention the deficiency in the wiki so.
sinner has joined #nixos
sinner is now known as Guest39310
hph^ has quit []
Makaveli7 has joined #nixos
nst^ has joined #nixos
Guest39954 has quit [Ping timeout: 268 seconds]
Jackneill has joined #nixos
<wedens> clever: I've noticed there are two stack.yaml files in cardano-shell repo, and they use two different `shell-file` values, what's the point?
orivej has quit [Ping timeout: 268 seconds]
techieAgnostic has quit [Quit: ciao]
tA- has joined #nixos
<{^_^}> [nixpkgs] @pmahoney opened pull request #53996 → openfst: relax platform requirement to include darwin → https://git.io/fhCD1
dsiypl4 has joined #nixos
orivej has joined #nixos
steve-chavez has joined #nixos
<steve-chavez> Hello, how can I get the sha256 of a .deb file?
humanoyd has joined #nixos
waleee has joined #nixos
humanoyd is now known as Guest14411
<wedens> ,tofu steve-chavez
<{^_^}> steve-chavez: 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.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
orivej has quit [Ping timeout: 272 seconds]
<steve-chavez> wedens: Thank you
cyounkins has joined #nixos
Guest14411 has left #nixos ["WeeChat 2.3"]
<Taneb> Mic92++
<{^_^}> Mic92's karma got increased to 7
<Taneb> Mic92: you've helped me figure this out, thank you
<__monty__> Is nix-lang untyped or dynamically typed?
waleee has quit [Ping timeout: 272 seconds]
nst^ has quit []
<gchristensen> is it not strictly typed, since you have to toString things?
<infinisil> __monty__: dynamically
kisonecat has joined #nixos
<infinisil> Only once the code gets evaluated, the types are checked, so it's not static
<gchristensen> huh?
winem_ has quit [Ping timeout: 272 seconds]
<Mic92> that's true.
<infinisil> > if true then 1 + 2 else 1 + "foo"
<{^_^}> 3
<__monty__> And what types are there? String, function, list, record?
<infinisil> and a bunch of other primitives
<infinisil> int, float, null
<infinisil> > builtins.typeOf null
<{^_^}> "null"
<gchristensen> how does laziness make it dynamic?
<__monty__> gchristensen: In a statically typed lazy language that wouldn't be legal.
<clever> gchristensen: there are some nixos options that accept true, false, and "relaxed" for example
<gchristensen> so what does it make it?
<__monty__> Dynamically typed : )
<Mic92> gchristensen: you can assign types to function
<Mic92> *cannot
<gchristensen> what would it be if you don't have to use toString?
<clever> __monty__: here is the source behind typeOf, and every string it can return: https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L234-L259
<klntsky> How to `sudo` in pure env? See https://pastebin.com/raw/UCNMZ7MH
<infinisil> gchristensen: More weakly typed
<Mic92> the type is determined at runtime
sanscoeur has joined #nixos
<gchristensen> hehe, ok
boredom101 has joined #nixos
<clever> klntsky: use /run/wrappers/bin/sudo
<simpson> Mic92, __monty__: Careful not to conflate Nix's type system, which assigns types to values, with any underlying type theory for Nix, which surely is degenerate.
<{^_^}> [nixpkgs] @WilliButz opened pull request #53997 → grafana: 5.4.2 -> 5.4.3 → https://git.io/fhCSA
<__monty__> Huh, singleton lists and pairs are treated specially?
<infinisil> __monty__: There ain't no pairs in Nix afaik!
<klntsky> clever: clever!
<__monty__> Then what is tList2?
<clever> __monty__: yeah, behind the scenes, all values are a union over a value about 2 pointers long
<clever> __monty__: a [1] stores the value* directly in the first pointer
<clever> __monty__: [1,2] stores 2 value*'s directly there
<clever> and [1,2,3] and larger, store a pointer to the start of the list, and the size of the list
<__monty__> Ah, cool.
<infinisil> Just an implementation detail really
<clever> yeah
<clever> saves a pointer redirection, and allocating a tiny thing on the heap
sigmundv_ has quit [Ping timeout: 250 seconds]
<__monty__> simpson: Considering there's no "type theory of nix" doesn't the type system determine the type theory?
<clever> __monty__: another implementation detail, is that all sets, are technically int->value, rather then string->value
<{^_^}> [nixpkgs] @Mic92 merged pull request #53732 → clightning: 0.6.2 -> 0.6.3 → https://git.io/fhZ2N
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhC9c
<clever> there is a single global table, that maps the strings to ints
<clever> so all set lookups are based on int
<__monty__> Huh, unexpected.
<__monty__> Kinda surprised that works for nixpkgs without problems. I guess most keys repeat though.
<clever> certain keys like "name" are also pre-allocated early in the nixexpr startup
<clever> and the int behind it is stored into a global variable
<clever> so you can then lookup the "name" of a derivation, without ever doing strcmp("name",foo)
<simpson> __monty__: Eh. Sort of; we might demand that the relationship from the syntactic type system to the semantic type theory is functorial. But that's no problem here; all we're really saying, then, is that Nix's type system has features and restrictions which don't manifest in the type theory. (This dovetails nicely with the observation that Nix's values are only distinctly-typed inside Nix, and not outside Nix
<simpson> in the interpreter.)
<clever> __monty__: and also, all lists require the key/value pairs to be sorted by the key as an int
<Taneb> Plan for tomorrow is to migrate my work's Hydra server onto the fileserver I was setting up today and last week
<__monty__> clever: But they're not array-backed?
olto has joined #nixos
olto has quit [Remote host closed the connection]
olto has joined #nixos
<Mic92> __monty__: lists is stored as a c++ vector if that is your question.
<__monty__> Mic92: Then what did clever mean by key/value pairs are sorted by key? Arrays/vectors are always "sorted" by key/index, no?
olto has quit [Remote host closed the connection]
<Mic92> __monty__: I think attribute sets are sorted by key
olto has joined #nixos
slack1256 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
boredom101 has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
<__monty__> Ah, ok.
ThatDocsLady_ has quit [Ping timeout: 258 seconds]
<rauno> Hum, anyone here has experience with running mesos on nixos ?
freeman42x has joined #nixos
dermetfan has joined #nixos
<slack1256> What is the command to download paths and derivations to /nix/store?
<clever> slack1256: nix-store -r /nix/store/foo
WhittlesJr has joined #nixos
<{^_^}> [nixpkgs] @dtzWill closed pull request #53364 → boehmgc: fix musl build → https://git.io/fhYSq
olto has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill merged pull request #53974 → pkgconf: 1.5.4 -> 1.6.0 → https://git.io/fhc0g
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhCQq
olto has joined #nixos
<WhittlesJr> Hey, has anyone been talking about this? https://www.reddit.com/r/freebsd/comments/ag7sag/more_zfs_drama/
<WhittlesJr> I'm curious to know if this will affect ZFS on NixOS...
<{^_^}> [nixpkgs] @Profpatsch merged pull request #53988 → bazel: fix python stub paths → https://git.io/fhC0A
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @NinjaTrappeur to master « bazel: fix python stub paths. »: https://git.io/fhCQZ
<gchristensen> WhittlesJr: probably none
<gchristensen> ZFSoL isn't going anywhere. too many billions of dollars worth of data stored on it.
samrose has joined #nixos
<clever> WhittlesJr: as for why FPU stuff is special in kernel, most of the context-switching in the kernel assumes the FPU is not in use, so it doesnt need to backup and restore the FPU registers (huge) when context switching
<clever> so you need a special function to save&restore it, to not clobber whatever userland proc was using the FPU last
<gchristensen> the current thinking is adding a shim to SPL
<WhittlesJr> That's reassuring, thank you. People have been saying things like "well I'd rather switch OSs than switch file systems" so I got spooked.
witchof0x20 has joined #nixos
elgoosy has joined #nixos
juliendehos has quit [Remote host closed the connection]
dsiypl4 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #53958 → scribusUnstable: fix build failure from poppler bump → https://git.io/fhcfU
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fhC5v
<simpson> WhittlesJr: You'll still be able to do custom kernel patches. You might be impacted if you redistribute what you build.
<{^_^}> [nixpkgs] @veprbl merged pull request #53994 → maintainers: update fgaz's email address → https://git.io/fhCoo
<{^_^}> [nixpkgs] @veprbl pushed commit from @fgaz to master « maintainers: update fgaz's email address »: https://git.io/fhC5k
orivej has joined #nixos
<simpson> WhittlesJr: And yes, people are stubborn and hate admitting that they chose poorly when it comes to filesystems.
<__monty__> simpson: Are you saying people shouldn't run ZFS? (Not trying to start a flamewar. Just want to find out why if I understand you correctly.)
<simpson> __monty__: I'm saying that people should pay attention to the licenses for the code that they're using, and also that people who chose ZFS have been constantly warned that the license on the existing code is problematic.
<simpson> "every filesystem sucks", to borrow a phrase.
dsiypl4 has joined #nixos
bsima has joined #nixos
romildo has joined #nixos
<WhittlesJr> simpson: Yeah it's too bad about all the politics involved... I've been really happy with ZFS from a features+performance standpoint. I agonized for quite a while trying to choose between zfs and btrfs and finally went with zfs because it seemed more stable and featureful. I hope everything works out but if I end up having to switch filesystems then that's what I'll do.
<ivan> why does my services.nix-serve error with nix-daemon[8915]: error processing connection: user 'nix-serve' is not allowed to connect to the Nix daemon
<ivan> I don't need to make it a trusted user, do i?
<gchristensen> simpson: the license incompatabilty is only in distribution, though.
<ivan> oh hardened profile nix.allowedUsers = mkDefault [ "@users" ];
Dagger has quit [Excess Flood]
kisoneca1 has joined #nixos
<__monty__> gchristensen: Doesn't that mean nixpkgs could no longer provide zfs packages?
<simpson> gchristensen: Right.
<gchristensen> no, it can't provide a combined kernel + zfs package
<nek0> My dear bretheren, I am in peril. I am trying to update monodevelop, because I might need it in the foreseeable future. My build process comes to a halt with errors: "Error: NameResolutionFailure". Does somebody have some experience in the field?
Dagger2 has joined #nixos
<rauno> how does substituteInPlace --subst-var-by mount work with @mount@ vars in source files?
<gchristensen> __monty__: we can distribute a compiled kernel, and a compiled zfs, as long as you mush them together on your own.
<simpson> WhittlesJr: Meh. The ZFS-on-Linux meme-pushers have had a good decade to document the ZFS core, which supposedly was only "10kloc" of "simple" code, and reimplement it in-kernel on top of VFS with a GPL license. They just didn't think they'd ever have to, apparently.
Mateon3 has joined #nixos
<simpson> Of course, it'd be imprudent to ignore that many ZFS fans *like* the idea of skipping VFS, md, etc.
<gchristensen> meme
<samueldr> might I suggest moving the ZFS licensing discussion to ↘️ #nixos-chat, to ensure questions aren't lost through it?
<gchristensen> +1 samueldr
<simpson> Oh, sorry, yeah.
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
kisoneca1 has quit [Client Quit]
<__monty__> rauno: The @ wrapping is just the cue for what things get substituted.
<samueldr> rauno: the patch contents has no way to know where the resulting binaries will be
<samueldr> and it needs to (should) point to an absolute path
sanscoeur has quit [Read error: Connection reset by peer]
<__monty__> It's like ${these} for string interpolation.
sanscoeur has joined #nixos
<rauno> ah okay :)
<symphorien> nek0: in the build sandbox, network access is forbidden
<nek0> symphorien: ahh. thanks.
MP2E has joined #nixos
grumble is now known as AMENDMENT_EFFFFF
AMENDMENT_EFFFFF is now known as grumble
mtesseract has joined #nixos
shibboleth has quit [Quit: shibboleth]
ubert has quit [Quit: Leaving]
dermetfan has quit [Quit: WeeChat 2.3]
__red__ has joined #nixos
<__red__> I have an application that has to be compiled using gcc-4.9 - is there a way to get nix-shell to give me a -p stdenv that includes that compiler?
<__red__> or how else would you recommend I approach it>?
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson> > overrideCC gccStdenv gcc49
<{^_^}> "<derivation /nix/store/sczmm94lwnh12w05sn9a2fli34i02xfj-stdenv-linux.drv>"
<simpson> __red__: ^^ this is how it's done in nixpkgs. It's not documented in the manual.
<__red__> thanks
<__red__> so - I think I know how to get that into a nix-shell
<{^_^}> [nixpkgs] @MP2E pushed to master « discord: 0.0.5 -> 0.0.7 »: https://git.io/fhCNR
<__red__> or not
<__red__> how would I get that into a nix-shell?
<simpson> I'm not sure. I bet that writing a derivation would be preferable.
<symphorien> __red__: http://xelpaste.net/VxUfEJ run this with nix-shell
mikky has quit [Ping timeout: 252 seconds]
<__red__> thanks
snajpa has quit [Read error: Connection reset by peer]
mikky has joined #nixos
snajpa has joined #nixos
aither has quit [Ping timeout: 250 seconds]
sanscoeur has quit [Remote host closed the connection]
<__red__> symphorien: dropped that in a default.nix - copying stuff down now - thank you :-)
sanscoeur has joined #nixos
aither has joined #nixos
Denommus has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Xal has quit [Ping timeout: 268 seconds]
adamantium has quit [Quit: ZNC 1.6.5-elitebnc:7 - http://elitebnc.org]
<{^_^}> [nixpkgs] @globin merged pull request #53997 → grafana: 5.4.2 -> 5.4.3 → https://git.io/fhCSA
<{^_^}> [nixpkgs] @globin pushed commit from @WilliButz to master « grafana: 5.4.2 -> 5.4.3 »: https://git.io/fhCA5
adamantium has joined #nixos
Xal has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53992 → Fix some dead links → https://git.io/fhCoG
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fhCxT
_kwstas has joined #nixos
_kwstas has quit [Ping timeout: 245 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
kvda has quit [Client Quit]
steve-chavez has quit [Quit: Page closed]
shibboleth has joined #nixos
kisonecat has quit [Ping timeout: 268 seconds]
_kwstas has joined #nixos
kisonecat has joined #nixos
halfbit has quit [Ping timeout: 250 seconds]
<__red__> simpson, symphorien: Is there a more generic version of overideCC? I need to also override texinfo
<symphorien> how ?
halfbit has joined #nixos
<__red__> I'm compiling old software, the the latter versions of the texi files contain stuff that's considered a syntax error in modern versions
doyougnu has joined #nixos
<__red__> this kind of stuff: "warning: @itemx should not begin @table"
<symphorien> so what would you like to override ?
Guanin has joined #nixos
<__red__> the version of texinfo in stdenv
<symphorien> does texinfo belong to stdenv ?
<symphorien> otherwise, nixpkgs has texinfo4
<__red__> lemme dig and double-check
<symphorien> so add texinfo4 to buildInputs
TheAppleMan has joined #nixos
<__red__> ah, ioh - this is pollution from my environment
<symphorien> you can run nix-shell --pure
<__red__> oh man, I wish I knew about that years ago
<__red__> thank yo :-)
<__red__> yoU
elgoosy has quit [Remote host closed the connection]
yayforj has joined #nixos
_kwstas has quit [Quit: _kwstas]
_d0t has joined #nixos
kisonecat has quit [Ping timeout: 268 seconds]
knupfer has joined #nixos
WhittlesJr has quit [Quit: Page closed]
Ariakenom has joined #nixos
shibboleth has quit [Quit: shibboleth]
civodul has joined #nixos
TheAppleMan has quit [Remote host closed the connection]
TheAppleMan has joined #nixos
TheAppleMan has quit [Remote host closed the connection]
TheAppleMan has joined #nixos
TheAppleMan has quit [Remote host closed the connection]
TheAppleMan has joined #nixos
fendor has joined #nixos
TheAppleMan has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
THFKA4 has quit [Ping timeout: 252 seconds]
TheAppleMan has joined #nixos
myskran has quit [Quit: myskran]
THFKA4 has joined #nixos
pSub has quit [Quit: pSub]
TheAppleMan has quit [Remote host closed the connection]
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
slack1256 has quit [Remote host closed the connection]
Celmor has joined #nixos
<Celmor> is it possible to install a package in a livecd session?
<gchristensen> sure
doyougnu has quit [Ping timeout: 258 seconds]
<Celmor> `nix-env -qa` didn't list what I looked for, so I run `nix-channel --update`, another nix-env errors with 'This version of Nixpkgs requires Nix >= 2.0, please upgrade' so I tried `nixos-rebuild switch` which then errors with ' The ‘fileSystems’ option does not specify your root file system.'
<infinisil> Oh, that's pretty bad
<gchristensen> when did you get this livecd?
olto has quit [Quit: switching offline]
<{^_^}> [nixpkgs] @8084 opened pull request #54000 → init: create_ap at 0.4.6 → https://git.io/fhWea
<Celmor> 2018-02-02
<gchristensen> aye, probably best to fetch a new one
<Celmor> I've been told that this is how it was built: https://github.com/sjau/nix-expressions/blob/master/customIso.nix
sigmundv_ has joined #nixos
<gchristensen> hyper_ch:
<hyper_ch> gchristensen: yes?
_kwstas has joined #nixos
doyougnu has joined #nixos
<Celmor> can't rebuild it because I don't have that custom repo which some of the software (zfs) is fetched from
iqubic has joined #nixos
<hyper_ch> what custom repo?
<Celmor> `nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=customIso.nix -I nixpkgs=/home/hyper/Desktop/git-repos/nixpkgs-zfs`
<iqubic> Alright, so Discord is demanding that I install its update before it will work for me. FML.
<hyper_ch> Celmor: what do you need custom zfs repo for?
_kwstas has quit [Client Quit]
<Celmor> had some patches
<hyper_ch> what kind of patches?
<iqubic> is there something I can do about that?
<Celmor> hyper_ch, https://ptpb.pw/PEh1
<hyper_ch> that's all been merged ;)
<hyper_ch> no need for custom repo anymore
<hyper_ch> just enable unstable
<gagbo> I'm wondering, do you guys have a separate partition for /home or do you just put everything in /, assuming that anyway /nix/store separates everything non-user from the rest ?
<hyper_ch> boot.zfs.enableUnstable = true;
<hyper_ch> gagbo: I don't run sepearte /home
<hyper_ch> but could easily create a dataset in zfs for it if I wanted
<hyper_ch> my head is smoking with RTF syntax
<Celmor> hyper_ch, which already is the case in the customIso.nix: https://github.com/sjau/nix-expressions/blob/master/customIso.nix
<{^_^}> [nixpkgs] @christoph00 closed pull request #53764 → bitwigstudio2: 2.3.5 -> 2.4.3 → https://git.io/fhZ1H
<hyper_ch> Celmor: so, you just need that and rebuild
<Celmor> so I just don't need tp specify that local repo from the command I listed (remove -I and everything after)?
<iqubic> Why must discord be a pain?
<hyper_ch> Celmor: what nixos version are you on?
<Celmor> I'm simply running the nixos livecd you originally gave me
<Celmor> all I wanted is to add a package
<infinisil> gagbo: I have a separate /home, /nix, /var/lib and /boot
<Celmor> but I guess getting a newer zfs version would be nice too
<hyper_ch> Celmor: you should upgrade :)
<infinisil> (and / of course)
<gchristensen> why use zfs in al ive cd?
<hyper_ch> gchristensen: to install native encrypted root zfs on a new system
<Celmor> because it's using "experimental" features
<gchristensen> you don't need a livecd to get zfsunstable
<gchristensen> erm, you don't need a *custom* one
_kwstas has joined #nixos
<gchristensen> you can edit the standard livecd's config and add zfsUnstable config to it, nixos-rebuild switch, then continue on
<Celmor> I'm by no means familiar with nixos so I figured the easiest way would be to re-use the same livecd/configuration
<hyper_ch> gchristensen: well, I have altered my custom iso quite a bit over time
<hyper_ch> like having sane keyboard input ;)
<hyper_ch> Celmor: should be enough to just nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=customIso.nix
<Celmor> that's exactly what I tried without any luck
<hyper_ch> ah... system too old :)
oida has quit [Remote host closed the connection]
<gagbo> infinisil: hyper_ch ok thanks for the input guys
<iqubic> Is there a way to update a package with nix, while not waitin for the 6 month stable release? For some reason the chat application Discord has decided that it wants me to update right now, before I can use this application.
<gchristensen> iqubic: the discord update is already backported, going through the release process
babic has quit [Ping timeout: 268 seconds]
<hyper_ch> Celmor: you need to remove line 8 adn lines 84 - 100
<iqubic> Ah. Good. I didn't know that.
<hyper_ch> Celmor: I use that to add some custom files to the live iso /root folder for almost automated zfs install
<iqubic> How long do you think it will be before it hits stable?
<iqubic> Or can I just fetch it from unstable right now?
_kwstas has quit [Client Quit]
<hyper_ch> Celmor: also line 21 set to your keyboard layout
<hyper_ch> I'm off now
<Celmor> thanks for your help
ajs124 has quit [Quit: Gateway shutdown]
<{^_^}> [nixpkgs] @jb55 opened pull request #54001 → clightning: 0.6.1 -> 0.6.3 (security, 18.09 backport) → https://git.io/fhWfW
oida has joined #nixos
<infinisil> Yeah, placeholder is a Nix 2.0 feature.. And people *really* wanted to use this in nixpkgs asap, so now it's incompatible with too old nix versions..
<tilpner> ,unstable iqubic
<iqubic> tilpner: I know how to do that.
<Celmor> infinisil, alright, how can I fix it?
<tilpner> Then why do you ask if just can just fetch it from unstable?
lord| has quit [Read error: Connection reset by peer]
<infinisil> Celmor: You're in the install iso?
<iqubic> tilpner: My question is thus: "if I pull Discord from unstable, will I have the latest Discord update?"
winem_ has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<Celmor> I am in a VM in which I booted the the livecd generated by the same config about a year ago
lord| has joined #nixos
<tilpner> The latest in unstable. But you can also fetch from master
<tilpner> So as long as the version you want is merged, you can fetch it
<iqubic> tilpner: I'm not sure I can.
<infinisil> Celmor: I think it might work if you just nix-shell into a nix 2.0 version: `nix-shell -p nixUnstable`
<{^_^}> [nixpkgs] @dywedir merged pull request #53220 → way-cooler: 0.8.0 -> 0.8.1 → https://git.io/fhqQf
<{^_^}> [nixpkgs] @dywedir pushed commit from @gnidorah to master « way-cooler: 0.8.0 -> 0.8.1 (#53220) »: https://git.io/fhWfy
<tilpner> iqubic: I'm sure I can
<iqubic> The version I want is currently being backported, and is in the review process right now.
<iqubic> I don't want to wait for the review process, so I want to just pull it from unstable.
<tilpner> If it's being backported, that implies it first hit master
<iqubic> IDK what that means for how I should get it.
<tilpner> If you already know how to use packages from unstable: you do just that, just with a different URL
<Celmor> no such luck
<tilpner> You can check the current version of a package in various channels like this
<tilpner> nix-instantiate --eval channel:nixos-unstable -A hello.name
<tilpner> You might not need master, it's probably in nixpkgs-unstable
<iqubic> What is the difference between unstable and master?
<symphorien> unstable is tested, master is not
<iqubic> So why is it called unstable if it is tested?
<symphorien> tests are never exhaustive
<symphorien> there are still regressions
<thoughtpolice> Because it's not a release branch and APIs can change. Hell, it might even break your bootloader.
<gchristensen> also, its changes are unbounded. your code may work with it today, and then require a massive change tomorrow
vk3wtf has quit [Ping timeout: 264 seconds]
<infinisil> Celmor: Okay try using `$(nix-build --no-out-link https://github.com/NixOS/nixpkgs/archive/4b649a99.tar.gz -A nix)/bin/nix-build` instead of nix-build directly
<infinisil> Celmor: This should build a nix 2.0 version from a nixpkgs version that doesn't yet require nix 2.0
<gchristensen> I think placeholder requires daemon support, but it might work...
<infinisil> Oh
<infinisil> Goddamnit, I hate backwards incompatibilities
<gchristensen> nix 2.2 has new good ones :)
<symphorien> then run with sudo, it bypasses the daemon
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @timokau closed pull request #53847 → python.pkgs.glances: add graph support → https://git.io/fhnCk
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « gitRepo: 1.13.1 -> 1.13.2 »: https://git.io/fhWUZ
freeman42y has joined #nixos
<infinisil> gchristensen: Could you possibly run ofborg with the minimum Nix version as specified in lib/minver.nix such that we can prevent such breakages before they get merged?
THFKA4 has quit [Ping timeout: 268 seconds]
<Celmor> I've tried `$(nix-build --no-out-link https://github.com/NixOS/nixpkgs/archive/4b649a99.tar.gz -A nix)/bin/nix-build` and `$(nix-build --no-out-link https://github.com/NixOS/nixpkgs/archive/4b649a99.tar.gz -A nix)/bin/nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=zfs.nix` https://ptpb.pw/EhwN
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #53903 → torsocks: 2.2.0 -> 2.3.0 → https://git.io/fhn9w
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @dtzWill to master « torsocks: 2.2.0 -> 2.3.0 »: https://git.io/fhWU1
kvda has joined #nixos
THFKA4 has joined #nixos
<dmj`> where is the base32 binary located? which nix pkg
<infinisil> Celmor: Sounds like too little RAM.. Nix can be quite hungry, but there also have been some old versions that were particularly hungry
<johnw> hi dmj`!
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to release-18.09: https://git.io/fhWU5
<{^_^}> [nixpkgs] @veprbl merged pull request #53940 → [18.09] dub: Fix package build → https://git.io/fhnxL
o1lo01ol1o has quit [Remote host closed the connection]
<dmj`> hey johnw :)
freeman42x has quit [Ping timeout: 252 seconds]
<infinisil> Celmor: Try `-A nixUnstable` instead of `-A nix`, worth a try, maybe the newer version is better
<Celmor> infinisil, you mean for tmpfs or does it actually require memory? couldn't I mount a network share?
samrose has quit [Ping timeout: 245 seconds]
<infinisil> Yeah it needs memory, you could use swap though
samrose_ has joined #nixos
o1lo01ol1o has joined #nixos
<symphorien> it can be that $TMPDIR is in /run and is too small
<dmj`> johnw: long time no talk :)
_kwstas has joined #nixos
freedan42x has joined #nixos
ma27 has quit [Quit: WeeChat 2.2]
Judson has joined #nixos
vyorkin has joined #nixos
vyorkin has quit [Client Quit]
ma27 has joined #nixos
<Judson> I know already that I got up on the wrong side of the bed today, but: nix-env -iA nixpkgs.jira-cli #-> error: jira-2.0.0 not supported for interpreter python2.7
<Judson> My gut reaction is that this is what comes of repo-scoped mirroring of the upstream package repos.
* Judson grumps
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @dywedir pushed commit from @P-E-Meunier to master « toml2nix: init at 0.1.1 (#53883) »: https://git.io/fhWTS
<{^_^}> [nixpkgs] @dywedir merged pull request #53883 → toml2nix: init at 0.1.1 → https://git.io/fhnXV
<infinisil> Judson: My guess is that something just got updated in the dependency tree of jira, and nobody bothered to check whether jira still works with it
<infinisil> Judson: `nix-env -iE 'pkgs: pkgs.jira-cli.override { pythonPackages = pkgs.python3Packages; }'` should work
<infinisil> (as in, some dependency deprecated support for python 2)
<{^_^}> [nixpkgs] @domenkozar opened pull request #54005 → Geoclue2 downgrade → https://git.io/fhWkf
<Celmor> looks like it's actually building now, gave it 15G
freedan42x has quit [Quit: Leaving]
ddellacosta has quit [Remote host closed the connection]
Dedalo has joined #nixos
protocol has quit [Quit: WeeChat 2.2]
ng0 has quit [Quit: Alexa, when is the end of world?]
LogicAside has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
vk3wtf has joined #nixos
<infinisil> Celmor: Looks like it worked :)
<Dedalo> I have a strange issue. I have a new X1 Carbon 6th and the battery charge doesn't go over 79%. It used to charge completely till two days ago, suddenly it doens't anymore. I have tried, today. to fully discharge the battery, but it's still not charghing more than 79%. I can't understand why. Is there a way to fix it? I know that some of you are using the same laptop, it may happened to you as well.
<benley> Dedalo: I have one of those too. Have you updated the firmware on it?
<infinisil> That can just happen when the battery gets a bit old
<benley> iirc they changed some power related EC things in a recent firmware release
<tilpner> ^ looks relevant
<benley> it can, but these laptops only came into existence like a year ago
<infinisil> Oh
<Dedalo> benley: yes I did, I have used Windows just for that, I have updated the firmware, then I have removed Windows and installed NixOS.
knupfer has quit [Remote host closed the connection]
<benley> k cool
tzemanovic has quit [Remote host closed the connection]
<Dedalo> tilpner: I'm using that already, it's imported in my configuration.nix
Ariakenom has quit [Read error: Connection reset by peer]
<benley> tilpner: wow, I've never seen that handful of parameters before
<Celmor> infinisil, and bootable, thanks for your help
<Dedalo> benley: the laptop is new, it has about 3 weeks
<tilpner> So you told it to stop at 80%, and now wonder it does what you said? I don't use tlp anymore, but I think that's what that means
<tilpner> *wonder why it does
<{^_^}> [nixpkgs] @Infinisil opened pull request #54006 → hackage2nix: Add megaparsec < 7.0 for idris → https://git.io/fhWIE
<Celmor> though I haven't been able to getting a generated nixos livecd to boot after writing to a flash drive
<gchristensen> infinisil: it is complicated by needing to support the previous stable too
eadwu has joined #nixos
<tilpner> Read the linked article, it seems to be a measure of improving lifetime
<infinisil> gchristensen: Context?
tzemanov_ has joined #nixos
<benley> those tlp thresholds are cool but holy cow, I don't think I would set those as defaults for anybody without making them understand what was happening first
<gchristensen> 21:24 <infinisil> gchristensen: Could you possibly run ofborg with the minimum Nix version as specified in lib/minver.nix such that we can prevent such breakages before they get merged?
<Dedalo> tilpner: oh shit, I didn't notice that, I have included because I thought it was necessary
<Dedalo> tilpner: now I see... jiz
<{^_^}> [nixpkgs] @dywedir merged pull request #53952 → nixos/gitea: minor fixes → https://git.io/fhnhj
<{^_^}> [nixpkgs] @dywedir pushed 3 commits to master: https://git.io/fhWIP
<tilpner> You should probably read things you put in your config :)
<infinisil> gchristensen: Hmm I see, I have this idea of putting some expression into nixpkgs that builds you a Nix of the minimal version, so you can say `(import <nixpkgs> {}).nixMinimal`. This should optimally be compatible with a lot of previous Nix versions
<Dedalo> tilpner: you right, I should have read it. Indeed, do you think is going to save battery life?
<infinisil> So the dependency graph shouldn't use placeholder, etc.
<tilpner> Dedalo: Read the linked article. I don't know, I have no thinkpads
anderslundstedt has joined #nixos
<infinisil> gchristensen: Then tools like ofborg could use this instead of their own Nix
<infinisil> More purity!
<gchristensen> ofborg couldn't use that
<gchristensen> it is easy to imagine a PR which changes nixMinimal to my-cool-malware
<Celmor> is zfs version of 0.7.0 normal in a newly built image?
<Dedalo> I heard that kernel 5.0 is dropping ZFS support, is that true?
<gchristensen> no
<clever> Dedalo: the problem feature is only used to make checksums run faster, and the optional thing can just be turned off
<gchristensen> the kernels has never supported ZFS
<simpson> Dedalo: It's not even wrong; Linux didn't have ZFS support before.
<{^_^}> [nixpkgs] @matthewbauer merged pull request #53996 → openfst: relax platform requirement to include darwin → https://git.io/fhCD1
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhWIx
shpx has joined #nixos
<__monty__> Better add an entry to the knowledge base. Can imagine that question'll come up more : )
LogicAside has joined #nixos
dermetfan has joined #nixos
<gchristensen> ,zfsol = Linux Kernel 5 made a minor API change which people are saying is breaking ZFS. It'll be fine. ZFS isn't going anywhere. https://github.com/zfsonlinux/zfs/issues/8259
<{^_^}> zfsonlinux/zfs#8259 (by tonyhutter, 6 days ago, open): Linux 5.0: _kernel_fpu{begin,end} no longer exported
<Dedalo> clever: how do I turn it off?
<gchristensen> Dedalo: youdon't have to do anything.
<clever> Dedalo: i expect the nixpkgs expression for zfs to do that for you, when the update comes around
yayforj has quit [Ping timeout: 268 seconds]
<infinisil> gchristensen: The usual abbreviation is ZoL btw
LogicAside has quit [Client Quit]
LogicAside has joined #nixos
<gchristensen> {^_^} didn't remember it, anyway :P
<Dedalo> clever: good to know because I would like to use ZFS even with the new kernel :-)
<infinisil> Ohhh
<infinisil> Yeah I forgot I didn't fix that yet..
* infinisil goes to fix it
<thoughtpolice> Hrm, is there an easy way to get the closure of all the things that will be inside nix-shell? Like, if I do 'nix-shell shell.nix' or 'nix-shell -A foo', how can I get the closure of all the build deps?
nst^ has joined #nixos
<{^_^}> [nixpkgs] @jtojnar opened pull request #54007 → Darwin GSettings support → https://git.io/fhWLl
gagbo has quit [Quit: I'm out !]
<thoughtpolice> It's sort of a weird case. I don't actually have a default.nix, just a shell.nix I use to do some iterative development. So the expression isn't using stdenv.mkDerivation, it uses pkgs.runCommand
gagbo has joined #nixos
<thoughtpolice> So for right now I just have this weird hack that just takes all the buildInputs and writes them to $out/nix-support/propagated-build-inputs to keep things clean
<thoughtpolice> Then `nix path-info -r $(nix-build --no-link shell.nix)` will do the trick. Is there an easier way?
<gchristensen> I have used https://gist.github.com/grahamc/7766657dbc3d3b13c7911d62a00f5fac + nix-build in the past
hedning has quit [Quit: hedning]
<thoughtpolice> Interesting.
<thoughtpolice> My intent is basically that I want to put a cache for my shell.nix somewhere
<thoughtpolice> And people can just use the trusted-substituters option at nix-shell time
<thoughtpolice> So it just pulls in the *closure* of things for building, but the actual "environment" is still created by the user
<thoughtpolice> (This is because my shell.nix contains stuff out of tree, so it's to avoid building)
<clever> thoughtpolice: whats wrong with just running a hydra that hosts the result of the full build (and anything hydra had to dl to do so)
<jabranham> In the systemd journal ("journalctl -b -p 3"), I have "systemd-modules-load[534]: Failed to find module 'snd_pcm_oss'". Is this cause for alarm?
<Guanin> That seems audio related - if everything works related to sound, it's probably fine I'd guess
<LnL> gchristensen: thoughtpolice: put env-vars in the output, that should keep about everything alive
<{^_^}> [nixpkgs] @palfrey opened pull request #54008 → libnetfilter_acct: init at 1.0.3 → https://git.io/fhWt2
<Guanin> jabranham, I just noticed that I have the same error, but never noticed it
<jabranham> Guanin: yeah, my sound is working just fine. I just don't like having weird log messages :-)
<LnL> gchristensen: thoughtpolice: alltho that's kind of an implementation detail, runCommand "foo" {} "cp env-vars $out"
<Dedalo> How do I include just this: `https://github.com/NixOS/nixos-hardware/blob/master/common/pc/laptop/cpu-throttling-bug.nix` instead of the whole X1 Carbon hw profile?
<Guanin> jabranham, it might be related to https://nixos.org/nixos/options.html#sound.enableossemulation ? At least, snd_pcm_oss seems to be a module that provides OSS emulation
romildo has quit [Ping timeout: 268 seconds]
<Guanin> jabranham, the module is added here, but it probably just fails? https://github.com/NixOS/nixpkgs/blob/release-18.09/nixos/modules/services/audio/alsa.nix#L100
<jabranham> Guanin: so if the module is failing to load, I should probably just go ahead and switch that to false, right?
<Guanin> As far as I know, OSS is only used rarely in applications, so it is probably safe to disable
Guest39310 has quit [Ping timeout: 258 seconds]
<Celmor> is zfs included in nixos (isos) by default?
<Celmor> as my config
_kwstas has quit [Quit: _kwstas]
<gchristensen> yes
<gchristensen> but not unstable
<Guanin> jabranham, but it seems like the default kernel config (at least for unstable.linuxPackages_4_20) does not have OSS emulation enabled, so the module is not compiled (as far as I understand)
<jabranham> Guanin: ah, so this likely fails for everyone, not just us
<Celmor> gchristensen, what's the difference in version?
<Guanin> jabranham, I'd guess, but it would be nice to know whether other have the same problem :)
<gchristensen> sorry. NixOS's isos ship ZFS Stable by default. the config you pasted uses ZFS Unstable.
<gchristensen> what are the differences? I dunno
winem_ has quit [Ping timeout: 268 seconds]
dsiypl4 has quit [Ping timeout: 268 seconds]
<Celmor> seems the version reported by modinfo before and after rebuild (about a year later) is the same
<rain1> To compile C code I go nix-shell -p autoreconfHook
<rain1> but how can I also get zlib available?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @leo60228 opened pull request #54011 → youtube-dl: 2019.01.10 -> 2019.01.16 → https://git.io/fhWmv
<rain1> ah i can use -p twice
<tilpner> Does -p autoreconfHook zlib not work?
<tilpner> Don't need to
<rain1> ah nice!
alex`` has quit [Quit: WeeChat 2.3]
estrom has quit [Remote host closed the connection]
romildo has joined #nixos
doyougnu has quit [Quit: WeeChat 2.2]
_d0t has quit [Remote host closed the connection]
<johnw> can I set the --cores used by a remote builder?
<johnw> it appears that it's always --cores=1
freedan42x has joined #nixos
<clever> johnw: i think it obeys the remote nix.conf file
<Celmor> I have 'system.stateVersion = "18.09";', does this mean I get an older version of linux and all its packages?
<jabranham> Guanin: I think I'm going to write up a bug report, unless you'd like to do so
<clever> Celmor: no
doyougnu has joined #nixos
<Celmor> then why do I only get linux 4.9?
<clever> Celmor: and you shouldnt try to change stateVersion to upgrade it
<clever> Celmor: what channel are you on? `sudo nix-channel --list`
<Celmor> and used this nix-config https://paste.simplylinux.ch/view/raw/9e3b3fda
<clever> Celmor: when did you last `sudo nix-channel --update` ?
<Guanin> jabranham, go on - to be honest, I'm not that sure how to write one properly
<clever> [root@amd-nixos:~]$ nix-env --profile /nix/var/nix/profiles/per-user/root/channels --list-generations
<clever> Celmor: this says when you did every channel update
<Celmor> clever, well, I tried that in a previous boot of the livecd but I guess I have to do it just before the built?
<gchristensen> Celmor: why are you trying to update the livecd, instead of trying to update your system?
<Celmor> I don't have a nixos system
<gchristensen> how do you have ZFS on NixOS if you don't have a nixos system?
<clever> kernel updates require a reboot
<clever> the livecd cant persist, so all changes are undone at reboot
<freedan42x> How to remove a path which was set by `nix build`?
<clever> freedan42x: delete the result symlink, then `nix-store --delete /nix/store/foo`
<monokrome> hmm... Another interesting development, apparently latest nixos-minimal ISO can't boot on the newest intel NUC devices?...
<Celmor> gchristensen, I downloaded a livecd from hyper_ch
* monokrome is amazed all 4 of her new computers can't run NixOS properly
<gchristensen> and you've been running the livecd for 'yr?
<gchristensen> for 1yr*
<Celmor> clever, so I can't build a livecd with a current version from a livecd of an older version?
<clever> Celmor: you should be able to build a new ISO from the livecd, but youll need a 2nd usb to store it onto
<gchristensen> monokrome: yikes :) what is going on, do you know? the nixos-minimal iso has worked for me on ... many ... systems
<Celmor> gchristensen, no, I just now used the livecd tried to import my encrypted zpool again after I gave up about a year ago
simukis has quit [Quit: simukis]
<timclassic> rycee: Replacing the module worked perfectly, thank you for pointing me at the feature!
<freedan42x> clever: I get error: "cannot delete path since it is still alive"
<monokrome> gchristensen: With the NUC, it just says "booting" and stops there
<monokrome> left it sitting there for an hour
<clever> freedan42x: nix-store --query --roots /nix/store/foo
<monokrome> The other two were due to nVidia drivers not supporting RTX 2080 Ti or something, I think?
<monokrome> (and 1070M)
<freedan42x> clever: it's still alive
<clever> freedan42x: what did --roots list?
<freedan42x> clever: `/nix/var/nix/profiles/per-user/freedan42x/profile-9-link`
<clever> freedan42x: you also installed the thing in question with nix-env
<clever> freedan42x: so it cant be deleted until you remove it from there, and clean up the generations
nokomprendo has joined #nixos
<clever> freedan42x: why are you trying to delete that path?
<freedan42x> clever: it's Agda, need to re-setup
rprije has joined #nixos
<clever> freedan42x: all builds are pure, deleting it wont fix anything, and nix will download the exact same binaries
<freedan42x> clever: but then, how do I able to clear Agda from path?
<clever> freedan42x: do you just want it gone from PATH, gone entirely, or reinstalled?
<freedan42x> clever: gone from path to reinstall
<gchristensen> monokrome: oh dear :)
<clever> freedan42x: what does `ls -l /nix/var/nix/profiles/per-user/freedan42x/profile` return?
<monokrome> gchristensen: hmmm? :o
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<freedan42x> clever: https://paste2.org/EaAxKU3j
shpx has quit [Quit: shpx]
<monokrome> gchristensen: I'm looking into it more when I get home
<gchristensen> monokrome: all the failed boots!
<gchristensen> great
<monokrome> It's a newer NUC, the ones that are black instead of silver?
<clever> freedan42x: and `nix-env -q` ?
<gchristensen> can you send me details on the NUC later? I don't have any
<monokrome> it works on the oldone
<freedan42x> clever: https://paste2.org/CO0EXVFw
<clever> freedan42x: nix why-depends /nix/var/nix/profiles/per-user/freedan42x/profile /nix/store/something-adga/
<monokrome> It's that one if that helps
<monokrome> It's all pretty standard afaict >.<
shpx has joined #nixos
<{^_^}> [nixpkgs] @andersk opened pull request #54013 → pypy, pypy3: Remove wrapper → https://git.io/fhWOa
nokomprendo has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @dywedir pushed 3 commits to master: https://git.io/fhWOo
<{^_^}> [nixpkgs] @dywedir merged pull request #53703 → ocamlPackages.ocp-indent: 1.6.1 -> 1.7.0 → https://git.io/fhZl4
<freedan42x> clever: /nix/store/...-user-environment
<monokrome> w/ a 500GB M.2 PCIe Samsung and a 1TB SATA SSD
<monokrome> and 32GB RAM
<monokrome> (if that matters?)
tzemanov_ has quit [Remote host closed the connection]
<clever> freedan42x: can you pastebin the full output?
<freedan42x> clever: actually it's the full output
tzemanovic has joined #nixos
<clever> freedan42x: did you give the right path to adga?
tzemanovic has quit [Remote host closed the connection]
<freedan42x> clever: yes, as `whereis agda` says
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @benley opened pull request #54014 → pythonPackages.jq: init at 0.1.6 → https://git.io/fhWOd
tzemanovic has quit [Client Quit]
halfbit has quit [Ping timeout: 272 seconds]
<clever> freedan42x: run realpath on that, then try again
jackdk has joined #nixos
<clever> freedan42x: it must be the path that had adga in it, not the user-environment
<freedan42x> clever: ugh, it's path to agda: /nix/store/...-user-environment/bin/agda
<clever> freedan42x: thats just the user-environment, run realpath on that
gagbo has quit [Ping timeout: 258 seconds]
<freedan42x> clever: Oh, sorry, I didn't understand what you meant, here's the realpath: "/nix/agda"
<clever> that doesnt look like a valid path
<symphorien> Isn't agda installed in configuration.nix ?
<freedan42x> symphorien: no
ddellacosta has joined #nixos
gagbo has joined #nixos
ddellaco_ has joined #nixos
<freedan42x> clever: thank you, anyway
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> freedan42x: can you give the full path without censoring out the hashes?
<freedan42x> clever: "/nix/store/a53ja2a8jflrhzygdxw8gmrpl3mxfy1r-user-environment/bin/agda", also, when I'm trying to CD to that folder it says that it's not a directory
<clever> freedan42x: and "realpath /nix/store/a53ja2a8jflrhzygdxw8gmrpl3mxfy1r-user-environment/bin/agda" prints what?
<freedan42x> clever: "/nix/store/nl7rc8mnavz6j6a955c28p5krx4hj758-Agda-"
<clever> freedan42x: nix why-depends /nix/var/nix/profiles/per-user/freedan42x/profile /nix/store/nl7rc8mnavz6j6a955c28p5krx4hj758-Agda-
<freedan42x> clever: https://paste2.org/aZ7ayxJa
ddellacosta has quit [Ping timeout: 272 seconds]
kvda has joined #nixos
<{^_^}> [nixpkgs] @andersk opened pull request #54015 → pypy: Correct Python version in meta description → https://git.io/fhW3z
ddellaco_ has quit [Ping timeout: 250 seconds]
<clever> freedan42x: which user did you run `nix-env -q` as when giving https://paste2.org/CO0EXVFw
<freedan42x> clever: root I guess
<clever> freedan42x: it must be ran as freedan42x to show freedan42x's profile
<freedan42x> clever: https://paste2.org/MdUjgJzn
<clever> freedan42x: `jobs`
<freedan42x> clever: https://paste2.org/da0ecaMm
<clever> freedan42x: nix-env -e Agda ; nix-env --delete-generations 9 ; nix-store --delete /nix/store/nl7rc8mnavz6j6a955c28p5krx4hj758-Agda-
<freedan42x> clever: https://paste2.org/k3ENGkLc
<clever> freedan42x: nix-store --query --roots /nix/store/nl7rc8mnavz6j6a955c28p5krx4hj758-Agda-
<freedan42x> clever: https://paste2.org/wv9PxdtL
<rycee> timclassic: Glad it worked out 🙂
<clever> freedan42x: you used the wrong path previously, so it didnt list 7&8
<clever> freedan42x: nix-env --delete-generations 7 8
<freedan42x> clever: Done
<clever> freedan42x: now it should delete
<freedan42x> clever: now nix-env -e Agda; nix-store --delete /nix/store/nl7rc8mnavz6j6a955c28p5krx4hj758-Agda- ?
<clever> nix-env -e was already done
<freedan42x> clever: it have deleted, thank you!!
<{^_^}> [nixpkgs] @tbenst opened pull request #54016 → cmtk: init at 3.3.1 → https://git.io/fhWsf
worldofpeace has joined #nixos
<kini> Dumb question, but a comment in the autogenerated /etc/nixos/configuration.nix says "You should change this [referring to system.stateVersion] only after NixOS release notes say you should." What exactly should I be looking for in the release notes? Just the fact that there are already release notes for the version I want to set system.stateVersion to?
janders223 has joined #nixos
<jasongrossman> kini: It's not a dumb question. The naming of that variable causes very frequent questions here. The answer is that you shouldn't change it.
freedan42x has quit [Quit: Leaving]
<simpson> kini: If you don't see anything interesting to you in the release notes, then don't change `stateVersion`. That's it.
<simpson> It's a field for doing stuff that could break folks. By *not* changing it, folks have less broken stuff.
<janders223> after frustrations of _not_ getting multi-user to work on macOS 10.14 I reverted back to a single user install. I installed nix-darwin and home-manager, now any calls to nix-env result in `error: cannot import '/nix/store/7kn4vp8nfpa3qrqbfdmw2mnyz05pnd5h-source', since path '/nix/store/v1p99faf8p9m6ksyrdich95qcv3sp8c2-source.drv' is not valid, at
<janders223> /nix/store/h6fr293zgg60rjid0ng959cs66mzcxal-home-manager/home-manager/tests/default.nix:14:1`
<janders223> I would appreciate any help
<{^_^}> [nixpkgs] @jonafato opened pull request #54017 → Update seafile-shared hash → https://git.io/fhWsa
<kini> OK. I feel like the wording of that comment could be improved, then. How does this sound? "You should not change this unless a Nixos release notes entry explicitly tells you to."
<kini> *NixOS
erasmas has quit [Quit: leaving]
rfold has joined #nixos
<rfold> Hi, I'm using builtins.listToAttrs, and it seems to add override and overrideDerivation keys to the attrset returned. Is this expected behavior?
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @dotlambda merged pull request #54011 → youtube-dl: 2019.01.10 -> 2019.01.16 → https://git.io/fhWmv
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fhWsr
<janders223> and I'm an idiot, forgot to update, solved everything
<jasongrossman> ,stateversion
<{^_^}> jasongrossman: Did you mean stateVersion?
<{^_^}> Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<jasongrossman> But we still need to change this variable. Look at how often we get the same question: https://logs.nix.samueldr.com/nixos/search?q=stateVersion
<simpson> kini: I suppose that the notes could say "don't change this" or something less ambiguous, but then we'd be in the position of having a rule that people know better than to follow.
<jasongrossman> samueldr: IIRC you had a really good idea about what to rename stateVersion to.
<c00w> dataFormatVersion?
<samueldr> stateEpoch, with numbers unrelated to the version
<c00w> +1 to unrelated numbers.
<samueldr> the idea was 100 so 18.09 is still smaller than 100
<kini> well, all I'm saying is to change it from "you should change this only when ____" to "you should not change this except when ____"; semantically it's the same, but it foregrounds that you usually don't want to be doing it
romanofskiWork has quit [Ping timeout: 245 seconds]
rfold has quit [Quit: leaving]
Denommus has left #nixos ["ERC Version 5.3 (IRC client for Emacs)"]
romanofskiWork has joined #nixos
shpx has quit [Quit: shpx]
Guanin has quit [Remote host closed the connection]
shpx has joined #nixos
<jasongrossman> samueldr: Oh, yes. Thanks. I don't know how to do a PR for this. Maybe I should learn how.
<samueldr> I have one opened already
<jasongrossman> samueldr: Oh, fantastic.
<samueldr> (too bad, you should learn how to!)
<jasongrossman> kini: I hear you. I think that's a good idea as well. I don't think it's enough on its own, but the process will decide.
<jasongrossman> samueldr: I need to learn to write derivations. It's on my list. Not at the top of the list, I'm afraid!
eadwu has quit [Ping timeout: 252 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
romildo has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « oh-my-zsh: 2018-11-27 -> 2019-01-15 »: https://git.io/fhWZk
carlosdagos has joined #nixos
<{^_^}> [nixpkgs] @MP2E opened pull request #54018 → discord: 0.0.5 -> 0.0.7 [backport to release-18.09] → https://git.io/fhWZ4
o1lo01ol1o has quit [Remote host closed the connection]
romildo has joined #nixos
doyougnu has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
boredom101 has joined #nixos