<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.
<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
<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!
<{^_^}>
[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'
<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
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?
<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]
<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”.
<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?
<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
<{^_^}>
→ 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?
<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
<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: 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
<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]
<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
<{^_^}>
→ 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
<{^_^}>
→ 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
<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
<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 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
<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
<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
<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
<{^_^}>
→ 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
<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
<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
<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.
<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]
<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`>
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.
<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
<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
<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?
<{^_^}>
→ 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>
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?
<{^_^}>
→ 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:
<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!
<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.
<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] @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
<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_>
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
<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?
<{^_^}>
→ 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
<{^_^}>
→ 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.
<{^_^}>
→ 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
<{^_^}>
[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]
<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 :/
<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?
<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