gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
darlan has joined #nixos
xcmw has quit [Ping timeout: 264 seconds]
sehqlr has joined #nixos
derchris has joined #nixos
darlan has quit [Client Quit]
qvvqj has quit [Ping timeout: 240 seconds]
mahalel_ has quit [Ping timeout: 265 seconds]
chessai has quit [Ping timeout: 256 seconds]
astiles has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 240 seconds]
astiles has joined #nixos
astiles_ has joined #nixos
astiles has quit [Read error: Connection reset by peer]
xcmw has joined #nixos
astiles_ has quit [Ping timeout: 240 seconds]
sehqlr has quit [Quit: Konversation terminated!]
sehqlr has joined #nixos
seafood has quit [Quit: seafood]
orivej has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #38883 → onestepback: init at 0.98 → https://git.io/vxpAe
endformationage has quit [Ping timeout: 260 seconds]
kquick has quit [Ping timeout: 260 seconds]
FareTower has quit [Ping timeout: 263 seconds]
endformationage has joined #nixos
stabbmesiter has joined #nixos
sahabi has quit [Ping timeout: 255 seconds]
FareTower has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
sehqlr has quit [Ping timeout: 264 seconds]
stabbmesiter has quit [Quit: Leaving]
blankhart has joined #nixos
mahalel_ has joined #nixos
tertle||eltret has joined #nixos
sigmundv__ has joined #nixos
hamishmack has quit [Quit: hamishmack]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/2569e482904 (from 2 days ago, history: https://channels.nix.gsc.io/nixos-18.03)
hakujin has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
mbrgm has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
hakujin has quit [Ping timeout: 265 seconds]
<boomshroom> After seeing it in sinit and someone's reddit reply, I now kind of want a reaper motif for my init given that one of it's purposes is to "reap" children and zombies.
mbrgm has joined #nixos
Rusty1_ has joined #nixos
<boomshroom> It also might count as a d(a)emon.
tv has quit [Ping timeout: 245 seconds]
tv has joined #nixos
<zybell_> yesterday I gave you a reaper
<zybell_> Do you need a paste?
ericsagnes has joined #nixos
<boomshroom> zybell_: I don't remember seeing that and I can't seem to find it in the logs.
<zybell_> the double while?
<boomshroom> zybell_: Oh, that.
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f26d8904035 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<boomshroom> To answer when I last changed a running init after a recompile, I just shut down the VM and built an entirely new system from scratch because this is Nix!
<boomshroom> Are there any demons that are associated with death, or any figures who deal specifically with children?
<boomshroom> This is probably not usual conversation on this channel. XD
devlinzed[m] has joined #nixos
devlinzed[m] has left #nixos ["User left"]
<zybell_> Oh I read it as algorithmic/programming motif. You mean artistic/logo?
<boomshroom> zybell_: specifically a name. The name I came up with yesterday was funny, but naming it after an actual mythological figure would be badass.
<boomshroom> It doesn't count if it's an angel. It has to be a d(a)emon.
<zybell_> Charon
<boomshroom> The real problem is there are too many. I'm kind of partial to Azreal, but I'd prefer a demon over an angel for hopefully obvious reasons.
<zybell_> Idk if it counts as demon.
<zybell_> Charon is middle ground
<boomshroom> You do see the pun right? Bonus points for modern daemons directly being derived from Maxwell's demon.
<vaibhavsagar> how do I use a substituter with Nix 2.0?
<vaibhavsagar> passing --substituter gives me "warning: ignoring untrusted substituter"
<vaibhavsagar> even if I also pass --trusted-public-keys
acarrico has joined #nixos
<zybell_> you need to *have* the pubkey for the subst first
primeos has quit [Ping timeout: 268 seconds]
<vaibhavsagar> I do have it
<clever> vaibhavsagar: you need to be a trusted nix user, or the cache has to be in the trusted-binary-caches list in nix.conf
<clever> vaibhavsagar: a normal user cant add their own caches
<vaibhavsagar> wut
<clever> otherwise, you could download a malicious copy of sudo
<clever> and then just wait for the admin to run it
<vaibhavsagar> hmm, this worked with the old Nix
<vaibhavsagar> ssh-substituters at least did
<vaibhavsagar> also none of this seems to be documented anywhere
<vaibhavsagar> my next question is, how would I make myself a trusted nix user?
sigmundv__ has quit [Ping timeout: 264 seconds]
<clever> root is trusted by default, so just sudo and it should work
<clever> and if thats not an option, we can continue
<vaibhavsagar> I want to use this on Travis to test things
<bhipple[m]> There's also an option for trusted users in nix.conf, but if you're modifying nix.conf already you could just add the pub key of the cache to it for all users to enjoy
<vaibhavsagar> I would like to be able to do it in one command without touching nix.conf though
<vaibhavsagar> I know this was possible with ssh-substituter-hosts in Nix 1.11
<clever> vaibhavsagar: if its single-user nix, you can use NIX_CONF_DIR to change where it looks for nix.conf
mog- has joined #nixos
jackdk has joined #nixos
<vaibhavsagar> that's still not one command though
<clever> vaibhavsagar: then you can just write a nix.conf that configures things properly and does trusted-users = $USER
<vaibhavsagar> still not one command :)
<vaibhavsagar> IIUC, this is something that was possible in Nix 1.11 and is now not possible in Nix 2.0
<vaibhavsagar> am I wrong?
mog has quit [Ping timeout: 265 seconds]
mog- is now known as mog
primeos has joined #nixos
<clever> i think the trust options changed some in nix 2
<clever> but you should be able to override it with NIX_CONF_DIR
<Dezgeg> I think on travis the installation is single-user and you can pass all the options you want with --option
<vaibhavsagar> I also want this for a work thing where users who don't want to learn Nix still have to be able to download cached binaries
<vaibhavsagar> I think it sucks that this has gotten significantly more complicated
spear2 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #38884 → papirus-icon-theme: 20180214 -> 20180401 → https://git.io/vxpjO
<zybell_> boomshroom:That Website https://en.wikipedia.org/wiki/Charun#Function gives an impression although the german version is more clear in some aspects.
ertes-w has quit [Ping timeout: 245 seconds]
ertes has quit [Ping timeout: 255 seconds]
markus1189 has joined #nixos
m0rphism1 has quit [Ping timeout: 263 seconds]
iyzsong has joined #nixos
markus1199 has quit [Ping timeout: 255 seconds]
apostolis has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
ertes-w has joined #nixos
<apostolis> I am trying to execute the commands at Nix Pills section 11.2.
ertes has joined #nixos
<apostolis> I install bsdgames, then I look at the location that the fortune game is stored.
<apostolis> with : readlink -f `which fortune`
<apostolis> then I try to look at the folder in the nix store and I cannot find it.
<apostolis> The same thing works with the emacs package.
<apostolis> Is there a reason that I cannot find the folder that the fortune game is installed in the nix store?
m0rphism1 has joined #nixos
Izorkin_ has joined #nixos
hamishmack has joined #nixos
Izorkin has quit [Ping timeout: 240 seconds]
<bhipple[m]> vaibhavsagar: since Travis should be running with single-user nix, any option that would otherwise go into nix.conf can be passed with the --option flag on any cmdline invocation of nix, so you can do `$ nix --option trusted-users $USER build <attribute>`
<bhipple[m]> Or you can do `$nix --option trusted-public-keys <key> <command as normal`
<bhipple[m]> It's only a security concern if you're sharing binaries in a multi-user configuration with a daemon running as root, so in single-user mode it's much more lenient
<zybell_> apostolis did install go well? no warnings no errors?
<apostolis> zybell_ : It did . I just found that the : readlink -f `which fortune` reported the wrong hash.
<apostolis> thus the wrong location in the store.
<apostolis> Sorry, I was wrong. It did not.
<zybell_> which should have mentioned in warnings
acarrico has quit [Ping timeout: 276 seconds]
<apostolis> can you install "nixos.bsdgames" and tell me if you can find the location in the nix store?
<zybell_> cant not at a nix atm
<apostolis> ok
sigmundv has joined #nixos
sigmundv has quit [Remote host closed the connection]
sigmundv has joined #nixos
nuncanada has quit [Quit: Leaving]
silver has quit [Read error: Connection reset by peer]
<vaibhavsagar> apostolis: `nix-shell -p bsdgames; which fortune` gives me a valid path in the nix store
<boomshroom> Just checked: A child process is fully capable of murdering its own parent, only to be reaped by PID1. That murderous process desevered what he got!
<boomshroom> *deserved
<apostolis> try to ls into it.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vaibhavsagar> apostolis: `ls $(which fortune)` works for me
<apostolis> ok.
<apostolis> I do not know what happens. I install it with nix-env -iA nixos.bsdgames
<vaibhavsagar> apostolis: try the `nix-shell` approach
<apostolis> I get the location but I cannot ls into it.
sigmundv has quit [Ping timeout: 240 seconds]
<apostolis> Nope, it cannot find it with nix-shell either.
<vaibhavsagar> apostolis: I suspect there is an issue with your installation
Meizikyn has joined #nixos
sehqlr has joined #nixos
<apostolis> I just do not get it. The games work fine, thus they must be at the location.
<Meizikyn> Anyone here use KDE KOrganizer?
<clever> boomshroom: more that pid1 will adopt the orphaned children, and then reap when they die naturally
<clever> its more kind then you realize :P
<boomshroom> clever: It's still amazing that this is the kind of terminology we ended up with!
<apostolis> vaibhavsagar : try to enter the folder in the nix store.
<day|flip> going little off topic. what kind of shell should i try. anything up to grab beside bash and zsh!
<Meizikyn> fish
<boomshroom> day|flip: I'm a fan of fish.
<Meizikyn> heard its colorful
<justanotherus3r> Hey, I'm trying to install an old version of chromium, so I used https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F
<justanotherus3r> I got this error though https://hastebin.com/raw/iwujokorit
<justanotherus3r> line 4 is nixos-1803 = import <nixos-18.03> {};
<boomshroom> Meizikyn: You can configure its colours in the browser.
<Meizikyn> anyone know much about KDE Korganizer? Every time I add an event/task I get this output to the TTY: https://pastebin.com/SgbmpM72
<Meizikyn> what do you mean the browser? like it has a web interface for configuration?
<boomshroom> Meizikyn: Yes. fish_config launches a web server that you access through the browser.
<Meizikyn> thats pretty dope, gotta check that out
<day|flip> sound cool
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to nixos/hardened: https://git.io/vxhvp
jrolfs_ has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to odroid-xu4: https://git.io/vxhfJ
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to no-requireFile: https://git.io/vxhfU
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to openssl-1.1: https://git.io/vxhfk
<{^_^}> [nixpkgs] @matthewbauer closed pull request #36937 → ssh: drop DSA support, fixes #33381 → https://git.io/vxT85
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to pam-ssh-security: https://git.io/vxhfL
<{^_^}> [nixpkgs] @matthewbauer closed pull request #22357 → [WIP] Use openssl 1.1 by default → https://git.io/vDOGw
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to openssh-drop-dsa: https://git.io/vxhft
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to purity-test: https://git.io/vxhfq
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to python-wip: https://git.io/vxhfm
<{^_^}> [nixpkgs] @matthewbauer closed pull request #32178 → pam-sshagent: only allow managed SSH keys → https://git.io/vbkD5
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to python3: https://git.io/vxhfY
acarrico has joined #nixos
psychic has joined #nixos
psychic has left #nixos [#nixos]
<hyper_ch> Mic92: you fixed zfs for latest kernel?
<hyper_ch> no, didn't :(
Meizikyn has quit [Ping timeout: 260 seconds]
astiles has joined #nixos
gnatozui has joined #nixos
Supersonic has quit [Read error: Connection reset by peer]
astiles has quit [Ping timeout: 276 seconds]
Supersonic has joined #nixos
<boomshroom> Does github have anything like grep? I know you can search for files, but I don't know of any way to search for text.
<{^_^}> [nixpkgs] @lopsided98 opened pull request #38885 → grafana: support socket protocol → https://git.io/vxhJK
<clever> boomshroom: git clone ; grep -r ?
<day|flip> cat file | grep text ?
<boomshroom> clever: Or rather git clone && git grep. But I was looking for a way that avoided downloading the whole repo to my computer.
<day|flip> so something like wget or curl might help you out with
<clever> boomshroom: git clone --depth 1
nur0n0 has joined #nixos
<boomshroom> day|flip: Also, I'd want to search the whole repo, so I can't just download one file. If I was looking for at 1 file, I can just use CTRL-F.
<clever> boomshroom: --depth 1 stops it from downloading the history
<boomshroom> clever: That part's useful, but not ideal. Thank you.
blankhart has quit [Quit: WeeChat 1.9.1]
<nur0n0> Hey guys, I'm having a first go at making a package from a github project, but I'm getting an error I don't understand. Pastebin of default.nix: https://pastebin.com/sHEeF2ef. Can anyone help me out? The error is "cannot auto-call a function that has an argument without a default value ('stdenv')"
<nur0n0> I just 'cd' into the directory containing the 'default.nix' file and run 'nix-build'
<clever> nur0n0: nix-build -E 'with import <nixpkgs> {}; callPackage ./. {}'
<achambe> yeah, you need to provide the arguments
<achambe> also, the ... isn't needed I think, and you need to specify the github sha256 and git hash
<achambe> otherwise i think it is ok
<achambe> nur0n0: also, i don't think setup.py is the right way to do it
<achambe> there are specific functions for python you can use mentioned in the nixpkgs documentation
blankhart has joined #nixos
<nur0n0> big 'doh on my part; that makes a lot of sense. thank you!
<nur0n0> yes, I was aware that the hash was missing, but I was just trying to get past this error first
xCuri0 has joined #nixos
<xCuri0> how can I install NixOS into a container (systemd-nspawn) ?
<xCuri0> thx
<xCuri0> i'm trying that right now
<nur0n0> sorry, maybe I'm misunderstanding something. wouldn't adding 'with import <nixpkgs> {};' to the top of my 'default.nix' resolve my issue? if I understand corrrectly, it should bring 'stdenv' into the namespace for the nix expression and I should be all good right?
<clever> nur0n0: yeah, that also works
jgt has joined #nixos
<nur0n0> clever: but I'm getting the same error
<clever> nur0n0: you also have to remove the { stdenv , stuff }:
sehqlr has quit [Ping timeout: 264 seconds]
<jgt> I have a Haskell/Nix project. It uses a bunch of Haskell packages. I want to substitute a package with a fork from Github. How do I do that?
<jgt> it seems like I may need a packageOverride, or an overlay, but I see no clear examples anywhere of doing this
<clever> jgt: import <nixpkgs> { config = { packageOverrides = pkgs: { foo = foo.overrideDerivation (drv: { src = pkgs.fetchFromGitHub { .... }; }); }; }; }
<nur0n0> clever: and its running! thank you
jtojnar_ has joined #nixos
<jgt> clever: Hmm, ok. I'll dig into this and see if I can make it work
jperras has quit [Ping timeout: 265 seconds]
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
hakujin has joined #nixos
<xCuri0> Why is the NixOS container image 900mb uncompressed ?
<xCuri0> thats big for a text only system
<{^_^}> [nixpkgs] @peterhoeg opened pull request #38886 → freerdp: 2.0.0-rc1 -> 2.0.0-rc2 → https://git.io/vxhTq
apostolis has quit [Quit: WeeChat 2.0]
hakujin has quit [Ping timeout: 256 seconds]
OE8M32alxy has joined #nixos
zipper is now known as zipnoob
jtojnar_ has joined #nixos
OE8M32alxy has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
jgt has quit [Ping timeout: 265 seconds]
<boomshroom> I seems as though I can't build my haskell project because hackage is down.
schoppenhauer has quit [Ping timeout: 240 seconds]
semilattice has joined #nixos
schoppenhauer has joined #nixos
<semilattice> I installed virtualbox (the package with nix-env, I have the virtualization setting on), but there's no virtualbox command, it's not the headless version but there's no GUI that I can find
<semilattice> Do I need to do something else for that?
srdqty has quit [Ping timeout: 240 seconds]
srdqty has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pie_ has quit [Ping timeout: 245 seconds]
xcm595 has joined #nixos
rosa has joined #nixos
xcm595 has quit [Remote host closed the connection]
gnatozui has quit [Quit: Page closed]
hamishmack has quit [Quit: hamishmack]
<boomshroom> Are there any open source kernels other than Linux that can be built with Nix?
<achambe> semilattice: the command is Virtualbox
<achambe> with a capital
<achambe> VirtualBox
<achambe> that confused me before
sehqlr has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6b796a9c23d (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @wmertens to pam-ssh-security « pam-sshagent: only allow managed SSH keys »: https://git.io/vbkDi
<{^_^}> [nixpkgs] @matthewbauer reopened pull request #32178 → pam-sshagent: only allow managed SSH keys → https://git.io/vbkD5
lord| has quit [Ping timeout: 240 seconds]
lord| has joined #nixos
<{^_^}> [nixpkgs] @ryantm closed pull request #38068 → papirus-icon-theme: 20180214 -> 20180311 → https://git.io/vxw9P
<semilattice> @achambe that command doesn't exist as far as I can tell
<semilattice> nvm it does
<semilattice> Wasn't coming up when I hit Virtu <tab>
reinzelmann has joined #nixos
leothrix has quit [Quit: ZNC 1.6.6 - http://znc.in]
leothrix has joined #nixos
leothrix has quit [Read error: Connection reset by peer]
leothrix has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
leothrix has quit [Client Quit]
semilattice has quit [Remote host closed the connection]
leothrix has joined #nixos
mahalel_ has left #nixos [#nixos]
jperras has joined #nixos
rosa has quit [Quit: rosa]
Rusty1_ has quit [Quit: Konversation terminated!]
day|flip has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 240 seconds]
FareTower has quit [Ping timeout: 256 seconds]
hamishmack has joined #nixos
leothrix has quit [Quit: ZNC 1.6.6 - http://znc.in]
leothrix has joined #nixos
ryanartecona has joined #nixos
rosa has joined #nixos
kerrhau has quit [Ping timeout: 264 seconds]
johnsonav has quit [Ping timeout: 240 seconds]
blankhart has quit [Ping timeout: 240 seconds]
rosa has quit [Client Quit]
sehqlr has quit [Ping timeout: 240 seconds]
iyzsong has quit [Ping timeout: 268 seconds]
rosa has joined #nixos
aramiscd has quit [Read error: Connection reset by peer]
MercurialAlchemi has joined #nixos
odi has joined #nixos
rosa has quit [Quit: rosa]
aramiscd has joined #nixos
iyzsong has joined #nixos
Guanin_ has quit [Ping timeout: 256 seconds]
hamishmack has quit [Ping timeout: 268 seconds]
Guanin_ has joined #nixos
Jetien has joined #nixos
alex`` has joined #nixos
robstr has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #38880 → Add Darwin devdisk commands and put them in unixtools → https://git.io/vxpdy
<{^_^}> [nixpkgs] @matthewbauer pushed 8 commits to master: https://git.io/vxhLH
<{^_^}> → 63987917 by @matthewbauer: unixtools: get rid of modprobe
<{^_^}> → ddbaa2dd by @matthewbauer: libutil-new: fix with newest xcbuild stuff
<{^_^}> → 5c491ab5 by @matthewbauer: diskdev_cmds: init at 593
iyzsong has quit [Ping timeout: 256 seconds]
shabius has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38888 → yaws: 2.0.4 -> 2.0.5 → https://git.io/vxhtI
shabius_ has quit [Ping timeout: 276 seconds]
rosa has joined #nixos
MP2E has quit [Ping timeout: 276 seconds]
srdqty has quit [Ping timeout: 260 seconds]
<xCuri0> how can I see reverse dependencies ?
MP2E has joined #nixos
srdqty has joined #nixos
<boomshroom> xCuri0: nix-store -q --referrers lists all packages that depends on a store path.
MP2E has quit [Remote host closed the connection]
<boomshroom> xCuri0: nix-store -q --referrers-closure lists all packages that indirectly depend on it.
<xCuri0> boomshroom, what if its a library and i can't do $(which program) ?
rosa has quit [Client Quit]
rosa has joined #nixos
<boomshroom> xCuri0: Is it installed system wide, ie: through nixos?
<xCuri0> boomshroom, yes
<boomshroom> You shouldn't be installing libraries with nix-env.
<boomshroom> xCuri0: In that case, the library should be in /run/current-system/sw/lib/ and you can use that.
MP2E has joined #nixos
<boomshroom> xCuri0: Since libraries don't really need to be in the user or system environment at all, the easiest way is just to do an ls -d /nix/store*-libname-*/ and pick one.
ericsagnes has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
silver has joined #nixos
ChongLi_ has joined #nixos
ChongLi has quit [Read error: Connection reset by peer]
boomshroom has quit [Ping timeout: 240 seconds]
boomshroom has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
Ivanych has quit [Quit: Leaving.]
reinhardt has joined #nixos
xAFFE has left #nixos [#nixos]
rosa has quit [Quit: rosa]
<{^_^}> [nixpkgs] @DerTim1 opened pull request #38889 → asterisk: 14.6.1 -> 15.3.0, 13.17.1 -> 13.20.0 → https://git.io/vxhqp
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38890 → signal-desktop: 1.6.1 -> 1.7.0 → https://git.io/vxhqh
rosa has joined #nixos
<fearlessKim[m]> in home-manager, some files are created with 777 permissions, I would like it to be 600, how can I specify it ?
Izorkin_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
winem_ has joined #nixos
rauno has joined #nixos
rosa has quit [Quit: rosa]
ericsagnes has joined #nixos
rosa has joined #nixos
hamishmack has joined #nixos
Meizikyn has joined #nixos
ma27 has joined #nixos
rosa has quit [Client Quit]
xy2_ has quit [Ping timeout: 240 seconds]
<boomshroom> Goodnight guys!
boomshroom has quit [Quit: WeeChat 2.0]
rosa has joined #nixos
mmercier has joined #nixos
ma27 has quit [Ping timeout: 265 seconds]
asuryawanshi has quit [Remote host closed the connection]
<rauno> How can the open files limit beraised in nixos configuration?
asuryawanshi has joined #nixos
astiles has joined #nixos
<makefu> rauno: you mean limits.conf? for a single service you can use systemd "<service>.serviceConfig.LimitNOFILE=49152"
<rauno> but for whole system ?
<rauno> or for a single user
<makefu> what is your use case?
astiles has quit [Ping timeout: 260 seconds]
<rauno> well im running hypervisor on nixos, and i have lots of load and the default 1024 open files limit is up and shit is hitting the fan :)
<makefu> what virtualization software are you running?
<rauno> kvm/qemu
sanscoeur has quit [Read error: Connection reset by peer]
<silver_hook> dotlambda: Hey, I see you wrote the borgbackup service. Is there any documentation on how to set it up? So far I’ve simply made relied on a manual systemd “cronjob”.
<makefu> maybe you could use pam for this https://nixos.org/nixos/options.html#pam+services+limits
sanscoeur has joined #nixos
hotfuzz_ has joined #nixos
<makefu> or https://nixos.org/nixos/options.html#pam+loginlimits respecitively
hotfuzz has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38891 → simgear: 2017.3.1 -> 2018.1.1 → https://git.io/vxhYc
seville has joined #nixos
teto1 has joined #nixos
rosa has quit [Quit: rosa]
sanscoeur has quit [Remote host closed the connection]
xAFFE has joined #nixos
xAFFE has left #nixos [#nixos]
xAFFE has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #38423 → heptio-ark: init at 0.7.1 → https://git.io/vx1My
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vxhYQ
<{^_^}> → 2e1c5c00 by @mbode: heptio-ark: init at 0.7.1
<{^_^}> → 4043fff3 by @nlewo: Merge pull request #38423 from mbode/heptio-ark_0_7_1
judson has quit [Ping timeout: 276 seconds]
alex`` has quit [Ping timeout: 264 seconds]
zipnoob is now known as zipper
stumble has joined #nixos
mkaito has quit [Ping timeout: 256 seconds]
hph^ has joined #nixos
fendor has joined #nixos
__Sander__ has joined #nixos
zipper is now known as zipnoob
judson has joined #nixos
lonokhov has joined #nixos
judson is now known as Guest70023
jmeredith_ has quit [Quit: Connection closed for inactivity]
jensens has joined #nixos
jackdk has quit [Ping timeout: 260 seconds]
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
fendor has quit [Ping timeout: 245 seconds]
<monokrome> Has anyone else noticed that the build of Chromium in NixOS seems to break the tab when copying content out of it with CTRL+C?
jgt has joined #nixos
hyper_ch2 has joined #nixos
crooksey has joined #nixos
vaninwagen has joined #nixos
Tucky has joined #nixos
<{^_^}> [nixpkgs] @gebner pushed to master « elan: 0.3.0 -> 0.3.2 »: https://git.io/vxh3b
MichaelRaskin has quit [Quit: MichaelRaskin]
iyzsong has joined #nixos
<crooksey> If I can see a package in nixos/nixpkgs example rxvt_unicode, but nix-env -qa can't find it, but it does find plain old rxvt, I am use the offical nixos unstable channel, is there anything else I need to do? Faily green to nix/nixos
rosa has joined #nixos
<rauno> makefu, hum, i set the pam loginlimits but still one of my service has the old 1024 limit..
<rauno> any ideas ?
<makefu> rauno: maybe you need to restart the user session, not totally sure how it works with PAM
<rauno> i restarted whole server
<makefu> dang
<rauno> -limits.conf
<rauno> * - nofile 99999
<rauno> * - noproc 99999
<rauno> but in /proc/<pid>/limits it's still 1024
<makefu> rauno: with nix2 there is `nix search rxvt`, with nix-env you can try `nix-env -qaP`. make sure that your channel is up-to-date
<rauno> im on 17.09, latest stable..
<makefu> you are using libvirt or vanilla qemu without any abstraction?
<makefu> rauno: it seems like the old limits.conf does not work if systemd is used https://wiki.archlinux.org/index.php/Limits.conf
<rauno> the problem at the moment isnt with virtualization..
<makefu> my guess is that you will need to do the systemd dance to get what you need
<rauno> ah..hoped it wouldn't end at that point this time..
<rauno> too many services already :)
Jetien has quit [Ping timeout: 260 seconds]
hakujin has joined #nixos
<makefu> you can do it!
vaninwagen has quit [Ping timeout: 264 seconds]
fendor has joined #nixos
hakujin has quit [Ping timeout: 260 seconds]
<rauno> :)
siel has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
mahalel_ has joined #nixos
rosa has quit [Quit: rosa]
fendor has quit [Ping timeout: 246 seconds]
mahalel_ has left #nixos [#nixos]
rosa has joined #nixos
<hyper_ch2> hmmm, there's many smart people here: Is there a way to make a link in a html document so that the site is opened in a new private tab?
vaninwagen has joined #nixos
ottidmes has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to master « vcsh: update to latest version and add missing Perl test suite dependencies to fix the build »: https://git.io/vxhGb
rosa has quit [Quit: rosa]
siel has joined #nixos
<{^_^}> [nixpkgs] @xvapx opened pull request #38892 → pythonPackages.apsw: 3.9.2-r1 -> 3.22.0-r1 → https://git.io/vxhGj
Jetien has joined #nixos
rosa has joined #nixos
rosa has quit [Client Quit]
hph^ has quit [Ping timeout: 264 seconds]
<rauno> makefu, can i override this LimitNOFILE service of a nix module ?
<rauno> or i have to make the modification inside module ?
<makefu> rauno: both is possible
<rauno> how can i override it inside configuration.nix ?
<makefu> if you know the name of the module (and it is not generated somehow) then you can use systemd.services.<service>.serviceConfig
rosa has joined #nixos
<rauno> hum, didnt work i think
<rauno> tried it
<rauno> wait
jgt has quit [Ping timeout: 240 seconds]
JosW has joined #nixos
jrolfs has joined #nixos
fendor has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
rosa has quit [Client Quit]
<rauno> works
zipnoob is now known as zipper
<rauno> but if anyone know then would appreaciate knowledge on how to update all processes open files limit..
<rauno> checked and quite many have this 1024 limit
rosa has joined #nixos
jrolfs has quit [Ping timeout: 276 seconds]
<makefu> so at least there is a workaround :)
<rauno> yep :)
rosa has quit [Quit: rosa]
rosa has joined #nixos
maingo has quit [Quit: Connection closed for inactivity]
jgt has joined #nixos
<{^_^}> [nixpkgs] @srhb opened pull request #38893 → Backport #38874: spotify: 1.0.72.117 -> 1.0.77.338 → https://git.io/vxhCS
<{^_^}> [nixpkgs] @srhb merged pull request #38874 → spotify: 1.0.72.117 -> 1.0.77.338 → https://git.io/vxpXX
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vxhCp
<{^_^}> → e9e823c1 by @utdemir: spotify: 1.0.72.117 -> 1.0.77.338
<{^_^}> → 94d68a9e by @srhb: Merge pull request #38874 from utdemir/update-spotify-1.0.77
<{^_^}> [nixpkgs] @srhb merged pull request #38893 → Backport #38874: spotify: 1.0.72.117 -> 1.0.77.338 → https://git.io/vxhCS
<{^_^}> [nixpkgs] @srhb pushed 2 commits to release-18.03: https://git.io/vxhW3
<{^_^}> → 198d7161 by @utdemir: spotify: 1.0.72.117 -> 1.0.77.338
<{^_^}> → 324874a6 by @srhb: Merge pull request #38893 from srhb/backports/38874-spotify-1.0.77.338
<mmercier> Hi! is there some NixOps people here?
leat has quit [Ping timeout: 240 seconds]
<mmercier> I have a question on NixOps:I have 2 machines and I'd like to base the configuration on different nixpkgs version (one in stable, the other on unstable) is it possible?
leat has joined #nixos
rosa has quit [Quit: rosa]
rosa has joined #nixos
<{^_^}> [nixpkgs] @thorerik closed pull request #38842 → Add mopidy-mpris → https://git.io/vxxu2
<tilpner> You could set a different NIX_PATH for different deployments
coot has joined #nixos
chisui has joined #nixos
rosa has quit [Client Quit]
fendor has quit [Ping timeout: 256 seconds]
rosa has joined #nixos
<Mic92> hyper_ch2: no. the zfsUnstable userspace build was broken.
vaninwagen has quit [Ping timeout: 268 seconds]
<hyper_ch2> :(((((
<mmercier> thanks tilpner I'll try this
<{^_^}> [nixpkgs] @dotlambda closed pull request #38166 → pipenv: 10.1.2 -> 11.9.0 → https://git.io/vxoxi
<mmercier> tilpner: Yeah this is working great! Do you have an idea how I can do this programatically inside my nixops configuration?
rauno has quit [Remote host closed the connection]
<tilpner> I do (have an idea how to set nixpkgs sources from nixos-config), but it's not compatible with nixops, and probably not worth it in general
thc202 has joined #nixos
fendor has joined #nixos
<mmercier> So the only way to do this it set the NIX_PATH before running my nixops deploy
fendor has quit [Client Quit]
logzet has joined #nixos
zipper is now known as zipnoob
<tilpner> The easiest way, at least
<mmercier> Thanks tilpner!
<crooksey> Any bspwm users here? If I start the standard nixos session, e.g. just a xterm window, then run sxhkd & followed by bspwm, it loads perfectly. However, if I have this as my .xinitrc "sxhkd & exec bspwm" bspwm starts, but I can't use my keyboard and none of the key bindings work, I assume its a trivial issue (as it works when starting from xterm)
<crooksey> It also appears to crash/halt the system as I cant even switch to a tty
reinzelmann has quit [Ping timeout: 260 seconds]
alex`` has joined #nixos
<achambe> How do I get the fetchurl hash from a file on my disk without adding it to the store?
<achambe> nix hash-file returns something different
<tilpner> achambe - nix-hash --base32 --type sha256 ./your-file
ThatDocsLady has quit [Ping timeout: 256 seconds]
<achambe> tilpner: hmm, the hash differs, im doing nix-prefetch-url file:///my-file
<achambe> getting one hash, then doing your method and a different hash
MarcWeber has joined #nixos
<LnL> tilpner: nix-hash hashes the argument not the file
<LnL> IIRC
<tilpner> You may need --flat
<tilpner> LnL - No, I think that only happens with --to-*
<achambe> that worked
<{^_^}> [nixpkgs] @Mic92 merged pull request #38877 → radare2-cutter: 1.1 -> 1.3 → https://git.io/vxpSL
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vxhBD
<{^_^}> → f6c48829 by @Mic92: radare2-cutter: 1.1 -> 1.3
<{^_^}> → abefb010 by @Mic92: radare2: remove dependency on .git
<{^_^}> → f204bdf9 by @Mic92: Merge pull request #38877 from Mic92/radare2
<LnL> oh, I must have used it incorrectly before then
Akii has joined #nixos
<crooksey> Nevermind, just started with display manager and works correctly
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38894 → log4cplus: 1.2.0 -> 2.0.0 → https://git.io/vxhRT
<Akii> Hello! I'm new to Nix / NixOS. Just installed NixOS in a VM. I assume I just read the manual now or are there any good tutorials that cover some basics?
<srhb> Akii: The manual is a pretty good place to start, but this channel is a treasure trove if you have specific questions :)
<srhb> Akii: And by the manual I mean "the manuals"
<Akii> too early for questions :D
<srhb> Akii: It's good to pay attention to the fact that there are three main ones: Nix, nixpkgs and NixOS
<achambe> If you are interested in the detailed working, look for the "nix pills" series
<srhb> Akii: That's often a source of confusion because the boundaries are blurry.
ditadi has joined #nixos
<LnL> there's also the nix pills but that's more about packaging and how nix (the package manager) works
<LnL> !pills
aarvar has joined #nixos
reinzelmann has joined #nixos
<Akii> okay, thanks :D Really digging this so far
<srhb> Akii: And do hang out! Lots of friendly people here. ^_^
<Akii> will do :D
ThatDocsLady has joined #nixos
pie_ has joined #nixos
NightTrain has joined #nixos
<jgt> I'm trying to use a haskell package from Github, and I'm using a fetchFromGithub override, but it doesn't seem to be working. No syntax errors either; the nix-shell loads just fine. Could someone point out what might be wrong here?: http://ix.io/17Fh
chisui has joined #nixos
<jgt> also there is no error even though I left the sha256 blank
rauno has joined #nixos
ikervagyok has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #38895 → mergerfs: 2.24.0 -> 2.24.2 → https://git.io/vxh0k
pie_ has quit [Ping timeout: 268 seconds]
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chisui has joined #nixos
<chisui> Hey, I just upgraded my system, in the middle of the upgrade it crashed and now firefox is broken. I don't know where exactly in the upgrade process the crash occured. Here are the error messages firefox outputs + my system info https://gist.github.com/chisui/dcad1147fde0360e3f4b781978fd62f1
goibhniu has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko pushed to openssh-drop-dsa « ssh: drop DSA support, fixes #33381 »: https://git.io/vxTWo
ThatDocsLady has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @yegortimoshenko reopened pull request #36937 → ssh: drop DSA support, fixes #33381 → https://git.io/vxT85
ThatDocsLady has joined #nixos
<crooksey> Akii: I installed yesterday, basically, forget everything you know about package/service management
humanoyd has joined #nixos
<chisui> Firefox starts but all tabs say they crashed. Everything else seems to be ok. Does anyone have an idea whats going on?
<chisui> I'm on unstable-small
<Akii> crooksey that's good, I know almost nothing about that anyway -- less to unlearn :3
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/vxhEq
<{^_^}> → d260e95c by @brainrape: nixos/prosody: add user, group options
<{^_^}> → ec1419ba by @brainrape: nixos/prosody: fix pidfile path
<{^_^}> → 3ea1f1dd by @dotlambda: Merge pull request #38820 from brainrape/nixos-prosody-add-user-group
<{^_^}> [nixpkgs] @dotlambda merged pull request #38820 → nixos/prosody: add user/group options, fix pidfile path → https://git.io/vxA7I
seville has quit [Quit: Leaving]
chisui_ has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #38890 → signal-desktop: 1.6.1 -> 1.7.0 → https://git.io/vxhqh
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vxhE4
<{^_^}> → ae131804 by @yegortimoshenko: Merge pull request #38890 from r-ryantm/auto-update/signal-desktop
<{^_^}> → 50c6900f by R. RyanTM: signal-desktop: 1.6.1 -> 1.7.0
<jgt> anyone know how fetchFromGithub works with haskellPackages? haskellPackages
<jgt> damn, wrong paste
<jgt> this paste: http://ix.io/17Fh
<crooksey> Akii: haha, I have been using for ~14 years
<srhb> jgt: What do you mean? No difference to any other kind of package.
<crooksey> its really intuitive, and makes you wonder why something like nixos hasn't come about before
<jgt> srhb: I want to use a fork of persistent. When I run ghci in nix-shell with this config, I don't have the fork of persistent.
<srhb> jgt: Did you notice that you're overriding pkgs.persistent, not haskellPackages?
<srhb> jgt: And I'd recommend rewriting this override in a more modern style as well, I think there's an overlay example in the nixpkgs manual, let me check.
<jgt> srhb: I've struggled to find any good examples, but I'd be thrilled if I can get this working
<jgt> I'm basing what I have from an answer someone else gave me here earlier
alex`` has quit [Quit: WeeChat 2.1]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f26d8904035 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
swaaws has joined #nixos
<srhb> jgt: I'd do something like this: http://nixpaste.lbr.uno/vij9RZpJ?nix -- but it doesn't build with current haskellPackages it seems
<jgt> ok so you mean this approach works, but the code in the repo itself doesn't work? Because I have to disable tests or something?
<srhb> jgt: This approach certainly attempts to build the modified persistent, but....
<srhb> jgt: Setup: can't find source for Database/Persist in ., dist/build/autogen,
<{^_^}> [nixpkgs] @Mic92 merged pull request #38885 → grafana: support socket protocol → https://git.io/vxhJK
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxhuw
<{^_^}> → ed6f1761 by @lopsided98: grafana: support socket protocol
<{^_^}> → 0cb8413b by @Mic92: Merge pull request #38885 from lopsided98/grafana-unix-socket
<{^_^}> [nixpkgs] @Mic92 pushed commit from @lopsided98 to release-18.03 « grafana: support socket protocol »: https://git.io/vxhuM
ericsagnes has quit [Ping timeout: 245 seconds]
<jgt> srhb: writing in this new style breaks other things for me :-/
<srhb> jgt: Not entirely unexpected. Sorry, I don't have time to do a thorough walk-through with you today :/
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
MP2E has quit [Remote host closed the connection]
Acou_Bass has joined #nixos
<srhb> Oh, and maybe I _was_ indeed mistaken about the src override. Sorry.
humanoyd has quit [Ping timeout: 240 seconds]
humanoyd has joined #nixos
<ottidmes> Any idea what might be the cause for this: /bin/sedutil-kexec: line 7: /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-kexec-boot: not found, what's up with those e's? (the error originates from a script run at stage 1)
<LnL> that happens when you use removeReferencesTo
<jgt> srhb: what was the mistake?
Guest5112 is now known as toby1851
<srhb> jgt: I think we might need overrideCabal somewhere in there.
<ottidmes> LnL: Thanks for the pointer, I do not have that anywhere in my config, but I might be using something that in turn uses that
<LnL> ottidmes: so it looks like it's used incorrectly or something in that build changed resulting in an incorrect reference
kier has quit [Remote host closed the connection]
kier has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxhgU
<{^_^}> → ca6a4bf0 by @Mic92: mergerfs: 2.24.0 -> 2.24.2
<{^_^}> → 1cbbe204 by @Mic92: Merge pull request #38895 from Mic92/mergerfs
<{^_^}> [nixpkgs] @Mic92 merged pull request #38895 → mergerfs: 2.24.0 -> 2.24.2 → https://git.io/vxh0k
<srhb> jgt: Specifically that's not how _src_ works in haskellPackages
<{^_^}> [nixpkgs] @Mic92 merged pull request #38879 → vscode: 1.22.1 -> 1.22.2 → https://git.io/vxp7l
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxhgq
<{^_^}> → 6fd4462f by @smashedtoatoms: vscode: 1.22.1 -> 1.22.2
<{^_^}> → 89af125a by @Mic92: Merge pull request #38879 from smashedtoatoms/vscode-to-1.22.2
<srhb> I guess I always just used callPackage to my own version :P
thblt has joined #nixos
sigmundv__ has joined #nixos
<jgt> srhb: is there an easier way to do what I'm trying to achieve?
<ottidmes> LnL: It is caused by ${config.kexec.scripts.boot} in my script, I thought it would just copy over those /nix/store references to the initrd. As a workaround I could just copy it via extraUtilsCommands into bin and run /bin/kexec-boot
<jgt> I'm just trying to follow the examples I've seen :-/ strange that this isn't more thoroughly documented
<{^_^}> [nixpkgs] @dotlambda merged pull request #38892 → pythonPackages.apsw: 3.9.2-r1 -> 3.22.0-r1 → https://git.io/vxhGj
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vxhg4
<{^_^}> → a49cb860 by @xvapx: pythonPackages.apsw: 3.9.2-r1 -> 3.22.0-r1
<{^_^}> → eb76a6a4 by @dotlambda: Merge pull request #38892 from xvapx/upd/apsw
<{^_^}> [nixpkgs] @Mic92 merged pull request #38844 → libsForQt5.qtstyleplugin-kvantum: 0.10.4 -> 0.10.6 → https://git.io/vxxgl
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxhgB
<{^_^}> → 35049f9e by @bandresen: libsForQt5.qtstyleplugin-kvantum: 0.10.4 -> 0.10.6
<{^_^}> → c81e1724 by @Mic92: Merge pull request #38844 from bandresen/qtstyleplugin-kvantum
<srhb> jgt: cabal2nix the persistent checkout you want and callPackage it from your overrides
<srhb> Specifically in a haskellPackages override
<{^_^}> [nixpkgs] @Mic92 pushed commit from @bandresen to release-18.03 « libsForQt5.qtstyleplugin-kvantum: 0.10.4 -> 0.10.6 »: https://git.io/vxhg2
<ottidmes> LnL: I guess it only copies over the /nix/store references of actual binaries
<jgt> srhb: should I use `callCabal2nix`?
<LnL> ottidmes: yeah, that's to avoid filling up /boot IIRC
simukis has joined #nixos
<ottidmes> LnL: makes sense, thanks! :)
<srhb> jgt: You can, though you don't need to.
<srhb> That just runs cabal2nix for you
<srhb> You can do it by hand to generate the derivation
logzet has quit [Remote host closed the connection]
<jgt> ok, so, clone the repo somewhere, run `cabal2nix . > default.nix` in that project's directory, and then…
downtime is now known as uptime
<jgt> I'm not sure how the callPackage part should look
<{^_^}> [nixpkgs] @abbradar opened pull request #38896 → Update shadowsocks-libuv and add shadowsocks service → https://git.io/vxhgh
<{^_^}> [nixpkgs] @Mic92 pushed commit from @Moredread to release-18.03 « josm: 13500 -> 13576 »: https://git.io/vxh2e
hakujin has joined #nixos
mahalel_ has joined #nixos
<srhb> jgt: LIke 9.5.3.2 in the nixpkgs manual (but probably project local like you did instead of globally)
<jgt> damn, persistent doesn't have a cabal file ಠ_ಠ I'll try stack2nix
asuryawanshi has quit [Remote host closed the connection]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/324874a6e5a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
asuryawanshi has joined #nixos
<srhb> Oh.. That might be why we're in trouble :P
hakujin has quit [Ping timeout: 240 seconds]
<srhb> How the heck does that work...
<jgt> srhb: haskell has some conflict around which build tool everyone should use
<jgt> srhb: I'm currently trying to see if I can use neither Cabal nor Stack, and just do everything with Nix
<srhb> You can't avoid Cabal (we use that, Stack uses that) but you can avoid cabal-install (which is what both do)
<jgt> I'm managing to build and deploy without Cabal
<jgt> and apart from this fork of persistent, I'm managing to run a Yesod app in development mode with nix and ghci
<srhb> Cabal the library? Not cabal the tool.
<srhb> jgt: Because naming sucks... :-P
<jgt> yeah I'm still confused about that
<srhb> jgt: Setup.hs usually uses Cabal (eg Distribution.Simple) and we call that directly
<jgt> srhb: the company isn't VL by any chance?
<srhb> jgt: Probably not, since I didn't understand the question ;-)
<jgt> Ok :)
hph^ has joined #nixos
mahalel_ has quit [Ping timeout: 260 seconds]
jtojnar has quit [Remote host closed the connection]
<crooksey> If I want to re-use a users nix profile on another machine, is there a cleaner way to export the config, other than manifest.nix?
<tilpner> Yes, declarative configuration :)
<srhb> crooksey: home-manager is quite nice.
<{^_^}> [nixpkgs] @suvash opened pull request #38897 → iamy: init at 2.1.1 → https://git.io/vxhaZ
<tilpner> (Via HM, or a buildEnv in an overlay)
<crooksey> ill check out home manager
<crooksey> My goal, is to basically create a automated way to setup my system with various development enviroment
rosa has quit [Quit: rosa]
<tilpner> crooksey - Are you on NixOS?
<crooksey> Yea
<tilpner> Then users.users.foo.packages is another option
<crooksey> That sounds more like it
<mkaito> crooksey: re: various development environment; look into `nix-shell -p`
<tilpner> Some people don't like to edit global configuration (and have to sudo nixos-rebuild) to add a package
<crooksey> Yea I have nix-shell working no problem
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f956b4fa6c5 (from 46 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<crooksey> But I now want to automate the building of my actual desktop
<crooksey> So I can just build my OS in a few minutes, run a script that will import all my X based configs etc
reinhardt has quit [Quit: Leaving]
<crooksey> Then put nix-shell configs inside the git repos where they are developed
<crooksey> Is that the best/most sane approach to nix?
nicolas_ has joined #nixos
<jgt> srhb: does this look right to you? http://ix.io/17Fv
reinhardt has joined #nixos
rosa has joined #nixos
iyzsong has quit [Ping timeout: 264 seconds]
Izorkin has joined #nixos
nicolas__ has joined #nixos
<jgt> nix-shell loads, but I still don't have the right package in GHCi
nicolas_ has quit [Ping timeout: 268 seconds]
<jgt> I'm just invoking `nix-shell` by the way, with no args
nicolas__ has quit [Quit: Lost terminal]
<zybell_> I dont see where you get ghci from
ilyaigpetrov has joined #nixos
<jgt> zybell_: from ghc/ghcWithPackages
ericsagnes has joined #nixos
<zybell_> that you only include if withHoogle is true
<jgt> and it defaults to true at the top, doesn't it?
<jgt> I don't have ghci outside nix-shell in any case
nicolas_ has joined #nixos
<zybell_> wasnt sure if ../pesistnet could do sth to change that
MercurialAlchemi has quit [Quit: Lost terminal]
<zybell_> *persistent
kai_w has joined #nixos
jgt has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
goibhniu has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f956b4fa6c5 (from 81 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
zybell_ has quit [Ping timeout: 268 seconds]
<crooksey> Going back to my earlier question, is there a way to define a nixprofile via a single file? E.g luke_laptop.nix
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/94d68a9e59c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tilpner> crooksey - Sure. What error are you getting?
acarrico has quit [Ping timeout: 265 seconds]
fendor has joined #nixos
<crooksey> Well, I am not, but looking/reading at the nixos guide, and looking at my system, I can see I have various profiles etc
<crooksey> But how can I create a dotfile for a user profile, so I can basically, move to another machine, run nix-env -install <dotfile> to load a set of packages and possibly some packages with version information etc
<crooksey> Or am I better of just writing a shell script for this?
<tilpner> I'm not sure what you mean
<tilpner> Do you want to write a dotfile that describes your profile, or manage your dotfiles via Nix?
FareTower has joined #nixos
<crooksey> Ok, so my 'plan' is to have a user profile for user 'luke' that basically list all of the packages the user luke has.
ericsagnes has quit [Ping timeout: 240 seconds]
<crooksey> So after a clean install, I can setup user luke, and build the nixos profile from a config file
<crooksey> if I didn't want this inside configuration.nix (as said above, nixos-rebuild would also manage all user files etc)
<tilpner> What do you mean by user profile? A profile the user can manage, or a profile the user can use?
Lears has quit [Remote host closed the connection]
psychic1 has joined #nixos
<tilpner> (The user can't manage users.users.foo.packages, but use them. The user can manage nix-env profiles)
<crooksey> Yea, basically I want to know, how do I setup a vanilla nix-env profile, with a defined list of packages
<crooksey> So instead of on a new system doing nix-env -i firefox foo bar ... I can just do nix-env source ~/.mycustomprofile
<tilpner> Do you know how to use overlays??
<crooksey> for example
NightTrain has quit [Quit: Lost terminal]
<gchristensen> crooksey: IIRC you can have a list.nix and inside it: with import <nixpkgs> {}; [ pkg1 pkg2 pkg3 ]; ... nix-env -if ./list.nix, I think
<crooksey> gchristensen: ill have a look, that sounds what i am looking for
<gchristensen> I don't use nix-env much, so this may not be quite right
drewr has quit [Ping timeout: 276 seconds]
<crooksey> tilpner: I don't, ill have a look, I assume they are simmilar to gentoo's portage overlays, e.g. third party mirrors?
<psychic1> Anyone can help me understand how do I add cabal-install to the list of build-time dependencies of a nix expression for a haskell project?
<psychic1> I have a simply release.nix and default.nix like is described in Gonzales' haskell-nix.
<crooksey> I also hardly ever use the package manager on a working system, and to be honest once vim, firefox and urxvt are installed, I doubt I will use it again for a long time
<psychic1> I want to enter nix-shell with `--pure` flag to make sure I don't rely on anything else in my system
<psychic1> But when I do that I do not have cabal-install. I tried to add cabal-install in a myriad of ways but all failed.
<tilpner> crooksey - Actually, we don't strictly need them here, they'd just be prettier
raynold has quit [Quit: Connection closed for inactivity]
<psychic1> Like for example, I tried to take the project expression and do an `overrideAttrs` to concatenate to the buildInputs `cabal-install`
<tilpner> crooksey - If you put tx0.co/n into ~/packages.nix, you can then call nix-env -rif ~/packages.nix to set your user profile to the defined packages
abcrawf has quit [Remote host closed the connection]
<psychic1> Also tried to do the same for the project expression's `env` attribute, as that's what I'm chosing for nix-shell
acarrico has joined #nixos
<tilpner> crooksey - But again, if you're using NixOS I recommend not using nix-env at all. Prefer users.users.foo.packages
zybell_ has joined #nixos
abcrawf has joined #nixos
Lears has joined #nixos
<crooksey> ok, so put that in configuration.nix?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38898 → gutenprint: 5.2.13 -> 5.2.14 → https://git.io/vxhKx
<crooksey> and is that as simple as users.users.luke.packages = [foo bar];
<tilpner> Yes
<crooksey> ok brilliant, thanks
<benny> nix-env not preferred on NixOS? adding a missing application requires a rebuild and at least a re-login or am I missing something?
<tilpner> benny - It requires a rebuild, but not a re-login
<benny> oh right the profile is symlinked and updates
<gchristensen> for me, I use systemPackages and nix-shell, and that covers all my use cases, benny
stumble has quit [Quit: Leaving]
<benny> having a single place to have the environment configured is preferable, I noticed that when I wanted to test out nixos-unstable after having used nix-env and I had to update two places
<tilpner> nix-env does have a place, e.g. when you specifically want some packages to stay outdated
<tilpner> I do that sometimes when rebuilding the package would take too long
<psychic1> I pasted an example: http://paste.debian.net/1020106/
<psychic1> I have projL which I'm building, and it has 2 other projects that are dependencies are not originally in nixpkgs. I want to enter a nix-shell for projL with `--pure` but stil be able to run `cabal` inside of it.
<psychic1> Can anyone help me understand in whose buildInputs, and how do I add `cabal-install`?
drewr has joined #nixos
blankhart has joined #nixos
jgt has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @mguentner opened pull request #38899 → backintime-qt4: package is broken → https://git.io/vxh67
seafood has joined #nixos
FareTower has quit [Ping timeout: 255 seconds]
xcmw has joined #nixos
telent has joined #nixos
dan_b has joined #nixos
knupfer has joined #nixos
<MarcWeber> I' trying to compile kaldi http://dpaste.com/24B8XC9 .. Any idea why symbols from opneblas cannot by found by ld ? readelf -Ws libopenblas.so lists them. ping gchristensen what's your progress?
<gchristensen> oh man, I haven't thought about kaldi in some time now
<MarcWeber> Found irc logs from January.
blahdodo has quit [Ping timeout: 265 seconds]
<Dezgeg> does readelf list just the function names or also the signatures? maybe it's a missing 'extern "C"' somewhere in the code?
iyzsong has joined #nixos
<gchristensen> it was a nightmare amalgamation of scripts and code. MarcWeber January 2017, which was reminiscing back to June 2016 :P
reinhardt has quit [Quit: Leaving]
<MarcWeber> I'm interested in trying coding by voice in addition or as alternative to keyboard.
<hyper_ch2> Mic92: do you already have any idea on how to fix zfs on nixs for latest kernel?
vaninwagen has joined #nixos
<kandinski> Running Nixos usntable, I'm trying to work with https://github.com/kanaka/mal.git and I don't understand where this error comes from: http://paste.debian.net/1020108/ I've confirmed that it doesn't exist in Debian, and I've reproduced it in the nixos VirtualBox Vm. Can anybody help me debug it?
lord| has quit [Quit: WeeChat 2.1]
<MarcWeber> kandinski: RAM / swap enough?
<kandinski> MarcWeber: Yes. My laptop has 16GB
<kandinski> MarcWeber: the VirtualBox VM reproduction was just to check that I had not messed up my nixos install, so I tried it on a second nixos system.
<kandinski> MarcWeber: but I'm seeing the issue on my main laptop.
<MarcWeber> Try strace to find out what subprocess tried starting ?
<Mic92> hyper_ch2: no again
<kandinski> MarcWeber: thanks
nuncanada has joined #nixos
<MarcWeber> But I think it'll be line 8.
usrshv has joined #nixos
<MarcWeber> ../runtest.py -> check shebang line.
<MarcWeber> and ../bash/run or whatever that is.
<kandinski> #!/usr/bin/env python
<kandinski> #!/bin/bash
blahdodo has joined #nixos
<MarcWeber> bin/bash does not exist on nixos usually.
<kandinski> MarcWeber: thanks for the help. Where can I read about this general kind of errors, and how to fix them?
<MarcWeber> The way you did -> read the logs -> understand the keyword subprocess in python trace.. it was even telling you what it tried running ...
<MarcWeber> shebang issues are very common errors on nix becaues executables are not at standard locations.
<kandinski> yes, I could see that. But I didn't understand why it didn't find 'runtest.py', I never thought it would be the shebang.
<LnL> kandinski: patchShebangs in the build or use #!/usr/bin/env bash
ma27 has joined #nixos
kai_w has quit [Quit: kai_w]
<MarcWeber> kandinski: shebang -> linux kernel feature to run scripts / text files.
<kandinski> I thought it was a shell feature, but in any case, I get that /bin/bash may not exist. Thanks, MarcWeber and LnL.
<{^_^}> [nixpkgs] @abbradar pushed to master « dnscache service: fix bug with several assigned DNS servers »: https://git.io/vxhXk
<{^_^}> [nixpkgs] @abbradar pushed to release-18.03 « dnscache service: fix bug with several assigned DNS servers »: https://git.io/vxhXO
<gchristensen> MarcWeber: I'd recommend Dragon in a VM
nicolas_ has quit [Ping timeout: 256 seconds]
<gchristensen> MarcWeber: Kaldi isn't really ... friendly ...
<MarcWeber> I want to experiment with additional stuff like pitch eventually, does it support this?
<MarcWeber> As long as I can configure it the way I want - why not?
<MarcWeber> Its about maximizing commansd/sec in the end.
<gchristensen> why not, what?
<MarcWeber> And as I read docs it looks like I can reconfigure it.
deni has joined #nixos
<MarcWeber> foo("bar") the (" ") could be send by changing pitch.
<deni> domenkozar: hey
<MarcWeber> No idea how well such would work.
JosW has quit [Quit: Konversation terminated!]
<MarcWeber> Im' getting tired of the slowdown by the keyboard.
<gchristensen> why not what?
Rusty1_ has joined #nixos
<deni> domenkozar: so I'm trying to figure out why nix is compiling the universe rather than using the binary cache I gave it. I have `trusted-substituters` and `trusted-public-keys` in my `~/.config/nix/nix.conf` file and I have the username/pass in `~/.config/nix/netrc`
<gchristensen> I was using Kaldi with a team of phd's in speech science, I'm not sure it'd be very applicable for normal people (or even me)
<deni> domenkozar: I tried nix ping-store but that works fine.... nix 2.0 btw (on debian)
<{^_^}> [nixpkgs] @abbradar pushed to master « dnscache service: cleanup and add forwardOnly »: https://git.io/vxhXz
<gchristensen> I'd argue that speech is much slower than keyboards for precision work, like programming and commands
ericsagnes has joined #nixos
<LnL> deni: you can't specify that in the user config
<gchristensen> yes, inndeeed
<gchristensen> anyway, I'd recommend doing what he does. good luck :)
<MarcWeber> Watch this @ gchristensen.
<gchristensen> I have watched it
<gchristensen> I have implemented it, too, because of my crippling hand problems. it wasn't fun
<deni> LnL: hmmm well I don't even have the daemon running... is having the daemon running a pre-requiesite for this... I'm not on NixOS mind you
<LnL> oh, it's a single user install?
<LnL> nix-shell -p nix-info --run nix-info
<MarcWeber> gchristensen: What would be the problems with kaldi?
<MarcWeber> According to docs I can create my own commands easily and train it.
<deni> LnL: IDK..I clicked Get Nix from here https://nixos.org/nix/ and used the shell 2 shell scripts
<deni> so yes I assume it's a single user install
<LnL> nix-info will tell you :)
<gchristensen> are you a speech recognition researcher?
<deni> LnL: I don't seem to have a nix-info command
<MarcWeber> No, trying to solve my own problems getting more done in less time with less stress.
<LnL> deni: oh... right, running that nix-shell command will probably start compiling stuff in your case :/
<gchristensen> then I don't think Kaldi is for you ... "Kaldi is intended for use by speech recognition researchers."
<gchristensen> it isn't a product, but intended for research use
<MarcWeber> gchristensen: Do you recall the linux disttro you used that time?
<LnL> deni: id nixbld1 or check if there's a nix-daemon process running
<gchristensen> ubuntu probably
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/bc0bcf326ab (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<deni> LnL: I think my config in `~/.config/nix/nix.conf` works fine because when I removed cache.nixos.org and it's signature from ther eit started complaining about invalid signatures
<deni> LnL: there is no nix-deamon process running
<deni> and there is no nixbld1 user
<gchristensen> last time I'll mention it, but I think you're on a fool's errand in two ways, (1) using kaldi, (2) thinking it'll be easier or faster or less stressful
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38900 → emby: 3.3.0.0 -> 3.3.1.0 → https://git.io/vxh1O
<LnL> deni: what does your user config look like exactly?
<domenkozar> deni: I'd try putting that into /etc/nix/nix.conf
<domenkozar> or is that unavailable to you?
<domenkozar> I've also commented on https://github.com/NixOS/nix/issues/1921#issuecomment-381124304 since I don't see why that's not allowed
psychic1 has quit [Ping timeout: 255 seconds]
<deni> domenkozar: will try it
<{^_^}> [nixpkgs] @Mic92 merged pull request #38899 → backintime-qt4: package is broken → https://git.io/vxh67
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxh1z
<{^_^}> → 119570cd by @mguentner: backintime-qt4: package is broken
<{^_^}> → cdf06556 by @Mic92: Merge pull request #38899 from mguentner/backintimeqt4_is_broken
<deni> domenkozar: but for instance if I make a typo in that config and run nix-build it complains about an unknown config parameter...so I thought it's reading it fine
<LnL> domenkozar: yeah, I'd expect that to work for trusted users
<domenkozar> deni: I think Nix doesn't allow you to set trusted binary cache as a user
<domenkozar> as mentioned in https://github.com/NixOS/nix/issues/1921
<domenkozar> I'd say that's a bug :)
<domenkozar> user config is Nix 2.0
<LnL> domenkozar: no, that's only for multi-user installs
<domenkozar> ah, he has single user?
<LnL> yeah
<domenkozar> so I'd still try global nix.conf
olto has joined #nixos
<domenkozar> and that rules out if user config works or not
<LnL> the config looks fine to me
<domenkozar> deni: you are using Nix 2.0 right?
<domenkozar> nix-env --version
<domenkozar> ah I see in scrollback you just installed it, ok
<deni> domenkozar: nix 2.0 yes
Meizikyn has quit [Remote host closed the connection]
Meizikyn has joined #nixos
<{^_^}> [nixpkgs] @abbradar merged pull request #38896 → Update shadowsocks-libuv and add shadowsocks service → https://git.io/vxhgh
<{^_^}> [nixpkgs] @abbradar pushed 3 commits to master: https://git.io/vxhMG
<{^_^}> → ee7351d8 by @abbradar: shadowsocks-libev: 2.5.5 -> 3.1.3
<{^_^}> → f7651b35 by @abbradar: shadowsocks service: init
<{^_^}> → 803dca34 by @abbradar: Merge pull request #38896 from abbradar/shadowsocks
apeyroux has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mguentner closed pull request #38738 → i3pystatus: 3.35 -> unstable → https://git.io/vxbFc
<{^_^}> [nixpkgs] @abbradar merged pull request #38815 → avidemux: fix build with glibc 2.27 → https://git.io/vxAwn
<{^_^}> [nixpkgs] @abbradar pushed commit from @pbogdan to master « avidemux: fix build with glibc 2.27 »: https://git.io/vxhM8
<{^_^}> [nixpkgs] @mguentner reopened pull request #38738 → i3pystatus: 3.35 -> unstable → https://git.io/vxbFc
<deni> domenkozar: moving ~/.config/nix to /etc/nix doesn't help...it keeps cloning things from github rather than using tha binary cache
<deni> domenkozar: okay moving back to the old notation `binary-caches` and `binary-cache-public-keys` as well as having the config live in /etc/nix rather than ~/.config/nix seems to do the trick
FireFly has quit [Ping timeout: 624 seconds]
ma27 has quit [Quit: WeeChat 2.0]
<domenkozar> huh :)
<domenkozar> are you sure you have Nix 2.0?
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/vxhDt
<{^_^}> → f8e25030 by @NeQuissimus: linux-copperhead: 4.15.16.a -> 4.15.17.a
<{^_^}> → 0625f772 by @NeQuissimus: Fix kernel-copperhead test
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « Fix kernel-copperhead test »: https://git.io/vxhDY
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux-copperhead: 4.15.16.a -> 4.15.17.a »: https://git.io/vxhDn
<deni> domenkozar: http://dpaste.com/1KYKSS4
ma27 has joined #nixos
<domenkozar> deni: I'll play around with that very soon
<domenkozar> so good to know about all these issues :D
alexteves_ has joined #nixos
<deni> domenkozar: LnL thank for the help! :)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
<LnL> that's weird, I'm using substitutors = ...
<deni> so we now have 3 notations circulating :D
<LnL> same with the nixos options in 18.03
<LnL> hold on, wat is it rebuilding?
<LnL> everything or just stuff from your hydra
<{^_^}> [nix] @edolstra pushed to master « Fix broken DocBook »: https://git.io/vxhyE
<steveeJ> has anyone seen the issue "Error response from daemon: pull access denied for pause, repository does not exist or may require 'docker login'
<steveeJ> " with kubernetes? kubernetes internally uses the "pause" container, which seems to be missing
<usrshv> [^_^]
<LnL> deni: the trusted-* options are not the same as just binary-caches/substituters
seafood has quit [Quit: seafood]
usrshv has quit [Quit: Leaving]
jperras has joined #nixos
vaninwagen has quit [Ping timeout: 276 seconds]
oahong has quit [Quit: 暂离]
oahong has joined #nixos
alex`` has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
zzamboni has joined #nixos
ditadi has quit [Ping timeout: 265 seconds]
xcmw has quit [Ping timeout: 268 seconds]
pie_ has joined #nixos
darlan has joined #nixos
darlan has quit [Client Quit]
<{^_^}> [nixpkgs] @juliendehos opened pull request #38901 → julia-vim: init at 2018-03-27 → https://git.io/vxh9N
ma27 has quit [Ping timeout: 240 seconds]
lonokhov has quit [Quit: Lost terminal]
ThatPako has joined #nixos
<ThatPako> Any idea why a derivation built with `buildPythonApplication` fails to import something from _itself_?
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « hipchat: 4.30.3.1670 -> 4.30.4.1672 »: https://git.io/vxhHC
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « hipchat: 4.30.3.1670 -> 4.30.4.1672 »: https://git.io/vxhH8
szicari has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « Fix #1921 »: https://git.io/vxhHp
coot has quit [Quit: coot]
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
shapr has joined #nixos
shapr is now known as Guest5829
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
Guest5829 is now known as shapr`
shapr` is now known as shapr
shapr has quit [Changing host]
shapr has joined #nixos
coot has joined #nixos
coot has quit [Client Quit]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
krey has joined #nixos
<deni> LnL: what do you mean? what are the trusted-* options used for?
<NinjaTrappeur> Hey, anybody's using ghc-mod on nixos here?
zzamboni has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #38901 → julia-vim: init at 2018-03-27 → https://git.io/vxh9N
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxh73
<{^_^}> → 25edf5ad by @juliendehos: julia-vim: init at 2018-03-27
<{^_^}> → d55ebcf6 by @Mic92: Merge pull request #38901 from juliendehos/julia-vim
<krey> any nixos.wiki admins on here?
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « ostree: 2017.12 -> 2018.4 »: https://git.io/vxh7W
<LnL> deni: the trusted-* options allow untrusted users to use those caches with --option substituters
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « ostree: 2017.12 -> 2018.4 »: https://git.io/vxh74
<LnL> deni: the regular options are the default caches that are used
<{^_^}> [nixpkgs] @Ekleog opened pull request #38902 → nheko: 0.3.0 -> 0.3.1 → https://git.io/vxh7a
<deni> LnL: I see.... okay thanks for the clarification
zzamboni has joined #nixos
xcmw has joined #nixos
TweyII has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
xcmw has quit [Client Quit]
<TweyII> So now that we have libglvnd working, is there something I can do to get a better OpenGL experience on non-NixOS?
<TweyII> Does mesa now just do the right thing, or is there some additional tweaking required?
<symphorien> krey: there is a #nixos-wiki, maybe some are there
<deni> domenkozar: LnL so all in all this might be a combination of user-error and documentation issue
swistak35 has joined #nixos
kmicklas has joined #nixos
<steveeJ> offlinehacker[m]: can we do something about the "pause" container image not really being persistent? AFAICT it's possible that it gets cleaned up by any docker user
<domenkozar> deni: aha?
niklob has joined #nixos
FireFly has joined #nixos
erasmas has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
FareTower has joined #nixos
blankhart has joined #nixos
acarrico has joined #nixos
xAFFE has left #nixos ["Disconnected: Replaced by new connection"]
xcmw has joined #nixos
deepfire has quit [Ping timeout: 256 seconds]
zzamboni has left #nixos [#nixos]
__Sander__ has quit [Ping timeout: 260 seconds]
clefru has quit [Remote host closed the connection]
jensens has quit [Ping timeout: 264 seconds]
knupfer has quit [Ping timeout: 265 seconds]
hyper_ch2 has quit [Ping timeout: 260 seconds]
mmercier has quit [Quit: mmercier]
freeman42x[nix] has joined #nixos
chessai has joined #nixos
jgt has joined #nixos
ndrei has joined #nixos
reinzelmann has quit [Ping timeout: 265 seconds]
jensens has joined #nixos
jperras_ has joined #nixos
ryanartecona has joined #nixos
<{^_^}> [nixpkgs] @shlevy pushed to master « qemu-riscv: Mark lowPrio »: https://git.io/vxhhU
jperras has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @shlevy pushed to release-18.03 « qemu-riscv: Mark lowPrio »: https://git.io/vxhhM
<{^_^}> [nixpkgs] @yrashk opened pull request #38904 → sit: 0.2.1 -> 0.3.0 → https://git.io/vxhh9
<krey> can someone take a look my derivation here?
<krey> it works, but maybe it could be improved
xcmw has quit [Ping timeout: 260 seconds]
chisui_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @apeyroux opened pull request #38905 → c14: rev:97f437e -> tag:0.3 → https://git.io/vxhji
uwap has quit [Quit: ZNC 1.6.5 - http://znc.in]
Meizikyn has quit [Ping timeout: 245 seconds]
uwap has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/aab374503bd (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/94bdeac70b3 (from 68 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
jacob__ has joined #nixos
winem_ has quit [Remote host closed the connection]
winem_ has joined #nixos
<{^_^}> [nixpkgs] @xvapx opened pull request #38906 → tribler: 7.0.1 -> 7.0.2 → https://git.io/vxjej
Myrl-saki has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dotlambda closed pull request #38690 → tribler: 7.0.1 -> 7.0.2 → https://git.io/vxFMR
<{^_^}> [nixpkgs] @matthewbauer pushed 45 commits to openssl-1.1: https://git.io/vxjvF
<{^_^}> → ecf3bc78 by @globin: openssl: default to openssl_1_1_0
<{^_^}> → a8ab22fd by @globin: postgresql: build < 9.5 with openssl 1.0.2
<{^_^}> → 76c69781 by @globin: uwimap: add patch to build with openssl 1.1.0
<{^_^}> [nixpkgs] @matthewbauer reopened pull request #22357 → [WIP] Use openssl 1.1 by default → https://git.io/vDOGw
<TweyII> What does the warning ‘rewriting hashes in '/nix/store/…'; cross fingers’ mean?
knupfer has joined #nixos
<TweyII> Did I make a non-determistic derivation? :(
<TweyII> deterministic**
ottidmes has quit [Quit: WeeChat 2.0]
maingo has joined #nixos
<tilpner> Are you building without sandboxing or repairing?
niklob has quit [Ping timeout: 264 seconds]
chisui_ has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/94bdeac70b3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<TweyII> tilpner: Building with sandboxing, I think. Isn't that enabled by default for non-NixOS now?
<tilpner> Not sure. Test with nix show-config | grep 'sandbox '
<gchristensen> TweyII: it isn't enabled by default
<tilpner> Or grep 'sandbox ' /etc/nix/nix.conf
<TweyII> Oh, okay — seems no sandbox
<tilpner> I'll PM you the comment for that snippet
<TweyII> Thanks
<TweyII> Have to dash, will try to parse again in a bit :)
bpa has joined #nixos
grpala has joined #nixos
grpala is now known as grp
fez has joined #nixos
<vdemeester`> hum, small question about `nix-build`. I'm running nixos-18.03, so go is 1.10. but when using `nix-build` and a `buildGoPackage` (with this https://gist.github.com/vdemeester/6d98582f4a8c64acac4d23f3f8312b54), it is using go 1.9.x.. and I'm not sure to know why :(
<cransom> vdemeester`: it will build with whatever <nixpkgs> it has available. if you have a local channel that isn't as new as the OS, it still uses that.
<vdemeester`> cransom: I do have a nixpkgs point to unstable `nixpkgs https://nixos.org/channels/nixpkgs-unstable`
<cransom> have you ran nix-channel --update?
<vdemeester`> and `nixpkgs.go go-1.10.1`
<vdemeester`> yep
warbo has joined #nixos
xeji has joined #nixos
<warbo> hello, I'm building some packages on my Hydra instance which use "pinned" versions of nixpkgs
Ariakenom has joined #nixos
<warbo> I'm getting quite a bit of building during evaluation
<warbo> which is fine, but would be nice to see as actual build products somewhere
<warbo> I see that Hydra jobsets can use other Hydra builds as inputs
<warbo> could I use this to say "import the .nix files which were built over there"?
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vxjk0
<{^_^}> → 62315cf5 by @matthewbauer: quota: rename to linuxquota
<{^_^}> → 47fdc26c by @matthewbauer: unixtools: quota is not in utillinux
<{^_^}> → f1fb3651 by @matthewbauer: quota: get from unixtools
fendor has quit [Ping timeout: 240 seconds]
<deni> domenkozar: I just meant that I didn't really understand what the trusted-* options are used for as LnL pointed above. Also it's not clear on the distinction between $HOME/.config/nix and /etc/nix and why some things need to be in one folder and not the other. So all i all user-error which could be avoided with docs. That's my take on it anyway. It's a whole other discussion if any of this should really
<deni> affect a single user install (since the security implications from the issue pasted above are only relevant for multi user systems)
raynold has joined #nixos
coot has joined #nixos
winem_ has quit [Ping timeout: 276 seconds]
ThatDocsLady_ has quit [Quit: Leaving]
crooksey has quit [Ping timeout: 256 seconds]
acarrico has quit [Ping timeout: 240 seconds]
sanscoeur has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
jgt has quit [Read error: Connection reset by peer]
telent has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « unixtools: fixup hexdump issue »: https://git.io/vxjL9
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
<fez> Hi. I'm looking for advice on how to organize my development environment with Nix. All examples I've seen show only how to do that with one project. But suppose I have two projects and one depends on another. I want to work on both of them at same time. What is not clear to me is how to use modified project as a dependency and build it incrementally. Any thoughts?
catern has quit [Quit: catern]
<{^_^}> [nixpkgs] @timokau opened pull request #38907 → eli: init at 4.8.1 → https://git.io/vxjtG
<vdemeester`> cransom: somehow, it looks for 1.9
jgt has joined #nixos
zybell_ has quit [Ping timeout: 264 seconds]
xeji has quit [Quit: WeeChat 2.0]
tmaekawa has joined #nixos
<vdemeester`> 18.03 buildGoPackage is still referencing 1.9.x
zybell_ has joined #nixos
sanscoeur has quit [Remote host closed the connection]
hakujin has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/c1dc24b8cac (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> [nixpkgs] @shlevy pushed to master « pythonPackages.buildSetupcfg: Allow disabling tests. »: https://git.io/vxjqg
<{^_^}> [nixpkgs] @shlevy pushed to release-18.03 « pythonPackages.buildSetupcfg: Allow disabling tests. »: https://git.io/vxjmU
Meizikyn has joined #nixos
<vdemeester`> seems like nix-build on nixos is using the system derivations and not the user one
<vdemeester`> (which make sense)
acarrico has joined #nixos
<gchristensen> system derivations?
<vdemeester`> I mean it's using the system channel (root one) instead of my user one
<{^_^}> [nixpkgs] @xeji opened pull request #38908 → [18.03]: haskellPackages: disable some failing hydra builds → https://git.io/vxjmw
<bgamari> how does one debug lacking signatures when using nix copy?
<bgamari> I have run `nix sign-paths` on the path I'm trying to copy
<bgamari> with a private key that is trusted by both the source and the target
<bgamari> which `nix show-config` confirms
<bgamari> however `nix copy` nevertheless fails claiming a signature is lacking
<vdemeester`> gchristensen:
<vdemeester`> (dang it..) does it make sense ?
<gchristensen> oh, yeah, that makes sense
<gchristensen> I think this is a bug, and I have a patch in to fix it for nixos-unstable / 18.09
<bgamari> is there any way to show the signatures attached to a path?
<TweyII> fez: You can use the import expression to reuse the other derivation, and caching will happen normally
<{^_^}> [nixpkgs] @bjornfor pushed to master « nixos: enable bash command completion by default »: https://git.io/vxjmb
<vdemeester`> gchristensen: oh.. so it should use my personnal channel then, but it's a bug.. arf.. no biggies :P
<{^_^}> [nixpkgs] @jb55 closed pull request #32773 → Trezor GPG Agent → https://git.io/vb6ZH
<bgamari> I was hoping `nix path-info` would do this, but it doesn't seem to
<{^_^}> [nixpkgs] @bjornfor closed pull request #38038 → nixos: enable bash command completion by default → https://git.io/vxV5O
<gchristensen> vdemeester`: you can fix it on your machine now if you'd like
<bgamari> ahh, --sigs
<vdemeester`> gchristensen: I would like too yes :P how though ? :)
<clever> bgamari: ah, i was wondering how to view that stuff
catern has joined #nixos
<bgamari> hmm, but the key shown by `nix path-info --sigs` doesn't seem to match the public key produced by nix-store --generate-key
<gchristensen> vdemeester`: nix.nixPath = [ "$HOME/.nix-defexpr/channels" ];
<gchristensen> I think that should do it
<vdemeester`> oh right, that would do it indeed :)
<fez> TweyII: yeah, but that will rebuild dependent project from scratch after every change in it. I'd like to find a way to avoid that.
<bgamari> unless it's not showing a key
<bgamari> it looks quite a bit longer than a key
acarrico has quit [Ping timeout: 260 seconds]
<bgamari> wow
<bgamari> it is possible to essentially brick nixos by introducing something that isn't a key into nix.binaryCachePublicKeys
logzet has joined #nixos
<bgamari> yet this isn't checked while building the system
<clever> bgamari: you can still rollback to undo those changes
jperras_ has quit [Quit: WeeChat 2.1]
spear2 has quit [Ping timeout: 260 seconds]
<bgamari> ahh good
<bgamari> yes you can
<LnL> yeah, --rollback doesn't need to build anything
spear2 has joined #nixos
rosa has quit [Quit: rosa]
<warbo> fez: how "granular" do you want the changes to be? if each project is in git, you could have each one use the others' latest commit
<warbo> fez: also it depends what you mean by "from scratch"; if you're using one monolithic build script then you might consider breaking that apart so that unchanged dependencies don't get rebuilt
<warbo> (depends on the languages and tooling you're using)
<bgamari> clever, LnL, nevertheless, it seems to me that you shouldn't be allowed to get this far
<clever> bgamari: looks like path-info only has 3 sub-commands
<clever> bgamari: ive also broken my machine by turning off a remote binary cache
<fez> warbo: Each project is in it's own git repo. I probably wasn't good at explaining myself. Suppose one project is a huge library. And other project depends on it. I want to add one small function to the library. And use it in the other project.
<fez> I use c++ and CMake if that's important
<clever> bgamari: another trick, cd /etc/nix ; cat nix.conf > new ; rm nix.conf ; mv new nix.conf ; vi nix.conf
<clever> bgamari: the above will replace the symlink with a regular file, and edit it
<clever> nixos-rebuild will then overwrite that file with a symlink at the next switch
<bgamari> mm
<fez> warbo: the main issue is: I don't want to rebuild whole library every time.
<bgamari> right
<LnL> or use --option substituters, etc. as root to recover
<clever> that trick can be used for any config file in /etc
<warbo> fez: I'm not so fluent in C++ (i.e. I hate it :P ) but building with frankenstein half-old/half-new version of a library sounds like a bad idea to me
<bgamari> I do wish it were possible to get more insight into the signature validity check
<warbo> there *are* things you can do, like having your build scripts use stuff from outside the Nix store, but it would leave a bad taste in my mouth
<clever> bgamari: same
<fez> warbo: I understand your hate). Well it's not a frankenstein, it's incremental build, I think that virtually every build system supports that.
humanoyd has quit [Quit: WeeChat 2.1]
<fez> (every build system for any language)
<clever> bgamari: it also looks like you can combine flags, `nix path-info --sigs --size --closure-size` shows all 3 at once
<bgamari> indeed
<warbo> fez: one important thing about Nix is that all dependencies are explicit
<{^_^}> [nixpkgs] @flokli opened pull request #38910 → masterpdfeditor: 4.3.82 -> 4.3.89 → https://git.io/vxjOt
Meizikyn has quit [Ping timeout: 276 seconds]
niklob has joined #nixos
xy2_ has joined #nixos
xcmw has joined #nixos
<fez> warbo: Okay, thanks for your feedback. As I see it, it should be done on the level of build system. I'm just struggling to find a way to make it easily configurable but it should be solvable.
sanscoeur has joined #nixos
<warbo> fez: so whilst you *can* do a partial build, that means you'd have to provide the partially-built project as a dependency
<warbo> (which seems pretty pointless)
sanscoeur has quit [Remote host closed the connection]
<warbo> fez: if you're building some particular file (.so or whatever), then you could just have your second project point at just those files
sanscoeur has joined #nixos
<fez> warbo: you mean like an impure symlink?
<warbo> you can then run cmake or whatever (maybe in nix-shell) to overwrite those files
<warbo> impure yes
<warbo> whether you use a symlink or not depends
sanscoeur has quit [Remote host closed the connection]
<fez> well if it's in nix store, than there aren't many options?
<warbo> you could e.g. have a Nix expression like { myLib = /home/fez/myLibrary/build/lib.so; }
<fez> then*
jwynn6 has quit [Ping timeout: 260 seconds]
<warbo> if you reference a file path, Nix will automatically add it to the store
<warbo> that would allow you to re-run old builds against the old library files
<clever> it also helps a lot to have the sandbox enabled
<clever> if the sandbox is off, and you use a path the wrong way, it can allow impure access to that path, which causes fun bugs
<clever> but if the sandbox is on, the impure method will just not find the file, forcing you to do it the right way
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/9ec5ff26ba6 (from 40 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<warbo> fez: what I'm imagining is running like the following to build "app" with the latest changes to "lib"'(cd /hom/fez/library; nix
<warbo> oops
<warbo> (cd /home/fez/library && cmake) && nix-build
<warbo> where your default.nix references to build product from /home/fez/library
<warbo> (that would be run from /home/fez/app or equivalent BTW)
<fez> warbo: okay, i think i understand what you mean
<fez> there is no impurity in this way btw
<warbo> it's non-reproducible though
<warbo> since the .so file (or whatever) wouldn't have any corresponding source
<warbo> it would just be "whatever used to be in /home/fez/lib"
<warbo> if you care about that, you could have it built via a git commit hook or something, but that's probably overkill ;)
dbe has joined #nixos
<fez> that's kind of overkill)
<warbo> fez: good luck, I've got to go now
<fez> Okay, thanks for suggestions
fez has quit [Quit: Page closed]
jgt has quit [Ping timeout: 240 seconds]
rauno has quit [Remote host closed the connection]
Jetien has quit [Remote host closed the connection]
Jetien has joined #nixos
blankhart has quit [Ping timeout: 240 seconds]
CornBurglar has joined #nixos
<CornBurglar> Hey, how do I switch onto the master branch?
warbo has quit [Ping timeout: 264 seconds]
jrolfs has joined #nixos
<derchris> probably using the unstable channel
<CornBurglar> Isn't the unstable channel behind the master branch?
Jetien has quit [Ping timeout: 240 seconds]
<TweyII> CornBurglar: Yes
* bgamari is beginning to think that the `-r` flag of `nix sign-paths`doesn't actually do anything
jensens has quit [Ping timeout: 265 seconds]
<LnL> CornBurglar: why do you want master, are you ok with potentially rebuilding the world?
<TweyII> CornBurglar: master doesn't have a channel associated with it AFAIK. But you can pass its GitHub tarball to various commands to install derivations from it (e.g. nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -i hello)
<TweyII> But indeed it might be slow
<TweyII> Since not all of master is binary-cached
<krey> does anyone here code C++ in an IDE?
<krey> if so, do you launch it from nix-shell? or do you do something smarter than that?
<{^_^}> [nixpkgs] @gebner pushed to master « python2Packages.python-wifi: 0.6.0 -> 0.6.1 »: https://git.io/vxjGG
CornBurglar has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Quit: ryanartecona]
zybell_ has quit [Quit: Leaving]
humanoyd has joined #nixos
blankhart has joined #nixos
zybell_ has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/9ec5ff26ba6 (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
xcmw has quit [Ping timeout: 260 seconds]
acarrico has joined #nixos
jwynn6 has joined #nixos
astiles has joined #nixos
<{^_^}> [nixops] @mbrgm opened pull request #922 → [WIP] Improve networking options for libvirtd target → https://git.io/vxjZG
xcmw has joined #nixos
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/vxjZz
<{^_^}> → 5d9bd57c by @gebner: pythonPackages.trezor: add required rlp dependency, fix build
<{^_^}> → 67dbfd3f by @gebner: pythonPackages.rlp: init at 0.6.0
jrolfs has quit [Ping timeout: 276 seconds]
<bgamari> does `nix copy` present the remote side with signatures if copying to a remote store?
<benny> what's the best way forward for me in this situation: current 18.03 can't be rebuild due to a bug, unstable can't be used because of another bug. and right now I'm in a non-optimal configuration and would like to experiment with a few parameters (Xorg related)
Turion has joined #nixos
boomshroom has joined #nixos
<boomshroom> Good morning!
<benny> hello
<elvishjerricco> bgamari: I'm pretty sure that `nix copy` copies any signatures along with the paths
<bgamari> hmm
<elvishjerricco> I know you can also add a `?secret-key=...` to the store URI, but I don't know if that makes `nix copy` sign the paths as it's copying them.
<bgamari> what does that do?
<elvishjerricco> Honestly, not really sure :P
<bgamari> I've concluded that NARs don't contain signatures
<bgamari> but strangely enough, nix-store --import also doesn't complain about lacking signatures
<elvishjerricco> `nix-store --import` won't complain about lacking signatures if the user doing the import is a `trusted-user`, I belive
<elvishjerricco> bgamari: This issue briefly mentions `secret-key`: https://github.com/NixOS/nix/issues/1556
<elvishjerricco> Anyway I know I've copied paths+sigs using `nix copy` before
<bgamari> ahh
srdqty has quit [Ping timeout: 276 seconds]
<Turion> htop shows "N/A" for my battery level although acpi shows 100%. Can that be because acpi is not in htop's path or something like this(
jrolfs has joined #nixos
srdqty has joined #nixos
<bgamari> elvishjerricco, right you are
pkill9 has joined #nixos
ertes-w has quit [Remote host closed the connection]
kongobongo has joined #nixos
kongobongo has quit [Client Quit]
kongobongo has joined #nixos
odi has quit [Ping timeout: 256 seconds]
<kongobongo> Hi folks, anyone on master, after recent staging merge, see 'perl: warning: Setting locale failed.' during 'sudo nixos-rebuild boot'?
Turion has quit [Ping timeout: 264 seconds]
sehqlr has joined #nixos
Turion has joined #nixos
odi has joined #nixos
<Turion> Lol, this was me checking the capacity of my battery the hard way.
<Turion> So htop doesn't show my battery status for some reason, although acpi does.
colonel_john_by has joined #nixos
<colonel_john_by> hello, anybody there?
<boomshroom> Quick question, does NixOS have the Esperanto locale patch?
<boomshroom> colonel_john_by: Greetings.
<colonel_john_by> hello, what is the attribute for the TeX and R packages?
<colonel_john_by> well (La)TeX
srdqty has quit [Ping timeout: 240 seconds]
<benny> answer to my question above: I switched to the 18.03-small channel and can now modify my system again
<tilpner> colonel_john_by - E.g. texlive.combined.scheme-medium
<Turion> colonel_john_by, depends a bit on how many extra packages you want
jperras has joined #nixos
<colonel_john_by> okay, thanks, what are the other scheme package for then?
<colonel_john_by> and i'm just testing things on virtualbox here, for now
<boomshroom> colonel_john_by: There are multiple packages that can render Latex files, so it depends what exactly you're looking for. texinfo seems to be fairly common.
<Turion> What package do I need in order to have /proc/acpi?
srdqty has joined #nixos
<boomshroom> colonel_john_by: R is just `R`
<Turion> Is this services.acpid.enable?
kongobongo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jrolfs_ has joined #nixos
<symphorien> colonel_john_by: and https://nixos.org/nixpkgs/manual/#r-packages
<boomshroom> Turion: services.acpid.enable = true; should do it. That said, I don't seem to have that set and yet I have /proc/acpi
jrolfs has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peti merged pull request #38908 → [18.03]: haskellPackages: disable some failing hydra builds → https://git.io/vxjmw
<{^_^}> [nixpkgs] @peti pushed 2 commits to release-18.03: https://git.io/vxjCj
<{^_^}> → 8945d596 by @xeji: haskellPackages: disable some hydra builds
<{^_^}> → c920ba02 by @peti: Merge pull request #38908 from xeji/haskell-disable-hydra
<Turion> boomshroom, oh, weird... well maybe you have another service that pulls in acpid?
ryanartecona has joined #nixos
<benny> acpid is a daemon that can act on various signals, /proc/acpi is the old style kernel interface that should just exist on Linux
<benny> (closing lid, opening lid are two such signals)
<boomshroom> Turion: Actually, I have it pulled in from my i3 status bar so I can see battery level... I think.
<Turion> benny: Oh, right, /proc is getting deprecated? I'm wondering where htop gets its information from
rosa has joined #nixos
<benny> to not get into a guessing game I would use the source, sysfs seems likely but there can probably be a variety of ways
<colonel_john_by> symphorien: thanks, didn't look at the nixpkg manual, my bad
<Turion> benny, right, reading the htop source now, it seems it can use proc or sys
<benny> for what's worth I just added the battery indicator in htop and it worked for me and I didn't do anything special
<Turion> It first tries proc, then sys
<Turion> benny, ok, for you the proc way should already work
maingo has quit [Quit: Connection closed for inactivity]
<Turion> I was gonna say I love htop, but looking at the source code puts my love to the test
<benny> what happens if you run "acpi"?
<Turion> That works
<benny> that uses sysfs on my system
spear2 has quit [Ping timeout: 256 seconds]
<benny> /sys/class/power_supply/BAT0/energy_now
<boomshroom> Turion: You're not fond of htop's source? Have you considered trying to make you own? With blackjack and hookers? :P
<Turion> "for (;;) {"
<Turion> boomshroom, I guess I'm just spoiled by Haskell. I'd probably dislike most C code even if it's well written
srdqty has quit [Ping timeout: 264 seconds]
halfbit has joined #nixos
<benny> C is getting long in the tooth now :P
<Turion> Actually for C it's quite ok, just some oddities. Are there no decent parsing libraries in C? Must they do everything by hand?
<halfbit> can I use grub + efi?
<boomshroom> Turion: Guess what language I currently have open right now? That I'm trying to figure out why it it's working.
niklob has quit [Ping timeout: 265 seconds]
<halfbit> the manual says efi means I need to have systemd-boot.enable = true
<halfbit> that doesn't seem to help dual boot systems though, and the manual has no docs on that
<boomshroom> halfbit: `boot.loader.grub.efiSupport` Looks like you can.
<halfbit> I have that, but it doesn't show up when I reboot, it skips
<halfbit> ok
<halfbit> I see the problem now
<halfbit> bad efibootmgr entry
<halfbit> nevermind!
<halfbit> boomshroom: thanks
<boomshroom> halfbit: No problem!
<shachaf> Is there a nix-env equivalent to apt-get -d install, i.e. just download the necessary files and don't compile/install?
srdqty has joined #nixos
rosa has quit [Quit: rosa]
<zybell_> Turion you can do `#define ever (;;)` and then write `for ever {`. Is that better? Can you do forever in Haskell?
humanoyd has quit [Quit: WeeChat 2.1]
rosa has joined #nixos
<boomshroom> shachaf: The closest to that would be `nix-shell "<nixpkgs>" -A package --run unpackPhase` The nix-shell gives you everying needed to build it and unpackPhase dumps the source into a subdirectory of your pwd.
<Turion> zybell_: Oh my goodness. Well yes, I can do forever in Haskell, but the compiler checks beforehand whether I'm doing anything sensible :D
<boomshroom> zybell_: It's just called `forever :: IO () -> IO ()`
acarrico has quit [Ping timeout: 264 seconds]
TweyII has quit [Ping timeout: 264 seconds]
<halfbit> do bad things happen if you subscribe to 17.09 and 18.03?
<zybell_> Ah the IO monad ofc!
<Turion> shachaf: Well, if it's in the cache, you could just install it and uninstall it. Then it's in your store somewhere, but not symlinked
<shachaf> Turion: But installing it will still interleave download and compile steps.
* zybell_ reads
<boomshroom> halfbit: nixos shouldn't try to access 2 different channels in the same command. Otherwise it should be safe having multiple versions that you can select between.
<shachaf> boomshroom: Hmm, that seems to download a lot of things that nix-env -i package doesn't (because they're already installed?).
<Turion> shachaf, that's right. If you only want the source, I guess boomshroom gave the better answer
<boomshroom> shachaf: because nix-env just downloads a prebuilt binary and its runtime dependencies. nix-shell gives all of its build dependencies.
<Turion> Ah, the problem seems to be that I don't have the path /sys/class/power_supply/BAT*
<Turion> I have /sys/class/power_supply/C1C5 though.
<shachaf> The situation is typically that I have a fast Internet connection and not much time now, and the reverse later.
jtojnar has joined #nixos
<Turion> shachaf, do you need to compile stuff?
<shachaf> Sometimes, apparently?
<Turion> I found that most of the time when it starts to compile things, the build will actually break, and it only compiles because it's broken in Hydra as well
<Turion> So htop really needs my battery to start with the name "BAT". I cite the source code:
<Turion> if (entryName[0] == 'B' && entryName[1] == 'A' && entryName[2] == 'T') {
<Turion> This is appalling.
<Turion> And later, there is String_startsWith. What's the matter?
rosa has quit [Quit: rosa]
<Turion> Sorry, I'm getting OT.
<Akii> currently installing Nix "> a # (make the partition bootable)" results in `a: unknown command` >_>
<benny> it should check "type", but that can be patched but whenever I touch C it ends in segfaults ;-)
rosa has joined #nixos
<tilpner> Akii - Have you figured it out? Try x A
<Akii> tilpner skipped since x A said "legacy"
<Akii> would've come back after it not booting :D
xcmw has quit [Ping timeout: 240 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
xcmw has joined #nixos
chessai has quit [Remote host closed the connection]
acarrico has joined #nixos
<gchristensen> Mic92: are you an encrypted zfs on / user?
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #38881 → cc-wrapper: More intelligent sierra hack → https://git.io/vxpFg
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to master: https://git.io/vxj8F
<{^_^}> → 01e1722e by @Ericson2314: cctools: Make assert meta.broken instead
<{^_^}> → 10013112 by @Ericson2314: cctools: Add alternative source for sierra hack
<{^_^}> → 1a72330a by @Ericson2314: cc-wrapper: Utilize patched cctools ld for more robust macOS Sierra hack
<benny> gchristensen: I'm not him but I'm on a native encrypted root zfs
<gchristensen> nice! on NixOS?
<benny> yeah
<gchristensen> do you have to use zfsUnstable still?
<benny> I haven't tried to switch it off, native encryption will become non-experimental in 0.8 only
<gchristensen> is it stable, performant enough?
<gchristensen> obviously it is experimental... but stable-enough :P
<benny> it's performant enough, but I'm not a benchmark kinda guy. I use it for the copy on write snapshots so my previous system was btrfs
<benny> which also is way worse than ext4
bara has quit [Ping timeout: 264 seconds]
<benny> form a pure performance perspective
<gchristensen> cool
<gchristensen> thanks for the info, benny. anything else I should know beyond what is here? https://nixos.wiki/wiki/NixOS_on_ZFS#Encrypted_ZFS
<benny> what you need to know at this point is that zfsUnstable on 18.03 won't compile
<benny> you have to use 18.03-small
<gchristensen> exciting
szicari has quit [Quit: szicari]
<Akii> oh boy, stuff is happening :D
<Akii> my colleague speaks very highly of nixos
<benny> also don't use /dev/ zvol paths to mount something. It takes 20 seconds for them to show up after unlocking the pool :P
<gchristensen> benny: :o what do you use?
<Turion> Akii: Yay :)
<benny> what's on the wiki is working fine, pool/path notation but I wanted a zvol backed swap
<Turion> How do I find out which version of a package is in the different channels?
<krey> Turion: nix repl?
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #38911 → Sierra hack → https://git.io/vxj46
<Turion> krey, ah, I didn't know it could do that
<tilpner> Turion - I use nix eval nixpkgs.nixos-17_03.rustc.name
<boomshroom> Turion: nix search will give the version from each channel from what I understand.
<tilpner> (Channels are overlayed here, but you can also use NIX_PATH)
<Turion> boomshroom, but only those I have installed, right?
<tilpner> Turion - nix eval -I nixpkgs=channel:nixos-17.03 nixpkgs.rustc.name
<boomshroom> Turion: nix search checks all packages that match, installed or not... I think.
<krey> boomshroom: I don't seem to have this
<krey> boomshroom: I mean, nix search telling me all the available versions
sehqlr has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @bjornfor pushed commit from @unode to master « mailutils: fix path to sendmail for local mail delivery »: https://git.io/vxj4j
<{^_^}> [nixpkgs] @bjornfor closed pull request #38708 → mailutils couldn't find sendmail for local mail delivery → https://git.io/vxbuk
<Mic92> gchristensen: yes
<zybell_> in the wiki "Encrypted Format Change" Point 6 (first list) is inconsistent with all other points. It has a slash between root and New.
<gchristensen> Mic92: I'm tempted ......
sehqlr has joined #nixos
kquick has joined #nixos
<gchristensen> Mic92: what specifically do you want me to get out of this? that FDE isn't a silver bullet? or that XTS specifically is not what I want?
robstr has quit [Ping timeout: 268 seconds]
<Mic92> gchristensen: that it is hard to proof the correctness of FDE. The aes modes used fs-native encryption are better understood.
<boomshroom> I'll be heading out soon. See you later!
<{^_^}> [nixpkgs] @wizeman opened pull request #38912 → luaPackages.mpack: fix hash → https://git.io/vxjBo
boomshroom is now known as boomshroom-away
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e4fd05449ed (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<krey> does nix eval '(import <nixpkgs> {}).python' do bad things for other people too?
<krey> I guess it can't evaluate derivations?
rosa has quit [Quit: rosa]
<gchristensen> Mic92: oh, ok. yes ... indeed, I think it is an important box to tick, though. obviously within my system you/I should encrypt anything secret, separately
<{^_^}> [nixpkgs] @wizeman opened pull request #38913 → nixos/transmission: fix AppArmor profile to include libkrb5 → https://git.io/vxjBF
phreedom has quit [Remote host closed the connection]
<Mic92> gchristensen: on a single disk it probably does not make a big performance difference. Only if you have raid systems.
rosa has joined #nixos
<{^_^}> [nixpkgs] @wizeman opened pull request #38914 → sgtpuzzles: 20171029.69773d8 -> 20180409.d95f476 → https://git.io/vxjBp
<Mic92> I am not sure sure what block sizes cryptsetup uses though
<Turion> tilpner: That's great, it works. But it downloads 10 MB every time. I wonder whether https://nixos.org/nixos/packages.html could include a dropdown box where you can select the channel
phreedom has joined #nixos
<tilpner> Turion - It should cache them a few hours. You could also have local pins or checkouts, if you're on a slow connection
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #38911 → Sierra hack → https://git.io/vxj46
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to release-18.03: https://git.io/vxjRU
<{^_^}> → 01e1722e by @Ericson2314: cctools: Make assert meta.broken instead
<{^_^}> → 10013112 by @Ericson2314: cctools: Add alternative source for sierra hack
<{^_^}> → 1a72330a by @Ericson2314: cc-wrapper: Utilize patched cctools ld for more robust macOS Sierra hack
<Mic92> A nice property of zfs's encryption is that you can still send/receive encrypted datasets without decrypting
<tilpner> krey - Try passing --raw
<Turion> tilpner, yes, true. Still it would be cool if the website had that possibility. I'll write a cheeky feature request ;)
<LnL> gchristensen: I learned about systemctl link because of the new installer, that's pretty useful :)
<krey> tilpner: now it just doesn't seem to do anything
<krey> tilpner: no error, I guess
<gchristensen> LnL: yeah! its nice!
rosa has quit [Client Quit]
<LnL> already used it for something slightly evil :p
<gchristensen> LnL: :O ??
<gchristensen> Mic92: that is nice! do you know if you can decrypt-and-send?
<tilpner> krey - It prints a path here
<Mic92> gchristensen: you mean stripping of the encryption?
<tilpner> krey - If you're trying this in zsh, please retry in bash
<krey> tilpner: it does work in bash
<LnL> gchristensen: nix-build '<nixpkgs/nixos>' -I nixos-config=foo-service.nix -A config.build.etc && systemctl link ...
pkill9 has quit [Quit: WeeChat 2.0.1]
<krey> tilpner: but why?
kquick has quit [Ping timeout: 264 seconds]
pkill9 has joined #nixos
<tilpner> krey - setopt prompt_sp fixed it for my prompt
<gchristensen> LnL: that is more evil than I'd have imagined!
<LnL> gchristensen: didn't want to figure out how to do it the apt way
<Turion> Ah I see, someone already asked that: https://github.com/NixOS/nixos-homepage/issues/53
rosa has joined #nixos
<{^_^}> [nixpkgs] @bjornfor pushed commit from @unode to release-18.03 « mailutils: fix path to sendmail for local mail delivery »: https://git.io/vxjRD
freeman42x[nix] has quit [Ping timeout: 245 seconds]
<Turion> tilpner: Yes :D just discovered it
<krey> tilpner: thanks
<samueldr> hi! please reply in the issue for any issues / comments / requests with that :) thanks
<tilpner> Sorry samueldr, you really should ask for that subdomain :)
<Turion> samueldr: I'd like to merge the PR, but I don't have the rights ;)
<samueldr> n/p that one is for the random stuff, that one I like to see people using it
<Turion> I don't really understand how problematic it is to have nixos-unstable and nixos-18.03 system-wide. In theory it should be alright, but in practice I'm going to have QT problems and so on, right?
<Turion> Also, e.g. firefox is more up to date in 18.03 than in unstable, which one will be selected then?
<ThatPako> Any idea why a derivation built with `buildPythonApplication` fails to import something from __itself__?
rosa has quit [Quit: rosa]
sud0x3 has joined #nixos
xcmw has quit [Ping timeout: 240 seconds]
vidbina has joined #nixos
rosa has joined #nixos
Rusty1_ has quit [Remote host closed the connection]
halfbit has quit [Quit: WeeChat 2.1]
<Akii> my linux skills are failing me already. Grub doesn't install "contains no BIOS Boot partition"
<Akii> I'm attempting an install on my vserver. Should I go for the UEFI install instead?
sigmundv__ is now known as sigmundv
<etu[m]> Akii: if you have EFI, and don't run legacy boot. You need an ESP
sanscoeur has joined #nixos
<Akii> ESP?
ckauhaus has joined #nixos
<Turion> I might be terribly thick here, but why a bootloader on a vserver?
<{^_^}> [nixpkgs] @andir pushed to master « caf: 0.15.3 -> 0.15.7 »: https://git.io/vxjue
<Turion> Oh, you want to install the host system?
<Akii> I just want to install NixOS on the vserver I rented
<Akii> or root server or whatever they call it
<Turion> Right... I don.t understand this really well, but that means that there is no BIOS, right? The host system just emulates a machine for you
<ThatPako> Stuff like qemu ships with SeaBIOS
<ThatPako> so you still get one
<Akii> Turion all I know is that it's more or less like a normal machine. Needs a way of booting and GRUB and all
<Turion> Ah :) well, you never stop learning
rosa has quit [Quit: rosa]
sanscoeur has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 264 seconds]
<Turion> Akii, does your hosting provider not give you any info about that?
niklob has joined #nixos
rosa has joined #nixos
<Akii> nope
<Akii> I assume I overlook something trivial
<ThatPako> Akii: what provider are you using?=
<Akii> it's a virtual server, can't be so much info to give
ryanartecona has quit [Quit: ryanartecona]
rosa has quit [Client Quit]
<Akii> I'll continue this tomorrow, running out of patience xD
<Akii> I'll be a partition expert tomorrow but not today
<Turion> Good night and good luck :D
<Akii> thank you all for the help today :)
odi has quit [Ping timeout: 256 seconds]
MichaelRaskin has joined #nixos
dbe has quit [Ping timeout: 260 seconds]
rosa has joined #nixos
vaninwagen has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
<ThatPako> Anything regarding my python derp?
niklob has quit [Quit: Leaving]
rosa has quit [Quit: rosa]
srdqty has quit [Ping timeout: 264 seconds]
rosa has joined #nixos
srdqty has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #38915 → sway: 0.15.1 -> 0.15.2 → https://git.io/vxjgZ
<cransom> i'm going to ask a scary question. is there prior art for converting a `Gopkg.lock` to `deps.nix` or was my last 4 hours learning how to bundle Go with this particular witchcraft not a waste of time.
rosa has quit [Quit: rosa]
<samueldr> Akii: that error comes (iirc) from trying to use grub for legacy boot on a GPT-partitionned disk
<samueldr> grub will add bootloading code between the MBR and the first partition in "unused" space for MBR
<samueldr> there is no such "unused" space in GPT
<Akii> MBR doesn't seem to be an option
<samueldr> wait a second, finding an appropriate source
<samueldr> you can add a partition with a specific type that grub will instead use
<zybell_> unless you use a separate ESP for that
rosa has joined #nixos
<samueldr> that's unrelated to the ESP
<samueldr> legacy on gpt will not use an ESP
<samueldr> https://en.wikipedia.org/wiki/BIOS_boot_partition for details, but no "how to install"
<zybell_> GRUB can use the ESP too, if its mirrored in the MBR
<Akii> samueldr that's interesting, thanks :D
<{^_^}> [nixpkgs] @mpickering opened pull request #38916 → QGIS and GRASS fixes → https://git.io/vxjgd
<Akii> I can set the partitions UUID in the advanced settings
<samueldr> zybell_: can you elaborate / link to the relevant manual, this doesn't ring a bell but could be useful
<zybell_> From viewpoint of MBR its simple FAT too
rosa has quit [Client Quit]
rosa has joined #nixos
<samueldr> or are you talking about using a fat partition of type ef00 as /boot when booting under legacy?
<zybell_> would have to google around,legacy types are single bytes
<hodapp> ahhh, MBRs
<hodapp> I think I turned my boxes to GPT some years back
<{^_^}> [nixpkgs] @bendlas opened pull request #38917 → xen-4.8: fix qemu-xen build error in memfd.c → https://git.io/vxj2m
dan_b has joined #nixos
telent has joined #nixos
darlan has joined #nixos
darlan has quit [Client Quit]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<Profpatsch> release-18.03 is the current stable branch, right?
<zybell_> the idea is simply this:format gpt with mbr protection,at the *start* make esp in gpt view, note start and length of esp,switch to mbr view,move start of protection partition to end of esp,create fat partition with same start and legth in mbr view,format said fat partition,switch to gpt view,observe that said esp is formatted too,because it is the same partition.
<Profpatsch> Als in git branch on the nixpkgs repo
<Akii> so I made a boot partition and it works \o/ thanks samueldr
<Turion> Profpatsch, it seems so
<samueldr> Akii: just to be sure, you did the manipulation on your host's panel?
<Akii> samueldr I did nothing besides that
<samueldr> interesting, I don't think you've said who the host are, it could be useful for others in the future having a similar issue :)
pie__ has quit [Remote host closed the connection]
<Akii> with host you mean the company that's offering the vserver?
<samueldr> yes
<Akii> that'd be netcup (netcup.de)
pie__ has joined #nixos
<samueldr> ah good to know
coot has quit [Ping timeout: 265 seconds]
vidbina has joined #nixos
<Akii> but I really think the docs were "faulty" here
<Akii> there is no "a" anymore, reordering the partitions didn't work
<Akii> > 3 # (... of the boot partition ...)
<Akii> this is not boot partition anymore, 4 is
<Akii> and with the info you provided, given it's GPT, you have to create this extra partition
<Akii> I don't _think_ this is an issue with the host, or I just don't know enough which is also very likely
<samueldr> it's a bit everywhere, I think the instructions always assume that legacy boot will use MBR partitionning scheme
<Akii> yeah true
<samueldr> needing a bios-boot partition for grub isn't specific to your hoster, it's a requirement when using GPT partitionning with legacy booting
<Akii> yup
jacob__ has quit [Quit: Lost terminal]
<zybell_> samueldr:missing in the recipe:before switching back to gpt view : mark fat partition bootable in mbr view.
<samueldr> from which recipe?
<zybell_> that I gave 8 min ago scrollback
<{^_^}> [nixpkgs] @7c6f434c merged pull request #38914 → sgtpuzzles: 20171029.69773d8 -> 20180409.d95f476 → https://git.io/vxjBp
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vxja9
<{^_^}> → f7447888 by @wizeman: sgtpuzzles: 20171029.69773d8 -> 20180409.d95f476
<{^_^}> → 8cbd2fa9 by @7c6f434c: Merge pull request #38914 from wizeman/u/upd-sgtpuzzles
<samueldr> and that's used for embedding by grub?
<zybell_> you can use any partition boot loader,syslinux will work too.
<zybell_> for example
<zybell_> You only have to tell grub the *partition* is the boot device
<{^_^}> [nixpkgs] @gnidorah opened pull request #38918 → nixos/gitweb: add gitwebTheme option → https://git.io/vxjVI
<Dezgeg> I think it refuses to do that nowadays
Meizikyn has joined #nixos
rosa has quit [Quit: rosa]
<zybell_> If that should be the case note that an older grub can boot a newer grub as "kernel"
rosa has joined #nixos
<Akii> so of course GRUB didn't end up booting NixOS
<zybell_> and there is always grub4dos
<Akii> I'll just start over :D
<Akii> oh wait, tables are turning
<Akii> the documentation makes sense now
<Akii> I erased the disk through the control panel
<Akii> and now it's in some kind of "dos" mode
<Akii> and suddenly the command "a" is available
<ThatPako> you could also try nixos-in-place
<ThatPako> and start with a preset distro
<zybell_> *D*enial *O*f *S*ervice?
boomshroom-away is now known as boomshroom
jrolfs_ has quit [Ping timeout: 264 seconds]
Izorkin_ has joined #nixos
Izorkin_1 has joined #nixos
Izorkin has quit [Ping timeout: 264 seconds]
Izorkin_ has quit [Ping timeout: 264 seconds]
Meizikyn has quit [Ping timeout: 265 seconds]
ckauhaus has quit []
hiroshi- has joined #nixos
jrolfs_ has joined #nixos
hiroshi has quit [Ping timeout: 264 seconds]
hiroshi- is now known as hiroshi
<Akii> welp, that did work
<Akii> yey!
ryanartecona has joined #nixos
<{^_^}> [nixpkgs] @Moredread opened pull request #38920 → Dosage → https://git.io/vxjwN
<{^_^}> [nixpkgs] @Moredread closed pull request #38920 → Dosage → https://git.io/vxjwN
<{^_^}> [nixpkgs] @Moredread reopened pull request #38920 → Dosage → https://git.io/vxjwN
ThatPako_ has joined #nixos
alexteves_ has quit [Remote host closed the connection]
alexteves_ has joined #nixos
ThatPako has quit [Ping timeout: 256 seconds]
nkaretnikov has left #nixos [#nixos]
<{^_^}> [nixpkgs] @Moredread closed pull request #38920 → Dosage → https://git.io/vxjwN
alexteves_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Moredread reopened pull request #38920 → Dosage → https://git.io/vxjwN
vaninwagen has quit [Ping timeout: 260 seconds]
fez has joined #nixos
ckauhaus has joined #nixos
ottidmes has joined #nixos
<ottidmes> I just installed Windows 10, but the disk that holds my NixOS also had a partition for Windows 7 and apparantly Windows 10 then decided to reinstall the bootloader there as well, hence I have no more access to my NixOS installation.
jrolfs_ has quit [Ping timeout: 256 seconds]
<ottidmes> I thought about just using nixos-enter, but it seems broken, I could not get it to work properly
bara has joined #nixos
<boomshroom> ottidmes: Check your motherboard config. There's a chance that Windows just set the default but didn't actually remove NixOS's bootloader. If that doesn't work, a live disk/USB will be nessisary, but a full reinstall is still unnessisary.
fez has quit [Ping timeout: 260 seconds]
<ottidmes> So now I am trying to just call grub-install, but I apparently my custom LiveCD (based on my server) and my server neither have support for any other target than x64 efi, why is that? How could I configure them to also have the i386pc?
<{^_^}> [nixpkgs] @Mic92 merged pull request #38920 → dosage: 2016.03.17 -> 2018.04.08 → https://git.io/vxjwN
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxjo9
<{^_^}> → 8d61dd8c by @Moredread: dosage: 2016.03.17 -> 2018.04.08
srdqty has quit [Ping timeout: 260 seconds]
<{^_^}> → ca7b7490 by @Mic92: Merge pull request #38920 from Moredread/dosage
<boomshroom> ottidmes: You're on a 32bit machine? I didn't know Windows 10 supported 32 bit anymore.
<ottidmes> boomshroom: Its an old BIOS motherboard, and has no such features
logzet has quit [Remote host closed the connection]
<ottidmes> boomshroom: no, but I am quite sure the default grub target for BIOS systems is still i386-pc, it has always worked for me on all my 64-bit systems
srdqty has joined #nixos
<ottidmes> boomshroom: but still, I have no other targets than x64-efi, any idea how to get others? I would not mind having a full version that just contained them all
<boomshroom> ottidmes: All 32 bit software works on 64 bit hardware, but I highly recommend switching to 64 bit before it becomes too expensive to reinstall everything.
rosa has quit [Quit: rosa]
<ottidmes> boomshroom: It's only for the bootloader, I am quite sure it should not matter, but I will check if there are any more appropriate targets, once I figure out how to get support for them in NixOS that is
<Dezgeg> I doubt grub has a 64-bit version for legacy boot
<ottidmes> I doubt that as well
<{^_^}> [nixpkgs] @Mic92 merged pull request #38915 → sway: 0.15.1 -> 0.15.2 → https://git.io/vxjgZ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxjKT
<{^_^}> → 8cd25c50 by @dywedir: sway: 0.15.1 -> 0.15.2
<{^_^}> → 29fea827 by @Mic92: Merge pull request #38915 from dywedir/sway
coot has joined #nixos
jrolfs_ has joined #nixos
rosa has joined #nixos
<zybell_> grub legacy boot is 32bit because no 64bit kernel boot protocol exists.AFAIK.I think even 64bit grub goes back to 32 bit to start the kernel.
<ottidmes> boomshroom: Dezgeg: " install GRUB for TARGET platform [default=i386-pc]; available targets: arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, sparc64-ieee1275, x86_64-efi, x86_64-xen"
<{^_^}> [nixpkgs] @Mic92 pushed commit from @dywedir to release-18.03 « sway: 0.15.1 -> 0.15.2 »: https://git.io/vxjKZ
srdqty1 has joined #nixos
<Dezgeg> which doesn't include x86_64-pc
<boomshroom> ottidmes: Huh.
<ottidmes> right, so i386-pc would still be the right one to use for my old BIOS motherboard, even though it is otherwise a 64-bit machine
<ottidmes> But how to get those other targets? It seems that if you enable efiSupport that is removes support for i386-pc as a potential target
dbe has joined #nixos
srdqty has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/24212520942 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> [nixpkgs] @Mic92 merged pull request #38913 → nixos/transmission: fix AppArmor profile to include libkrb5 → https://git.io/vxjBF
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxjK8
<{^_^}> → 0f3a6284 by @wizeman: nixos/transmission: fix AppArmor profile to include libkrb5
<{^_^}> → 35b07390 by @Mic92: Merge pull request #38913 from wizeman/u/fix-transmission-mod
<zybell_> because *-pc is no efi sys
<zybell_> I would read efiSupport as buildInput efi
<ottidmes> zybell_: but the name does make one thing it only adds support, not replace support for others
ckauhaus has quit [Remote host closed the connection]
<ottidmes> zybell_: I do now :P but just based on the name, I would not have expected this. I wanted to have support, because half of my systems are BIOS and half are EFI, and I build for both on my dev machine
<zybell_> yeah but it needs the efi-table to turn efi off before starting the kernel
<ottidmes> zybell_: this is just about a bunch of extra files in the lib dir
<zybell_> you can have it, but more complicated than you expect. ofc once one has written a .nix for that, it will be easy.
<ottidmes> zybell_: i.e. on a LiveCD it makes sense to have both. And in another case I needed some of the files for a diskimage
sehqlr has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Moredread opened pull request #38921 → dosage: Fix tests → https://git.io/vxj68
sehqlr has joined #nixos
fez has joined #nixos
fez has quit [Client Quit]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/24212520942 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
sehqlr is now known as sehqlr_
apeyroux has joined #nixos
<{^_^}> [nixpkgs] @bkchr closed pull request #31978 → copyFileFromHost: Adds support for binary files → https://git.io/vFxnu
sehqlr_ is now known as sehqlr
rosa has quit [Quit: rosa]
<krey> nixos-rebuild switch tells me it can't open a lockfile, file name to long :(
rosa has joined #nixos
nD5Xjz has quit [Ping timeout: 264 seconds]
<zybell_> In principle it works like this:On one fat partition are i386-pc-grub and i386-efi-grub (x86_64 makes no sense bootin linux) so that both read the same config and -pc installed so that it is started through the *partition* boot record. That fat partition is aliased both as boot partition in mbr and ESP in gpt.
lord| has joined #nixos
jrolfs_ has quit [Quit: WeeChat 2.0]
jperras has quit [Ping timeout: 260 seconds]
<ottidmes> zybell_: I think you misunderstood my simple request. I just want the install/target files for both (the lib data). The NixOS installer already does something like you suggest (or exactly like that, not sure, have not looked at it) and it works great
<Akii> after installation and activating sshd I should just be able to log in as root, right?
<Akii> via ssh
knupfer has quit [Remote host closed the connection]
colonel_john_by has left #nixos ["Leaving"]
<ottidmes> Akii: I have the options page open and is says that the default for services.openssh.permitRootLogin is prohibit-password, so I guess the answer is no, unless you configured some keys
<Akii> that would make sense
<zybell_> then you will have to input both drv
seafood has joined #nixos
Mateon3 has joined #nixos
<Akii> okay, that's good, so I can leave the thing as is and then figure out what nixops needs for that tomorrow
<Akii> and get certificates running
<Akii> this time for real :D
jrolfs has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
dbe has quit [Ping timeout: 240 seconds]
hiratara has quit [Ping timeout: 276 seconds]
hiratara has joined #nixos
jperras has joined #nixos
endformationage has joined #nixos
bpa has quit [Remote host closed the connection]
ThatPako_ has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 264 seconds]
ottidmes_ has joined #nixos
isHavvy has quit [Read error: Connection reset by peer]
ottidmes has quit [Quit: Page closed]
ottidmes_ is now known as ottidmes
asuryawanshi has quit [Ping timeout: 260 seconds]
<ottidmes> Home sweet home, I'm back in my NixOS install :)
<{^_^}> [nixpkgs] @7c6f434c pushed to master « libreoffice-still, libreoffice-fresh: use fresh bluez, not the oldest ICU, comment about GCC version, use the fontconfig… »: https://git.io/vxj16
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs has joined #nixos
endformationage has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
kmicklas has quit [Ping timeout: 256 seconds]
ryanartecona has quit [Quit: ryanartecona]
Rusty1_ has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
jperras has joined #nixos
chisui_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hiratara has joined #nixos
<{^_^}> [nixpkgs] @jtojnar opened pull request #38923 → gnome3: 3.28.0 → 3.28.1 → https://git.io/vxjDW
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #26665 → bluez5_28: remove expression for bluez5_28, as it is no longer needed → https://git.io/vHhU5
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vxjDi
<{^_^}> → 6c3068ad by @armijnhemel: remove expression for bluez5_28, as it is no longer needed
<{^_^}> → 267b90a4 by @7c6f434c: Merge pull request #26665 from armijnhemel/bluez5_28_removal
phreedom has quit [Remote host closed the connection]
xy2_ has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
chisui has joined #nixos
endformationage has quit [Ping timeout: 276 seconds]
endformationage has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/1c22feb9b0a (from 84 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
jrolfs has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 240 seconds]
blankhart has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @pSub pushed to master « wesnoth-dev: 1.13.11 -> 1.13.13 »: https://git.io/vxjyB
jrolfs has joined #nixos
pkill9 has quit [Quit: WeeChat 2.0.1]
FareTower has quit [Ping timeout: 276 seconds]
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
seafood has quit [Quit: seafood]
seafood has joined #nixos
detran` has quit [Remote host closed the connection]
grp has quit [Quit: box shutting down...]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1c22feb9b0a (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
sehqlr has quit [Ping timeout: 260 seconds]
<achambe> doing software builds on nixos is interesting
<achambe> there is no build artifact I need to save
olto has quit [Ping timeout: 264 seconds]
<achambe> I guess I could host my own binary cache and populate that
erasmas has quit [Quit: leaving]
FareTower has joined #nixos
<boomshroom> achambe:To you mean like an archive containing the built package? Like a .deb file? The Nix equivalent is a .nar.
ndrei has quit [Ping timeout: 260 seconds]
<achambe> Sort of, I'm just thinking about how it's not needed to make one of those
<achambe> The built software is just a nixos config with version numbers and hashes filled in.
<boomshroom> achambe: When writing a package on ArchLinux, usually you'd just write a pkgbuild file and let makepkg take care of it.
<Dezgeg> but you end up with a pkg.tar.xz just like you'd end up with pkg.deb
<boomshroom> Dezgeg: Yes, but you usually don't distribute it except to a binary cache.
<achambe> Haha, sure, i mean there is no problem
<achambe> I was just noting how there is no value in saving build artifacts on nixos
<boomshroom> Also, there's the fact that Nix installs packages inplace because it's completely safe for it to do so, so there's no extra install step because the package is already where it's supposed to be.
<achambe> yeah
sehqlr has joined #nixos
<boomshroom> That said, Nix also maintains a database of packages, so it can't just copy a store path between machines and have it just work. Instead you need `nix copy` or export it as a NAR.
<clever> boomshroom: though the .nar lacks information about what it depends on or what it is even called
<clever> the .nar is more like a .tar then a .deb
jrolfs has quit [Ping timeout: 264 seconds]
<achambe> yeah, thats what I do, a nix build on one machine, then nix copy to send the updates.
<clever> nix copy will share that metadata along with the nar
<clever> nix-push (which has been replaced by a flag in nix copy) will generate a binary-cache directory, which has .nar and .narinfo files
<boomshroom> clever: Thank you. I'm trying to look at the manual and it looks like there's 2 different types of NAR, export/import and dump/restore.
<clever> boomshroom: dump/restore are raw nar files, and lack the name of the root element, so you can think of it like a feature-reduced tar
Wharncliffe has joined #nixos
<clever> boomshroom: export/import generates multiple nar's and metadata about what they depend on
<clever> but with 2.0, you can also have an entire fully working store, that is just a chroot away from being a working system, if it has the right paths
<clever> and you can just reverse the source/dest flags at the remote end to pull from it
chisui has joined #nixos
<clever> as an example, with the right flags, export can dump the entire closure, but there is no sharing between 2 exports, so it gets expensive to try and save 10 versions to a usb stick
<clever> but with 2.0, you can `nix copy /nix/store/source --to local?root=/mnt/` to setup a normal /mnt/nix/store
<clever> and if any paths match up, it just reuses what was already in /mnt
<clever> and then i think you just switch to --from to pull paths back out of /mnt
<boomshroom> clever: Can nix 2.0 copy to a remote machine that doesn't have Nix installed?
<clever> and if /mnt is a usb stick, you can now move whole closures between machines, with paths shared
<clever> it needs write access to whatever directory its copying to
<clever> so you either need to mount it somehow (nfs?, sshfs?, rip it out and mount!!), or run nix on that remote machine
<clever> `rip it out and mount!!` would let you turn a blank SD card into a fully working raspberry pi install, for example
jrolfs has joined #nixos
<boomshroom> clever: So makeSystemTarball is still the way to go for bootstrapping Nix.
MP2E has joined #nixos
simukis has quit [Quit: simukis]
<clever> boomshroom: yeah, but that lacks a `db.sqlite`, so you have to manually run `nix-store --load-db < foo` on the remote machine, after you unpack
<clever> i have plans to make a wrapper around makeSystemTarball, that pre-loads the db
<clever> it would save a few steps at install time
<achambe> btw, if I fix a bug in a package, and the upstream is extremely lazy, can I get the bug fix into nixpkgs?
<clever> i cant see why not
<achambe> I'm having a problem with gitlab-runner :/
nD5Xjz has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
Meizikyn has joined #nixos
krey has quit [Quit: Lost terminal]
pkill9 has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hakujin has quit [Ping timeout: 240 seconds]
sehqlr has quit [Ping timeout: 276 seconds]
<achambe> how does the "imports" section of a nixos config work? Does a function merge the attributes of each import into the parent object before building?
<ottidmes> achambe: The NixOS module system is defined here and this is specifically where imports is being used: https://github.com/NixOS/nixpkgs/blob/2ad7d5140c68baf89b83664faf747d0e201d2f49/lib/modules.nix#L113
dan_b has quit [Ping timeout: 276 seconds]
telent has quit [Ping timeout: 276 seconds]
Sonarpulse has quit [Ping timeout: 240 seconds]
<achambe> ottidmes: thank you
<achambe> up until now I had been shoving everything into one file haha
<achambe> tricky to understand the code there, but probably worth it to try
<ottidmes> achambe: I counted the amount of .nix files I had on my system, and it counted 73, so I have long passed the 1 file point :P
<boomshroom> ottidmes: Is that just nixos configuration, or thoughout the entire filesystem?
seafood has quit [Quit: seafood]
<ottidmes> boomshroom: just the nixos config, but it includes some pkg definitions, but its still 62 without those
<boomshroom> ottidmes: Wow. I have 3. Asside from the pregenerated hardware-configuration, I intended to have one common file and one system specific file, but it didn't really turn out that way.
<ottidmes> achambe: I find infinite recursion to be the hardest part of the NixOS module system, I still have 1 workaround in place because I simply could not figure out why recursion is happening at that point
<achambe> I made my own repo called acpkgs with my own software
<achambe> but did not use modules
<achambe> ottidmes: yeah, _type = "" stuff makes how it works seem less magic. Before I had no idea
<achambe> the fixpoint recursion stuff I still need to understand
<achambe> :P
<ottidmes> achambe: At the point someone starts to use NixOS seriously, you tend to end up with a personal collection of packages, I just have them as part of my config repo
<ottidmes> achambe: I had the same, when I looked at nixpkgs/lib/types.nix, so basically types.nix and modules.nix is where most of the magic happens
Meizikyn has quit [Remote host closed the connection]
Meizikyn has joined #nixos
jperras has joined #nixos
<ottidmes> boomshroom: I started out with a per machine default.nix and hardware.nix and had a shared.nix, but it kinda grew :P
sehqlr has joined #nixos
hakujin has joined #nixos
<redfish64> I thought that nixos-unstable was always the latest release. However, it hasn't been updated in 20 days, yet the nixos-18.03 branch has been updated 3 days ago
<redfish64> Am I pulling from the right branch?