<switchy>
forgive me if this is rtfm-able, but e.g. the hdf5 package has 'cpp' and 'mpi' options -- how do I specify things like that (and see what's available without looking at the package derivations themselves)
hio has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
_rvl has joined #nixos
<exarkun>
I spent a bunch of time looking at package derivation expressions.
<exarkun>
like just now I looked at nixpkgs.python3Packages.pygobject3 to see if there's some option to get Gtk support turned on
<adamantium>
Hey, I've never made a nixos systemd service before, or really any serious systemd service either. I have a one liner while loop I need to be running by root 24/7. Any good idea for how to turn this into a nix service?
<pie__>
switchy, i think you generally do have to read the source
<adamantium>
while inotifywait -r -e modify,create,delete /boot ; do rsync -av --delete /boot/ /boot2 ; done
<switchy>
pie__, fair enough, and how do I install a derivation (?) with those attributes (?)
<pie__>
adamantium, havent done it myself but i recommend looking at some existing service to see how to use the nix side of things (i think it corresponds pretty directly to the systemd options though)
<adamantium>
I can't even write a regular systemd service, is my problem i think
<pie__>
adamantium, so nix is probably the easy part and then you have to figure out what systems wants :V
<adamantium>
yes, that's what I'm saying.
<adamantium>
lol
<pie__>
adamantium, yeah haha. but this specific instance might have some stackexchange solution
<switchy>
ah, these are overrides? good to know the lingo
<pie__>
switchy, welcome to nix :D
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjKzo
<pie__>
infinisil, closing it because you dont care feels kind of odd :V id jsut say "im not dealing with this right now" and leave it open
<infinisil>
switchy: I might pick up that PR again eventually if there's enough people interested
<infinisil>
pie__: Hmm maybe
<switchy>
infinisil, I am very green to all of this, so I don't really know what I'm doing :)
<pie__>
switchy, its normal :3
<pie__>
switchy, good luck \o/ the community is very positive in my experience so do stick around, and when you git gud, give a hand ;D
<switchy>
I'm more than happy to get involved, if I ever get my head around what I'm doing ;)
<infinisil>
Yeah that's very customary, make sure to give the left hand if you're right-handed though, otherwise life will be tough!
<jackdk>
seconding pie__ 's statement. I've had a lot of help packaging stuff an getting PRs done. People are good but overloaded, but even so it's been one of the smoothest onboardings I've ha across packaging systems
<adamantium>
joehh: thanks!!! this actually is what I had started before you messaged me, http://ix.io/1Ntl/nix , but maybe I should do it your way might be better? (I haven't tested either, yet)
<{^_^}>
wrapgappshook redefined, was defined as Maybe this is one of those wrapGAppsHook/strictDeps things? (#56943)
<adamantium>
joehh: I like yours, will try it first. thanks
MmeQuignon has quit [Ping timeout: 258 seconds]
<pie__>
could just call a shell script if not<joehh> what you have looks good, though I'm not sure about being able to do the while and other shell type stuff in ExecStart
<joehh>
also biggest difference between what you have and what I have is you appear to be defining a module (something I have no experience with)
<lordcirth__>
samueldr, finally got it nearly working, then the VM ran out of disk
<joehh>
where my example is just defining a service directly
<samueldr>
lordcirth__: oh no
thc202 has quit [Ping timeout: 268 seconds]
<samueldr>
lordcirth__: just verified, still works with updated nixos-unstable
<exarkun>
jackdk: cool, wrapGAppsHook seems to have helped
<lordcirth__>
samueldr, I ran collect-garbage and I'm trying again. If this fails I'll expand the VM I guess
<pie__>
wrapgappshook is a fun one
<pie__>
kind of obscure i mean
<exarkun>
at least, the error is gone :) now I have to learn how to use this thing...
<samueldr>
lordcirth__: you likely only evicted whatever was built from the VM, without much else :/
<samueldr>
lordcirth__: unless you were bytes shy, it's likely to still fail
<lordcirth__>
samueldr, yeah, you're probably right. I'll just expand it now
<pie__>
is there some part of the manual that wrapgappshook could get mentioned so someone can actually find it
allenj12 has joined #nixos
<adamantium>
joehh: / pie__ thanks so far. Now im stuck http://ix.io/1Nto/nix with "error: The option `systemd.copyBoot' defined in `/nix-config/modules/services/copyboot.nix' does not exist."
lovesegfault has joined #nixos
<allenj12>
Hey I am trying to install nix but getting alignment issues when making the partitions. optimal_io_size is 0, minimum is 512, alignment_offset is 0, and physical_block_size is 512.
<pie__>
adamantium, read it over again ;)
<pie__>
adamantium, its simple mistake
<adamantium>
.serivces
<adamantium>
thanks pieeeee
<allenj12>
how can I set the alignment if optmimal_io_size is 0
<pie__>
adamantium, err..i think. re: i havent actually done this myself so im just guessing here
<adamantium>
the service is already enabled and working now
<adamantium>
LOL. Thanks!@
psy3497 has joined #nixos
<allenj12>
http://markelov.org/wiki/index.php?title=Warning:_The_resulting_partition_is_not_properly_aligned_for_best_performance. this is my exact scenario, but the result does not make sense, if im trying to make a swap at -8GiB... how is it still not aligned?
<clever>
sonercirit[m]: yeah,that rev is still on 20190618....
<monokrome>
ok samueldr, clever - so I figured out that the bottleneck on your display resolution seems to be coming from the dock inbetween the laptop and monitors
<monokrome>
X1 Carbon dock
<monokrome>
All 3 monitors work fine until I try to take those monitors over 1080p
* monokrome
explodes
<sonercirit[m]>
@clever I'm not sure what's wrong here, could it be related to systemd-boot?
<clever>
sonercirit[m]: one min
<sonercirit[m]>
ofc
<monokrome>
This was regarding my crtc failed xrandr errors last week btw*
<clever>
sonercirit[m]: what does `nix show-derivation /run/current-system/initrd | grep prepend` report?
<{^_^}>
[nixpkgs] @kalbasit pushed to master « protoc-gen-doc: init unstable at 2019-04-22 (#64093) »: https://git.io/fjK2Q
<allenj12>
ty, one more question, how does nix deal with things like i3 it seems that there is still a config file for that in home, can that be automated in a nix script? it seems like you can only set the config home directory
<lordcirth__>
allenj12, for user directory stuff you probably want home-managar
<lordcirth__>
manager*
<allenj12>
alright ty, ill look into that!
<allenj12>
I gotta sleep ty so much for all the help guys
allenj12 has quit [Remote host closed the connection]
adamantium has quit [Remote host closed the connection]
mthst has quit [Ping timeout: 245 seconds]
adamantium has joined #nixos
adamantium has joined #nixos
adamantium has quit [Changing host]
<adamantium>
hey im getting this message in journalctl every 3 seconds: Jul 01 21:12:50 latitude org.freedesktop.Notifications[8211]: WARNING: No icon found in path: 'dialog-information'
<adamantium>
What should I do
<{^_^}>
[nixpkgs] @kalbasit merged pull request #63927 → bazel: add a test asserting java and java proto → https://git.io/fjo5C
<{^_^}>
[nixpkgs] @kalbasit pushed to master « bazel: add a test asserting java and java proto (#63927) »: https://git.io/fjK2p
levdub has quit [Ping timeout: 245 seconds]
adamantium has quit [Remote host closed the connection]
<adamantium>
okay -- everytime dunst sends a notification, e.g. "notify-send foo" journalctl displays Jul 01 21:32:00 latitude org.freedesktop.Notifications[21817]: WARNING: No icon found in path: 'dialog-information'
<switchy>
is there a maximum length on strings or on array elements in configureFlags? I have an entry that seems to be ignored entirely if it's too long
slack1256 has quit [Remote host closed the connection]
<day|flip>
If it one with = '' fit w/e you want here ''; then no. you can fit the hole config file
m0rphism has joined #nixos
<switchy>
seems to get ignored with either quote style
<switchy>
if I put it in configureFlagsArray it works
adamantium has quit [Remote host closed the connection]
v0|d has quit [Read error: Connection reset by peer]
v0|d has joined #nixos
MmeQuignon has quit [Ping timeout: 244 seconds]
<eyJhb>
If I want to add a udevextrarules, which runs a systemctl command for suspending, would I then do ${pkgs.systemd}/bin/systemctl ?
niten has joined #nixos
jkachmar has quit [Quit: Connection closed for inactivity]
<etu>
eyJhb: Should be fine
<eyJhb>
Seems to work somewhat yeah. Lets see if it actually does hibernation then :p Kinda tired of the sudden black screen and no power, with no work saved
<clever>
LnL: i'll toss that into my script as well then
polmaan has quit [Ping timeout: 248 seconds]
<clever>
LnL: what exactly does kickstart do?
polmaan has joined #nixos
<LnL>
clever: was too late yesterday, don't understand why it doesn't just work
Guest80382 has quit [Client Quit]
<LnL>
it (re)starts the service
<clever>
LnL: then why is it not called restart? lol
zacts_pi has joined #nixos
<LnL>
but load of an enabled service with KeepAlive is true should be running!
<LnL>
yeah no clue :/
<clever>
error: anonymous function at /Users/nixos/.nixpkgs/iohk-ops/nix-darwin/test.nix:1:1 called without required argument 'host', at /Users/nixos/.nixpkgs/iohk-ops/nix-darwin/modules/basics.nix:5:17
<clever>
and this line, auto-generates an ExecStart = "foo --arg='bar'";
<clever>
so now you have
<clever>
my $cmd = 'foo --arg='bar'';
clacke_movim has joined #nixos
chris___ has joined #nixos
<clever>
LnL: trying to think of what the best solution is, a dozen writeText's? passAsFile and a runCommand for all of them? some nix code to escape things?
qqlq has joined #nixos
<chris___>
I've just done a fresh install of Nixos. Suddenly when I change one parameter relating to xserver.synaptic - on the next nixos rebuild I've got 7GB pending to be download... What just happened? It seems to be pulling in all sorts of packages included an unneeded / older linux kernel (4.19)?
<clever>
chris___: sounds like nix-channel wasnt in sync with what was installed, so its upgrading (or downgrading?) everything
logzet has joined #nixos
<LnL>
clever: is there something like <<-'EOF' in perl?
<clever>
chris___: double-check `sudo nix-channel --list` and maybe `--update` it
<dminuoso>
Just out of curiosity, how can it be that a package in the unstable nixpkgs channel fails to outright build? Im getting errors on some undefined references to symbols from gnome libraries when I try to build nixos-unstable.networkmanager?
<chris___>
I'm fairly certain I had the channels updated. I've just updated those channels again - and it's once again pulling all those packages along with an older Linux kernel. Why would it need to pull an older Linux kernel?
<clever>
13>Jul 2 09:23:29 nixoss-iMac com.apple.xpc.launchd[1] (org.nixos.nix-daemon): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
<clever>
13>Jul 2 08:22:55 nixoss-iMac com.apple.xpc.launchd[1] (org.nixos.nix-daemon): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
<clever>
LnL: 2 of the 3 macs failed again, but that was immediately followed by the kickstart you gave me, and then a 30 second sleep
<clever>
chris___: what channel are you on, and which kernel is it pulling?
<LnL>
interesting, so they fail too often and the backoff kicks in
<clever>
and the script isnt waiting long enough
<clever>
the new plist file doesnt send stdout/stderr anywhere
<clever>
so i cant tell why nix-daemon failed
statusfailed has joined #nixos
<chris___>
clever: Ah that was it! It's on an older channel! No idea why it's changed - but thanks for the pointer!
<clever>
LnL: the heredoc stuff should also deal with all the newline mess ive seen in a few execStarts
eyJhb has quit [Read error: Connection reset by peer]
eyJhb has joined #nixos
<LnL>
heh
<clever>
LnL: my short-term fix, was to just move things from serviceConfig.ExecStart to .script
<clever>
then nixos would shove it into a shell script and simplify ExecStart
clacke_movim has left #nixos [#nixos]
<clever>
second problem is .User and PermissionsStartOnly
lambda-11235 has quit [Quit: Bye]
<clever>
LnL: looks like perl supports 3 forms of heredoc, <<EOF, <<'EOF', and <<"EOF", the single-quote one wont interpolate vars, while the other 2 do
<clever>
channels-root points to roots profile (if you arent root)
<clever>
arianvp: for both of them, nix-channel --update will mess with nix-env -i to add the latest nixpkgs to the profile
thc202 has joined #nixos
<arianvp>
but NIX_PATH already hardcodes nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos
<arianvp>
so why even hasve channels_root ?
<clever>
arianvp: the second layer, is that nix-env will recursively search ~/.nix-defexpr/ for either foo.nix or foo/default.nix, (stopping recursion once it finds one), and that becomes foo in nix-env -iA foo.hello
ee1943 has quit [Ping timeout: 258 seconds]
<clever>
arianvp: NIX_PATH is used by 90% of the nix tools, ~/.nix-defexpr/ is only used by nix-env -iA
sigmundv has joined #nixos
<asheshambasta>
So, I'm new to NixOS and a user of Emacs. My current work-systems are a desktop at home and a laptop for on the go (I work remotely 3 days a week). I just copy over the .emacs and .emacs.d directories between the machines to get my emacs setup equivalent on both machines. Now, given the appeal of NixOS in the first place, I'd like to do away with emacs.d and .emacs and move it all to within NixOS. What is the sugges
<asheshambasta>
this?
<arianvp>
clever: aha
ee1943 has joined #nixos
<arianvp>
clever: so why doesn't NIX_PATH just link to /nix/var/nix/profiles/per-user/<my-username> directly?
<{^_^}>
[nixpkgs] @tadeokondrak opened pull request #64121 → nixos/programs/shell.nix: don't use unnecessary GNU-specific option → https://git.io/fjKoL
<clever>
LnL: next problem is serviceConfig.User, there is the question of sudo vs su vs just calling setuid in perl
<arianvp>
i'd go with setuid in perl i think
<arianvp>
clever: also sorry for adding all these fancy systemd features to master recently that are going to make your life more difficult
<arianvp>
=)
<clever>
arianvp: sudo was actually a pretty big pain to get working, pam throws a non-descript error if /etc/shadow is world readable
<clever>
and sudo checks with pam before dropping root
<clever>
and postgresql wont run as "root", and doesnt understand that docker root isnt root
Netsu has joined #nixos
<Netsu>
Hello. Is there any side-effect function to run git command in nix derivation? I want to get a `git describe --always --dirty` as a version of sources.
<clever>
LnL: ack!!, the heredocs all turn into "foo\n"!
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
dminuoso: yep, that would fix it
Guest11706 has joined #nixos
<m1cr0man>
kraem, I've been googling for a solution to systemd-timesyncd failing to start (state_directory error) and I came across irc logs where you removed the /var/lib/systemd/timesync symlink to resolve the issue. Was this the only solution in the end? I'm curious as to how it was even working before
<aveltras>
m1cr0man: i think you read my answer yesterday, i don't remembner having to do anything else
<asheshambasta>
aveltras: thanks, that looks promising.
<aveltras>
asheshambasta: if you want some example, i'm in the process of getting all my configuration on a github repo (i too have 2 computers), you can see it here https://github.com/aveltras/nix, i've not put emacs config on github yet but i guess it'll just be a symlink to a emacs.d folder there
o1lo01ol1o has joined #nixos
<asheshambasta>
aveltras: thanks, bookmarking.
inquisitiv3 has quit [Ping timeout: 268 seconds]
<clever>
arianvp: i just confirmed something interesting with oauth2_proxy
<clever>
arianvp: despite blowing the entire state of the docker image away, i was still signed in after booting a new image up!
<Netsu>
clever: thanks, didn't know about IFD pattern. Guess, it wold work for me.
<clever>
arianvp: the trick, is that the cookie.secret used by oauth2_proxy, is used to encrypt your current credentials, and shove them into a cookie
<clever>
arianvp: so as long as the secret is unchanged, the cookies are valid state, and oauth2_proxy doesnt need anything server-side!
<{^_^}>
[nixops] @domenkozar merged pull request #1171 → ec2: Recreate rules if security group was deleted → https://git.io/fjo6L
<m1cr0man>
aveltras, Ok thanks. I'm very confused as to why it worked at all before. I'm concerned that a rebuild or reboot may undo this manual change at some point.
<aveltras>
m1cr0man: i think this was a problem with systemd after one update but not specific to nixos, not really sure how all this works yet :)
<m1cr0man>
aveltras, Grand same boat as me so ;) Getting there slowly but surely!
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
Soo_Slow has joined #nixos
inquisitiv3 has joined #nixos
__monty__ has quit [Remote host closed the connection]
__monty__ has joined #nixos
<inquisitiv3>
I'm trying to build Atom's "Flight" manual, but I get the error "Your Ruby version is 2.5.5, but your Gemfile specified 2.4.2". I run t`script/bootstrap`
hyper_ch2 has quit [Remote host closed the connection]
<inquisitiv3>
I run the script `script/bootstrap` inside an Nix shell environment created with `nix-shell -p ruby_2_4 nodejs bundler`. `ruby --version` returns 2.4.5p335 inside the environment.
<inquisitiv3>
What and where should I do to get the manual to build?
<asheshambasta>
under what circumstances can notify-send hang? `notify-send foo` hangs for a long time and when it returns, nothing really has happened. I'm missing its dependency but I cannot see what.
<yorick>
asheshambasta: when there's no notify daemon running
<yorick>
(or when it's broken)
Guest11706 has joined #nixos
Guest11706 has quit [Changing host]
Guest11706 is now known as Miyu-chan
<asheshambasta>
yorick: makes sense, I have the libnotify and notify-osd packages in my configuration.nix, but I'm assuming I need to also enable a service for notifications?
<asheshambasta>
okay, so now notify-send doesn't hang, but I see no notifications, I probably need to configure dunst.
Makaveli7 has joined #nixos
Makaveli7 has quit [Read error: Connection reset by peer]
<Netsu>
clever: oh, maybe that because of 'cleanSourceFilter'
joehh has joined #nixos
<clever>
Netsu: yeah, that cleans up all kinds of junk, like .git
<etu>
asheshambasta: Do you use home-manager?
<romildo>
Although pantheon is enabled in `configuration.nix`, I still get the error message: http://dpaste.com/2WT1N42 Any clues?
<m1cr0man>
Is there any way for me to install a specific version of a particular package? QEMU 4 seems to break spice client resizing entirely so I want to go back to the last version
<etu>
asheshambasta: So yeah, I shouldn't push home-manager on you, but if you already was using it that would have been a great way to configure dunst
<karetsu>
what controls the timeout for display blanking and where is it set? I haven't chosen anything for it in any of my config and it ruins watching films on netflix :(
<karetsu>
using xmonad if that makes a difference
<tdeo>
"dpms" should be what you're looking for i think
<clever>
karetsu: ive found that simply installing xscreensaver radically changes the behaviour in that region, and also gives you options to control it
<infinisil>
But i just dealt with pressing a key every 10 minutes
<infinisil>
It's not so bad to be worth the effort looking into fixing it, yet :)
<clever>
karetsu: there is also `xset dpms force off`
<clever>
i'm not sure what i did to break dpms, but i need to use that to turn the screens back off when its night
<m1cr0man>
infinisil, Yeah I'm actually getting it on another OS too, and I'm also missing xscreensaver there
linarcx has quit [Quit: WeeChat 2.5]
Synthetica has joined #nixos
<karetsu>
infinisil: I did the same until I came down with a stomach bug and that become effortful >_<
inquisitiv3_ has joined #nixos
inquisitiv3 has quit [Read error: Connection reset by peer]
<karetsu>
should this be noted somewhere in the manual/wiki for others who have the problem?
<Netsu>
clever: thanks. Found a lot interesting at `lib/sources.nix`
o1lo01ol1o has joined #nixos
iyzsong has joined #nixos
astrofog has quit [Remote host closed the connection]
fendor_ has joined #nixos
fendor_ has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<exarkun>
so I have gnucash building some python modules... but they're not usable by a python interpreter without some help... I wonder what the right way to provide that help is
<exarkun>
I can't stuff them in python.withModules because gnucash is the wrong kind of thing?
o1lo01ol1o has joined #nixos
inquisitiv3_ has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<karetsu>
are they optional dependencies for gnucash?
cfricke has joined #nixos
Neo-- has quit [Read error: No route to host]
<exarkun>
I guess so, yea. they're not built by default and they're not built by the nix derivation.
Neo-- has joined #nixos
asheshambasta has joined #nixos
<asheshambasta>
I've been hearing of home-manager but I need to take the plunge soon.
domogled has joined #nixos
v88m has quit [Ping timeout: 245 seconds]
romildo has quit [Quit: Leaving]
hyper_ch2 has joined #nixos
<codedmart>
Can I read a file and coerce into `strings concatenated with "\n"`?
<fgaz>
No other distro has it (despite some failed attempts for example in AUR) as of now
adamt has joined #nixos
<fgaz>
I had to resort to several tricks (like the wrapper script), and now the game runs pretty well... if you are on NixOS. On other distros for some reason it segfaults
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « plantuml: 1.2019.6 -> 1.2019.7 »: https://git.io/fjKPi
hio has joined #nixos
<hyper_ch2>
clever: nixos can't manage zed right?
<gchristensen>
fgaz: we don't really want dead projects in nixpkgs
user___ has joined #nixos
<user___>
What is the recommended method of upgrading from 17.03 to 19.03?
<fgaz>
gchristensen: I suspected that... oh well, I'll keep it in my NUR
<user___>
I changed my channel to 19.03 and ran "nixos-rebuild switch --upgrade" and got an error that had to do with not having a version of Nix recent enough
asheshambasta_m has quit [Quit: Leaving.]
<gchristensen>
user___: I think you have to go through 18.03 first
<user___>
Ill try that, thanks
<fgaz>
gchristensen: but what about no longer maintained projects with a good build system that still mostly work. There's a ton of those in nixpkgs
<fgaz>
I guess those count more as "completed" than "abandoned" though
rprije has quit [Ping timeout: 258 seconds]
<hyper_ch2>
hmmmm, I think I need to write a ZED module
<hyper_ch2>
I'm surprised it doesn't exist already
Yakulu[m] has left #nixos ["User left"]
alpounet has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
alp has quit [Ping timeout: 264 seconds]
ilmu has quit [Ping timeout: 250 seconds]
asheshambasta has joined #nixos
<yorick>
my build failed (reproducibly), so I added --keep-going, now it works
mexisme_ has quit [Ping timeout: 268 seconds]
polmaan has quit [Ping timeout: 248 seconds]
polmaan has joined #nixos
kvaster has quit [Ping timeout: 248 seconds]
ericsagnes has joined #nixos
<Taneb>
I'm looking to moving my vim config to nix, but there's 3 plugins I use occasionally that aren't in nixpkgs. Is there an easy way to add them as an overlay?
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch227 has quit [Remote host closed the connection]
sindrip has joined #nixos
<Netsu>
I need to patch sources by `dune subst` command, I have dune in build inputs for that. But I got permission denied when run it at $src on build or patch phase. Where can I run it?
<Fellows>
I wonder what is the best way to ship these modules too?
sindrip has quit [Ping timeout: 260 seconds]
<philipp[m]>
How exactly does the nixpkgs staging branch work? What is the process of staging getting into releases?
<psyanticy>
@fellows I got you I think you need to copy them then do some dynamic linking but i think it s better for somebody else to answer you since i m not really sure about that
user___ has quit [Ping timeout: 245 seconds]
<Netsu>
Do I need IFD if just change sources by `cleanSourceWith`?
cfricke has quit [Quit: WeeChat 2.5]
<exarkun>
reading python.buildEnv but I can't see how I'd get more paths into the resulting python search path
<exarkun>
actually, not sure if I am reading python.buildEnv or not
<exarkun>
is this an example of that weird fixed point thing nix does
nschoe has quit [Ping timeout: 244 seconds]
<exarkun>
`buildEnv = callPackage ./wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };` but wrapper.nix takes `buildEnv` as an argument and defines itself in terms of its result...
ddellacosta has quit [Ping timeout: 248 seconds]
<exarkun>
mm okay (toPythonModule gnucash) convinces it to put gnucash's python stuff into site-packages, neat
<exarkun>
wonder if that's on purpose or by accident
<jabranham>
ivan: thanks for responding yesterday about my gpu failing. I didn't get your responses until just now because my gpu crashed :-( anyway, long story short is that after a very thorough cleaning, everything seems to be working today. Hopefully that was all that was needed.
<asymmetric>
hi! is there a way to enable fonts in a shell.nix?
<asymmetric>
i have a program that can't display special unicode when i use nix-shell --pure
<asymmetric>
but it can without --pure, cause it's using my system fonts
<Netsu>
oh, got it, dune required to `git commit` on patch phase, lol.
<samueldr>
asymmetric: updated the gist with a verified to work example
<samueldr>
(filled in more details)
<samueldr>
it sets the right environment variable
<samueldr>
though, maybe your software doesn't use fontconfig and that would make it not work, but the environment variable ends up set in my test shell
andreas303 has joined #nixos
h30 has quit [Ping timeout: 244 seconds]
Drakonis has quit [Ping timeout: 264 seconds]
Drakonis has joined #nixos
sindrip has joined #nixos
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soo_Slow has quit [Remote host closed the connection]
emptyflask has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
emptyflask has quit [Quit: WeeChat 2.4]
<codedmart>
If I have my normal 19.03 channel and added an unstable channel that I can use for certain packages. How can I write a nix file that everything I reference in it is using the unstable channel? Ie on the top you have `{ gtk3, glib, ...}` then the rest of the derivation.
<codedmart>
If I am working the correctly and makes sense.
Supersonic has quit [Ping timeout: 258 seconds]
<asymmetric>
samueldr: i see, the software not using fontconfig might be the problem
<Gopal[m]>
so I was curious if I could do this in Nix:
<Gopal[m]>
I'm on a ZFS Native encryption setup where I login at boot (dropbear) to load they key of the ZFS pool. Thing is Dropbear's host key keeps changing so I need to add `boot.initrd.network.ssh.hostECDSAKey = /path/to/key;` to my configuration. Since that key needs to exist, I would need to manually generate
<asymmetric>
do you know how to find out?
emptyflask has joined #nixos
jabranham has quit [Ping timeout: 244 seconds]
<Gopal[m]>
Is it possible to do `hostECDSAKey = ${some command generating the key and returning the path}` ?
<Gopal[m]>
or if I do it with the shell, is it possible to do `hostECDSAKey = /this/path || /that/path` ?
<dweller>
Gopal[m]: just copy that key to initramfs with boot initrd.extraUtilsCommands
wfranzini has quit [Remote host closed the connection]
Drakonis has joined #nixos
<devalot>
lordcirth: The key being "simple"? I've been using Prometheus and netdata. Prometheus is anything but simple. netdata is awesome for performance monitoring but Prometheus is much better for reporting application errors.
nschoe has joined #nixos
Xal has quit [Ping timeout: 245 seconds]
Xal has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<TheGamingBarrel>
Netdata is being weird for me, systemctl status shows it working perfectly but it doesn't try to run anything on port 19999 and all the other listening ports don't do anything /shrug
<{^_^}>
#63132 (by vcunat, 2 weeks ago, open): [WIP] Build nixpkgs with gcc 8 by default
<Athas>
Hm. Is it practical to switch my command line gcc, or will it cause ABI trouble? (I also don't want to recompile the world.)
<samueldr>
there should not be ABI troubles AFAIK
<Athas>
I don't much care which compiler has been used for my nixpkgs, but GCC 7.4 is crashing on my code!
chris___ has joined #nixos
<chris___>
nix-channel --update is taking forever on my side seemingly randomly. Is it maybe related to the cloudflare outage? Is there a way I can get around it?
<chris___>
samueldr: Well thats good to hear! It eventually resolved - took a while though - a minute?
<TheGamingBarrel>
Works fine for me chris___ on both my NAS and my personal laptop
<samueldr>
not 100% positive for the channels, it might be fastly, it might be the redirect from the nixos.org site, it may be amazon (depending where it failed)
<samueldr>
it might be that an edge server was a bit swamped
<Henson>
hi everyone, I'm trying to run a nix-shell with a the old gcc49 compiler. However when I run nix shell, even with something like "nix-shell --pure -p which" it ends up putting a bunch of things in the environment, include gcc version 7 which I don't want. I thought --pure was supposed to be a clean environment with nothing. How can I get adjust this behaviour?
trevorriles has joined #nixos
<samueldr>
it's pure when compared to the calling shell's environment; but by default it adds stdenv which has a compielr
<samueldr>
compiler*
<samueldr>
not sure about the best approach to get a shell without a compiler, and added packages using -p
<boeg>
Hey guys, I'm using nix on macos for development environments using nix-shell, and was wondering; is there a "best" way to use python and python packages not in the nix package repository on a nix environment? I see lots of different recommendations using pipenv, virtualenv, and then installing via pip, but they all seem a bit iffy, especially because then you have to load a nix env and then inside load a (python) virtual
<boeg>
environment and they aren't necessarily tied to each other, so existing the nix env doesn't necessarily exit the (python) virtual environment.
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « libpqxx: 6.4.4 -> 6.4.5 »: https://git.io/fjKHC
<boeg>
adisbladis: Hmm, how do I make sure the virtual environment only places stuff where nix can control it? So it's "contained" inside the nix environment?
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « matio: 1.5.15 -> 1.5.16 »: https://git.io/fjKHE
<adisbladis>
boeg: You dont pretty much... Before I've used a hash of the nix environment and derived virtualenv names from that so that a given virtualenv is only valid for that exact nix-shell
<blumenkranz>
Hello. Does somebody know how does NixOS package signing work? I mean, does Nix check whether packages are signed by Hydra, or is it vulnerable to MITM at some point of the upgrade process? I recall reading about this some time ago, but I can't for the life of me find it now
<simpson>
blumenkranz: Your Nix is configured with Hydra's key. Hydra signs everything it builds with that key. Nix won't install packages built by others without a signature like Hydra's.
<{^_^}>
[nixpkgs] @jabranham opened pull request #64192 → R: Update CRAN and bioconductor packages → https://git.io/fjK54
Soo_Slow has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
ris has joined #nixos
<samueldr>
eraserhd: might be fine, it's autopatchelfhook trying to patch any elf
<samueldr>
it might be stumbling into things that aren't
<samueldr>
in most cases it's fine to ignore
<Henson>
I just discovered something interesting. I'm trying to use a library from a really old nixpkgs commit, and it depends on the "curl" program. However this derivation is so old that the URL to download the curl source no longer exists. Does that mean it's impossible to use these derivations? You can't fake out a derivation that can no longer be built, and any change to the old curl derivation...
<Henson>
would break its hash and thus all the hashes of dependent programs. So you'd have to fork the nixpkgs at that point and edit the curl derivation, right?
<samueldr>
Henson: if you have the archive (e.g. tar.gz) it could be done, considering it's likely using a fixed output derivation for the source input
Ariakenom has quit [Quit: Leaving]
<samueldr>
and it's also possible that this particular fixed output is already on the cache.nixos.org cache
<Henson>
samueldr: it doesn't appear to be, because it's trying to build it. It's from back in 2014.
knupfer has quit [Ping timeout: 252 seconds]
<alienpirate5>
I'm trying to write a nix build file for my program that uses meson and requires gcc9, but when I run `nix-build` it runs meson and meson detects gcc 7 only. I am using `gcc9Stdenv.mkDerivation`, what could be causing this issue?
lacesz has quit [Remote host closed the connection]
Drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<Netsu>
/.. + (builtins.toPath (import ./default.nix {}).outPath) # => error: a string that refers to a store path cannot be appended to a path, at (string):1:1
<Netsu>
/.. + "/bin" # => /bin
<cransom>
are you literally trying to add a "/.." ?
<Netsu>
yeah
<gchristensen>
why?
<immae>
I still don’t understand why you’re trying to do that Netsu
<Netsu>
to transform string to path
<gchristensen>
something.out is a path already
<gchristensen>
in fact, `src = someDerivation;` is all you need to do
arjen-jonathan has quit [Ping timeout: 252 seconds]
<Netsu>
I try to `src = lib.cleanSourceWith { filter = p: t: true; src = drv.out; }
<Netsu>
but getting such error
<Netsu>
I need refer to other_derivation.out and filter it.
<Netsu>
.out is not a path. It's a set of derivation. And .outPath is string, not a path.
<Netsu>
isnt't it?
<gchristensen>
a `someDerivation` automatically becomes the type you need
<gchristensen>
I don't believe you can use cleaneSourceWith on a build result, that is intended to be used with, like, `src = ./.`
<Netsu>
so I change sources on each step, and then build it
<gchristensen>
what you're asking to do is very strange
wuji[m] has joined #nixos
<Netsu>
gchristensen: well... because I need some metainformation from sources, and doing some preprocessing first to build the package.
<Netsu>
gchristensen: why so? Just replace templates in sources, put proper version in placeholders, and then forward that sourced to next derivation to build.
<Netsu>
I use nixpkgs as a build environment
<Netsu>
is there better way to do it?
<gchristensen>
anyway, no need to use cleanSourceWith
lambda-11235 has joined #nixos
Guest41737 has quit [Quit: WeeChat 2.4]
<gchristensen>
if you need to clean the result of a build, runCommand could do it
<gchristensen>
with some `rm` or whatever
<gchristensen>
cleanSourceWith is for when you haven't already copied stuff in to the store
chris___ has quit [Quit: Lost terminal]
<Netsu>
gchristensen: so there's some fundamental difference between source directories and directories in store, right?
<gchristensen>
only in very specific scenarios
<gchristensen>
and cleanSourceWith is maybe the _only_ scenario where this difference matters
<Netsu>
expected that I can have custom src for new derivation from out of previous one
<gchristensen>
IFD is typically not wanted though
<gchristensen>
so
<gchristensen>
I very much recommend against what you're doing
<Netsu>
I do not using IFD in repo, just for CI stages
<gchristensen>
yes, I don't understand why, and I recommend against it, even for CI stages, though I'm not sure what that means exactly
<Netsu>
ok, thanks, I'll try to rewrite with simply `rm`, thank you
<pie__>
does nix-hash automatically put something in the store?
<{^_^}>
[nixpkgs] @flokli opened pull request #64195 → scikits-odes: init at 2.4.0 → https://git.io/fjKdY
<{^_^}>
[nixpkgs] @vcunat pushed commit from @gloaming to master « maintainers: add gloaming »: https://git.io/fjKdG
blumenkranz has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<alienpirate5>
I'm trying to write a nix build file for my program that uses meson and requires gcc9, but when I run nix-build it runs meson and meson detects gcc 7 only. I am using gcc9Stdenv.mkDerivation, what could be causing this issue?
<m1cr0man>
Hi folks. Having an issue with acme.PreliminiarySelfsigned. It doesn't seem to create the preliminary certs and I can't start my web server. I looked at the nix config for acme and it's supposed to create some systemd targets but I can't see them either
freeman42x has quit [Ping timeout: 252 seconds]
rfold has quit [Ping timeout: 272 seconds]
<m1cr0man>
actually..there could be a bigger issue at play on my box, since networking.nameservers seems to have no effect on the resolv.conf too