<jabranham>
new nixos user here. How am I supposed to start gpg-agent? I have programs.gnupg.agent.enable = true; programs.gnupg.agent.enableSSHSupport = true; in my configuration.nix file but trying to do ssh-add ~/.ssh/id_rsa results in "Error connecting to agent: No such file or directory"
fyuuri has quit [Ping timeout: 268 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
digitus has quit [Quit: digitus]
mmfom has quit [Quit: Page closed]
thc202 has quit [Ping timeout: 255 seconds]
spietz has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 248 seconds]
<dtz>
jabranham: I'm not sure, but I have 'programs.ssh.startAgent = true;'
<dtz>
not sure re:gnupg
bfrog_ is now known as submersive
<dtz>
oh, reading doc for option you set... o_O
<dtz>
nevermind what I said re:startAgent, don't know sorry :).
nithor has quit [Ping timeout: 276 seconds]
ryantrinkle has joined #nixos
vidbina has joined #nixos
<dtz>
sometimes installing to a user profile help things that are supposed to launch user services?
<dtz>
not saying it's not a bug, but you know :)
<globin>
jabranham: can you check if it is running?
<jabranham>
ah, I think I figured it out. I had some dotfiles from a previous linux distro copied over that nix apparently doesn't like
nithor has joined #nixos
<jabranham>
now the ssh part is working but it still won't do the gpg part. It insists that the secret key doesn't exist despite listing it when I do gpg --list-secret-keys
<jabranham>
ugh
<Ralith>
anyone have any insight on managing nix packages in source repos when you have a diamond-shaped dependency graph between packages? My original plan was to use submodules, but duplicate submodules is obviously immensely undesirable
nuncanada has quit [Quit: Leaving]
<Ralith>
I feel like nix(pkgs) ultimately really wants your package definitions to be stored separately from your source code, which feels unfortunate
<gchristensen>
that is sort of a problem with all tools, diamonds are hard
<gchristensen>
oops,
goibhniu has quit [Ping timeout: 268 seconds]
lezed1 has quit [Quit: Connection closed for inactivity]
nfeaokfn has joined #nixos
bennofs has joined #nixos
alexteves has quit [Ping timeout: 256 seconds]
<Ralith>
it's not a problem for nixpkgs when used conventionally, clearly
johnsonav has joined #nixos
<gchristensen>
nixpkgs doesn't contain much actual software
{^_^} has quit [Remote host closed the connection]
<Ralith>
I feel like it's extremely natural to want your nix package definition in-tree wrt. your source code, so you can adjust dependencies, build methods, etc. in the same commit that makes those adjustment necessaries
<Ralith>
am I crazy?
{^_^} has joined #nixos
the_vigilante has joined #nixos
the_vigilante has left #nixos [#nixos]
bennofs has quit [Ping timeout: 276 seconds]
<gchristensen>
I agreee
sary has quit [Ping timeout: 256 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
nithor has quit [Ping timeout: 276 seconds]
Lisanna has joined #nixos
sary has joined #nixos
alexteves has joined #nixos
coot__ has quit [Quit: coot__]
<Lisanna>
Can local paths be passed with --arg to things like nix-build (i.e., not strings)? Does this work with remote building?
<Lisanna>
e.g. nix-build -A blah --arg src ./blah-src
yegle has joined #nixos
ryanartecona has joined #nixos
sary has quit [Ping timeout: 256 seconds]
nithor has joined #nixos
sary has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Ping timeout: 248 seconds]
la_putin has joined #nixos
coot__ has joined #nixos
el_putin has quit [Ping timeout: 276 seconds]
coot___ has joined #nixos
ryanartecona has joined #nixos
<Lisanna>
Answer: yes, local paths can be passed with --arg. I'm going to assume that this "just works" with remote builds
hamishmack has quit [Quit: hamishmack]
coot__ has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
<Lisanna>
since it should be analogous to the expression itself containing a local path, which plenty of things do
<globin>
afmodf: and you have booted the installed nixos?
ma27 has quit [Ping timeout: 240 seconds]
<afmodf>
I just appended the xserver onto the original configuration
<afmodf>
yes
<globin>
afmodf: because that looks like the configuration of the installation image, and not the installed system
<afmodf>
i ran nixos-install
<afmodf>
and rebooted
<globin>
afmodf: as in it looks as if you're trying to edit /etc/nixos/configuration.nix during installation (not /mnt/etc/nixos/configuration.nix)
<globin>
afmodf: you are sure you haven't booted the installer again? :)
<afmodf>
i logged in using the password i set on the install
<afmodf>
i think
<afmodf>
this is on a virtual machine
<globin>
afmodf: how did you install nixos? format /dev/sdX -> mount /dev/sdX /mnt -> nixos-generate-config --root /mnt -> edit /mnt/etc/nixos/configuration.nix -> nixos-install
nico202 has quit [Ping timeout: 256 seconds]
<afmodf>
yes
<afmodf>
then reboot
<globin>
afmodf: could you paste the output of `mount` somewhere?
<globin>
afmodf: you are definitely still running from the installation media
<afmodf>
thats weird
<afmodf>
ill reboot
nithor has quit [Ping timeout: 255 seconds]
spietz has joined #nixos
afmodf has quit [Ping timeout: 260 seconds]
Guanin has joined #nixos
Guanin has left #nixos [#nixos]
Guanin has joined #nixos
Guanin has left #nixos [#nixos]
Guanin has joined #nixos
steshaw has quit [Quit: Connection closed for inactivity]
jabranham has quit [Remote host closed the connection]
<Guanin>
Hi, what is the best way of opening luks devices and mounting the partition after opening and mounting /? I am asking because I use a keyfile for multiple disks where the luks devices form a raid with mdadm.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vNO6I
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 303621c Robin Gloster: awstats: 7.4 -> 7.7...
dieggsy has joined #nixos
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNO6C
<NixOS_GitHub>
nixpkgs/master 95ea79a adisbladis: Merge pull request #33730 from mogorman/xscreensaver...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 8bc2025 Matthew O'Gorman: xscreensaver: 5.37 -> 5.38
alexteves has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vNO60
<NixOS_GitHub>
nixpkgs/master 7f5a859 Peter Hoeg: syncthing: 0.14.42 -> 0.14.43
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 7140c4b Jaakko Luttinen: pythonPackages.salmon: bec795cd -> 3.0.0
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 3 new commits to master: https://git.io/vNO62
<NixOS_GitHub>
nixpkgs/master 1f2e247 Jaakko Luttinen: pythonPackages.salmon-mail: rename from salmon
<NixOS_GitHub>
nixpkgs/master f5e39b2 adisbladis: Merge pull request #33727 from jluttine/update-salmon...
NixOS_GitHub has left #nixos [#nixos]
nyberg has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
nithor has quit [Ping timeout: 265 seconds]
{^_^} has quit [Remote host closed the connection]
stephenjudkins has quit [Remote host closed the connection]
nithor has joined #nixos
la_putin has quit [Read error: Connection reset by peer]
hellrazo1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] eqyiel opened pull request #33731: nixos/gnome3: use ibus from i18n.inputMethod (master...gnome3-fix-ibus) https://git.io/vNOiZ
NixOS_GitHub has left #nixos [#nixos]
mbrgm has quit [Ping timeout: 240 seconds]
hellrazor has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos
pie__ has joined #nixos
hellrazo1 has quit [Ping timeout: 260 seconds]
<adisbladis>
qmm: haskell.compiler.ghcjs
<adisbladis>
Though you probably want to use "nix-shell -p haskell.compiler.ghcjs" for compilers and the like
pie_ has quit [Ping timeout: 265 seconds]
jb55 has joined #nixos
jb55 has quit [Client Quit]
jb55 has joined #nixos
<catern>
hmm
<catern>
I have a Nix expression that builds a tarball which is useful for deploying Nix, I wonder if it makes sense to upstream
la_putin has joined #nixos
dag has joined #nixos
dag is now known as Guest77289
Supersonic112 has quit [Disconnected by services]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
dag__ has quit [Ping timeout: 260 seconds]
<dhess>
Sonarpulse: I am going to do those cross-GHC ARM fixes now
pjan_ has quit [Read error: Connection reset by peer]
<dhess>
hopefully it won't change the evaluation on native and it will just work basically instantly.
<catern>
is there a Nixpkgs helper for building self-extracting tarballs?
<qmm>
adisbladis: how might i find out more information about items in haskell.compiler? i would like to discover this on my own than always relying on IRC. you all are really fantastic, but it would be nice to do this myself :)
<qmm>
error: selector ‘haskell.compiler.ghcjs’ matches no derivations
rardiol1 has left #nixos [#nixos]
earldouglas has quit [Ping timeout: 276 seconds]
earldouglas has joined #nixos
earldouglas is now known as Guest1620
<qmm>
nix-shell -p haskell.compiler.ghcjs seems to work, but i've never understood the appeal of nix-shell. i'm not opposed to it by any means. can you add all your dependencies within a default.nix and then open a shell with all those dependencies? if so, that could present an alternative to docker or vagrant environments
<Aleksejs>
Hello, I still have a problem with passing fastcgi_params to phpfpm. What I tried to do: tried to add phpOptions = ''cgi.fix_pathinfo=0'', but this does not appear in php.ini file; tried to add php_value[cgi.fix_pathinfo] = 0 to poolConfig - it appears in file but ignored by php. When I don't provide fastcgi_params php works. But when I provide them it just does nothing and doesn't trigger any error
<Aleksejs>
I googled that there was a bug - phpOptions were ignored - but it says it was fixed in 17.03. Is it possible that it was reintroduced?
spietz has quit [Ping timeout: 248 seconds]
<catern>
yes, there is a script packaged in nixpkgs for making self-extracting tarballs: makeself
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNO1s
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 86693dd Jan Tojnar: phpPackages.php-cs-fixer: 2.9.0 → 2.10.0
<el_putin>
o.o
Alisa21 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MP2E>
I'd definitely recommend updating the discord package as soon as the changes hit the release and unstable repos, the new commit by dtzWill fixes it up quite a bit
<MP2E>
namely, notifications work now and there's no longer that annoying bar telling you discord is corrupt :P
<_alice_>
THANK GOD!
<_alice_>
anyone figured out how to install betterdiscord?
<_alice_>
Also, my issue right now is I can't launch it at all becuase it wants me to update to 0.0.4
<_alice_>
So that's why it's annoying atm
<_alice_>
any way I can force nix to get the updated package?
<MP2E>
this is a little overkill perhaps, but you could clone the nixpkgs repo and use it for one nix-env call with 'nix-env -f ~/nixpkgs -iA discord'
<MP2E>
then nix-env will evaluate the nixpkgs tree you specify instead of the one in your channels
<_alice_>
that would likely work tbh but my question is more "how tf do i make it see up to date packages?!?!?"
<_alice_>
Because I just realized I don't know how to make sure I'm not installing old shit and that's probably an issue
<MP2E>
well we gotta wait for hydra to build the new commits, run some tests, and if they pass the channels get pushed forward
<MP2E>
and then you can update your channels
<_alice_>
nix-channel --update I presume?
<MP2E>
yeah
<_alice_>
or along those lines
<_alice_>
need I pass parameters?
<MP2E>
that should work fine, it will update all the channels you currently have, the optional parameters list is in case you just want to update one channel and not another
<_alice_>
Understood, you guys are the best help tbh doing gods work
asuryawanshi has joined #nixos
<_alice_>
Since you seem to have some godly nix magic under your sleeves, happen to know if there's a way to make Python's pip function like it would anywhere? I understand nix wants me to make an environment and do things its way, but for small python stuff it's so overbearing
<_alice_>
globally installing things like matplotlib, scikitlearn, etc would be so nice @_@
<MP2E>
I don't know python unfortunately but perhaps what I do for Haskell could help. What I do is make a global environment in my configuration.nix that has some nice packages that I always want, for instance, so my text editor can find haskell tools I need like hlint
<MP2E>
and then for any packages specific to a package I want to develop on, I make a shell.nix file for it
<_alice_>
Oh for my haskell environment everyhting is all fine
<MP2E>
at first if it seems like too small of a task to make a full shell.nix file, can also use nix-shell and add packages you need directly as command line arguments
<MP2E>
ah hmm
<_alice_>
What's weird is haskell was actually piss easy, I remember like two years ago trying to read lyah thinking it was some magic voodoo language
<_alice_>
I really just want some helpful python packages
<Havvy>
You can make Haskell be complicated, and a lot of people do.
<_alice_>
That's whack, the way I see it it's simple and elegant on purpose
<srhb>
_alice_: If you just want a (one) global environment, pythonWithPackages may help
marusich has quit [Quit: Leaving]
<srhb>
Er, python.withPackages I think it is
<_alice_>
That's actually all I want thanks a ton
<srhb>
(The overhead of turning that into a bunch of shell aliases if you want multiple, in nix shells, is very low too)
<_alice_>
Always good to have options moving forward
spietz has quit [Ping timeout: 248 seconds]
<srhb>
nix-shell -p 'python.withPackages (ps: with ps; [ matplotlib ])'
<srhb>
:)
<srhb>
And yes.
<benley>
dfsf: you can put stuff in ~/.xprofile and it will be run before your window manager starts up
rauno has quit [Ping timeout: 240 seconds]
<benley>
dfsf: also with the default xmonad config, try alt-shift-enter or win-shift-enter and it might open an xterm for you
asuryawanshi has quit [Remote host closed the connection]
rogue_koder has quit [Quit: Konversation terminated!]
<fearlessKim[m]>
so I now have a luarocks2nix capable of generating lua-generated-packages.nix and a lua builder capable of building lua5.2 environments \o/ (like python does: nix-shell -p 'lua5_2.withPackages(ps: [ ps.busted])' -I nixpkgs=$HOME/nixpkgs2)
<fearlessKim[m]>
hopefully I can run neovim tests this evening after some tweaks
ThatDocsLady has joined #nixos
raving has joined #nixos
<raving>
Is it intended behavior that builtins.typeOf (builtins.toPath "/") == "string" ?
<NixOS_GitHub>
[nixpkgs] DerGuteMoritz opened pull request #33734: stumpwm: Work around dependency load errors during build (master...fix-stumpwm) https://git.io/vNOAN
NixOS_GitHub has left #nixos [#nixos]
a6a3uh has joined #nixos
submersive has joined #nixos
Turion has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 968fc0b Bas van Dijk: ogre: 1.10.10 -> 1.10.11
<NixOS_GitHub>
[nixpkgs] orivej pushed 14 new commits to master: https://git.io/vNOAp
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a1c21ef Bas van Dijk: ogre: package old version 1.9.1 for mygui, rigsofrods, and stuntrally
<NixOS_GitHub>
nixpkgs/master 4a94001 Bas van Dijk: ogre: 1.9 -> 1.10.10
hotfuzz has joined #nixos
civodul has joined #nixos
hotfuzz_ has quit [Ping timeout: 264 seconds]
<raving>
srhb: thanks, that really is confusing ;-)
<dhess>
$ cabal2nix cabal://mtl
<dhess>
cabal2nix: NoHackageTarballFound
<dhess>
<dhess>
anyone seen that also?
<srhb>
dhess: Yes, the error message regressed recently. cabal update
<srhb>
I'm pretty sure it used to tell you to do that instead of just printing a constructor.
<dhess>
srhb: huh I wouldn't have thought I would need to cabal update
<srhb>
It uses that tarball in ~/.cabal
<srhb>
It's not a snapshot in any way
<dhess>
srhb: that worked, thank you!
<srhb>
You're welcome. :)
a6a3uh has quit [Quit: Bye]
fuyuuri has joined #nixos
oahong has quit [Quit: 暂离]
<viric>
all clear, I had HISTCONTROL=ignoreboth. It was the space thing
markus1199 has joined #nixos
oahong has joined #nixos
markus1189 has quit [Ping timeout: 276 seconds]
peacememories has joined #nixos
pjan_ has joined #nixos
Tucky has joined #nixos
hiroshi has joined #nixos
<dhess>
OK folks, I think ghc is good to go on armv7l-linux now. If you're willing to use ghc802, anyway.
a6a3uh has joined #nixos
<dhess>
ghc822 looks like it has an upstream issue on armv7l. mitchty is filing a bug.
<dhess>
I will ask peti if he's willing to make ghc802 the default haskell on armv7l-linux.
jensens has joined #nixos
jb55 has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dhess opened pull request #33735: haskell-modules: swagger2 still needs dontHaddock on armv7l-linux. (master...swagger2-armv7l) https://git.io/vNOh1
NixOS_GitHub has left #nixos [#nixos]
verite has quit [Ping timeout: 256 seconds]
earl_fas has joined #nixos
Itkovian has joined #nixos
makefu has quit [Quit: WeeChat 1.9.1]
sigmundv__ has joined #nixos
nico202 has joined #nixos
amir has quit [Ping timeout: 240 seconds]
a6a3uh has quit [Quit: Bye]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vN3eI
<NixOS_GitHub>
nixpkgs/master e056315 Luz: librepcb-unstable: init at 2017-12-29 (#33630)
a6a3uh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 4 new commits to master: https://git.io/vN3en
MercurialAlchemi has quit [Ping timeout: 265 seconds]
MercurialAlchemi has joined #nixos
nico202 has quit [Ping timeout: 276 seconds]
<symphorien>
out of curiosity, why did nixos-unstable revert to "old-style" network interface names ? (wlan0, eth0) etc.
<srhb>
LnL: After thinking about it, I don't know what I mean. :-)
<srhb>
symphorien: Since when?
<srhb>
I don't think I've noticed that.
a6a3uh has quit [Ping timeout: 252 seconds]
<Li[m]>
iv enabled grub zfs support and grub-probe still wont recognize it
<etu>
symphorien: kernel version?
<LnL>
srhb: something like this will be ordered mapAttrsToList (n: v: n) { a = 42; b = 42; } # => [ "a" "b" ]
<symphorien>
I did a nixos-rebuild boot --upgrade yesterday, and when rebooting today I had old style nic name
<srhb>
LnL: Right, because attrsToList promises to sort them by name.
<symphorien>
etu: 4.9.75
<adisbladis>
Oh yeah I spotted that too.. On 4.14
<adisbladis>
Completely forgot about it
* etu
haven't noticed that on 4.14.12
<srhb>
LnL: I guess I was wondering because nix-instantiate --eval --expr reorders attributes.
<srhb>
Just rebooted on 4.14.12 from 4.14.11 and yes, the interface names are now not deterministic. So I guess it's not *just* kernel version
periklis has quit [Ping timeout: 268 seconds]
<srhb>
And networking.usePredictableInterfaceNames is still true, so I guess it's a bug.
<alp>
symphorien, running 4.9.75 here too, but I have the "modern" interface names
<symphorien>
hum
<srhb>
Is someone filing an issue?
johann__ has quit [Quit: Leaving.]
<therp>
srhb: found that yesterday as well
orivej has joined #nixos
<srhb>
I'll file it then
<therp>
symphorien: I have the same issue.
<therp>
srhb: Thank you! btw I am on 4.14.13, and I skipped over the 4.14.12->4.14.13 changelog where nothing sticks out. I don't think that it's the kernel causing this
<symphorien>
I have usePreditableInterfaceNames = true according to nixos-option
<hyper_ch>
hmmm, how do I generate a systemd-bootchart on nixos?
<Mic92>
adisbladis: well, when this option is enabled you get new interface names as documented
ckauhaus has joined #nixos
knupfer has joined #nixos
<Mic92>
one need `networking.usePredictableInterfaceNames = false;` to the eth0, eth1 etc
<Mic92>
*to get
<srhb>
Mic92: That's not the case.
<adisbladis>
Mic92: No thats a regression.
<srhb>
Mic92: if usePredictableInterfaceNames does anything now, it's doing the opposite of what it used to (and the docs say)
<Mic92>
srhb: does /etc/udev/rules.d/80-net-setup-link.rules exists on your system?
<srhb>
Mic92: Yep.
<Mic92>
srhb: this file should not exists
<Mic92>
but this is unrelated to my commit
<srhb>
Fun!
<srhb>
It's not in the nix store either
<Mic92>
can you double check that usePredictableInterfaceNames is not set to true somewhere else?
alexpx has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<srhb>
Mic92: It _is_ set to true, but it doesn't work
<srhb>
Gotta go, lunch
<adisbladis>
Mic92: I just checked and same behaviour here.
<Mic92>
srhb: it should NOT be set to rue
<therp>
Mic92: I am confused. I want predictable interface names, hence I set it to true. Also I had them effectively couple of days ago, before this commit hit the repo, which changed it to unpredictable ones (eth0, ...) again
<therp>
Mic92: so to me, this looks like a regression. (Unfortunately, my udev debugging skills are quite limitted.)
<Mic92>
therp: I cannot reproduce this on my system. When the file exists, new interfaces should be renamed to wlp3s0 and so on
<Mic92>
I tested this by rmmod $ sudo rmmod iwlmvm && sudo modprobe iwlmvm
<hyper_ch>
Mic92: do you know where/when the zfs root pool is being imported? I'm still trying to write a script that will set a mirror disk offline before the computer gets turned off
<Mic92>
(iwlmvm is my wifi driver)
<adisbladis>
Mic92: And you made sure the udev rules were reloaded?
<therp>
Mic92: /etc/udev/rules.d/80-net-setup-link.rules exists and points to /nix/store/ih7k4hfabs55xim8jx9qzrcgi7vbgchk-udev-rules
aarvar has quit [Ping timeout: 246 seconds]
makefu has joined #nixos
TweyII has joined #nixos
<therp>
``IMPORT{builtin}="net_setup_link"'' seems to not do what we want
knupfer has quit [Ping timeout: 264 seconds]
hgdcs55322 has joined #nixos
<therp>
"udevadm test-builtin net_setup_link /sys/class/net/eth0" doesn't give me an interface name
<therp>
The only property that this builtin gets to set is "ID_NET_DRIVER=igb"
<therp>
IMPORT{builtin}="net_id" would give me the correct interface name.
ckauhaus_ has joined #nixos
lexsomething has joined #nixos
ckauhaus has quit [Quit: Leaving.]
Shados has quit [Remote host closed the connection]
<Mic92>
so we probably need to live with the old broken udev rule
<Mic92>
and maybe only enable the new one, when networkd is enabled
ssmike has quit [Ping timeout: 255 seconds]
<lexsomething>
Guys, just want to you to know, I solved my 'increased UI after gpu driver upgrade' problem, by reducing DPI from hardware 141 back to 96. thnx 4 advices. :P https://www.youtube.com/watch?v=zYvTBWZ7Eug
<therp>
Mic92: I don't see how Line 11 in this udev rule makes any sense https://pastebin.com/ABMv4Mk4 . I'd argue that the udev rule misses IMPORT{builtin}="net_id". I don't see how adding another userland demon could fix the $env{ID_NET_NAME} variable
coot___ has joined #nixos
<Mic92>
therp: networkd renames interfaces on its own behalf otherwise
<therp>
Sorry gotta go for food. Thanks for your efforts, Mic92.
ckauhaus has quit []
<therp>
Mic92: I was suspecting that, but still then the renaming here doesn't make sense as ENV{ID_NET_NAME}!="" is almost guaranteed to be "".
hamishmack_ has joined #nixos
ckauhaus has joined #nixos
<therp>
Anyway.. details..
hamishmack has quit [Read error: Connection reset by peer]
hamishmack_ is now known as hamishmack
Mateon1 has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vN3qU
<Mic92>
therp: adisbladis srhb ^ reverted for the moment. This needs more thought
rauno has joined #nixos
lonokhov has joined #nixos
<srhb>
Mic92: Thanks for looking into it! :)
ckauhaus has quit []
tmaekawa has quit [Quit: tmaekawa]
Mateon2 has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
asuryawanshi has joined #nixos
orivej has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Remote host closed the connection]
orivej has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
asuryawa_ has joined #nixos
TweyII has quit [Remote host closed the connection]
asuryawa_ has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 248 seconds]
TweyII has joined #nixos
asuryawanshi has joined #nixos
TweyII is now known as Guest44147
otti has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti closed pull request #33735: haskell-modules: swagger2 still needs dontHaddock on armv7l-linux. (master...swagger2-armv7l) https://git.io/vNOh1
NixOS_GitHub has left #nixos [#nixos]
<joko>
Is there any equivalent of fetchurl for ssh?
orivej has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 255 seconds]
swayf has joined #nixos
<gchristensen>
joko: probably not, because it is unsafe to let the nix build users have SSH credentials
buovjaga has joined #nixos
<makefu>
joko: check out fetchgit
<Li[m]>
gchristensen: potentially. depends on the SSH crdential
<buovjaga>
the width of tables in the wiki needs to have a maximum: https://nixos.wiki/wiki/Cheatsheet I tried fiddling with the CSS, but could not figure out why the table width is expanding like that. Normally it would just conform to its container width.
<joko>
Li[m]: I don't mind using fetchGit, but if I understood well, that would require Nix 1.12, right?
oscarduignan has quit [Read error: Connection reset by peer]
sdemos has quit [Read error: Connection reset by peer]
oscarduignan has joined #nixos
sdemos has joined #nixos
zzamboni has joined #nixos
<Li[m]>
joko: thats what edolstra said. I havent tried it
<Li[m]>
> the resulting lack of laziness may be a problem for some users.
LangeOortjes has quit [Ping timeout: 252 seconds]
orivej has joined #nixos
oida has joined #nixos
LangeOortjes has joined #nixos
temphenk has joined #nixos
zzamboni has quit [Quit: Leaving.]
asuryawanshi has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
<temphenk>
Is there a way to quickly determine which settings in my configuration file are the culprit of having to compile a package rather using the one from (hydra's?) cache.
<temphenk>
Or is bisecting my configuration file the only option?
<temphenk>
I'm building from the latest checkout of the master branch
klntsky has quit [Remote host closed the connection]
yegortimoshenko has quit [Remote host closed the connection]
martinklepsch has quit [Ping timeout: 246 seconds]
yegortimoshenko has joined #nixos
klntsky has joined #nixos
lebel has quit [Remote host closed the connection]
<michaelpj>
temphenk: if you're building off master it's unlikely that you will get *anything* cached. My technique is usually to base my changes off the branch in the `channels` repo corresponding to the channel my machine is on
<makefu>
michaelpj: i do pretty much the same, on top of the channels i also cherry-pick the extra stuff i need for my setup
zzamboni has joined #nixos
klntsky has quit [Ping timeout: 272 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vN3GQ
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master b5b6656 zimbatm: aws-vault: init at 4.1.0
eoifmom has joined #nixos
<eoifmom>
when running "systemctl start display-manager" I get the error "Failed to start display-manager.service: Unit display-manager.service not found."
<eoifmom>
has anyone experienced this before
<adisbladis>
michaelpj: Thats not true. I run off master and mostly hit the binary cache.
<michaelpj>
adisbladis: you are much luckier than I :) once bitten, twice shy...
<aminechikhaoui>
temphenk: yeah what michaelpj said :)
<temphenk>
A check, its a bot. No I haven't, will do.
zzamboni has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<adisbladis>
michaelpj: Sometimes you do end up rebuilding the world though... I dont really recommend running master to other people.
<elisaado>
nyberg: HEY
coot___ has quit [Quit: coot___]
<joko>
eoifmom: I don't have any experience with lightdm on NixOS, but a simple enable would suffice, strange
<eoifmom>
joko: i tried switching over to xmonad but it wasnt logging in, after switching back to i3 this problem started
<eoifmom>
it boots straight into a terminal
<eoifmom>
whereas before it would have a working login screen
coot___ has joined #nixos
rauno has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
Philonous has quit [Quit: (<<<)]
nico202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andir pushed 1 new commit to release-17.09: https://git.io/vN3nm
<NixOS_GitHub>
nixpkgs/release-17.09 d63edb3 Andreas Rammhold: discoard: fix eval on 17.09 broken in 60f71d83
NixOS_GitHub has left #nixos [#nixos]
dieggsy has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
romildo has joined #nixos
<romildo>
On unstable NixOS all GTK3 applications is giving the warning Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-cbjLtIjt2o: Connection refused
<romildo>
Any clues?
ShalokShalom has joined #nixos
<romildo>
I have on configuration.nix: services.gnome3.at-spi2-core.enable = true
ShalokShalom has quit [Remote host closed the connection]
<temphenk>
romildo: I had similar problems with gnome3 and other programs that use dbus. For systemd services that do require dbus I use the following in execstart:
<temphenk>
And I didn't really need gnome3 so I dropped it. Not sure if you need the entire environment or just a few programs/services.
<YaZko>
Hello. I have a problem with my nix on Mac Os: I get the following error on most operations: « error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/(…)/gnuplot/default.nix»
<joko>
Is there a way to include explicitly a closure in NixOS /nix/store?
<YaZko>
Looking around on the net, it seems that it simply is that my nix is too old and some changes are not retrocompatible
<YaZko>
But sadly, I get the same error when doing a « nix-env -u nix» :’(
<YaZko>
Would anyone know what is my best shot at solving this?
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<romildo>
temphenk, I am not using the GNOME3 desktop, but only some applications, like you.
<romildo>
temphenk, where in the configuration does execstart you mentioned go?
<temphenk>
systemd.user.services = {
<temphenk>
jackdbus = {
<temphenk>
description = "Runs jack, and points pulseaudio at it";
<temphenk>
romildo: do you have gnome3 as desktopmanager enabled? If not did you manually enable dbus?
<srhb>
aminechikhaoui, Dezgeg: Thank you! :)
YaZko has quit [Quit: YaZko]
<srhb>
ryantrinkle: (I'm actually investigating a completely stripped down version of nixops that's stateless and uses the users' credentials currently. Unfortunately the project is complex enough that I had to start by ripping out all the provisioning, which I guess is why most people use nixops over copy-closure and friends.)
<temphenk>
romildo, your description however does fit my experience
<ryantrinkle>
ah yeah
<ryantrinkle>
we've been using copy-closure at obsidian
ma27 has joined #nixos
<ryantrinkle>
after i gave up on nixops state management at a previous company
<srhb>
ryantrinkle: It's becoming palatable with liberal use of turtle to tie everything together. Wishing for nix bindings though :)
<ryantrinkle>
(admittedly without trying especially hard)
<ryantrinkle>
haha yeah
<srhb>
shell is a poor api. :-)
<ryantrinkle>
indeed
YaZko has joined #nixos
<ryantrinkle>
we've started to gradually build up a haskell -> nix-* binding library
<ryantrinkle>
for nix-build, etc.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vN34c
<NixOS_GitHub>
[nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vN3EP
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master fb2b6ac Shea Levy: callCabal2nix: Use cleanSourceWith for composable filtering
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy closed pull request #33712: callCabal2nix: Use cleanSourceWith for composable filtering (master...callCabal2nix-cleanSourceWith) https://git.io/vNYS6
NixOS_GitHub has left #nixos [#nixos]
romildo has quit [Quit: Leaving]
saurabhnanda has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #33747: qt5: reduce evaluation memory use (master...bugfix/qt-5/eval-size) https://git.io/vN3uZ
NixOS_GitHub has left #nixos [#nixos]
<saurabhnanda>
finally planning to bite the nixos bullet :)
<saurabhnanda>
where in the documentation can I read about deploying my custom app via nixops?
<srhb>
saurabhnanda: In the NixOps manual :)
<saurabhnanda>
srhb: got that :) which section?
<saurabhnanda>
https://nixos.org/nixops/manual/ makes it sound like the config file has only certain key/value pairs that it supports. How do I tell nixops to deploy branch X of my code?
<srhb>
Erm, all sections! :)
<srhb>
saurabhnanda: Aaah, okay
<srhb>
saurabhnanda: So, you probably want the NixOS manual.
jtojnar has quit [Read error: Connection reset by peer]
<srhb>
saurabhnanda: nixops configs are just NixOS configs with some extra modules for the target environments.
jtojnar has joined #nixos
<srhb>
saurabhnanda: So, deploying with nixops becomes deploying on NixOS + the target environment.
<saurabhnanda>
is there an emacs layer for nix config files, btw?
<srhb>
saurabhnanda: OK, here's a small sample of the most trivial deployment I could conjure up with a binary web server without its own module (using only the systemd module)
<srhb>
saurabhnanda: (Essentially it's a function from pkgs, lib, config, ... to (an xmonad window manager service)
<srhb>
saurabhnanda: Yep :)
leat has quit [Quit: WeeChat 1.9.1]
<alp>
saurabhnanda, the gist of it is that the "options" section is the "public API" for the module, because those are the options that you'll be enabling and setting to something in your system config.
dieggsy has joined #nixos
freusque has quit [Ping timeout: 256 seconds]
<alp>
and the contents of the "config" section is the implementation
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 7fedfea Thomas Tuegel: Merge pull request #33747 from ttuegel/bugfix/qt-5/eval-size...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a8e7ac2 Thomas Tuegel: qt5: reduce evaluation memory use
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vN32l
thetet has joined #nixos
<saurabhnanda>
hang on, basic questions - (a) 'options' will expose a subset of options of the underlying service/component and ASSUME settings for others? (b) how does one output the config file for a service, once certain options are known
<catern>
which are just "put Nix on system, start Nix systemd service" (which are sufficient to set up a multi-user Nix)
<srhb>
saurabhnanda: a) yes ish, it will expose whatever the module writer has exposed. The config section may eventually make assumptions (also based on your settings). The files are ultimately in the nix store, and the systemd service (usually) that runs the service may create symlinks and other files at runtime.
<srhb>
saurabhnanda: Uh, b started somewhere inside there :-)
<srhb>
saurabhnanda: That service does not write an xmonad config file as far as I can see.
<saurabhnanda>
(b) how does one output a config file for the final service from the nix recipe, i.e. how does one generate postgresql.conf?
<srhb>
saurabhnanda: But if it did, it would be something like /nix/store/HASH-xmonad.hs
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/unstable-aarch64 cdf3d7b Tuomas Tynkkynen: nixos/release.nix: Refactoring for better multi-system support...
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to unstable-aarch64: https://git.io/vN3ax
NixOS_GitHub has left #nixos [#nixos]
<catern>
gchristensen: so, in pursuit of an absolutely minimal script, I am trying to think of a way of creating /nix/var/nix/{gcroots,profiles}/per-user automatically. as a fellow person-who-deploys-multi-user-Nix-on-a-diverse-platform, maybe you have some ideas :)
<srhb>
saurabhnanda: In the case of postgresql it's generated for you (somewhere in the nix store) and the systemd service will point postgres at it, iirc.
<catern>
gchristensen: (automatically in nix-daemon.cc or nix-store --init or something, I mean)
ryantrinkle has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 256 seconds]
<gchristensen>
catern: me? I either use the install scripts Nix provides, or use a version I have in puppet-and-tragically-cannot-share, which follows exactly the same steps as the install script
<saurabhnanda>
srhb: okay, so IIUC this is a giant function from config-file-sha1 (or some hash function) => system configuration, right?
<gchristensen>
it took reverse engineering the single-user install script, the NixOS installer, and the bash profiles that NixOS contained. however, you can skip most of this since it is pretty well all contained in the darwin installer now.
<srhb>
saurabhnanda: Morally, yes.
<gchristensen>
I think "look at the darwin installer, and do that" is pretty much the best advice I can give you
<saurabhnanda>
what happens if I add a newline at the end of a nix recipe that is depended by a lot of other packages?
euniarte has joined #nixos
<srhb>
saurabhnanda: Nothing, it's not actually a hash of the text.
nico202 has joined #nixos
<srhb>
saurabhnanda: But the input values. :)
<Dezgeg>
but if you were to add the newline to e.g. glibc's build script, then you would recompile the world
<srhb>
saurabhnanda: Think normalized nix expression or something like that (I don't know the actual approach)
dieggsy has quit [Remote host closed the connection]
<saurabhnanda>
srhb: and the "function definition" itself, right? because at the end-of-the-day it *has* to run a bunch of shell commands. What if the order of shell commands change?
<Dezgeg>
build script as in the string of bash commands executed
<srhb>
saurabhnanda: As Dezgeg said, build scripts eventually do matter.
<srhb>
saurabhnanda: If you added a blank line to the postgresql config, for instance, you've altered a nix string, and the dependents on that string will rebuild
<srhb>
saurabhnanda: That would change the config and thus the systemd service
<saurabhnanda>
okay, so at core it's still a bunch of bash scripts and config files and string manipulation of config files, but the inventive step is the ability to detect that something is change and rebuild everything in the dependency chain.
<srhb>
That's a big part of it, yes.
<saurabhnanda>
s/something is change/something has changed
<catern>
gchristensen: no no, I am aware that the darwin installer is a great resource now if I just want to install multi-user Nix - but I want to simplify the process required to install multi-user Nix so other people don't have to go through the same reverse-engineering process that I also have done
<gchristensen>
well and the immutability of it, once something is, it will be unchanged
<catern>
so that's why I'm talking about how/what could be done automatically by Nix itself to make multi-user Nix simpler to install
<gchristensen>
catern: probably best to write a multi-user installer that works on other linuxes then, and upstream it
<gchristensen>
I don't think it is appropriate for Nix to do itautomatically
<srhb>
saurabhnanda: Right, re. immutability the new config will result in a new store path for it (which is what propagates down to the systemd unit)
<catern>
do what automatically? :) surely it's possible that there's something that is useful to do automatically
<gchristensen>
catern: on other words, I think the division of responsibilities that already exists sense
martinklepsch has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 260 seconds]
<saurabhnanda>
i thought nix was written in haskell, but I can see C++ and Python and Java!
larsvm has quit [Remote host closed the connection]
<srhb>
Nix /= NixOps
<gchristensen>
and where is the java? :P
<nixy>
Nix has many components, not all of which are "Nix"
<srhb>
It's funny about the Haskell assumption though. A lot of people think thus, probably because how big it is in the Haskell ecosystem :P
<catern>
gchristensen: hmm, I'm not convinced... there is a lot of code in the install-darwin-multi-user.sh script, and say I upstream an install-linux-multi-user.sh script. people who are using other kinds of configuration management will still need to reverse-engineer those scripts and translate them, into a Debian package, Ansible/Puppet/Chef/CFEngine/...
<catern>
that's a lot of duplicated code
<gchristensen>
ok
<saurabhnanda>
java is all the IDE plugins
<srhb>
Huh, didn't know we had that.
<gchristensen>
sure, making plugins is good for users
<gchristensen>
Nix is all C++ and Perl, soon: all C++
MercurialAlchemi has quit [Ping timeout: 240 seconds]
cement has joined #nixos
<saurabhnanda>
so, I'm wondering whether there will be significant advantage in choosing nix vs docker (or custom AMIs) for putting together a server that runs a bunch of standard services, and deploys a specific branch of our app on top of it?
<saurabhnanda>
IIRC, docker also has a "little bit" of this functional goodness. It takes a "snapshot" of the file-system after every command in the dockerfile. If any command changes, it rebuilds the file-system from that point onwards.
orivej has joined #nixos
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
the difference is in purity and caching: docker's layers are actually very ineffective caches because of the simplistic model. additionally, it is common practice now to eliminate all layering and just have one fat layer, in order to save disk space.
<srhb>
But to me, the real win is power of expression
<srhb>
Sure, if you're just running a single binary from a one-instruction Dockerfile, that's probably fine.
<gchristensen>
the purity issue is of caching: if you have `apt-get update` in any step, that will never rebuild unless you either change the layer above it, or force it to rerun. this means your apt-get update is effectively useless. Nix's model of purity ensures that if dependencies change or security patches are released, you will get them.
<LnL>
it's fine unless you need to change anything about it
<srhb>
(But heck, I'd rather build my docker containers with Nix when I have to :))
<gchristensen>
^ Nix can make docker containers :)
iyzsong has quit [Ping timeout: 260 seconds]
<saurabhnanda>
gchristensen: what's the part about FS layers and disk-space? I was under the impression that some efficient delta-algorithm is used underneath.
Snappys has joined #nixos
Lisanna has joined #nixos
Snappys has left #nixos ["Leaving"]
<gchristensen>
if you add dev tools in one layer, then build your software in a layer, then remove dev tools in another layer, you still ship all the dev tools to the production server, as an example
<LnL>
it's layer based, so a + b != b + a
<catern>
wow that's terrible
<saurabhnanda>
in nix(os) what do I add to my repo? the nix files for all the packages that I'm using or just my own service? if the latter, who is guaranteeing uptime of the global nix files?
<saurabhnanda>
gchristensen: oh, so that means it's additive and removals don't reduce the FS size
<gchristensen>
right, but also if you change a file trivially lower in the layers that has nothing to do with stuff later in the layers, all those layers must rebuild even though they have no reason
<srhb>
saurabhnanda: Generally you have one repo for your application with a nix file that pulls in nixpkgs as an argument for all its dependencies (at some pinned revision, optionally) -- then you have one repo for your deployment which probably includes your nixos modules for some service. At least, that's what I do.
<srhb>
saurabhnanda: The application nix expression is just the package, while the deployment has the module. Of course, if you share that module, you might want to do something else.
<srhb>
saurabhnanda: (for instance, the module could live with the application and just be imported into the deployment)
<saurabhnanda>
srhb: I don't think I've grasped the difference between a module and a package in nix parlance.
<srhb>
saurabhnanda: modules are what put together NixOS
<srhb>
saurabhnanda: Services and the like
<srhb>
saurabhnanda: packages are the build products of some application, usually.
<saurabhnanda>
so, modules are the NIX files themselves, and packages are the resultant "binaries" that live on the file-system?
<srhb>
saurabhnanda: nixpkgs packages are often OS agnostic. NixOS modules are NixOS only.
<srhb>
No no.
<srhb>
saurabhnanda: packages and modules alike are nix expressions. There's often no 1-1 correspondence between package/module and file
<srhb>
saurabhnanda: modules specifically are the { config, pkgs, ... }: { options = ...; config = ...; } type expressions in the writing modules section I linked you to.
<srhb>
saurabhnanda: I think you should experiment a bit to get a feel for it :-)
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 4e78aeb Shea Levy: callCabal2nix: Fix calling with a path in the store.
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vN36P
<srhb>
We can only digest the whole system so much in an irc session.
<gchristensen>
!m srhb
<[0__0]>
You're doing good work, srhb!
rauno has quit [Remote host closed the connection]
<srhb>
\o/
<Dezgeg>
github down?
<srhb>
yeah.
<gchristensen>
wooooo
<Yaniel>
guess they installed meltdown patches
<Dezgeg>
time to go outside then I guess
<srhb>
hah, just got a 404 on the status page
<srhb>
It's there now
<srhb>
(it's nginx!)
<gchristensen>
Dezgeg: `git remote add graham dezgeg@gsc.io` ;)
<LnL>
Yaniel: or didn't :)
<LnL>
:p
<Dezgeg>
I was trying to hit the pull request button actually
<srhb>
lol, if you refresh it, the historical status messages also change.
<srhb>
Oh, HA things...
<Yaniel>
backlog powered by mongodb?
<andi->
looking at the statuspage they had a few rough days
erasmas has joined #nixos
<gchristensen>
andi-: their backlog says they've been down since November
<andi->
gchristensen: so we have all been dreaming?!? /o\
<srhb>
These past few weeks have felt like a blur...
<andi->
what kind of matrix is this?
contrapumpkin has joined #nixos
zzamboni has quit [Quit: Leaving.]
<catern>
is there a nixpkgs helper for building a Debian package?
<catern>
(I want to use Nix to build a Debian package)
<andi->
that would indeed be very sweet
<gchristensen>
there is, but it doesn't do what you think.
<gchristensen>
it doesn't use nix's build of anything and instead uses standard debian tools in a debian vm to build the deb
<gchristensen>
see: nix's .deb and .rpm tooling in the nix repo
Tucky has quit [Quit: WeeChat 2.0.1]
<saurabhnanda>
thanks shrb & gchristensen
<saurabhnanda>
thank srhb & gchristensen
<saurabhnanda>
I'll spend some more time on nix...
orivej has quit [Ping timeout: 276 seconds]
<srhb>
saurabhnanda: Cool! :-)
mizu_no_oto has joined #nixos
<catern>
dang I was hoping for something different from that
<catern>
oh well, I guess I can always just use debhelper or whatever directly, assuming the right tools are packaged in nix
<catern>
in a custom script
<srhb>
woo, github back.
<Lisanna>
Hey, I need to do a nixos-rebuild of my /mnt while booted into a live install image. Is there a way to do this? Will the regular nixos-install work?
<Lisanna>
I already have a nixos install on /mnt
<srhb>
Lisanna: Yes and yes. nixos-install has a --chroot option you can use for the former option
danl1240 has joined #nixos
<srhb>
Which will give you a root from whence you can nixos-rebuild
ma27 has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #33749: nixos/release.nix: Refactoring for better multi-system support (master...release-refactor-1) https://git.io/vN3iQ
NixOS_GitHub has left #nixos [#nixos]
<adisbladis>
catern: I had to do some deb/rpm packaging at work recently and used fpm. That would be pretty easy to wrap up in a nix expression.
<hyper_ch>
the only problem is if you're using unstable channel
<hyper_ch>
not sure how to switch to that in the nixos live environment
<srhb>
hyper_ch: As normal, I'd think?
<hyper_ch>
srhb: it's more complicated
<srhb>
hyper_ch: Oh?
<hyper_ch>
I think so
<srhb>
Hm, pretty sure I've done that in the past.
<adisbladis>
hyper_ch: Its not. Youd just set your NIX_PATH (nix.nixPath) and be on your merry way :)
<hyper_ch>
adisbladis: and how do you that in detail?
<srhb>
hyper_ch: If you're referring to <unstable> for instance, NIX_PATH=unstable=http:....:$NIX_PATH nixos-install
<Lisanna>
srhb Okay - I do nixos-install --chroot, and then nixos-rebuild boot, and I'm getting error: file nixpkgs/nixos was not found in the Nix search path
<srhb>
Lisanna: nixos-install --chroot /mnt I think
<shlevy>
Anyone ever seen the haskell buidler segfault in configurePhase? :o
<srhb>
Maybe I'm mistaken
<adisbladis>
hyper_ch: What srhb said or set in configuration.nix (nixPath = [ "nixpkgs=http://nixos.org/channels/nixos-unstable/nixexprs.tar.xz" ];) and nixos-rebuild switch
<Lisanna>
no, arguments after --chroot are commands to run
<Lisanna>
it defaults to /mnt
<hyper_ch>
more complicated - as I said
bennofs has joined #nixos
<srhb>
Lisanna: You'll have to set NIX_PATH manually I guess.
<Lisanna>
adisbladis but won't that just set the nix path for users who are booted in regularly? My shell isn't going to pick that up just by chrooting
dieggsy has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<Lisanna>
okay, I changed all my paths to relative and am just doing a regular nixos-install now
<Lisanna>
this is what I get for not using LVM the first time x_x
alexteves has joined #nixos
dieggsy has joined #nixos
macslayer has joined #nixos
saurabhnanda has quit [Remote host closed the connection]
alexteves_ has quit [Ping timeout: 240 seconds]
stepcut has quit [Remote host closed the connection]
<macslayer>
Hmmmm-- how do I install a package from the current git version of `nixpkgs`, without breaking my current system?
<macslayer>
I'm on 17.09, but the package `woeusb` isn't available in 17.09.
<macslayer>
However, when I search the git repo of `nixpkgs`, it's in there.
<Lisanna>
macslayer use the unstable channel, and if your system breaks, just do a rollback
<Lisanna>
and if it doesn't break, you're good :)
<macslayer>
Well, I'd rather not install anything else from the `unstable` channel.
<Lisanna>
something something overlays I think
<macslayer>
Hmmm okay
<macslayer>
I don't know specifically how to do that
<Lisanna>
well, make sure you have the unstable channel added in addition to whatever you currently use, and then import it directly from that channel with an overlay: https://nixos.org/nixpkgs/manual/#chap-overlays
<toppler>
Anyone using node2nix?
YaZko has joined #nixos
MercurialAlchemi has joined #nixos
bitchecker has quit [Remote host closed the connection]
<NixOS_GitHub>
nixpkgs/master e42c4c0 adisbladis: Merge pull request #33751 from ankhers/update_elixir_rc...
<Lisanna>
okay, but how do I get it to pick up swap?
<etu>
swapon it I guess
<Lisanna>
okay, it's picking them up correctly now
<etu>
:)
orivej has joined #nixos
<Sonarpulse>
dtz: btw we should really factor out the common parts of the gcc derivations
<Sonarpulse>
I doubt we're done tweaking them
<Sonarpulse>
and its a big pain right now
<Dezgeg>
should drop the oldest gccs like 4.5 first, though
<dtz>
OMG yes it is
<dtz>
They're so much alike :(
aanderse has quit [Ping timeout: 240 seconds]
<dtz>
Also, LLVM ones after that. I actually have a start on those a bit unintentionally-- I added a "track master" expression locally over a year ago and it has grown to handle all versions since haha
<dtz>
But it also builds things together so not quite ready as-is (and need support for older versions but they're similar too)
<dtz>
But anyway LLVM stuff isn't as bad IMO, those gcc derivations are intense
<dtz>
I have musl things to add there too but can add after -- but if we're doing a rebuild of them might wanna sneak those in too O:)
<Yaniel>
oh dear, this is going to be fun to package
jabranham has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to unstable-aarch64: https://git.io/vN3yJ
<NixOS_GitHub>
nixpkgs/unstable-aarch64 7563089 Tuomas Tynkkynen: nixos/release.nix: More refactoring for multi-arch...
NixOS_GitHub has left #nixos [#nixos]
<Guest44147>
Yaniel: Doesn't seem so bad. If you want a challenge, try packaging OSS4 ;)
<Yaniel>
I mean
<jabranham>
I'm trying to install a package in R with install.packages("curl") and it keeps failing because it can't find libcurl, despite curl being installed on the computer. Any ideas why this is the case?
<Yaniel>
it does wget | tar -xvf | make install there
orivej has quit [Quit: No Ping reply in 180 seconds.]
<Lisanna>
ah, that message at the top of hardware-configuration.nix was right - don't modify it directly!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vN3y9
<jabranham>
also, am I supposed to install things like openssl and gcc by putting them in environment.systemPackages?
contrapumpkin has joined #nixos
<etu>
Lisanna: I tend to ignore that.
sigmundv__ has quit [Ping timeout: 276 seconds]
orivej has joined #nixos
<Yaniel>
jabranham: that's one way, the other is nix-env
ryantrinkle has joined #nixos
nmikhailov[m]1 has joined #nixos
<jabranham>
Yaniel: are those two things identical?
<Yaniel>
no
<jabranham>
is there someplace that descibes how they're different?
macslayer has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aforemny closed pull request #33494: Bullet: upgrade and fix on aarch64 (master...bullet) https://git.io/vNUNp
NixOS_GitHub has left #nixos [#nixos]
<Yaniel>
nix-env is user-specific for one
<etu>
Lisanna: Since I don't usually regenerate the file, as well as I control it in git so I can review the changes.
<Yaniel>
IIRC the manual has something about that
<Yaniel>
declarative vs imperative package management
<jabranham>
Right, but if I run nix-env as root (via sudo), then those two things should be identical, right (except for the syntax/how they're declared to the system)?
dieggsy has joined #nixos
<Yaniel>
root is a user too
jensens has quit [Ping timeout: 260 seconds]
<jabranham>
so if I install something with sudo nix-env -i foo then user alice won't be able to use it unless she installs it with nix-env -i foo?
dieggsy has quit [Read error: Connection timed out]
<jabranham>
but if I put it in environment.systemPackages then root and alice can both use it?
dieggsy has joined #nixos
<Yaniel>
the latter yes, the former AFAIK too but am not sure
<jabranham>
gotcha, thanks
civodul has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
Neo--- has joined #nixos
leat has joined #nixos
Neo-- has quit [Ping timeout: 265 seconds]
<alexteves>
won't any user that is member of the wheel group be able to use "sudo nix-env -i" packages?
<hyper_ch>
Mic92: but there was another issue I encountered... I made another encrypted zfs pool..... I added it to the hardware-configuration.nix and during initrd boot it didn't ask me for the password for it and then boot stopped because it couldn't be mounted
<Mic92>
hyper_ch: is your rootfs also on the same pool?
<hyper_ch>
Mic92: I just can't manage to set the usb 3 drive to offline when powering down
<Mic92>
sorry I cannot reproduce this setup here.
klntsky has joined #nixos
jb55 has joined #nixos
<Mic92>
you have to figure it out on your own
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to release-17.09: https://git.io/vN3F2
<NixOS_GitHub>
nixpkgs/release-17.09 febf14e Benjamin Hipple: Init Centos 7.3 vmTools diskImage...
<NixOS_GitHub>
nixpkgs/release-17.09 3007961 Benjamin Hipple: Init Centos 7.4 vmTools diskImage...
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch>
Mic92: been trying to figure that out for ages and I have no idea what it's not working
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jabranham>
the output of nix-env -q contains "python3-3.6.4" and "python3.6-numpy-1.13.3", but starting python and doing "import numpy as np" can't find the numpy module. Am I doing something wrong?
<jabranham>
xcmw has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<symphorien>
you are not supposed to install libraries or python modules globally on with Nix
<FRidh2>
jabranham: yes, you are. Have a look at the Python section in the Nixpkgs docs
digitus has joined #nixos
<hyper_ch>
Mic92: is this the problem: Active: active (exited) since Thu 2018-01-11 18:24:41 CET; 8min ago --> I mean the exited one
<dtz>
lmao, found this in a build log: -Lsh: -Lpkg-config: -Lcommand -Lnot -Lfound
<dtz>
hahaha
<jabranham>
FRidh2: thanks
<Mic92>
hyper_ch: this looks fine to me
<Mic92>
hyper_ch: you can query the journal for output on shutdown
<Mic92>
dtz: build system with stringly typed DSLs
pkill9 has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 255 seconds]
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schoppenhauer has joined #nixos
rardiol1 has left #nixos [#nixos]
datakurre has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
ent has quit [Ping timeout: 252 seconds]
<jluttine>
in python package derivation, i've set src=/some/local/path and when i make changes to the files in that path, the files in the installed python package don't change.. what could be wrong?
seequ has quit [Ping timeout: 268 seconds]
Dezgeg has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
<etu>
jluttine: do you update the hash?
Lisanna has joined #nixos
<etu>
I'm pretty sure you need a hash of the dir with the code and update it
<jluttine>
etu: i don't set any hash, i just put src=/some/local/path
LysergicDreams has quit [Remote host closed the connection]
<jluttine>
i'm not sure if that's allowed, or how i should use local directories as a source
<etu>
Oh, I didn't know that works. But I think it doesn't rebuild it because the hash of the instructions are the same.
<jluttine>
etu: but it does rebuild whenever i change any of the files though :o
<jluttine>
and the nix path where it copies that source directory, contains the changed files
ssmike has quit [Ping timeout: 252 seconds]
<etu>
Yeah, but if you don't change the nix file, I don't think it will rebuild. So if you had a hash, version variable or anything you would change it would probably work.
ckauhaus has joined #nixos
drakonis has joined #nixos
<jluttine>
i changed the version string of the python package derivation, didn't help :(
dan_b has joined #nixos
<FRidh2>
are you sure you are building that derivation and not maybe from another say Nixpkgs package set?
<NixOS_GitHub>
[nix] edolstra created memoise (+1 new commit): https://git.io/vNseW
rauno has joined #nixos
<LnL>
^ :D
<dtz>
lol cross paths get a bit silly: -- Check for working C compiler: /nix/store/d36vzq103mv00ap1wak4ssz5wmjlp47d-x86_64-unknown-linux-musl-gcc-cross-wrapper-6.4.0-x86_64-unknown-linux-musl-stage-final/bin/x86_64-unknown-linux-musl-gcc -- works
<gchristensen>
:O
<dtz>
neat re:memoise
primeos has quit [Ping timeout: 252 seconds]
<etu>
dtz: such path, I'd remember that :D
<etu>
I like the unkown parts
primeos has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
marzzzello has quit [Ping timeout: 252 seconds]
m0rphism has quit [Quit: WeeChat 1.9.1]
coot___ has quit [Quit: coot___]
Neo--- has quit [Ping timeout: 255 seconds]
mrkgnao has joined #nixos
oida has quit [Quit: WeeChat 1.6]
martinklepsch has joined #nixos
<fgaz>
hi
ssmike has joined #nixos
<fgaz>
i'm building an overlay with some additional packages
<fgaz>
i plan to add it to some server's configuration
rauno has quit [Ping timeout: 252 seconds]
<fgaz>
is there a way to build those packages individually?
<fgaz>
when I work on nixpkgs i can do `nix-build ~/nixpkgs -A somepkg`
<fgaz>
I want to do the same with the overlay
<fgaz>
without actually applying it to my system
sigmundv__ has joined #nixos
reinzelmann has joined #nixos
<rnhmjoj[m]>
fgaz: i don't know if it's the best way but I usually take the expression out the system configuration, put it into a default.nix and call nix-build
simendsjo has joined #nixos
sigmundv_ has quit [Ping timeout: 248 seconds]
rauno has joined #nixos
<rnhmjoj[m]>
then I use nix-copy-closure to copy the package to different machines
orivej has quit [Ping timeout: 248 seconds]
tmaekawa has quit [Quit: tmaekawa]
<fgaz>
rnhmjoj[m]: so basically a default.nix the same as the overlay's one but without the super and self arguments?
ssmike has quit [Ping timeout: 255 seconds]
<fgaz>
hmm I keep getting a "value is a function while a set was expected"
rauno has quit [Ping timeout: 264 seconds]
<fgaz>
which is not very helpful
aborsu has joined #nixos
m0rphism has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] erosennin opened pull request #33754: virt-manager: add gobjectIntrospection to nativeBuildInputs (master...virt-manager-gobject-introspection) https://git.io/vNsTF
<NixOS_GitHub>
[nixpkgs] srhb closed pull request #33719: nixos/tests/keymap: Workaround xterm not in focus (master...xterm-keymap-workaround) https://git.io/vNOTb
NixOS_GitHub has left #nixos [#nixos]
<srhb>
fgaz: Am I understanding correctly that you want to build a system configuration without applying it to your system?
<srhb>
fgaz: And just build, not run it in a vm or anything?
<fgaz>
srhb: just a single derivation
<fgaz>
yeah, just build
<srhb>
fgaz: nixos-rebuild can do this, if you set nixos-config to the configuration file in question.
<fgaz>
ah, nixos-rebuild build
<srhb>
fgaz: Yeah, setting NIXOS_CONFIG to the path you're interested in
ryanartecona has joined #nixos
<fgaz>
but then i'm building the while configuration
<fgaz>
whole
<srhb>
Indeed.
<fgaz>
is there a way to build a single package from the overlay?
<srhb>
Package yes, nixos system not really.
<qknight>
hey. if i use lib.unqiue on a list it prints the list content in one line. is there a way to output it pretty? my list contains sets which are basically none-human-readable
<srhb>
fgaz: Or hm, I don't know how to actually evaluate the overlays by hand, but it should be doable to find the mechanics...
<srhb>
fgaz: Essentially I think you want to evaluate nixpkgs (default.nix) passing your overlays, and then specifying just your attribute
<fgaz>
srid: tried for a while, but i keep getting that uninformative "value is a function while a set was expected"
<srhb>
fgaz: The question is how to pass the overlay...
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vNsIb
<NixOS_GitHub>
nixpkgs/master e4cad91 Michael Weiss: lf: 2017-10-30 -> 2018-01-11
NixOS_GitHub has left #nixos [#nixos]
nix-gsc-io`bot has quit [Client Quit]
Itkovian has joined #nixos
<fgaz>
you found about the overlay arg in pkgs/impure.nix ?
<srhb>
fgaz: You mean pkgs/top-level/impure.nix ? Yes, I figured it would have to enter as an argument somewhere, and in general all the stuff that enters from the surroundings are from there. :)
<srhb>
fgaz: But you could ultimately have thought "it's an argument..." and gone from default.nix to there
<srhb>
(or maybe just grepped for great justice)
<srhb>
:)
<jabranham>
does anyone here run i3blocks? Where are the example scripts for that put? (how can I use the 'memory' script that comes with it?)
<srhb>
sigh, "import <nixpkgs> { ... }" of course :-P
kier has quit [Ping timeout: 248 seconds]
nithor has quit [Ping timeout: 255 seconds]
rauno has quit [Ping timeout: 264 seconds]
Orbstheorem has left #nixos ["User left"]
maiksen has joined #nixos
<fgaz>
srhb: actually that gives me an infinite recursion
<srhb>
fgaz: What does exactly?
<fgaz>
"at undefined position"
<srhb>
fgaz: the nix-build command?
<fgaz>
yup
<srhb>
fgaz: You probably have used self somewhere where you shouldn't. Did you pastebin it somewhere?
<fgaz>
nope, but i actually did'nt even use self
<srhb>
fgaz: Hmm, well, need more info. :)
kier has joined #nixos
<fgaz>
my overlay/default.nix is just `self: super: { mypkg = super.callPackage ./pkgs/mypkg; }`
<fgaz>
and overlay/pkgs/mypkg/default.nix is an ordinary package which builds normally
<fgaz>
well, at least it did build when it was standalone
<srhb>
fgaz: That does look peculiar. And the nix-build command?
<srhb>
Peculiar that it's erroring out, I mean.
<fgaz>
nix-build default.nix, where the default.nix is the one you provided
<fgaz>
i can push a branch with all this if you want
<srhb>
fgaz: Please, I find it hard to keep track of :)
<fgaz>
oh wait
<fgaz>
it builds now
<fgaz>
wat
<srhb>
er um. :-)
<fgaz>
aaah sorry. i forgot to save after adding the parentheses around "import ./overlay"
<remexre>
Are other people able to build 1bg9yjdwdnl2pnbnlbxzx40nyngbfk41-perl-DBD-SQLite-1.54.drv ? I'm getting what look like failures in the test phase
<srhb>
fgaz: Oh goodie. :) Things make sense again.
<fgaz>
ahem, while we are at it...
<srhb>
remexre: I'm able to build /nix/store/92adaxcn4y8dhi3zf1d0yc3rd5piivgh-perl-DBD-SQLite-1.54.drv
<fgaz>
srhb: i use ${someotherpkg}/bin/thing in my buildPhase
<remexre>
hmm, different hash though
<pkill9>
might switch to NixOS sometime
<srhb>
remexre: That's what I had around...
<srhb>
remexre: :)
<fgaz>
and that gives me a "cannot coerce a set to a string"
<remexre>
Yeah, that means that mine is probably the strange one
nithor has joined #nixos
<fgaz>
shouldn't it return the package's path in the store?
<srhb>
fgaz: Assuming someotherpkg is what you think it is, yes, but I guess it isn't.
<fgaz>
ok, just wanted to confirm
<fgaz>
i want static types >.<
<srhb>
fgaz: dhall2nix for great justice?
<srhb>
:-)
nico202 has joined #nixos
<srhb>
But yes, definitely.
<fgaz>
dhall seems nice
<srhb>
remexre: I'm on unstable though
<srhb>
Yeah, very.
<fgaz>
would it work as a nix frontend language?
<remexre>
srhb: ditto...
<srhb>
I don't see why not.
<srhb>
But that's kind of saying "in an alternate universe where Nix was a different language, could Nix be X?" -- so I guess that's sort of free "wisdom" :-P
<marek>
I'm really trying hard to contribute to nixpkgs, but almost everywhere is already there! :) is there any kind of WishList or something, somewhere?
<toppler>
marek: I want to get this game oolite packaged.
* marek
googles
<buovjaga>
marek: do you have a Raspberry Pi? :)
<srhb>
marek: I think there's also a lot of issues on the tracker with requests :)
<marek>
toppler: well, I hoped for something easy :)
<buovjaga>
(they didn't slap me for asking silly things)
<srhb>
I can't reproduce that locally.
<gchristensen>
uhh that should definitely be fixed :|
<srhb>
Hehe, no rush
<gchristensen>
(I mean, already)
<srhb>
Ah.
<gchristensen>
the problem is nix-instantiate ./nixos/release.nix -A tests.keymap.colemak produces .x86_64-linux and .aarch64-linux test drvs, which is ... weird
<srhb>
Aaaah
<gchristensen>
but, I had a patch in to fix this, I'm not sure how it got rolled back by mistake
<srhb>
Of course that's how it evaluates them. I calling the keymap.nix expression directly. Now it makes sense, thank you :)
<srhb>
I was*
<gchristensen>
I'll check in to why it is doing the wrong thing again tonight
<srhb>
!m gchristensen
<[0__0]>
You're doing good work, gchristensen!
<gchristensen>
:)
mrkgnao has quit [Quit: WeeChat 2.0]
nithor has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
concatime has joined #nixos
<nico202>
any way to have nested nix-shells? I mean, nix-shell --pure on a shell.nix file, then nix-shell'ing other shell.nix to add things without having to close the first one and the childs. Or a "live switch" to the new shell.nix
<srhb>
nico202: Not in any good way
<toppler>
I do it a fair bit and my PS1 and terminal aren't happy.
<toppler>
So would like to hear about the issues.
nithor has quit [Ping timeout: 255 seconds]
balsoft has joined #nixos
balsoft has left #nixos [#nixos]
<nico202>
yes the terminals screws up, that's why I'm asking .-. found issue #1671
<LnL>
it should work with 1.12
<LnL>
yeah
bpa has joined #nixos
<nico202>
LnL: oh I'm on 1.11.6, I'll have to wait. However there are various open issues around, some might be closed
<nico202>
*1.11.16
nithor has joined #nixos
concatime has quit [Quit: Page closed]
m0rphism has joined #nixos
buovjaga has quit [Remote host closed the connection]
mk-fg has quit [Ping timeout: 265 seconds]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
leapingfrogs has joined #nixos
fyuuri has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has quit [Ping timeout: 265 seconds]
<srhb>
uh oh... even rolling back nixpkgs doesn't fix the test issues
* srhb
thinks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vNs3X
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 1566b47 José Romildo Malaquias: materia-theme: 20171213 -> 20180110
swayf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dezgeg has joined #nixos
eljih has quit [Quit: Leaving]
eljih has joined #nixos
eljih has quit [Client Quit]
eljih has joined #nixos
<LnL>
l
<thoughtpolice>
Is there a standardized situation for handling packages that just have upstream Nix expression? In particular, I have been adding/working on bcachefs in my spare time and added some nice expressions there -- is there a precedent in Nixpkgs already for just replacing *our* bcachefs-tools with something like, `import "${fetchFromGitHub { ... }}/default.nix"` or something?
<LnL>
that's not allowed in nixpkgs
<thoughtpolice>
I was wondering if there was a policy on this (it wasn't always possible in any case)
<LnL>
hydra runs evaluation in restricted mode so it wouldn't work
<thoughtpolice>
Ah, right.
balsoft has joined #nixos
balsoft has left #nixos [#nixos]
nithor has quit [Ping timeout: 240 seconds]
<Ankhers>
I have recently been asked to submit a talk to the MongoDB World 2018 conference. I am trying to collect a couple ideas right now. If anyone has a topic that they would like to hear about, please let me know.
<Ankhers>
I apologize if that message is offtopic.
JosW has quit [Quit: Konversation terminated!]
alex`` has quit [Ping timeout: 276 seconds]
simendsjo has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<doctorrockso>
is anyone here able to build cabal-install on current nixpkgs-unstable? For me, running `nix-build '<nixpkgs>' -A haskell.packages.ghc802.cabal-install` fails because cabal-install doesn't have the right version of the Cabal package
<doctorrockso>
this doesn't seem like a platform thing, but I'm running OSX
<noobly>
hello, what should be a simple solution of connecting to a new wireless network is giving me a big headache. I followed this https://chris-martin.org/2015/installing-nixos but it failed, and also followed the nixos guide on wireless networks and edited both my config.nix and wpa_supp.conf with the appropriate info, but upon both restarting wpa_supp and nixos-rebuild switch-ing nothing has worked
<noobly>
SSID and key are confirmed as correct as well ;-)
<noobly>
networking.wireless is enabled, networking.networkmanager is disabled
<Slabity>
noobly: Any information on what failed? Were you able to build your configuration?
<el_putin>
patchelf reads elf files right?
<Aleksejs>
noobly: on my side, notworking.networkmanager.enabled=true and adding wifi via nmtui did the trick. Do not forget to check Available for all users
nithor has quit [Ping timeout: 255 seconds]
<noobly>
That's better information to provide, thanks. I'll get it one sec! Build is successful, and actually indicates good news by saying wpa_supplicant.serivce was started as one of the "following new units"
<noobly>
Aleksejs: It's just that I did it flawlessly a couple nights under a diff network, now I'm having all sorts of trouble!
<Slabity>
noobly: +1 on using networkmanager with nmtui. It's much more convenient than rebuilding your system when you add a new access point
<Aleksejs>
I had some sorts of trouble when I tried to do it via .nix. Then I let nmtui do the job and everything works flawlessly
<noobly>
Slabity: Ok, I'll look into that immediately after hacking this together. I definately need an easier system than my existing one. I don't switch networks often but when I do it's painful
Slabity has quit [Remote host closed the connection]
szicari has joined #nixos
<noobly>
After stopping systemctl, following up wpa_supplicant -B -i 'my_interface' -c <(wpa_passphrase 'my_SSID' 'my_key'), I get the errors "Failed to open config file /dev/fd/63, no such file or directory AND failed to read or parse configuration "/dev/fd/63"
<noobly>
which is a bunch of jibberish to me, but probably an important bit of info, unfortunately Slabity has left just in time lol
<Aleksejs>
have you tried nmtui yet?
<noobly>
No, I'll do that now. I just felt like I was so close to getting this to work, but long term it certainly sounds like nmtui is the way to go
pkill9 has quit [Quit: WeeChat 2.0]
<noobly>
Aleksejs: so in this case, I want to comment out networking.wireless.enable = true; correct?
sigmundv__ has joined #nixos
<Aleksejs>
networking.networkmanager.enable=true
FRidh2 has quit [Quit: Konversation terminated!]
nithor has joined #nixos
hiratara has quit [Ping timeout: 255 seconds]
<noobly>
Aleksejs: I've got that, but I thought you can't have networking.wireless and networking.networkmanager enabled in tandem
<Aleksejs>
yes, I don't have wireless.enabled in .nix file
<noobly>
tandem was the wrong word, enabled simultaneously woudl be better
<noobly>
oh ok just making sure, thx
hiratara has joined #nixos
doctorrockso has quit [Ping timeout: 252 seconds]
nithor has quit [Ping timeout: 276 seconds]
swayf has joined #nixos
Intensity has quit [Ping timeout: 246 seconds]
swayf_ has joined #nixos
klntsky has quit [Ping timeout: 272 seconds]
swayf has quit [Client Quit]
thc202 has quit [Ping timeout: 260 seconds]
klntsky has joined #nixos
<LnL>
ofborg will be down for the next >1h so evaluations, etc. won't run
ryanartecona has joined #nixos
nix_newb has joined #nixos
<nix_newb>
hello, i used patchelf to add zlib to rpath and i still get cannot load libz.so.1 when starting the binary
<nix_newb>
ldd shows libz.so.1 not found
nithor has joined #nixos
<LnL>
what's the output of ldd
<el_putin>
try using patchelf --add-needed
<el_putin>
replacing libz.so.1 with the full path to the libz.so.1
nithor has quit [Ping timeout: 246 seconds]
<nix_newb>
el_putin: add_needed fixed it thanks
alexteves has quit [Ping timeout: 246 seconds]
<nix_newb>
do you know why i needed to use that
orivej has quit [Ping timeout: 248 seconds]
thc202 has joined #nixos
<el_putin>
so it does not search for it and fail if it is in a non standard location such as /tmp/libz.so.1
<nix_newb>
is there way to locate which pacakge a lib belong to ?
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
jtojnar has quit [Ping timeout: 264 seconds]
bpa has quit [Remote host closed the connection]
bennofs has quit [Ping timeout: 276 seconds]
noobly has quit [Quit: Page closed]
pjan_ has joined #nixos
xcmw has joined #nixos
<aborsu>
@cransom thanks. Thats the info i needed
marcinkuzminski has quit [Ping timeout: 268 seconds]
ambro718 has quit [Ping timeout: 240 seconds]
davidcl has quit [Ping timeout: 240 seconds]
linarcx has joined #nixos
davidcl has joined #nixos
kgz has quit [Ping timeout: 268 seconds]
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
marcinkuzminski has joined #nixos
drakonis has joined #nixos
<sphalerite>
Is there a way to have /run/user/$uid continue to exist even if the user isn't logged in? I keep losing my tmux sessions on a remote server because it gets unmounted when I log out
<sphalerite>
I can send tmux the USR1 signal to have it recreate the socket, but it's an annoying workaround and there are some other things that don't go right because of the missing directory too
mkoenig_ has joined #nixos
<samueldr>
I think it's related to lingering
<samueldr>
weirdly, on nixos, it seems my tmux session continues to live (17.09, pretty much default tmux)
mkoenig has quit [Ping timeout: 260 seconds]
jtojnar has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
linarcx has quit [Remote host closed the connection]
yegle has quit [Quit: WeeChat 2.0]
Adluc has joined #nixos
alpha_sh_ has quit [Ping timeout: 265 seconds]
drakonis has quit [Read error: Connection reset by peer]
nithor has quit [Ping timeout: 255 seconds]
<sphalerite>
oh yeah it's because I have it set up to use /run/user/$uid using a wrapper
<sphalerite>
so it would work if I just left that bit alone
<sphalerite>
but regardless, nix-shell also doesn't like /run/user/1000 not being there and I need it to be able to run when I'm not logged in
alpha_sh has joined #nixos
marzzzello has joined #nixos
marzzzello has quit [Client Quit]
aborsu has quit [Remote host closed the connection]
verite has joined #nixos
<LnL>
yeah, that's annoying
nithor has joined #nixos
aborsu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #33758: python: remove unneeded name attributes, remove rec, make afew an application (master...py-fixes) https://git.io/vNs2F
NixOS_GitHub has left #nixos [#nixos]
aborsu has quit [Client Quit]
aborsu has joined #nixos
<flokli>
^ FRidh: can you take a look at this? I'm still a bit unsure if this should be done like its now, with the pname and version inside the let, to get rid of the rec
<Wizek>
When trying to run `nix-shell -p 'haskell.packages.ghc822.developPackage{root=./.;}' -j4`
MP2E has joined #nixos
nithor has joined #nixos
kragniz has joined #nixos
ma27 has quit [Ping timeout: 255 seconds]
<Wizek>
Actually, this seems to be the offending line instead: `/nix/store/wb62hy9zcxj33spy9nqi2312p0m3b9q8-hook/nix-support/setup-hook: line 40: /nix/store/wf6qggqwj041pvyrmz82bphjm9gms63s-ghc-8.2.2-with-packages/bin/ghc: Permission denied`
<Wizek>
seems like /nix/store/wf6qggqwj041pvyrmz82bphjm9gms63s-ghc-8.2.2-with-packages/bin/ghc is missing
<Wizek>
I wonder how that is possible
<Wizek>
Any idead?
<Wizek>
*ideas
nithor has quit [Ping timeout: 276 seconds]
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]