<disasm>
Nobabs27: I think if you remove the buildPhase it will work
<Nobabs27>
disasm: the build phase is automatic? it just knows what to do?
koserge has quit [(Ping timeout: 248 seconds)]
<Nobabs27>
or is it the appearance of qmake it automatically uses?
<disasm>
yeah, when you put qt5.qmake in the nativeBuildInputs it will figure the rest out
<disasm>
most of the time :)
<disasm>
sometimes you have to do some preConfigure stuff, like substitutions, etc...
<csingley>
For servers that stick config files under /var (because they need write access to config), can I declare the config file contents in configuration.nix?
drakonis has quit [(Remote host closed the connection)]
MarcelineVQ has quit [(Remote host closed the connection)]
drakonis has joined #nixos
MarcelineVQ has joined #nixos
MP2E has joined #nixos
jensens has quit [(Ping timeout: 264 seconds)]
U007D has joined #nixos
<disasm>
Nobabs27: gonna need some hackery, I'm looking into it
Wizek has quit [(Quit: Connection closed for inactivity)]
<Nobabs27>
?
<Nobabs27>
disasm: you sayin I should submit that pull request or...?
jellowj has quit [(Ping timeout: 264 seconds)]
<disasm>
just showing you what I did so far
<Nobabs27>
ah kk
<disasm>
I find git repos easier to follow along when debugging over IRC
<Nobabs27>
ok
<Nobabs27>
so Im guessing it works but only when called via all-packages.nix ?
<disasm>
trying another build
<disasm>
yeah, I'm doing it in nixpkgs, and will probly PR it if I get it working :)
<disasm>
so other people wanting it can just install it
<Nobabs27>
cool
<disasm>
doubt it will get in 17.09 though
<Nobabs27>
a couple things about qupzilla: theres also the 'plugins' thing in a separate repo, and they are renaming it to Falkon which has a repo on the KDE git thing which makes it somewhat confusing
<disasm>
ohfun :)
<disasm>
I'm not sure this is going to work, I set the prefix in QMAKE FLAGS but according to build instructings, that would be a en env variable.
<Nobabs27>
weird
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
roni has joined #nixos
roni2 has joined #nixos
roni2 has quit [(Client Quit)]
roni has left #nixos []
<disasm>
Nobabs27: I do believe I goto it... we'll find out when it finishes.
<Nobabs27>
disasm: cool
<disasm>
but I see DUSE_DATADIR pointed at the nix store in share
<jasom>
I'm seeing an odd error building a custom expression: Error in tempdir() using /var/run/user/1000/nix-build.XXXXXX: Parent directory (/var/run/user/1000) does not exist at /nix/store/das3zvh434rbjhisxr9i0axfc0yqhh0q-nix-1.11.13/lib/perl5/site_perl/5.24.1/x86_64-linux-thread-multi/Nix/Utils.pm line 45.
<clever>
jasom: what is $TMPDIR set to?
<jasom>
clever: it's unset in my environment, but doesn't nix-build set it somewhere?
mrkgnao has joined #nixos
<clever>
outside of the nix build
<clever>
what about $TMP?
<jasom>
clever: also unset
<clever>
env | grep run/user/1000
<jasom>
XDG_RUNTIME_DIR
<jasom>
which is mentioned on that line of the perl script, thanks
<clever>
what is the value?
<jasom>
XDG_RUNTIME_DIR=/var/run/user/1000
<clever>
and does that directory exist?
<jasom>
yes
<clever>
can you gist your custom expression?
<jasom>
clever: not easily, there's lots of moving parts, I'm going to try with XDG_RUNTIME_DIR unset real quick
<jasom>
it seems to work on nixos, but not my nixpkgs install
<disasm>
Nobabs27: that's it cleaned up a bit. We'll see if someone merges it :)
oahong has quit [(Ping timeout: 264 seconds)]
<disasm>
Nobabs27: you could put that in qupzilla.nix and then do (callPackage ./qupzilla.nix {}) in systemPackages to install without it being merged.
<Fare>
I don't understand why one machine copies from the other with ssh-substituter-host, but the other claims the packages are not properly signed.
<tnks>
when running a window manager, it kicks off a shell, but it seems polluted by all the environment variables set by the wrapper script for the window manager.
<tnks>
do people just get by because everything has it's own wrapper script?
justan0theruser has joined #nixos
michas_ has quit [(Ping timeout: 248 seconds)]
<Fare>
what variables are ticking you?
mrkgnao has quit [(Ping timeout: 264 seconds)]
<Fare>
tnks, I use stumpwm and don't have too much trouble.
tmaekawa has joined #nixos
Fare has quit [(Ping timeout: 260 seconds)]
FareTower has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
mk-fg has quit [(Quit: o//)]
ison111 has joined #nixos
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
kier has quit [(Quit: No Ping reply in 180 seconds.)]
kier has joined #nixos
hamishmack has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
sigmundv has joined #nixos
<eacameron>
Has anyone seen nixops deploy just hang while copying closure?
<peterhoeg>
Nobabs27 and disasm: I've added some comments about falkon on that PR. Let's take the discussion over there?
<peterhoeg>
eacameron: if you are using hasFastConnection = true it will not show you any progress
<peterhoeg>
While still doing its thing
<eacameron>
peterhoeg: Where is that set?
<peterhoeg>
deploytment.hasFastConnection
<peterhoeg>
It is what chooses if you copy from the deployment host to the target or if the target will download from the mirros.
<peterhoeg>
When the target is downloading from the mirrors you will see progress but nothing if pushing from your deployment host to the target.
<eacameron>
peterhoeg: Ohhhh
<eacameron>
peterhoeg: I'll bet that's it.
<eacameron>
I must have a large deployment...
hio is now known as hoorr
hoorr is now known as peter1
peter1 is now known as hio
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
Filystyn has quit [(Read error: Connection reset by peer)]
Filystyn12 has joined #nixos
<eacameron>
peterhoeg: Is there a way too look at the closure of a nixops deployment?
Filystyn12 has quit [(Client Quit)]
Filystyn12 has joined #nixos
Filystyn12 has quit [(Client Quit)]
FareTower has quit [(Ping timeout: 240 seconds)]
Filystyn12 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #29489: go: fix tests and impurity (master...go) https://git.io/v5dyS
NixOS_GitHub has left #nixos []
<peterhoeg>
eacameron: I don't know if there is a way to get nixops to show it, but you can always get it from the remote host using nix-store --query -R <path-to-active-generation>
<eacameron>
peterhoeg: Ok thanks.
Ivanych has joined #nixos
jsgrant has quit [(Ping timeout: 246 seconds)]
MP2E has quit [(Quit: leaving)]
drakonis has quit [(Quit: Leaving)]
glenn has quit [(Remote host closed the connection)]
<Mic92>
disasm: You can switch to the github tarball and extend PATH
glenn has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
glenn has quit [(Ping timeout: 264 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v5d9u
<NixOS_GitHub>
nixpkgs/master 0f0aeed Samuel Leathers: python pies: remove packages
<NixOS_GitHub>
nixpkgs/master 469e163 Frederik Rietdijk: Merge pull request #29487 from disassembler/pies...
NixOS_GitHub has left #nixos []
endformationage has quit [(Quit: WeeChat 1.9)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/v5d9r
<NixOS_GitHub>
nixpkgs/release-17.09 f22378c Samuel Leathers: python pies: remove packages...
NixOS_GitHub has left #nixos []
eacameron has quit [(Remote host closed the connection)]
Filystyn12 has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
FRidh has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Ping timeout: 264 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
isaac__ has joined #nixos
stepcut has quit [(Ping timeout: 255 seconds)]
catch22 has quit [(Remote host closed the connection)]
<offlinehacker[m]>
adding a single driver to mesa, and i have to rebuild everything, this is just crazy
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #29465: aspellWithDicts: use a single env (master...aspell) https://git.io/v55FW
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/v5dHZ
<NixOS_GitHub>
nixpkgs/release-17.09 20e1833 Frederik Rietdijk: aspellWithDicts: use a single env...
NixOS_GitHub has left #nixos []
glenn has joined #nixos
glenn has quit [(Ping timeout: 246 seconds)]
dywedir has joined #nixos
justbeingglad has joined #nixos
guest1100101 has joined #nixos
<guest1100101>
Hi there, from the LiveCD, is there a way to install unstable directly or would I first have to install the system, boot to it and then change channels to unstable?
iyzsong has quit [(Read error: Connection reset by peer)]
oahong has quit [(Ping timeout: 260 seconds)]
<guest1100101>
Hi there, from the LiveCD, is there a way to install unstable directly or would I first have to install the system, boot to it and then change channels to unstable?
<guest1100101>
sorry for double post
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v5dH1
<guest1100101>
I encounter a problem: curl: (22) The requested URL returned error: 404 Not Found error: cannot download flash_player_ppapi_linux.x86_64.tar.gz from any mirror
GRBurst has joined #nixos
iyzsong has joined #nixos
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
<GRBurst>
hey - i am trying to compile a program that uses cmake und boost. in order to do so - i use the with nix-shell -p cmake boost. however - cmake is not able to find boost (find_package(CMake Error at CMakeLists.txt:120 (find_package):, altough it is installed on the system.
<GRBurst>
Could not find a package configuration file provided by "Boost" with any of
<GRBurst>
the following names:
<GRBurst>
BoostConfig.cmake
<GRBurst>
boost-config.cmake
<GRBurst>
Add the installation prefix of "Boost" to CMAKE_PREFIX_PATH or set
<GRBurst>
"Boost_DIR" to a directory containing one of the above files. If "Boost"
<GRBurst>
provides a separate development package or SDK, be sure it has been
<GRBurst>
okay - sry messed up with c&p here xD
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 4 new commits to master: https://git.io/v5dHQ
<NixOS_GitHub>
nixpkgs/master 9e39554 Joachim Fasting: linuxPackages.lttng-modules: 2.9.3 -> 2.10.0
<NixOS_GitHub>
nixpkgs/master 7d69e5a Joachim Fasting: linuxPackages.lttng-modules: broken on kernels >4.11
<NixOS_GitHub>
nixpkgs/master 969db57 Joachim Fasting: lttng-tools: 2.9.5 -> 2.10.1
NixOS_GitHub has left #nixos []
<isaac__>
Is there something I can read that will get me up to speed with compiling a haskell project with profiling?
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v5d5O
<NixOS_GitHub>
nixpkgs/master a2a9b53 Bjørn Forsman: cdrkit: fix 'dirsplit' tool by depending on perl...
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 260 seconds)]
guest1100101 has quit [(Ping timeout: 260 seconds)]
mudri has joined #nixos
odi has quit [(Ping timeout: 248 seconds)]
takle has joined #nixos
tmaekawa has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
dywedir has joined #nixos
leat has joined #nixos
kanshazan has joined #nixos
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to staging: https://git.io/v5ddo
<NixOS_GitHub>
nixpkgs/staging bebdd7a Frederik Rietdijk: python.pkgs.subprocess32: 3.2.6 -> 3.2.7
<NixOS_GitHub>
nixpkgs/staging 96d15ea Frederik Rietdijk: python27: support test/support...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh merged staging into python-unstable: https://git.io/v5ddK
NixOS_GitHub has left #nixos []
mjgilliard has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
Wizek_ has quit [(Ping timeout: 246 seconds)]
<jluttine>
if i have a list of attribute sets, how do i merge them into a single attribute set using the same rules as nixpkgs does? that is, it doesn't just overwrite but it somehow intelligently merges the values
<NixOS_GitHub>
nixpkgs/master 6437b1c Joachim F: Merge pull request #29393 from rnhmjoj/nginx-lua...
NixOS_GitHub has left #nixos []
<mjgilliard>
Hi. Can anyone share a config for MacBook-Pro12,1 hardware with working wifi? I currently have it obtaining a DHCP lease but then enable to use the network, which is confusing. I get this error after dhcp `brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23`
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v5dxT
<NixOS_GitHub>
nixpkgs/master 983d014 Bjørn Forsman: fpart: init at 0.9.3
NixOS_GitHub has left #nixos []
cfricke has quit [(Ping timeout: 240 seconds)]
joko has joined #nixos
<joko>
Hello, I am trying to run pavucontrol and I get the following error: "Gtk:ERROR:gtkiconhelper.c:493:ensure_surface_for_gicon: assertion failed: (destination)"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to release-17.09: https://git.io/v5dxL
<NixOS_GitHub>
nixpkgs/release-17.09 1d156a6 Bjørn Forsman: fpart: init at 0.9.3...
NixOS_GitHub has left #nixos []
<joko>
Any idea what goes wrong? The window appears really quickly and the app crashed
<joko>
crashes *
eacameron has joined #nixos
<joepie91>
aaaaaand there we go again
<joepie91>
error: cannot download flash_player_npapi_linux.x86_64.tar.gz from any mirror
<joepie91>
xd1le: eh, perhaps, but that means 3 years of breaking system builds because of this issue :)
<joepie91>
which is... not great
<hyper_ch>
I wonder, who still requires flash?
hotfuzz has joined #nixos
pie_ has joined #nixos
<hyper_ch>
I mean what websites
xd1le has quit [(Ping timeout: 240 seconds)]
koserge has joined #nixos
orivej has joined #nixos
hotfuzz_ has quit [(Ping timeout: 248 seconds)]
erictapen has quit [(Ping timeout: 246 seconds)]
jellowj has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] alicebob closed pull request #29411: add buildGo19Package and use as default (master...buildgo19package) https://git.io/v5QHv
NixOS_GitHub has left #nixos []
koserge has quit [(Ping timeout: 240 seconds)]
koserge has joined #nixos
joehh has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
cfricke has joined #nixos
jellowj has quit [(Ping timeout: 246 seconds)]
koserge has quit [(Ping timeout: 264 seconds)]
ShalokShalom_ has joined #nixos
linuxnoob23 has joined #nixos
<linuxnoob23>
Where does nix store the fetched package tarballs?
<gchristensen>
/nix/store
joehh has quit [(Ping timeout: 248 seconds)]
mkoenig has quit [(Ping timeout: 255 seconds)]
<linuxnoob23>
It doesn't seem to contain tarballs. I want to prevent re-downloading all the stuff the next time.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
koserge has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
ShalokShalom has quit [(Ping timeout: 264 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
joehh has joined #nixos
erictapen has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
<linuxnoob23>
does nix ship with the nixos cache signature to check against?
<gchristensen>
it does
<gchristensen>
(the public key is cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=)
kanshazan has joined #nixos
<hyper_ch>
you know the public key by heart? oO
jellowj has joined #nixos
<gchristensen>
you don't? :) (no: cat /etc/nix/nix.conf | grep key)
stanibanani has joined #nixos
<hyper_ch>
that looks like a hacker thing what you do there
Infinisil has joined #nixos
<ben>
where does nix ship the cache signature from?
<hyper_ch>
(the internet)
<linuxnoob23>
head -c 2048 /dev/urandom
<gchristensen>
ben: I don't understand your question
<ben>
how is the trust bootstrapped when i first install nix?
<joepie91>
hyper_ch: older sites, mostly, as well as a lot of asian vendor sites (eg. hardware vendors)
<gchristensen>
it comes with the nix tarball, so the trust is bootstrapped when you decide the tarball you got was trustworthy
<hyper_ch>
joepie91: not sure what you refer to
<gchristensen>
ben: you can decide the tarball is trustworthy by, say, GPG verification of the install script (which contains sha256sums of the tarball): https://nixos.org/nix/download.html
jellowj has quit [(Ping timeout: 260 seconds)]
<linuxnoob23>
so if i download an untrusted channel tarball, the signatures in the cache variable will ensure the channel is legit?
<linuxnoob23>
gchristensen: there is no GPG sig on the link you provided.
<gchristensen>
HTTPS ensures you don't get an untrusted channel tarball, the signatures on the packages ensure the _packages_ are good
<linuxnoob23>
but the packages from hydra's cache are also delivered trough https
<gchristensen>
the signatures make it safe to user internal or http binary caches
<gchristensen>
note the channel is different from the binary cache. a channel is a set of nix expressions (these are only protected, currently, by https) the binary cache is the prebuilt version of those expressions
stanibanani has quit [(Ping timeout: 248 seconds)]
stanibanani has joined #nixos
<hyper_ch>
kernel 4.14. will be able to manage 128 petabye of ram.... sounds like I need to upgrade my 16gb....
<linuxnoob23>
finally, we will be able to compile chromium in a reasonable amount of time ...
<hyper_ch>
actually it's 128 petabyte of virtual memory and 4petabe physical memory
<hyper_ch>
so I only need to upgrde from 16GB to 4PB
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v5FvY
<NixOS_GitHub>
nixpkgs/master c8f43ed Tim Steinbach: linux: 4.13-rc7 -> 4.14-rc1
NixOS_GitHub has left #nixos []
cfricke has quit [(Ping timeout: 248 seconds)]
<joepie91>
Infinisil: so tl;dr I'm getting GPU lockups with the radeon drivers on the GPU I just put into my system, and I'm currently trying to figure out how to make it not do that :P
<joepie91>
why is it that GPUs always seem to be at fault when there are hardware issues..
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
odi has quit [(Ping timeout: 252 seconds)]
eacameron has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<Infinisil>
True dat
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<joepie91>
GPU vendors really need to get their shit together :P
michas_ has joined #nixos
<gchristensen>
I'd bet DMA is why :)
Guest98962 has quit [(Quit: Toodaloo padawans! 👣)]
<joepie91>
idk, it's not like GPUs are the only thing with DMCA
<joepie91>
DMA*
<joepie91>
that *was* the cause of my previous card's issues though :P
<joepie91>
not sure if you were there when I was complaining about it, but it was writing junk to my RAM
stanibanani has quit [(Ping timeout: 264 seconds)]
<joepie91>
to the GPU section when using proprietary drivers, to the *rest of the system* when using open-source drivers...
<joepie91>
the latter messed up a few storepaths :/
<joepie91>
okay, time for another test
<joepie91>
wish me luck..
guillaum1 has joined #nixos
hotfuzz has joined #nixos
<guillaum1>
How do you setup a recursive dev shell? To work I need some tools (such as emacs / git / clang), but they are not direct dependencies of my project, so I don't want to add them in my project. Calling two times nix-shell is a bit painful (and shell output is full of garbage). What is the recommanded behavior ?
peacememories has joined #nixos
<Infinisil>
guillaum1: You can use a shell.nix file alongside your default.nix, nix-shell prefers shell.nix over default.nix
<joepie91>
excellent - issue resolved, it seems
peacememories has quit [(Client Quit)]
<joepie91>
so, for future reference for other people running into this issue; if when using radeon drivers ("ati") your GPU starts producing "GPU lockup" / "ring <number> stalled for more than <time>" errors (in journalctl) under load, and your graphics hang, then you can fix this by disabling dynamic power management; `boot.kernelParams = [ "radeon.dpm=0" ];`
<Infinisil>
joepie91: How did you figure that out?
peacememories has joined #nixos
<joepie91>
in my case, the card is an... R9 270X I think?
<joepie91>
Infinisil: there was an issue thread somewhere that suggested this being the issue
<joepie91>
one sec, let me find it
<joepie91>
also, extra info: kernel version doesn't seem to affect it; got the same issue on 4.4.x and 4.9.x
<Infinisil>
I see
Acou_Bass has quit [(Ping timeout: 246 seconds)]
peacememories has quit [(Client Quit)]
<Infinisil>
I'm glad we're living in an age where Google and such exists :D
<guillaum1>
Infinisil: So you suggest I'm creating a shell.nix which contains as many derivation as in my default.nix and for each I'm overloading the buildInputs?
<Infinisil>
guillaum1: buildEnv could be useful
<joepie91>
okay, yeah, it's all running stable now, getting about 40-45fps in minecraft, occasionally up to 60fps, no freezing :D
eacameron has quit [(Remote host closed the connection)]
<Infinisil>
guillaum1: Hmm or maybe not, I haven't used nix-shell too much
eacameron has joined #nixos
<Infinisil>
bbl
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v5FfR
<NixOS_GitHub>
nixpkgs/master 8a09e51 Frederik Rietdijk: niff: init at 0.1
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/v5Ff0
<NixOS_GitHub>
nixpkgs/release-17.09 fe2f16e Frederik Rietdijk: niff: init at 0.1...
<fearlessKim[m]>
is there somewhere a tutorial explaining the whole python wrapping mechanisms. I am trying to mimic that for lua but it's hard to follow
sigmundv has quit [(Remote host closed the connection)]
<pie_>
tl;dr: you can upload packages to pypi with names similar to poular ones and people will download them, or whatever, and your packages can do bad things (tm). though that shouldnt be surprising i guess. but people generally assume package repos are safe yknow
<rycee>
ixxie: Just got home :-) What's up?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v5FUw
<NixOS_GitHub>
nixpkgs/master 64bf283 Daiderd Jordan: opensc: add darwin frameworks
NixOS_GitHub has left #nixos []
iyzsong has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/v5FUo
<NixOS_GitHub>
nixpkgs/release-17.09 523fb3c Daiderd Jordan: opensc: add darwin frameworks...
<rycee>
ixxie: Nope, the last mail I got from him was on Aug 6.
<ixxie>
rycee: thats a little dissappointing; I donated 50 euros to the cause
<ixxie>
rycee: which, you know, whatever - I would have donated to the NixOS foundation anyway
<joepie91>
pie_: yeah, that isn't an especially novel thing; package repos really should do something like levenshtein distance checks (especially against stdlib stuff) at the very least
michas_ has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v5FkR
<NixOS_GitHub>
nixpkgs/master daf07c9 Maximilian Güntner: hostapd/wpa_supplicant: update urls
<NixOS_GitHub>
nixpkgs/master aa818c5 Joachim F: Merge pull request #29467 from mguentner/wi.fi-urls...
NixOS_GitHub has left #nixos []
<rycee>
ixxie: Yeah. hopefully he's doing alright. I'll try sending him an email.
<joepie91>
gchristensen: Infinisil: guess who's having memory corruption issues again...
<joepie91>
:|
<joepie91>
I really don't get it
<ixxie>
rycee: aye aye! Life often gets in the way, tis true
<ixxie>
hope all is well there
<joepie91>
entirely different GPU, same problem
<rycee>
ixxie: You can use home-manager meanwhile ;-)
<joepie91>
different vendor, different model, even bought from a different country
<Infinisil>
joepie91: :O
<ixxie>
rycee: how handy is home-manager for deploying dotfiles accross multiple machines?
<joepie91>
related annoyance: apparently enabling ati_unfree ties xorg to an older version which causes a from-source build for KDE
<aristid>
flight and hotel for nixcon is booked \o/
<joepie91>
I'm less than happy about this :P
<Infinisil>
ixxie: I just set up to do this yesterday for this machine and my server, it works wonderful :D
<joepie91>
because building KDE takes _forever_
<aristid>
joepie91: the AMD graphics story in nixos is less than perfect :)
<joepie91>
aristid: this seems to be triggered by the xorg version change though
<joepie91>
ie. kde is only built by hydra against latest xorg
<rycee>
ixxie: I do it but it involves rsyncing the home-manager config and repo around. And needing to run the home-manager command on the machines. So unfortunately it cannot be part of the system configuration.nix, yeat.
<joepie91>
I would imagine that the same issue would occur with amdgpu_pro
<joepie91>
since that ties it to xorg 1.18
<aristid>
joepie91: which makes sense given that hydra only caters for the free package set
<joepie91>
(but haven't tested)
<aristid>
oh, amdgpu_pro has the same issue?
<Infinisil>
rycee: rsyncing a repo? Why not just push/pull?
<joepie91>
yes
<joepie91>
at least in 17.03
<joepie91>
amdgpu_pro is not compatible with xorg 1.19
<joepie91>
mind: amdgpu_pro is the proprietary version of amdgpu
<joepie91>
both radeon and amdgpu build fine against 1.19 apparently
<joepie91>
oddly, I don't believe I had from-source builds for XFCE for xorg 1.17
<aristid>
it's amazing how in 2017, it's usually cheaper to book hotels on their own site than on the portals
<joepie91>
so I'm not sure this is related to AMD drivers being proprietary
<rycee>
Infinisil: I'm lazy and doing an rsync of the configuration + home-manager repo seemed simpler than an rsync of the confguration + git push/pull :-)
<Infinisil>
rycee: Ah, so you don't have your config under git
<ixxie>
rycee: I was thinking of git rather than rsync, but sounds nice
<rycee>
The rsync does the system config + home-manager config + home-manager repo.
<Infinisil>
rycee: Yeah, when I make some home-manager changes I also need to pull/push that
<ixxie>
Infinisil, rycee - are your dotfiles public? I would love to see how you folks do it
<joepie91>
this looks wrong to me, unfree or not :)
<Infinisil>
ixxie: mac.nix is for my mac and dobby.nix for my server
<rycee>
ixxie: Unfortunately no. A few times I've tried to sanitize it for public consumption but never managed to go the whole way :-)
erictapen has quit [(Ping timeout: 240 seconds)]
<rycee>
My end goal would be to have home-manager (or nixup) integrated in the system configuration and deploy the other machines (and their users) through nixops.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/v5FIU
<NixOS_GitHub>
nixpkgs/master 6635149 Michael Raskin: julia_06: init at 0.6.0; make the default julia
<NixOS_GitHub>
nixpkgs/master ea1d5e9 Michael Raskin: libreoffice-still: 5.2.6.2 -> 5.3.6.1
NixOS_GitHub has left #nixos []
<Infinisil>
rycee: Why isn't that possible already? e.g. invoke home-manager in activationScript
<Infinisil>
s
erictapen has joined #nixos
<ixxie>
thanks Infinisil, ill have a look
<ixxie>
and thanks anyway rycee :)
<ixxie>
rycee: so completely declarative user configuration that is deployable
<rycee>
Infinisil: I suspect that the home-manager activation script is not sufficiently idempotent to run in the system activationScript (although I can't think of a specific problem at the moment).
<ixxie>
rycee: that is awesome :)
hamishmack has joined #nixos
<Infinisil>
rycee: Or if activationScripts doesn't work, how about a systemd unit
<ixxie>
rycee: what about sheenobu's nix home thingy? Have you considered joining forces with them as well?
<rycee>
Infinisil: In principle it shouldn't be far from it, though, but I think it will require some thinking. Perhaps to split the HM activation script to a part that builds the generation and creates its directories and whatnot and another part that runs the actual activation actions. Then to just run the activation actions in the system activation script and run the setup stuff earlier.
<ixxie>
Infinisil: but not exactly a fork? You mean its like a competitor with a subset of features or?
<Infinisil>
rycee: Oh that sounds good, currently there's no way to just activate a configuration
<rycee>
ixxie: nix-home is completely separate from Home Manager. It is quite a lot simpler and focuses on management of individual dot files.
<Infinisil>
Is there anything nix-home can do that home-manager can't?
<rycee>
So in principle I think Home Manager can do do everything that nix-home can. The home-manager command lacks `--rollback`, which nix-home has.
ryanartecona has joined #nixos
<rycee>
So if you want to do a rollback in home manager you have to manually run the activation script for the generation your want to restore.
<ixxie>
rycee: the home manager examples show configuration options for installing emacs packages; these don't seem to be listed on nixos.org though, are they your own making?
<joepie91>
yay, KDE finished compiling
<Infinisil>
ixxie: Look at the modules folder in home-manager
<rycee>
Should be relatively easy to add `--rollback` functionality to the home-manager command, just I haven't had time or need for it.
<joepie91>
that only took an hour!
<rycee>
ixxie: Yeah, these options are from the emacs module in Home Manager. Internally that module just uses `emacsWithPackages` from Nixpkgs so it is very simple.
<NixOS_GitHub>
[nixpkgs] joachifm pushed 14 new commits to release-17.09: https://git.io/v5FL7
<NixOS_GitHub>
nixpkgs/release-17.09 84f5bb3 Joachim Fasting: hardened-config: additional refcount checking...
<NixOS_GitHub>
nixpkgs/release-17.09 e15669f Joachim Fasting: hardened-config: enable the randstruct plugin...
<NixOS_GitHub>
nixpkgs/release-17.09 34f867d Joachim Fasting: hardened-config: build with fortify source...
NixOS_GitHub has left #nixos []
<S0rin>
Hey, I am using a nixos system (stable channel), but I would like to add a way to use a local checkout to override some packages, but I seems to have a syntax error, I add a let { local = import /home/my/nixpkgs
<Infinisil>
S0rin: Remove the "{"
<ixxie>
thanks Infinisil
<S0rin>
let local = import '/home/my/nixpkgs' {}; in { }
seequ has joined #nixos
<S0rin>
Infinisil: Sorry it was a typo I did not have a { after the let
<S0rin>
The error is : error: syntax error, unexpected $undefined, expecting ';'
<Infinisil>
S0rin: let local = import /home/my/nixpkgs {}; in ...
<S0rin>
Infinisil: thank you I will try it
<Infinisil>
Oh, but actually a string should work too, your error is probably somewhere else
<Infinisil>
Can you show the whole nix file, S0rin ?
<kanshazan>
Hey, how do I enable zsh-prezto on NixOS? I have programs.zsh.enable = true, and shell = pkgs.zsh; in my user config.
<kanshazan>
And zsh-prezto in systemPackages
<S0rin>
Infinisil: Removing the ' solve the problem, but yes I will dpaste my config 1 sec
leat has joined #nixos
<Infinisil>
S0rin: Ahh, yeah, single quotes don't work, but double quotes should too
<Infinisil>
S0rin: No need to paste your config if the problem is solved, unless you have another problem :P
<S0rin>
Infinisil: Yes it was the problem I didn't know single quote was not supported
<S0rin>
it is solved thank you Infinisil
<Infinisil>
S0rin: :)
<S0rin>
how often is upgraded the official unstable channel ?
<hyper_ch>
S0rin: depends
<Infinisil>
S0rin: if tests success no more than every ~2 days (because that's how long it takes to build usually), but if some tests break it could well take more than that, even weeks, until it gets fixed
aanderse-laptop has joined #nixos
chimay has quit [(Quit: WeeChat 1.9)]
<necronian>
Is anyone using the weechat-matrix-bridge package? I'm not sure how to set it up properly
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #27950: Fix gogs service in the absence of any passwords (master...jgertm/gogs-no-passwd) https://git.io/v7wKV
NixOS_GitHub has left #nixos []
<Infinisil>
Hey, rycee, I'm having some env vars problems, it seems that my ~/.zshenv has been sourced already before, maybe with pam or something, do you happen to know how to check what env vars pam sets?
takle_ has quit [(Remote host closed the connection)]
<joepie91>
Infinisil: so at this point the only real option left is "my motherboard is buggy"
<joepie91>
which is an absolutely bizarre problem to have
takle has joined #nixos
<Infinisil>
joepie91: And hard to solve :)
<joepie91>
Infinisil: not hard, just expensive
<joepie91>
lol
<Infinisil>
heh
<joepie91>
the solution is basically "get a new mobo"
<joepie91>
I might actually prod asrock support about this
<joepie91>
I've collected enough data by now to make this reproducible in a lab, I think
<bachp>
Hi, is there a way to create a symlink from in /etc to a file that is not in the nix store? I'm trying to add TLS support to Glusterfs and I would like to avoid having the private key stored in the nixstore. And glusterfs expects the key to be present in a folder /etc/ssl.
<nh2>
hi, how can I make an `etc.*` entry that links to a path I provide, instead of a path into the nix store?
<nh2>
bachp: lol
<joepie91>
which is kind of bizarre because I am not at all a hardware export
<bachp>
;)
<joepie91>
expert*
<nh2>
that was literally in the same second
* joepie91
slow clap
<joepie91>
nh2: don't tell me you're asking for glusterfs too :P
<bachp>
At least now we have everyones attention ;-)
kanshazan has quit [(Quit: Lost terminal)]
<rycee>
Infinisil: What is the value of your `home.sessionVariableSetter` setting?
kanshazan has joined #nixos
<Infinisil>
nh2: bachp: I haven't tried this, but setting `environment.etc."foo".source = "/some/path"` might work
<Infinisil>
rycee: zsh
<rycee>
If it is set to "pam" then HM will create `$HOME/.pam_environment`.
<Infinisil>
Ohhhh damn, I'm stupid
<ixxie>
Infinisil: I don't see any other dotfiles in your repo, I was looking for a way to manage dotfiles for other programs - say emacs - with the home manager for example
takle has quit [(Ping timeout: 260 seconds)]
<ixxie>
Infinisil: I guess I wasn't super clear
<Infinisil>
rycee: Never mind. I found the problem: I'm sourcing ~/.zshenv myself in ~/.xprofile and totally forgot about it, that's why every program has that env var set to that..
<rycee>
Ah :-)
<Infinisil>
ixxie: I'm pretty sure that's possible, hold on I'll try home.file."somefile".source = ./dotfileincfgrepo
<bachp>
Infinisil: No I tried that and it copies the file to the nix store and links there.
<Infinisil>
bachp: Ahh, hmm
ambro718 has quit [(Quit: Konversation terminated!)]
<Infinisil>
bachp: ixxie: same for home-manager, it puts it in the nix store and links that instead
<ixxie>
symlinks are fine of course
<Infinisil>
bachp: nh2: You could just add an activationScript that makes the link: `system.activationScripts.etclink.text = "ln ..."`
<ixxie>
all the editing will be done in the repo anyway
<ixxie>
thats the point right xD
<ixxie>
one repo to rule them all
<Infinisil>
ixxie: Yeah that works for me too
<Infinisil>
(but not for bachp)
<ixxie>
so Infinisil - in your example, "somefile" is the path it will write *to*?
<Infinisil>
ixxie: Yes, relative to ~
<bachp>
Infinisil: But I would need to take care to remove the links if the user deactivates the option
<Infinisil>
bachp: I mean if your link is there and you can access it, then you can also access the file it refers to, so I don't think it matter really
<rycee>
ixxie: Check line 80 for my setup of .emacs.d.
<ixxie>
sweet! thanks rycee
mattcode has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to release-17.09: https://git.io/v5Fqd
<ixxie>
rycee: this would work on linux systems too? Are any features NixOS specific?
<hyper_ch>
Mic92: online?
<ixxie>
rycee: the services presumably xD
<nh2>
Infinisil: the removal is not about whether somebody has permissions to view the file contents or not, it's to tell the program that reads it that the file is "gone". Also, where should we symlink? Straight into /etc? Into /etc/static?
<rycee>
ixxie: I can't say exactly where the limitation is but the base stuff should work for other Linuxes and macOS.
pie_ has quit [(Ping timeout: 240 seconds)]
<rycee>
The services should work for distros that use systemd.
Bettwaesche has quit [(Remote host closed the connection)]
<nh2>
Infinisil bachp: Maybe another alternative is to upload a symlink into the nix store, and have `etc."gluster/thekey".source = /nix/store/thesymlink` essentially, where `thesymlink -> configurablePath`?
<Infinisil>
nh2: /etc/static is a symlink to somewhere in /nix/store
<Infinisil>
So you can't modify it
aanderse-laptop has quit [(Quit: Konversation terminated!)]
<Infinisil>
(which is what static means :P)
<nh2>
OK fair enough :D
<nh2>
is there a nix lib function to make a symlink?
<ixxie>
so what is it NixOS can do but Nix on Linux cannot?
<Infinisil>
nh2: Not needed, it's just `ln`
<Infinisil>
`ln -s`*
<nh2>
Infinisil: do you mean at the activation script level? I was thinking the symlink could be a static file that goes into the nix store already at the build stage
<Infinisil>
nh2: bachp: That suggestion with symlinking outside the store won't work, paths in the store can't symlink outside
<bachp>
Infinisil: nh2 : I think I found something. If I change the type of the config from path to str it works.
<nh2>
ixxie: with NixOS you can declaratively manage (systemd) services, like activate nginx webservers and so on; nix on other Linux distributions cannot manage your services (it may not even have root access)
<bachp>
the entries in /etc/static point to the original files
<Infinisil>
nh2: Ahh right, then just setting etc."file".source should work, right?
<nh2>
Infinisil: what happens if you symlink out of the store? Does it error?
<Infinisil>
nh2: Yes
ehmry has left #nixos ["User left"]
<nh2>
bachp: I mean if setting it to `types.str` makes it work then that's certainly the cleanest solution, but we definitely have to put that info into the `description`
<ixxie>
nh2: rycee seems to think otherwise about managing services with Nix on Linux
<bachp>
nh2: If I set the the typo of the option to types.str then you won't be able to supply a types.path as nix will throw an error.
takle has joined #nixos
<nh2>
bachp: I mean more like describe that this string is a path *on the machine where glusterfs* runs; for plain NixOS users it doesn't make a difference because the system where they write the config and build the derivations is the one where gluster runs, but for nixops users those are different. You see what I mean?
<bachp>
nh2: The problem is that you will not be able to use pkgs.writeText to generate the file
<bachp>
nh2: Yes I see the issue there.
<nh2>
bachp: that is correct, you'd have to use "/run/keys/keyname.key" directly, or in newer nixops you can use `config.deployment.keys.keyname.path`
<bachp>
nh2: If I leave the type to `types.path` but then just supply it a string "/my/cert.pem" instead of a path /etc/mycert.pem it also works.
<nh2>
ixxie: that's cool if you can manage user services that way, but if you want to declare your system all the way down to the kernel and GRUB entries, I think the then you need to use NixOS
<nh2>
bachp: that sounds risky though (both in terms of that the type doesn't actually match, and that the user may pass in a store path accidentally). types.str sounds good to me
<ixxie>
nh2: true enough I am sure
<ixxie>
nh2: I would just like to have a clear idea about the line between the two to know how to make portable configurations
<bachp>
nh2: To be honest it's kind of confusing behavior of nix here. If I acceidently leave the "" around my path the key ends up in the nixstore.
<nh2>
bachp: yes, there is some really strange behaviour of ./paths in nix IMO, the weirdest is that if you use `toString ./path` it stays "./path" and doesn't get resolved IIRC
<bachp>
nh2: If I change it to `types.str` I wont be able to put a path e.g. via pkgs.writeText which is also bad if I don't care about my key being in the nix store
<Infinisil>
nh2: bachp: You can set the type to `types.either types.path types.str`
<Infinisil>
not sure how that's gonna work in the end though
<nh2>
bachp: you can still do that with pkgs.writeTextFile, that takes a string file contents and returns you a path you can give as the source
<bachp>
Infinisil: I think setting it to `types.either types.path types.str` wouldn't prevent from accidently write the key to the nix store
<nh2>
so if it's `types.str` you can still do `.source = pkgs.writeTextFile { text = "--- BEGIN PRIVATE KEY..."; })` if you don't care about your key ending up world readable (though IMO that is quite dangerous in most scenarios)
Sonarpulse has quit [(Remote host closed the connection)]
<nh2>
and then it is explicit that you want it
<Infinisil>
bachp: Ah right
<nh2>
bachp: so I'd go that way, and then we should rename the option, from "cfg.tlsSettings.tlsKey" to something like "cfg.tlsSettings.tlsKeyPath" so that it's clear that this is the file path, not the contents
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz created staging-17.09 (+159 new commits): https://git.io/v5Fm1
<NixOS_GitHub>
nixpkgs/staging-17.09 fd059ca Thomas Bach: manual: `name' is not an argument for `mkOption'...
<NixOS_GitHub>
nixpkgs/staging-17.09 d9afaff Thomas Bach: manual: fixed remaining placeholder literal...
<NixOS_GitHub>
nixpkgs/staging-17.09 a819f3b Thomas Bach: manual: reworked submodule section for better readability...
NixOS_GitHub has left #nixos []
<bachp>
nh2: Ok. But leave the other settings as is?
<NixOS_GitHub>
nixpkgs/master 64d8f4f Franz Pletz: Merge pull request #29493 from bachp/arangodb-3.2.3...
NixOS_GitHub has left #nixos []
arximboldi has joined #nixos
<arximboldi>
hi!
<arximboldi>
there is this fun tool in guix to plot a graph of the dependencies of a package... are there similar tools in Nix?
<srhb>
arximboldi: Yes, nix-store can do that.
<arximboldi>
nice, thanks!
<arximboldi>
I always find navigating the nix command space a bit intimidating, I am very looking forward to the upcoming new unified `nix` command :)
<srhb>
arximboldi: We all are. :)
griff_ has quit [(Quit: griff_)]
<thomad[m]>
Hi, is it possible to get the available version of ati- and nvidia-drivers via nix-env?
<srhb>
thomad[m]: nix-env -qaP | grep nvidia
<srhb>
Specifically, nvidia-x11, I believe
griff_ has joined #nixos
<srhb>
I don't know what the names of the amd/ati drivers are, but I'm sure you can find them.
<thomad[m]>
Does this only work in NixOS or also on top of other Linux distributions? On my Fedora machine it doesn't work
<thomad[m]>
ati-drivers
<srhb>
thomad[m]: How does it not sork?
<srhb>
work*
<thomad[m]>
The package is not listed but some others which contain nvidia
<srhb>
Which channel are you on?
<thomad[m]>
nixpkgs-unstable
<srhb>
That's odd, looks to me like they're there.
<srhb>
Just switched to nixpkgs-unstable, and I get a lot of results for nvidia-x11
<taaperotassu>
so only the nixos that has graphical usage contains networkmanager and u can use nmtui.. otherwise u are missing it.. and getting wireless to work becomes harder?
<srhb>
taaperotassu: Do you mean it's not possible to enable it without X? I'd find that surprising. How did you conclude this?
<thomad[m]>
what version of nix-env are you using?
<srhb>
thomad[m]: 1.11.15
<thomad[m]>
I only get nvidiabl and nvidia-texture-tools on Fedora with Nix 1.11.13 (nixpkgs-unstable) and NixOS (17.03) with a build of Nix 1.12.*
<taaperotassu>
I tried the 32bit version in my minilaptop and nmtui was not found srhb
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to staging-17.09: https://git.io/v5FO6
<NixOS_GitHub>
nixpkgs/staging-17.09 285ed1f Daiderd Jordan: darwin-CF: use @rpath for library id and add an rpath entry for CF based on NIX_COREFOUNDATION_RPATH...
<NixOS_GitHub>
nixpkgs/staging-17.09 f4af3c5 Daiderd Jordan: darwin-frameworks: use the system CF when frameworks are used...
<hyper_ch>
Infinisil: "Normally a separate boot partition needs to remain unencrypted as the bootloader needs to be able to boot the kernel before invoking LUKS, but because GRUB can load encryption modules such as crypto.mod, luks.mod, and cryptodisk.mod we can use GRUB in various settings and still gain a real full disk encryption model without the need for an unencrypted boot partition."
<Infinisil>
but full disk encryption sounds like 100% encrypted disk for me, which can't work
<hyper_ch>
it's easier described as full disk ecnryption than 99.9999999% disk encryption
<hyper_ch>
but generally this falls under full disk encryption
<hyper_ch>
even same goes on widnows with veracrypt
<Infinisil>
that's just a lie then, exactly that remaining percentage can be used as an attack vectore
<hyper_ch>
it's what it is nowadays and understood as full disk encryption
<Infinisil>
not a fan of that
<hyper_ch>
like when drives are advertised as 4TB and they use 1000 instead of 1024
<Infinisil>
if that's really true
<Dezgeg>
well, with uefi and secure boot you can prevent tampering (in theory)
<Infinisil>
That's something different, Having 24GB less memory does in no way compromise security
Sonarpulse has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
Infinisil: "Expressions full disk encryption (FDE) or whole disk encryption signify that everything on disk is encrypted, but the master boot record (MBR), or similar area of a bootable disk, with code that starts the operating system loading sequence, is not encrypted." https://en.wikipedia.org/wiki/Disk_encryption
* hyper_ch
thinks Dezgeg needs to get kicked for mentioning uefi :)
<Myrl-saki>
Well
<hyper_ch>
Infinisil: just get over it... it's the way it is
<Myrl-saki>
How do I statically link something that needs getprotobyname
<Dezgeg>
I don't like/use it either, but that actually does provide actual benefits compared to encrypting /boot (in case you manage to get it working)
sigmundv has quit [(Read error: Connection reset by peer)]
<Myrl-saki>
So
<Myrl-saki>
My nix-builds are not updating my `result` symlink properly.
<Myrl-saki>
That, or my ./result/... is not wroking properly.
<Infinisil>
Myrl-saki: You could add --out-link result2 to link it to result2 (maybe that helps to find the problem)
sigmundv has joined #nixos
<Myrl-saki>
True.
sigmundv has quit [(Remote host closed the connection)]
<Myrl-saki>
Thanks.
arximboldi has joined #nixos
chakerbenhamed has joined #nixos
<Myrl-saki>
That didn't work either
<JoJoen>
where would i find documentation for the `buildEnv` function?
<Myrl-saki>
Maybe `src = ./.;'
<Myrl-saki>
is not working properly?
<Infinisil>
JoJoen: nixpkgs I guess, by reading the source. It's in nixpkgs/pkgs/build-support/buildenv
<Infinisil>
Not sure if there is actual written documentation
<JoJoen>
that is also a form of documentation, thank you :D
<JoJoen>
i asked because i couldn't find any, you see
<Infinisil>
:)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v5Fnv
<NixOS_GitHub>
nixpkgs/staging c88fa59 Vladimír Čunát: perl-XML-LibXML: update and avoid failing tests...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gwitmond opened pull request #29503: Fix the automatic override for networking.nameservers when services.bind is enabled. (release-17.09...release-bind-fix) https://git.io/v5FnJ
<octe>
i want to run a service as another user then the one declared in the service's nix-file
<octe>
i thought i could set systemd.services.service.serviceConfig.User = "xyz"
<octe>
but then i get The unique option `systemd.services.sonarr.serviceConfig.Group' is defined multiple times
<octe>
is it the wrong way?
<toogley>
jtojnar: hm, i don't have a .desktop file in the share folder of the program
<jtojnar>
toogley: what program is that?
<LnL>
octe: you can use mkForce "xyz" to give your value a higher priority
<octe>
ah thanks
mudri has joined #nixos
<toogley>
jtojnar: volumeicon. for networkmanager-applett, there is already a *.desktop file in /nix/store/$hash-network-manager-applett/etc/xdg/autostart
<kezepema>
I'm trying to build an iso image for ArchlinuxArm on my NixOs device. The program "bsdtar" is necessary to extract the image, however NixOs shows on execution of the command "bsdtar -xpf <distributionname.tar.gz> -C </home/user/directory/>" the message "Ignoring malformed pax extended attribute" and "./usr/bin/openssl: truncated gzip input". I tried to install bsdtar, but it seems not available in /nix/store. I als tried to replace
<toogley>
jtojnar: however, it seems the networkmanager-applett desktop file wasn't generated to /etc
<toogley>
jtojnar: btw. i use awesome window manager, not a complete desktop environment like gnome
bennofs has joined #nixos
schaary has joined #nixos
arximboldi has quit [(Quit: arximboldi)]
<jtojnar>
you can try environment.etc."xdg/autostart/app.desktop" = { source = "[Desktop Entry]\nType=Application\nName=volumeicon\nExec=volumeicon"; }
<jtojnar>
toogley: ^
python476 has joined #nixos
hc has quit [(Read error: Connection reset by peer)]
hc has joined #nixos
<schaary>
I am about to run nix as package manager on macOS. Please can someone recommend a fish shell equivalent for `source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh` in a fish shell?
<jtojnar>
toogley: though neither arch wiki nor the awesome wm faq mention anything about xdg autostart so it might not be supported
<toogley>
jtojnar: even after changing "source" to "text", no volumeicon was visible after a restart. therefore, i decided it would be easier to run those programs from my window manager's config file. but thanks anyway. :D
<jtojnar>
toogley: they list supported XDG specs on their homepage and autostart is not among them so unless you convince them to implement it, that will be probably your best choic
glenn has quit [(Ping timeout: 264 seconds)]
<toogley>
jtojnar: ooh, okay
<toogley>
jtojnar: thanks
<rycee>
ixxie: ts468 contacted me early August and we had a discussion about how to resurrect #9250 and how to combine nixup and home manager for best effect. Basically NixUP is better integrated with NixOS while Home Manager is larger and more mature. So it seemed a good idea to try to take the best of both worlds. To do the integration would require some internal reworking of fundamental NixOS modules and tools (mainly related to
<rycee>
systemd), hence ts468's idea to have these donations to highlight that there is a large user interest in having declarative user configuration.
<rycee>
(with `writeShellScriptBin` you can skip the `#!${stdenv.shell}` line)
nix-gsc-io`bot has quit [(Client Quit)]
<roni>
is that what the example from reddit is doing
<roni>
rycee: ah, nice
<roni>
also, is this in the documentation somewhere?
griff_ has quit [(Quit: griff_)]
<rycee>
roni: No, that example doesn't really do any overriding. I'm not sure how to best replace a specific file of a derivation using the writeXYZ functions. It seems to me like it should be possible using priorities but I don't see an immediate way to set the priority of a writeXYZ derivation. Maybe somebody else has an idea?
<roni>
maybe it will help to explain what i want to do: basically, i would like to run chromium with the dpi flag, so it doesn't look tiny on my screen
<roni>
something like "chromium --force-device-scale-factor=1.5"
<rycee>
Ah, maybe with `hiPrio`?
<roni>
i'm not sure if wrapping the chromium package is the right way to achieve this
<rycee>
roni: No idea either. Seems like it should pick up something from X.
<rycee>
roni: In any case, installing something like `pkgs.hiPrio (pkgs.writeScriptBin "chromium" "#!${stdenv.shell}\nexec chromium --force-device-scale-factor=1.5")` may work. Emphasis on "may" :-)
<roni>
:-D
<roni>
thank you rycee!
<roni>
i will try that out
mizu_no_oto has joined #nixos
simukis has quit [(Ping timeout: 246 seconds)]
WinchellsM has quit [(Quit: Lost terminal)]
FRidh has quit [(Quit: Konversation terminated!)]
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
jellowj has quit [(Ping timeout: 255 seconds)]
<gchristensen>
how do I use bluetooth things with nixos?
<samueldr>
might depend whether it's audio-related or not
<gchristensen>
nevermind, I should ask Google the same question but for linux in general :P
<roni>
i figured something like that would be necessary
<roni>
in that case, what should i name the nix expression / package?
<sphalerite>
Where are you putting it?
<roni>
i'm not sure, probably in my "private" packages
<sphalerite>
if it's in an overlay, probably something other than chromium
mattcode has quit [(Read error: Connection reset by peer)]
<roni>
i.e. intuition is to override nixpkgs.chromium
<sphalerite>
otherwise I don't think it really matters
<sphalerite>
yeah that was my first thought too but that might break assumptions made by other packages
<roni>
it's starting to feel like maybe an alias declaration is actually the right way to do this (even if it's not the nix way)
jellowj has joined #nixos
<roni>
sphalerite: even within an overlay, there seems to be a package override mechanism - could i use that?
<sphalerite>
you could but there's no point
<sphalerite>
it allows a subset of what the overlay allows
<sphalerite>
an alias will only work in shells, so it's probably not what you want in this case
<roni>
sorry are you talking about the alias idea, or the overlay+override idea?
<rycee>
sphalerite: Sorry, yeah. I meant `${pkgs.chromium}` 😂D-
<rycee>
Umm, I meant :-D
griff_ has joined #nixos
<sphalerite>
wait that kind of override
<sphalerite>
I thought you meant packageOverrides
<sphalerite>
no, it's very unlikely that overriding is what you want because that will probably result in needing to recompile chromium. Which is not fun.
<rycee>
If that works, I guess it is the simplest solution :-)
<rycee>
Ah, "The chromium-flags.conf file and the accompanying custom launcher script are specific to the Arch Linux chromium package" :-(
JosW has quit [(Quit: Konversation terminated!)]
<roni>
rycee: :'(
<roni>
sphalerite: yes, i definitely don't want to recompile chromium - i was thinking more of overriding chromium with a package that delivers a shell script that invokes original chromium with the flag
<roni>
maybe using that writeShellScriptBin utility that rycee mentioned
<sphalerite>
Ugh, why must the word "override" be overloaded
<sphalerite>
Makes talking about this stuff so much more difficult
<roni>
hahaha sorry
hiratara has quit [(Ping timeout: 246 seconds)]
<roni>
i'm specifically talking about the packageOverrides thing from config.nix, but tbh i haven't gotten my hands dirty with that yet so i don't have a good working understanding of how it works
<sphalerite>
I'm not sure replacing the chromium in nixpkgs is a good idea as other stuff might be depending on its contents
<sphalerite>
packageOverrides is just the inferior predecessor of overlays
<roni>
ok
<sphalerite>
you shouldn't need it ever anymore :p
<roni>
so, if i *wanted* to do that (other packages' assumptions be damned) i could use an overlay with that "override" function that seems to come with each package, is that right?
<sphalerite>
no, you'd just use an overlay with the writeScriptBin
<rycee>
My suggestion was not to override the chromium package but to "overprioritize" the /nix/store/…/bin/chromium file :-)
<rycee>
So to install both chromium and the `pkgs.hiPrio (pkgs.writeScriptBin "chromium" …)` thingy. Then everything from chromium should be there but the chromium binary replaced by the script.
<sphalerite>
^ this is the approach that I'd prefer
<sphalerite>
Although you might want a desktop entry for it as well
ted_ has joined #nixos
<sphalerite>
Because it shouldn't break other packages' assumptions
<sphalerite>
oh yeah, and maybe add "$@" to the end of the script so that it passes through any other args
ted_ has quit [(Read error: Connection reset by peer)]
<roni>
rycee: ahhhh i see!
<roni>
sphalerite: what is a desktop entry?
<sphalerite>
roni: the thing that associates the program with an icon and a description for use in menus and such
<roni>
oh yes
<roni>
i use xmonad and dmenu here
<roni>
so no desktop icons for me :-D
python476 has quit [(Remote host closed the connection)]
<ktf>
hi, I get a cyclic dependency when trying to build / use pandoc (macosx, via nix-shell -p pandoc) but I get a cyclic dependency and nix-shell exits on startup. Any idea what I am doing wrong?
newhoggy has joined #nixos
erictapen has joined #nixos
<Fare>
ktf: maybe an update to one of pandoc's dependencies started to use pandoc for its docs...
endformationage has quit [(Quit: WeeChat 1.9)]
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar_ has joined #nixos
<sellout->
ktf: I was just about to say the same with jailbreak-cabal on darwin …
mizu_no_oto has quit [(Ping timeout: 240 seconds)]
glenn has joined #nixos
Fare has quit [(Ping timeout: 252 seconds)]
joehh has joined #nixos
<ktf>
sellout: yes, that's exactly my issue as well...
Fare has joined #nixos
hiratara has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
eacameron has joined #nixos
hiratara has joined #nixos
jbl007 has quit [(Quit: jbl007)]
arximboldi has joined #nixos
mizu_no_oto has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
griff_ has quit [(Quit: griff_)]
kriztw has joined #nixos
glenn has quit [(Read error: Connection reset by peer)]
andrewmcveigh has quit [(Ping timeout: 240 seconds)]
<benzrf>
hey, are there any kind of plans to set up something like a recursive callHackage?
<benzrf>
something where you can plug in a haskell package and have recursive dependencies of the correct versions?
jb55 has quit [(Ping timeout: 260 seconds)]
kriztw has quit [(Remote host closed the connection)]
newhoggy has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
Myrl-saki has quit [(Ping timeout: 240 seconds)]
sigmundv has quit [(Read error: Connection reset by peer)]
<roni>
rycee: sphalerite: it seems to have worked, but i didn't use an overlay - i just created a private package that does the writeBinScript thing
sigmundv has joined #nixos
<roni>
i'm not sure if i did this quite right... using writeBinScript directly doesn't let me put in version numbers for the package i created, nor a description, nor a buildInputs where i could express that this thing depends on chromium
<roni>
need some help understanding "import <nixpkgs>" - the version that's in my environment is 60.xxx, this is the one i can install after updating my channels and doing nix-env -iA nixpkgs.chromium
<roni>
but in the nix-repl, when i import <nixpkgs> and look at the chromium version there, it's 57.xxx
<roni>
can someone explain the discrepancy? i don't have a handle on what channels are exactly, and what <nixpkgs> is exactly
predator117 has quit [(Ping timeout: 246 seconds)]
<roni>
NIX_PATH shows that <nixpkgs> points to channels stored in /nix/var/nix/profiles/per-user/root/channels/...
<roni>
user channels are in .nix-defexpr; roots channels are in /var/nix/...; and the nix path can point anywhere it wants... for me it points to the root channels
<roni>
do i just have a weird setup?
<samueldr>
if you didn't touch the nix attributes in your configuration, probably not
<samueldr>
I know my setup is non-default, so I cannot exactly compare
<roni>
you have it set up like that to build packages out of a local clone of nixpkgs, right?
silver_hook has quit [(Ping timeout: 240 seconds)]
<samueldr>
don't take that as a good example, this was setup when I started a couple months ago and still haven't looked at why everything is setup like I did
<samueldr>
but yes
newhoggy has joined #nixos
<samueldr>
as you said, to track a specific commit
<samueldr>
I use my own copy of nixpkgs to synchronize the exact revision used by my 4 computers
<roni>
right, sounds legit
<samueldr>
though, I moved every customizations I had to overlays, just today
<roni>
samueldr: with your setup, you don't have to build things from source right? binaries get pulled from an appropriate cache?