<WinchellsM>
i.e., serving as the default expression to be evaluated when running nix-env
<WinchellsM>
Without an -f argument
<WinchellsM>
?
<tilpner>
Pfft, failed to parse calendar specification :(
<tilpner>
Sounds like a good explanation, WinchellsM
<tilpner>
(But I have no doc to back it up)
<tilpner>
"--file ... Specifies the Nix expression ... default is ~/.nix-defexpr"
<mpcsh>
tilpner: yeah, so I think it has to be absolute?
<tilpner>
mpcsh - It?
<tilpner>
Oh, sorry, read "obsolete" :c
<mpcsh>
tilpner: system.autoUpgrade.dates
<mpcsh>
haha
<tilpner>
But where is that specified in the docs?
<tilpner>
systemd.timer(5) doesn't seem to say so
<mpcsh>
tilpner: "Defines realtime (i.e. wallclock) timers with calendar event expressions. See systemd.time(7) for more information on the syntax of
<mpcsh>
calendar event expressions. Otherwise, the semantics are similar to OnActiveSec= and related settings."
<tilpner>
Oh, so timestamps are not calendar events? That would explain it
<mpcsh>
Maybe?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/v5i8y
<NixOS_GitHub>
nixpkgs/master 6a17c5a Shea Levy: libappstream-glib: Properly set rpath
NixOS_GitHub has left #nixos []
<mpcsh>
idk I really don't feel like diving deep into systemd's time semantics
<mpcsh>
All I know is "0/6:00:00" works
<mpcsh>
oh huh, so it actually looks like "0/6:00:00" means "every hour that is divisible by 6, on the hour"
<mpcsh>
interesting
<mpcsh>
I mean that works for me so whatever :)
ktf has joined #nixos
<WinchellsM>
But ~/.nix-defexpr just has two symlinks: one to channels and the other to channels_root
U007D has quit [(Ping timeout: 240 seconds)]
<WinchellsM>
So what expression does nix-env find?
<WinchellsM>
From ~/.nix-defexpr?
thc202 has quit [(Ping timeout: 248 seconds)]
ktf has quit [(Ping timeout: 246 seconds)]
<WinchellsM>
I'm assuming it somehow winds up in a default.nix somewhere from those two symlinks
<WinchellsM>
Or maybe the rule is that it just uses `~/.nix-defexpr/channels/nixos/nixpkgs`
<WinchellsM>
and hence `~/.nix-defexpr/channels/nixos/nixpkgs/default.nix`
<tilpner>
WinchellsM - The names channels and channels_root are ignored
<tilpner>
I misplaced the link that explains this well...
<tilpner>
Uhm. If you have .nix-defexpr/{a/{ab, ac}, b/{bd}}, it's effectively mapped to { ab = import ~/.nix-defexpr/a/ab {}; ac = import ~/.nix-defexpr/a/ac; bd = import ~/.nix-defexpr/b/bd {}; }
<tilpner>
So then you could nix-env -iA ac.hello
<tilpner>
Note that .nix-defexpr also accepts text files. Mine looks like nixpkgs.nix stable.nix unstable.nix
<tilpner>
(~/.nix-defexpr/stable.nix. Here the names are not ignored...)
jellowj has quit [(Ping timeout: 240 seconds)]
<julm>
Does anyone know a way to avoid that the packages used by nixops to provide a host be garbage collected? Running nixops in a: nix-shell -p nixops --indirect --add-root gcroots/dep --run is not enough
apostolis has joined #nixos
jellowj has joined #nixos
<apostolis>
Is there a way to tell nixos to use a specific package version? It keeps downloading alex-3.2.2 which has a problem.
<NixOS_GitHub>
[nixpkgs] fuzzy-id opened pull request #29166: Minor fixes plus rework of submodule section (master...fix-manual2) https://git.io/v5iRc
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fuzzy-id closed pull request #29166: Minor fixes plus rework of submodule section (master...fix-manual2) https://git.io/v5iRc
NixOS_GitHub has left #nixos []
bennofs has quit [(Read error: Connection reset by peer)]
Supersonic112 has quit [(Disconnected by services)]
ktf has joined #nixos
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fuzzy-id opened pull request #29167: Rework of submodule section plus minor fixes (master...fix-manual2) https://git.io/v5iR9
NixOS_GitHub has left #nixos []
oida_ has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
oida has quit [(Ping timeout: 260 seconds)]
apostolis has quit [(Quit: WeeChat 1.9)]
fuzzy_id has quit [(Ping timeout: 252 seconds)]
lambdamu_ has joined #nixos
jb55 has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
lambdamu has quit [(Ping timeout: 252 seconds)]
Wizek has quit [(Quit: Connection closed for inactivity)]
ktf has quit [(Ping timeout: 255 seconds)]
jellowj has quit [(Quit: WeeChat 1.7.1)]
countoren has joined #nixos
<countoren>
hi, im trying to install purescript from nix packge manager: get me this error: build of ‘/nix/store/mhll3p0fnlc71gr4hm6wmz0cql1qh4vk-purescript-0.11.6.drv’ failed. Any help?
<tilpner>
That error message really doesn't tell us anything
<countoren>
Language/Haskell/HsColour/Classify.hs:52:18: warning: [-Wtabs] Tab character found here, and in six further locations. Please use spaces instead. [ 6 of 16] Compiling Language.Haskell.HsColour.Colourise ( Language/Haskell/HsColour/Colourise.hs, dist/build/Language/Haskell/HsColour/Colourise.o ) running tests Package has no test suites. haddockPhase installing Installing executable(s) in /nix/store/a9mnf1y8iyn5m6rnjgy4315gj4
<tilpner>
That doesn't either. But the fact that purescript isn't cached suggests it's broken. Let me see if there are any issues
<countoren>
yes that what i was thinking. ok thanks.
<tilpner>
Nope, purescript compiles fine here
<tilpner>
(where here == 17.09)
<countoren>
you are compiling it on nixos or the package manager?
<countoren>
i have the package manager running on osx
<tilpner>
That is an invalid question. Nix the package manager compiles it on NixOS
mpcsh has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<countoren>
let me rephrase, are you running it on nixos or another os?
MarcelineVQ has quit [(Remote host closed the connection)]
ktf has joined #nixos
MarcelineVQ has joined #nixos
ktf has quit [(Ping timeout: 252 seconds)]
vaibhavsagar_ has quit [(Quit: Leaving)]
garbas has quit [(Quit: WeeChat 1.7.1)]
vaibhavsagar has joined #nixos
scribble_ has quit [(Remote host closed the connection)]
scribbler has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #29168: gopherclient: init at 2016-10-02 (master...gopherclient) https://git.io/v5i6w
NixOS_GitHub has left #nixos []
scribbler has quit [(Ping timeout: 248 seconds)]
countoren has quit [(Quit: Page closed)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/v5i66
<NixOS_GitHub>
nixpkgs/master 1550242 Dan Peebles: yubikey-manager: 3.1 -> 4.0...
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
<peterhoeg>
Hey all. Does anybody know how to manually rebuild the manual to check on some doc changes I made?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vaibhavsagar opened pull request #29170: znc: fix network example configuration (master...fix-znc-network-example) https://git.io/v5iiR
NixOS_GitHub has left #nixos []
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vaibhavsagar opened pull request #29171: znc: open firewall with configured port (master...znc-open-firewall) https://git.io/v5iiM
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v5i1Q
<NixOS_GitHub>
nixpkgs/master 758c597 Peter Hoeg: kget: init at 20170903
NixOS_GitHub has left #nixos []
ktf has joined #nixos
scribbler has quit [(Ping timeout: 240 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
ktf has quit [(Ping timeout: 246 seconds)]
mfiano has joined #nixos
mfiano has quit [(Client Quit)]
mfiano has joined #nixos
ThatDocsLady has joined #nixos
griff_ has joined #nixos
ThatDocsLady has quit [(Read error: Connection reset by peer)]
griff_ has quit [(Ping timeout: 248 seconds)]
MoreTea has joined #nixos
ktf has joined #nixos
MoreTea has quit [(Client Quit)]
ktf has quit [(Ping timeout: 246 seconds)]
rtjure has quit [(Ping timeout: 248 seconds)]
rtjure has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<taaperotassu>
my polybar doesnt show my wifi.. at arch linux it needed wireless_tools .. wondering whats the same package in nixos. To show my wifi module.
<clever>
taaperotassu: what does "type iwlist" say when ran?
<clever>
taaperotassu: nixos will automatically install wirelesstools if you networking.wireless.enable = true;
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #29158: pythonPackages.ofxclient and pythonPackages.osprofiler: remove argparse from requirements (master...ofxclient) https://git.io/v5iYb
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
jsgrant has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/v5iDQ
<NixOS_GitHub>
nixpkgs/release-17.09 45e518d Frederik Rietdijk: Merge pull request #29158 from nlewo/ofxclient...
NixOS_GitHub has left #nixos []
jsgrant has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v5iD7
<NixOS_GitHub>
nixpkgs/staging dab3272 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #29079: python.buildEnv: install out and lib outputs (master...buildenv-python) https://git.io/v5rU4
NixOS_GitHub has left #nixos []
ericsagnes has quit [(Ping timeout: 252 seconds)]
ahawkins has joined #nixos
markus1189 has joined #nixos
markus1189 is now known as predator11
predator11 is now known as predator117
freeman42x has quit [(Ping timeout: 255 seconds)]
<jasom>
How does nix deide where a name ends and a version begins? I have created two packages named lisp-1am-20141106-git and lisp-3bmd-20161204-git and installing one replaces the other (I assume because it thinks the -3* and -1* start a version string)
Nergal has quit [(Ping timeout: 240 seconds)]
<joachifm>
jasom: see builtins.parseDrvName
Guest35041 has joined #nixos
jluttine has joined #nixos
Guest35041 has quit [(Remote host closed the connection)]
zeus_ has quit [(Remote host closed the connection)]
MarkusBarthlen has joined #nixos
<sphalerite>
jasom: yep it's a bit of a pain. I'm not sure but maybe using an underscore instead would work
JosW has joined #nixos
<jasom>
is there any agreed-upon convention for packages that start with a number?
ktf has joined #nixos
<jasom>
hmm, I guess if I removed the lisp- it would solve things that start with a number; I can check if there are any that have internal words that start with a number. Or just use underscores
<TimePath>
I use a similar technique to create docker images for a node app at work
<TimePath>
one issue we ran into is when some development dependency pulls in a different version of some third party module to what a production dependency does
takle has joined #nixos
<TimePath>
since it's packaged with webpack, the wrong dev version makes it into prod :)
<sphalerite>
Ralith: so seequ did oversell it a bit :D :p
Phillemann has joined #nixos
<Phillemann>
To find out if a package with a certain name exists, I currently do nix-env -qaP | grep name. But that takes some time. Is there a faster way to find out on the command line?
Myrl-saki has joined #nixos
<Myrl-saki>
So
<Myrl-saki>
Does anyone know how `wine` receives `nixpkgs.config`
<TimePath>
sphalerite: I think he was just happy to not be downloading all the node_modules every damn time :)
<sphalerite>
TimePath: that is nice
stepcut has joined #nixos
<sphalerite>
Myrl-saki: this is just a guess, but probably in all-packages.nix
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.09: https://git.io/v5iHh
<NixOS_GitHub>
nixpkgs/release-17.09 c25f2b3 Franz Pletz: nixos/release: xmonad isn't release-critical...
NixOS_GitHub has left #nixos []
ktf has joined #nixos
fuzzy_id has quit [(Ping timeout: 246 seconds)]
<sphalerite>
srhb: the change looks sensible. What exactly do you mean by a dedicated graphics setup though?
<srhb>
sphalerite: I mean someone using eg. only an Nvidia card, never intel.
<sphalerite>
ah right
<srhb>
The issue doesn't appear to affect those, so I just want to make sure the fix doesn't bother them either.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.09: https://git.io/v5iQJ
<NixOS_GitHub>
nixpkgs/release-17.09 fbe46c7 Rob Vermaas: Snapper: use gcc5, as there is not upstream patch for gcc6
NixOS_GitHub has left #nixos []
<sphalerite>
Hm, my flatmate has a desktop machine running purely on nvidia graphics. Maybe I could test it on his by installing nixos on my external hard drive
<sphalerite>
Although we probably have people running nixos on their desktops already
<srhb>
sphalerite: That sounds like a lot of work, perhaps some other people in the issue I linked can be helpful. :)
<sphalerite>
taaperotassu: hm, polybar's wifi thing works out of the box for me
<TimePath>
dedicated desktop nvidia user present
<sphalerite>
srhb: it isn't that much work with nixos ;)
<sphalerite>
but yes, that would be simpler :D
<TimePath>
though it's a really old card, not sure if it matters
<sphalerite>
don't think it does
<sphalerite>
taaperotassu: I'll have a look and see if I can work out why it might not be working for you
<srhb>
sphalerite: Well, thank you for offering, I might poke you if no one responds. :)
<srhb>
TimePath: I don't think it does :)
bennofs has joined #nixos
<TimePath>
cool, how do I pull a PR on github again?
deltasquared has joined #nixos
* TimePath
is used to people working within the same repository
thc202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.09: https://git.io/v5iQ3
<NixOS_GitHub>
nixpkgs/release-17.09 c651a0c Rob Vermaas: gnupg: add gnupg2 alias/symlink for 2.2. Otherwise signing commits with git break.
NixOS_GitHub has left #nixos []
<srhb>
TimePath: Erm, something like git fetch pr/25957/HEAD
<TimePath>
I'll just do the obvious thing and add your fork as a remote if it comes to that
<deltasquared>
howdy folks, I was curious as to how nixos runs the process of setting up the "link farms" in generated profiles. is it just a simple merge of all the directories in a profile's component packages, or is there something more intelligent going on
<srhb>
Ugh, I forgot to do it on a branch... Messy.
<TimePath>
I operate in detached head mode more than most
<srhb>
deltasquared: I blame the hangover...
<srhb>
Best time to contribute, amirite
<srhb>
:|
<deltasquared>
srhb: just don't drink and dd
<deltasquared>
for the love of god
<deltasquared>
I usually just sudo chmod the disk node to my admin user before doing anything with dd, one more layer of confirmation
<sphalerite>
the number of times I've used dd with of=/dev/sda since getting this laptop is terrifying
<srhb>
:D
<deltasquared>
sphalerite: ever dd a USB drive full of portfolio exercises?
<deltasquared>
I had to redo that in a week -_-
<sphalerite>
(because it doesn't have an internal disk, so the first USB stick will show up as sda)
<deltasquared>
sphalerite: no internal disk? is it an emmc or something
<sphalerite>
deltasquared: nope… and I also keep reasonable backups
ktf has quit [(Ping timeout: 246 seconds)]
<TimePath>
`git fetch origin pull/25957/head` doesn't seem to take
<sphalerite>
deltasquared: err, no internal *ATA* disk
<deltasquared>
sphalerite: I learned since then, needless to say
takle has joined #nixos
<TimePath>
doing the raw git thing
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FPtje opened pull request #29182: haskellPackages.ghc-proofs: Disable hydra builds for ghc<8.2 (master...fix-ghc-proof) https://git.io/v5iQE
NixOS_GitHub has left #nixos []
<sphalerite>
it's nvme :D
<deltasquared>
lucky sh- err.... lucky you. :P
<sphalerite>
thankfully of=/dev/nvme0n1 is rather awkward so it wouldn't even occur to me to write that :D
jsgrant has quit [(Quit: jsgrant)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 2 new commits to master: https://git.io/v5iQg
<NixOS_GitHub>
nixpkgs/master 08a3d80 Rob Vermaas: Snapper: use gcc5, as there is not upstream patch for gcc6...
<NixOS_GitHub>
nixpkgs/master 5dcf5d6 Rob Vermaas: gnupg: add gnupg2 alias/symlink for 2.2. Otherwise signing commits with git break....
NixOS_GitHub has left #nixos []
<deltasquared>
eh, like dd is really effective on SSDs anyway
jsgrant has joined #nixos
<deltasquared>
well, I guess against script kiddies it'd be useful
<sphalerite>
I've only really used it to write images to USB sticks
<sphalerite>
lots of images to lots of USB sticks
<deltasquared>
archiso, every time...
bennofs has quit [(Ping timeout: 248 seconds)]
<TimePath>
I've used it to take files apart
<srhb>
TimePath: I got the number wrong, it's 29180 -- but I still can't get it to work with the pull thing.
<srhb>
Weird.
zeus_ has joined #nixos
<TimePath>
I just added a remote
<TimePath>
should have tried that first; it always works :)
<deltasquared>
so yeah, anyone got any ideas wrt my question up there (I admit there wasn't a question mark...), I wanted to play around with the idea to generate home directories in a tmpfs on a non-nix system, and I thought I'd learn from the best as it were :P
<sphalerite>
srhb: each pr has a "head" ref and a "merge" ref. I'm not sure which is which, but my intuition would be that "merge" is what the PR wants to merge into "head"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v5iQo
<NixOS_GitHub>
nixpkgs/staging c86eb1d Vladimír Čunát: stdenv bootstrap: fix evaluation...
NixOS_GitHub has left #nixos []
<srhb>
Aha
<srhb>
git fetch upstream pull/29180/head
<deltasquared>
sphalerite: oh, so that'd explain what's going on when I try to git fetch into a bare
<srhb>
Because in this case head is lowercase, obviously
<srhb>
So this should be cleanest: git fetch upstream pull/29180/head:steampatch
<srhb>
Should give you a steampatch branch
<sphalerite>
(I only know this because I've been fiddling with git ls-remote for a thing recently)
<deltasquared>
steam huh... what broke this time
<TimePath>
I just checked out in detached head mode
<sphalerite>
deltasquared: just making the newStdLib or whatever it's called no longer an option/always on
<TimePath>
srhb: yes it does work when the MR # is right ;P
<avn>
pull/$number/head is a common github feature?
<srhb>
avn: Yeah.
<deltasquared>
Infinisil: got a link, I'm still not accustomed to where everything nix-related lives
jsgrant has quit [(Client Quit)]
<srhb>
For some reason it's not *right there* on the PR page, which drives me nuts.
<srhb>
I should make an alias..
jsgrant has joined #nixos
<srhb>
TimePath: I think it took five minutes or something like that to build here, for the record.
<avn>
very nice feature, never heard about it before
<srhb>
avn: It is nice. :)
<TimePath>
srhb: I'm currently fetching all the other changes I don't have
<srhb>
TimePath: Thanks for helping :)
zeus_ has quit [(Ping timeout: 255 seconds)]
<TimePath>
srhb: I can also take the card out entirely and just use the intel integrated if need be
<TimePath>
which is actually just as fast as my old card
<deltasquared>
TimePath: what GPU you got there
<TimePath>
really old nvidia GTS 250
<Infinisil>
deltasquared: everything nix-related to home-manager? The only thing you need is ~/.config/nixpkgs/home.nix which defines your home, (and you need the package of course, which can be done in configuration.nix or config.nix)
<sphalerite>
TimePath: I have a 9800GT in my old desktop :p
<deltasquared>
Infinisil: I meant the program source code
<TimePath>
sphalerite: I will never understand model numbers :P
<sphalerite>
oh yeah, the other option besides adding a whole remote for it is just `git fetch https://github.com/srhb/nixpkgs nixos-unstable` and then it'll set the FETCH_HEAD ref
<TimePath>
until they adopt something more semver
<Infinisil>
deltasquared: Ah, well this doesn't matter where, you just need to reference is when creating the package with (import path/to/checkout { inherit pkgs; };)
<deltasquared>
TimePath: I had fun trying to help someone who was a *little* bit inexperienced on #archlinux trying to use an RX Vega 56, which was a little bit experimental...
<sphalerite>
TimePath: what I'd really like is if manufacturers would just name their stuff according to a (year, high-end/mid-range/low-end) scheme
griff_ has joined #nixos
<deltasquared>
Infinisil: I should emphasise, *non-nix system* in the above :P I wish to study the modus operandi
<TimePath>
sphalerite: deal
<srhb>
TimePath: I was able to test intel myself :)
<srhb>
TimePath: And intel/bumblebee on nvid
<srhb>
I just can't test dedicated only.
<Infinisil>
deltasquared: Ohh, you mean not even nix is available?
<deltasquared>
Infinisil: nope. I wish to learn from the ideas in it
<TimePath>
deltasquared: that's part of the reason I haven't upgraded
<Infinisil>
deltasquared: I see
<deltasquared>
buggerit, I'll look up the source code in the derivation... what's the git repo for unstable again
<TimePath>
the new stuff probably won't work, and when it does work, it will be more affordable
<deltasquared>
TimePath: hence I got my brother to get an RX 580.
<deltasquared>
which is *somewhat loud* through walls -_-
<sphalerite>
TimePath: I finally got the nvidia graphics in my laptop working after 5 months of owning it the other day
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ma27 opened pull request #29184: yabar: minor derivation improvements (master...yabar/install-hooks) https://git.io/v5iQN
NixOS_GitHub has left #nixos []
<TimePath>
It took me a few hours to find the right nvidia blob I needed
<sphalerite>
It turns out that if the nvidia driver is loaded while the GPU is powered off, it will gladly hang the kernel while waiting for a response from it
<TimePath>
thankfully it's in nixpkgs
<TimePath>
O.o
<srhb>
sphalerite: ...nice
<TimePath>
yeah this is gonna be a while
<sphalerite>
so until they fix that with a proper timeout or something, I have to ensure that the GPU is powered on when I start X or suffer
<TimePath>
I switched to git nixpkgs in august
<TimePath>
haven't updated since
<sphalerite>
(I can safely turn it off once X is running)
<srhb>
TimePath: Do you want me to rebase it onto some other channel?
<sphalerite>
TimePath: that sounds… suboptimal
<TimePath>
I could probably do that
<srhb>
TimePath: Yeah, it should apply just fine on basically any channel.
<TimePath>
but if I test it on an older version, who's to say it works on the newest?
<srhb>
True enough, but if it works at all I think there's a good chance. :)
<sphalerite>
deltasquared: archiso doesn't seem to be in nixpkgs?
<srhb>
But yeah, 17.09 or unstable is better here.
<TimePath>
I need to update anyway, right? :P
<srhb>
Yes! :D
<sphalerite>
oh, it's for building images not putting them on devices
<TimePath>
I was tracking nixos-unstable
<deltasquared>
sphalerite: whaddya talking about, who said I was looking for it in there
<TimePath>
just, the one in august
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/v5i7U
<NixOS_GitHub>
nixpkgs/release-17.09 5f15a9f Vladimír Čunát: stdenv bootstrap: fix evaluation...
NixOS_GitHub has left #nixos []
<sphalerite>
that's what nixos is for :p
<sphalerite>
TimePath: oh right august… I haven't caught up with the calendar in my head, I was thinking august last year
<TimePath>
sphalerite: spoiler: there's an august in every year
<sphalerite>
whoa whoa whoa whoa hold on
<sphalerite>
what
<deltasquared>
grah, which subdir is home-manager under... not sure if it'd go under applications, data, misc or something else
<TimePath>
at least in the gregorian calendar
<Infinisil>
deltasquared: You puttin home-manager in nixpkgs?
<sphalerite>
deltasquared: I just have ~/projects
<sphalerite>
oh wait
<deltasquared>
Infinisil: no, just trying to find the derivation expression in nixpkgs
<Infinisil>
deltasquared: I don't think it's there afaik
<TimePath>
these paths will be fetched (1657.85 MiB download, 6065.06 MiB unpacked):
<deltasquared>
Infinisil: -_- darn
athan has quit [(Remote host closed the connection)]
<TimePath>
that's after however much it just downloaded
<Infinisil>
deltasquared: I guess it's because it's in delevopment and often changing it makes sense to use a checkout and pull to update
<deltasquared>
Infinisil: well if it ain't in the unstable nixpkgs, where would it be hiding
<TimePath>
as an entirely separate project?
<deltasquared>
well no-one's giving me pointers so I guess I'll google
<Infinisil>
deltasquared: It's not in nixpkgs as said
* TimePath
wonders if there's some repository out there of wrappers around common utilities to provide a nicer CLI
<Infinisil>
similar to how gpg has existed for so long and the CLI is not very nice but nobody wrote a better frontend?
<TimePath>
well, people already have scripts using it, so most of the time you have to stay compatible
<sphalerite>
I should write a wrapper that makes the block size big and checks that nothing on the block device is mounted, maybe also checks the device name and asks me to confirm
<TimePath>
or use a different executable name
<deltasquared>
status=progress which version of coreutils did that appear? that would have saved me reaching for the pipe for | pv
<deltasquared>
so many times
<sphalerite>
Infinisil: what's wrong with gpg's cli?
freeman42x has joined #nixos
<TimePath>
deltasquared: going to guess <8 months ago?
<Infinisil>
sphalerite: I admittedly haven't used it too much, but I heard people say that a lot
<deltasquared>
TimePath: welp, I guess that shows I never freaking read man pages
<sphalerite>
deltasquared: it's had it at least since I started using nixos in October
<taktoa>
I didn't spend too much time thinking about that list, it was just a dump of stuff I use commonly off the top of my head
<taktoa>
TimePath: I think there's an argument to be made that Nix should be a real language
<taktoa>
for instance, imagine if, instead of the tower of babel we have with language specific package managers, they were all nix scripts
<taktoa>
so like the Cabal resolver would be a Nix expression
<TimePath>
on the other hand I like that we don't duplicate effort, and just shell out to what exists
<aminechikhaoui>
Hi all, any idea why the public registration for NixCon <https://registration.nixcon2017.org/> is not available ? when I try to register it shows "No public registration yet."
<taktoa>
TimePath: yes, I'm talking about a world in which we could somehow get everyone to adopt Nix and drink the koolaid
<TimePath>
everything in nix would be sweet though
<TimePath>
^^
<TimePath>
I'd push nix as a requirement on some projects I'm involved on if there was windows support
<taktoa>
yeah that's definitely the hardest part. mingw-w64 only takes you so far
<TimePath>
if it even works
<TimePath>
there was a period where cross compiling broke
<TimePath>
but yes, native builds too
<TimePath>
nix is in the ideal position to be the ultimate cross compiling toolchain
<taktoa>
definitely
<TimePath>
I've even though about replacing build systems with nix
vandenoever has quit [(Ping timeout: 248 seconds)]
<taktoa>
TimePath: I spent last summer working on that as my job :)
ShalokShalom_ has joined #nixos
<TimePath>
and? impedance match?
<taktoa>
getting Haskell packages to build incrementally by exploding the GHC module build graph into derivations
<TimePath>
mismatch?
LnL has quit [(Quit: exit 1)]
<TimePath>
ah, dependency scanning
<taktoa>
it was very difficult; I got some stuff working but ultimately came to the conclusion that we need recursive Nix to do this properly
<sphalerite>
taktoa: awesome, thanks! I've been writing a little tool and using System.Process.Typed for calling external stuff, do you know how that compares to turtle?
<TimePath>
well, I got recursive cmake working, so recursive nix can't be that difficult considering it's more of a real language
freeman42y has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] basvandijk opened pull request #29190: haskell: fix build of LambdaHack (master...fix-LambdaHack) https://git.io/v5idx
NixOS_GitHub has left #nixos []
<taktoa>
TimePath: recursive Nix = run nix-build inside a nix-build sandbox; a patch exists for it but was never merged and has now bitrotten
<taktoa>
sphalerite: on the spectrum from DSL to library, seems like typed-process leans closer to the "library" end than turtle
<TimePath>
taktoa: recursive cmake = run cmake inside a cmake build with a different toolchain
ShalokShalom has quit [(Ping timeout: 240 seconds)]
<TimePath>
a patch exists for multiple toolchains but was never merged and has now bitrotten
<taktoa>
rip
<Infinisil>
aminechikhaoui: There is only a public registration if less than 150 of the top contributors signed up, they have priority
zarel has joined #nixos
ahawkins has quit [(Quit: Connection closed for inactivity)]
<TimePath>
cool stuff not being merged tends to happen if it only benefits a few
freeman42x has quit [(Ping timeout: 240 seconds)]
<TimePath>
especially if the alternative is something like "just run it twice from your shell"
Fendor has joined #nixos
<sphalerite>
Infinisil: I don't think it would say "no public registration yet" if that were the case
<taktoa>
TimePath: fwiw I know of at least 3 industrial users of Nix that REALLY want recursive Nix (well, to be precise they really want incremental Haskell builds)
<aminechikhaoui>
lame I'm not in the top 150 contributors :D
<aminechikhaoui>
next year goal
<sphalerite>
aminechikhaoui: someone was asking earlier, apparently opening it was something to do manually
<sphalerite>
aminechikhaoui: or maybe it's not planned to open yet
<sphalerite>
aminechikhaoui: it would certainly be nice if they made it clear what time registration opens at :/
freeman42y has quit [(Ping timeout: 240 seconds)]
freeman42x has joined #nixos
<TimePath>
actually..
<taktoa>
TimePath: no, because then you have to implement the semantics of cabal in Nix
<taktoa>
recursive Nix allows you to simply replace GHC with an invocation of nix-build
<TimePath>
taktoa: what if we stripped all programs of whatever module system they use, and force the user to specify that within nix, which then handles prepending it to the source files?
<aminechikhaoui>
sphalerite: yeap
<taktoa>
basically gives Nix the power to safely do ccache-like things
scribbler has joined #nixos
<taktoa>
TimePath: then you break all tooling and you don't get incremental builds "for free". this is similar to the Bazel approach.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5iF0
<NixOS_GitHub>
nixpkgs/master 72673e6 Jörg Thalheim: arm-frc-linux-gnueabi-binutils: mark as broken
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/v5iFE
<NixOS_GitHub>
nixpkgs/release-17.09 ee1aba6 Jörg Thalheim: arm-frc-linux-gnueabi-binutils: mark as broken...
NixOS_GitHub has left #nixos []
scribbler has quit [(Remote host closed the connection)]
<TimePath>
right, how could I forget
<TimePath>
fixing all the tools isn't going to happen
<taktoa>
implementing that, fixing all the tools, and porting projects over to it is a hell of a lot harder than getting recursive nix merged :P
<TimePath>
indeed
oida_ has joined #nixos
reinzelmann has joined #nixos
<TimePath>
import scanning it is, then
<taktoa>
TimePath: ghc -M doesn't support Template Haskell
scribbler has joined #nixos
scribbler has quit [(Remote host closed the connection)]
<taktoa>
and Cabal knows nothing of modules
scribbler has joined #nixos
<taktoa>
it just calls ghc --make
scribbler has quit [(Remote host closed the connection)]
<TimePath>
I meant if we wanted a pure nix build system
freeman42x has quit [(Quit: Leaving)]
<taktoa>
ah, yes
<TimePath>
back to previous topic
<TimePath>
currently I have some issues with that + cmake + a custom language
<taktoa>
TimePath: oh, btw, my original intention was to make anything that generates Ninja build incrementally through Nix
oida has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FPtje opened pull request #29191: tests/elk: Fixed failing build on i686. (master...fix-test-elk-i686) https://git.io/v5iF7
NixOS_GitHub has left #nixos []
<taktoa>
including CMake builds
MarkusBarthlen has quit [(Remote host closed the connection)]
<taktoa>
unfortunately, it turns out that the semantics of Ninja (in particular, depfile) are ill-suited for this purpose
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vanschelven opened pull request #29192: Trying a less disruptive patch for Cuneiform (release-17.09...cuneiform) https://git.io/v5iFd
NixOS_GitHub has left #nixos []
<taktoa>
but it would've been cabal2ninja + ninja2nix
<aristid>
sphalerite: it contains multiple compilers and an eclipse IDE, i think
<sphalerite>
>_> all that just to compile blender with cuda
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c closed pull request #29192: Trying a less disruptive patch for Cuneiform (release-17.09...cuneiform) https://git.io/v5iFd
NixOS_GitHub has left #nixos []
<taktoa>
TimePath: although I didn't come out of the project with very much progress towards incremental builds, I did make a nice library for dealing with Ninja in Haskell: https://hackage.haskell.org/package/language-ninja
<TimePath>
I think I've seen this before actually :)
<sphalerite>
Has anyone got blender with CUDA-accelerated cycles rendering working on nixos?
<taktoa>
TimePath: lol you've gotten me sufficiently fired up about recursive Nix that I'm writing a comment/rant on https://github.com/NixOS/nix/issues/13
__Sander__ has quit [(Ping timeout: 260 seconds)]
<sphalerite>
I've got blender supposedly with cuda support using `NIXPKGS_ALLOW_UNFREE=1 nix-shell -p 'blender.override { cudaSupport = true; }'` but it doesn't detect any compute devices. I'm running it with primusrun
zeus_ has joined #nixos
<thblt>
Hi! Stupid question: where are attribute names (as opposed to packages names) defined? I've GitHub-searched the nixpkgs repository, yet couldn't find a single reference to poppler_gi, except as a dependency.
<sphalerite>
Oh, and it says `CUDA cuInit: Unknown error`
<sphalerite>
thblt: top-level ones are in pkgs/top-level/all-packages.nix
python476 has joined #nixos
<thblt>
sphalerite: thanks!
zeus_ has quit [(Ping timeout: 264 seconds)]
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5iN2
stanibanani1 has quit [(Ping timeout: 240 seconds)]
stanibanani1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/v5ipe
<NixOS_GitHub>
nixpkgs/master 0d8e157 Sander van der Burg: zsnes: restrict building to x86-based Linux platforms only, znses' core is written in x86 asm code
NixOS_GitHub has left #nixos []
zeus_ has joined #nixos
free_beard has quit [(Remote host closed the connection)]
zeus_ has quit [(Ping timeout: 246 seconds)]
erictapen has quit [(Ping timeout: 252 seconds)]
Isorkin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vanschelven opened pull request #29198: PyBrain: Mark as broken (release-17.09...pybrain) https://git.io/v5ipa
NixOS_GitHub has left #nixos []
<srhb>
TimePath: Did it run? :)
<srhb>
TimePath: Oh, I see you replied to the PR. Thanks! :-)
mizu_no_oto has joined #nixos
stanibanani1 has quit [(Ping timeout: 252 seconds)]
Infinisil has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.09: https://git.io/v5ip7
<NixOS_GitHub>
nixpkgs/release-17.09 2ccdac8 Rob Vermaas: shaderc: mark as broken
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/v5ip5
<NixOS_GitHub>
nixpkgs/master b7ac21f Rob Vermaas: shaderc: mark as broken...
NixOS_GitHub has left #nixos []
<hyper_ch>
what package contains the file binary to check the character encoding of a file?
jensens has quit [(Remote host closed the connection)]
phinxy has joined #nixos
<ben>
how much effort is it to compile haskell to statically linked binaries that'll run outside of nixos?
stanibanani1 has joined #nixos
phinxy has left #nixos []
<ben>
my naive approach gets me as far as ld complaining about not finding anything in libc
jsgrant has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] moretea opened pull request #29199: mcrl2: Force use of gcc5 to prevent compilation errors (master...mcrl2) https://git.io/v5ihB
NixOS_GitHub has left #nixos []
jsgrant has quit [(Client Quit)]
jsgrant has joined #nixos
<JosW>
Amsterdam Meetup how is it going?
athan has quit [(Ping timeout: 252 seconds)]
<JosW>
see lots of activity on pr's :)
<disasm>
eqyiel[m]: it does not, but you can always do let manual = import /path/to/nixpkgs/doc and then do something with manual.
jensens has joined #nixos
<jluttine>
wtf.. i get "The option 'foo.bar' defined in '/path/to/something.nix' does not exist" error, although i only have foo.bar defined for options, not in config. and this error should be raised the other way around, when i define it in config but there's no option definition for it
athan has joined #nixos
<jluttine>
what am i misunderstanding
Infinisil has joined #nixos
<jluttine>
i have a default defined for it in options, that's why i'm not giving any value in config
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vanschelven opened pull request #29200: python-unicorn: include explicit dependency on python 2 during build (release-17.09...unicorn) https://git.io/v5ijt
NixOS_GitHub has left #nixos []
<makefu>
jluttine: you have a code snippet?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz closed pull request #29199: mcrl2: Force use of gcc5 to prevent compilation errors (master...mcrl2) https://git.io/v5ihB
NixOS_GitHub has left #nixos []
jsgrant has quit [(Quit: jsgrant)]
jsgrant has joined #nixos
<silver_hook>
How do I make KTP (KDE Telepathy) work? Are there missing deps to the packages or a meta package I’m missing?
stanibanani2 has joined #nixos
stanibanani1 has quit [(Ping timeout: 255 seconds)]
stepcut has joined #nixos
jsgrant has quit [(Client Quit)]
jsgrant has joined #nixos
ShalokShalom_ is now known as ShalokShalom
zeus_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5ijp
<freeman42x>
stanibanani2, I don't see anything obviously wrong with it, maybe someone else could help. Maybe trying some divide-and-conquer on the problem might help, dunno :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] roberth opened pull request #29206: NixOS Manual: document assertions and warnings (master...nixos-manual-assertions-warnings) https://git.io/v5Pvq
NixOS_GitHub has left #nixos []
<silver_hook>
freeman42x: Any idea how you fixed it or did it just pop up at some point?
scribbler has joined #nixos
<freeman42x>
silver_hook, I never fixed it haha. I needed it for changing the properties of a program to start using root - when closing the properties window after changing that it was throwing error that it could not find kdesu
ris has quit [(Ping timeout: 246 seconds)]
<freeman42x>
silver_hook, someone noticed that kdesu executable was not even part of the package
HoloIRCUser2 has joined #nixos
<silver_hook>
Neat
SuprDewd has joined #nixos
<freeman42x>
silver_hook, yeah, got to love how Linux just works (from UX, drivers, etc. POV) in comparison to Windows, right? heh
<silver_hook>
Yeah. It’s just sometimes things get odd …but it’s usually a human error.
<silver_hook>
;)
<freeman42x>
silver_hook, I installed NixOS with default KDE - kdesu is not there -> PEBKAC
<freeman42x>
such a weird morphism
scribbler has quit [(Ping timeout: 252 seconds)]
<silver_hook>
freeman42x: Right, I did that as well :) But then installed kdesu and it’s not there so ⇒ not PEBKAC :(
mkoenig has joined #nixos
<freeman42x>
silver_hook, it is PEBKAC... but it is not YOUR PEBKAC :) it is the PEBKAC of the guy who broke it
<stanibanani2>
freeman42x: turns out I never had grub enabled (grub.enable = true) :S and now that I am scared. How did grub even work all this time?
<freeman42x>
stanibanani2, it is best not to question how some things work haha
hotfuzz_ has joined #nixos
<freeman42x>
but the good part is that once you figure out how these work, you can just move your configuration to another laptop and press a button then go have fun and when you come back your OS has all the software/drivers etc. installed
<freeman42x>
did that from physical machine to NixOS inside VMWare and it worked great
<Infinisil>
Does anybody happen to know what's 'the way' to automatically mount devices when they're connected? An udev rule? Because the arch article on udev rules says you shouldn't use mount in an udev rule
<stanibanani2>
freeman42x: oh god now grub doesn't even work "Embedding is not possible. GRUB can only be installed in this setup by using blocklists."
hotfuzz has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 2 new commits to master: https://git.io/v5Pvu
<NixOS_GitHub>
nixpkgs/master 72b48de Rob Vermaas: Missing semicolon
<NixOS_GitHub>
nixpkgs/master 9ca079f Rob Vermaas: Missing self reference
NixOS_GitHub has left #nixos []
<freeman42x>
stanibanani2, I had the exact same issue, let's see if I can find the solution for it
nix-gsc-io`bot has joined #nixos
<sphalerite>
Infinisil: if it's a specific device, a udev rule that makes udev report the device to systemd combined with an .mount unit should do the trick
<freeman42x>
silver_hook, see if this `nix-env -iA nixos.kdeFrameworks.kdesu` gets you kdesu
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 2 new commits to release-17.09: https://git.io/v5Pfq
<NixOS_GitHub>
nixpkgs/release-17.09 cfbb20c Sander van der Burg: zsnes: restrict building to x86-based Linux platforms only, znses' core is written in x86 asm code...
<NixOS_GitHub>
nixpkgs/release-17.09 3c148e1 Sander van der Burg: vice: 2.2 -> 3.1 + fix build procedure...
NixOS_GitHub has left #nixos []
<stanibanani2>
freeman42x: the only way my partition scheme differs from yours is that my boot partition is 600MB instead of 500MB, so my problem is probably caused by something else. But thank for the help any way! :)
<silver_hook>
freeman42x: Nope. Still command not found.
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.09: https://git.io/v5PfW
<NixOS_GitHub>
nixpkgs/release-17.09 7f47214 Rob Vermaas: mpich2: use gfortran 5
NixOS_GitHub has left #nixos []
<sphalerite>
freeman42x: I mean are you sure that you've been booting with up to now
<sphalerite>
since you apparently didn't have grub enabled
<sphalerite>
and not systemd-boot
<M1k3y>
Hello together. I'm trying to get gitlab to run on my (freshly installed) server. Are there some switches I'm missing to get the integrated webserver to run? Config: https://pastebin.com/irywYcKE
<freeman42x>
sphalerite, why are you saying grub is not enabled? `boot.loader.grub.enable = true;` is in the config? what am I not understanding?
<sphalerite>
oh wait I misread
<sphalerite>
it's stanibanani2 who didn't have grub enabled
<sphalerite>
stanibanani2: are you sure you're using grub?
MoreTea has quit [(Ping timeout: 246 seconds)]
<stanibanani2>
sphalerite: I am sure that I have not been running grub, until now
<stanibanani2>
and am now trying to install grub
griff_ has quit [(Quit: griff_)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/v5Pf2
<NixOS_GitHub>
nixpkgs/master 2c056b1 Rob Vermaas: mpich2: use gfortran 5...
NixOS_GitHub has left #nixos []
<sphalerite>
Do you need a feature from grub? Why not just stick with what you have?
<sphalerite>
(which is given the limited information I have probably systemd-boot)
<stanibanani2>
sphalerite: I want to add extra entries
<sphalerite>
aaah right
mattcode has joined #nixos
<stanibanani2>
I don't get this warning though "grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible." I don't even want to a BIOS boot setup, I want UEFI, so why is trying to force BIOS on me? =-O
<sphalerite>
boot.loader.grub.efiSupport
<sphalerite>
You can add extra entries with systemd-boot too though
<sphalerite>
Just stick an extra file in /boot/loader/entries
<stanibanani2>
sphalerite: yeah I have enabled efiSupport, it still doesn't listen :(
<sphalerite>
(Or wherever your ESP is mounted/loader)
<stanibanani2>
sphalerite: really? I tried to add an entry to /boot/loader/entries but didn't work for some reason :/
zeus_ has joined #nixos
<sphalerite>
What did you name the file and what did it contain?
<jluttine>
is there some nice way to get an attribute value if it exists and some other value if not. {foo=42}.bar would raise an error but i'd like something like that but so that it works even if bar is not in the attribute set
<sphalerite>
jluttine: the "or" keyword
<yorick>
jluttine: lib.hasAttr?
<sphalerite>
`foo.bar or "not found"` will return foo.bar if foo has bar in it, otherwise "not found"
<jluttine>
sphalerite: ok, thanks!
<stanibanani2>
sphalerite: ty! I will try to make grub2 work (bc its cool with the background feature as well) but at least I know that there is a backup way of booting
<hyper_ch>
what package contains the file binary to check the character encoding of a file?
<M1k3y>
someone here used GitLab on nixos before? I just can't get it to work.
jsgrant has quit [(Quit: jsgrant)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/v5PJh
<NixOS_GitHub>
nixpkgs/master 631abf8 Sander van der Burg: tomcat: bump versions
NixOS_GitHub has left #nixos []
<tilpner>
hyper_ch - Just the "file" binary? The attribute name is... "file"
darlan has joined #nixos
darlan has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/v5PUv
<NixOS_GitHub>
nixpkgs/release-17.09 726f45a Sander van der Burg: tomcat: bump versions...
NixOS_GitHub has left #nixos []
<sphalerite>
so… I want to use an encrypted key file on my ESP to decrypt my main partitions, rather than having another LUKS-encrypted partition (which is my current setup, and is slow) as the key. Does anyone know of existing facilities for this, or will I have to hack it myself?
mudri has joined #nixos
arximboldi has joined #nixos
scribbler has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/v5PU8
<NixOS_GitHub>
nixpkgs/master bf9b88f Sander van der Burg: fs-uae: build on x86 linux only
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/v5PUB
<NixOS_GitHub>
nixpkgs/release-17.09 71f0a68 Sander van der Burg: fs-uae: build on x86 linux only...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 4 new commits to release-17.09: https://git.io/v5PU0
<NixOS_GitHub>
[nixpkgs] markus2342 opened pull request #29207: desmume: fix build with gcc6 by adding debian patch (master...fix-desmume-gcc6) https://git.io/v5PUw
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
<clever>
sphalerite: hmmm, i dont think /boot is mounted by the initrd until after it mounts /
<sphalerite>
oh right
<sphalerite>
I'll stick it in the initrd then
<sphalerite>
whatever really
<clever>
sphalerite: so you need to either embed it into the initrd (which also puts it in the store), or add some custom commands to mount ESP, read, umount
<sphalerite>
yeah I don't mind it being in the store since it's encrypted
mudri has quit [(Ping timeout: 248 seconds)]
<clever>
it also means any non-root user can read it, while the machine is on
Itkovian has joined #nixos
<Infinisil>
Umm, is the fileSystem option not being merged? I want to add some attributes to the autogenerated hardware-configuration.nix, but it says that the device is not specified
<clever>
Infinisil: can you gist both files?
<Infinisil>
Ohh never mind
<clever>
trailing / ?
<Infinisil>
gisting it made me realize that i didn't include the auto-generated one
<clever>
ah
eacameron has quit [(Ping timeout: 260 seconds)]
cfricke has joined #nixos
cfricke has quit [(Client Quit)]
<sphalerite>
clever: yes but it's encrypted so I'm fine with that
<timor>
viric: are you there?
<clever>
sphalerite: only issue is if you ever let somebody get a shell, and things like nix-serve
<sphalerite>
clever: I trust my passphrase :p the only reason I have a key file is so that I don't have to retype the passphrase twice (once for the root pool, once for swap)
<clever>
i use lvm to fix that
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v5PTT
<sphalerite>
clever: yeah, but I didn't want the extra layer and I can't really implement that after the fact :p
<sphalerite>
actually since I trust my passphrase I could also just modify the stage-1 script to read the passphrase and pass it into cryptsetup from there
iyzsong has quit [(Ping timeout: 252 seconds)]
<Infinisil>
sphalerite: Ohh, it's actually quite slow for me too, am too decrypting key luks partition first, then the main partitions with that key
<sphalerite>
yeah, I'm pretty sure it's because of the key luks partition setup
<Infinisil>
But why would that be so slow?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aristidb pushed 1 new commit to master: https://git.io/v5PTB
<NixOS_GitHub>
nixpkgs/master 628578f Aristid Breitkreuz: v8: fix v3 builds by switching to GCC 5 (mksnapshot segfaults with GCC 6)
NixOS_GitHub has left #nixos []
<sphalerite>
because it's deriving a key from 1MB of data rather than 50
<sphalerite>
that's my guess anyway
<Infinisil>
I personally use a 1MB partitin filled with random data as the key, and if luks doesn't limit this, it's used as the full key
<sphalerite>
50 bytes*
* Infinisil
looks for an option to limit the key size
<sphalerite>
Infinisil: it doesn't use that key for disk decryption/encryption
<sphalerite>
but for decrypting the key that decrypts the disk contents :p
<sphalerite>
(which is done in order to allow adding/removing keys from the luks container)
<clever>
so the performance penalty is only when unlocking
<sphalerite>
yeah
<sphalerite>
but it does take several seconds from me having typed the passphrase to booting
zarel has quit [(Quit: Leaving)]
<clever>
but in theory, if somebody was to image your entire drive, and then obtain your password at any point in the future, they can decrypt the luks header in that image
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aristidb pushed 1 new commit to release-17.09: https://git.io/v5PTg
<NixOS_GitHub>
nixpkgs/release-17.09 302b5af Aristid Breitkreuz: v8: fix v3 builds by switching to GCC 5 (mksnapshot segfaults with GCC 6)
NixOS_GitHub has left #nixos []
<clever>
and even if you have since changed the luks passphrase, the master key is the same, and they can read any current files, if they re-image your drive
<sphalerite>
although I should probably check that that's really the cause of the slowness
<sphalerite>
time for some set -x goodness
gcharnock has joined #nixos
<sphalerite>
aah no I can't because then my music will stop D:
<sphalerite>
maybe I should set up a VM to test the performance so I can keep listening to music
<Infinisil>
I have my music running on a server, streaming via http -> Can listen to it on any device :D
<sphalerite>
still have to interrupt it to switch
<sphalerite>
I have my music synced to my phone via syncthing. Less fancy, but it works offline too :p
<Infinisil>
Would that work on an iPHone too?
<Infinisil>
Never mind, I'll google
silver_hook has quit [(Quit: Konversation terminated!)]
<sphalerite>
never mind, I don't need to do anything with a VM
<sphalerite>
I can just make a file as a luks container and try decrypting it with my existing key partition
<tilpner>
sphalerite - What's the advantage of having the key partition over just a passphrase?
<sphalerite>
tilpner: because I have two partitions encrypted with the same key and don't want ot type the passphrase twice
freeman42x[nix] has joined #nixos
<tilpner>
Oh, okay
<sphalerite>
tilpner: also, the nvidia solution isn't reliable :(
<sphalerite>
s/solution/workaround/
<tilpner>
Oh no, what happened?
<tilpner>
It's been working okay here. Doesn't turn off reliably, if that's what you mean
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<sphalerite>
When I start a second X server it's not starting the systemd unit and as such doesn't run the power on script
<sphalerite>
so what's really needed is a wrapper for the X server
<sphalerite>
actually no, what's really needed is a fix for the bug
<tilpner>
Did Nvidia support respond back yet?
<Infinisil>
What's the go-to solution on NixOS for mounting disks automatically when they're connected?
<clever>
sphalerite: another idea i just had, modify the luks code within nixos, to go one of 2 new routes
<Infinisil>
I have 3 USB disks I want mounted to /foo /bar and /baz when they're plugged it
<Infinisil>
in*
<clever>
sphalerite: route 1: tell the name of each passphrase, and allow putting the same name on 2 devices
<tilpner>
And why are you starting a second X server? Of course it doesn't run the poweron if you don't use the display-manager unit
<clever>
sphalerite: then bash can read one passphrase, and feed it to cryptsetup twice
<sphalerite>
clever: yeah, I mentioned that idea earlier but it's not useful as I just discovered
<sphalerite>
it still takes 3s with a passphrase rather than the partition
<clever>
sphalerite: route 2, modify it to just blindly use the passphrase on all configured luks devices, and to keep asking for passphrases in a loop until everything is unlocked
<clever>
ahh
<clever>
i see, just doing the cryptopen for 2 devices is costly
<sphalerite>
so the only real workaround is to use fewer key iterations
<sphalerite>
and I might as well stick to the keypartition setup
<sphalerite>
Infinisil: did you read my messages earlier?
<Infinisil>
sphalerite: Hold on, checking
<sphalerite>
tilpner: no, nothing from then
<sphalerite>
them*
<Infinisil>
sphalerite: Ah found it, hmm
<sphalerite>
tilpner: and I start a second X server through my display manager — because I have a separate user for all my important stuff and for proprietary software I don't trust
<sphalerite>
it's the functionality you access through "switch user" in KDE and GNOME
<sphalerite>
so nothing really unusual
<Infinisil>
sphalerite: I'll have a look into man systemd.mount
<freeman42x>
tilpner, yep! you found the problem: 18.03pre114421.799435b7ca (Impala)
<freeman42x>
that probably happened when I made the unstable mistake..
<freeman42x>
can nix be downgraded using nix? haha
<freeman42x>
nixos I mean heh
<tilpner>
That took entirely too long. It's weird that you don't know what channel you're on, when you're on unstable
jellowj has joined #nixos
<freeman42x>
`It's weird that you don't know what channel you're on, when you're on unstable`
<tilpner>
You should try to figure out/fix your channels setup, if you ever want to upgrade them
<freeman42x>
because I was on unstable but then I removed the channel from the file
<freeman42x>
I didn't knew it upgraded the nixos itself
<freeman42x>
tilpner, I have no channels set up - I don't understand
<freeman42x>
I just need to somehow tell nix to not use that higher os version
<tilpner>
NixOS needs nixpkgs to function. You need to somehow specify what version nixpkgs to use. You don't have to use channels for that, it's just the default solutions
<tilpner>
I'm not sure, actually. It's not "unstable" anymore, as you saw, and I haven't had any problems with it (not more than with 17.03), but the ISOs are still for 17.03
nix-gsc-io`bot has quit [(Client Quit)]
<tilpner>
You can just use 17.03 instead of 17.09, if you want to
<freeman42x>
tilpner, I see, thank you for your help :) I hope this works
<freeman42x>
tilpner, I'll trust them since it was not marked unstable anymore :)
<joepie91>
obligatory note that support for non-latest versions is generally non-existent, and usually only the latest stable gets eg. security updates
<joepie91>
17.03 seems to still get hydra builds though
<tilpner>
joepie91 - So is 17.09 stable or not?
<joepie91>
no clue, to be honest
<tilpner>
joepie91 - And if it is, why does the download page still advertise 17.03
<Infinisil>
Ugh, why does this take hours to figure out
<Infinisil>
I still don't have any USB's automatically ounted
<Infinisil>
I set fileSystems."/foo".options = [ "nofail" ]; which creates foo.mount at boot time, but it fails to succeed
ik has quit [(Remote host closed the connection)]
griff_ has joined #nixos
<Infinisil>
Command that gets run is mount /dev/disk/by-uuid/... /foo -t vfat -o x-systemd.mount-timeout=infinity,retry=10000
<Infinisil>
Which fails with "wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error." which isn't very helpful
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/v5Ptj
<NixOS_GitHub>
nixpkgs/master 397fc0d Sander van der Burg: fast-cli: fix build
NixOS_GitHub has left #nixos []
takle has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/v5Pqv
<NixOS_GitHub>
nixpkgs/release-17.09 471bea8 Sander van der Burg: fast-cli: fix build...
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ToxicFrog has joined #nixos
Myrl-saki has quit [(Ping timeout: 240 seconds)]
__Sander__ has quit [(Quit: Konversation terminated!)]
<freeman42x>
I need to create a github issue for this, since stack2nix fails on 17.08beta also
<freeman42x>
is there an easy way to check whether a nix configuration/build has been fixed in another channel?
<tilpner>
Trying the other channels or looking at GH issues/PRs
<tilpner>
Note that you don't have to switch your entire system to try a package from another channel
<freeman42x>
is there no place where I could see if the package is built ok on other channels?
<freeman42x>
tilpner, ah yeah, but I forgot how to do that
<freeman42x>
can I try it in nix-shell?
<tilpner>
You can try to navigate Hydra, but it can be quite confusing
<freeman42x>
does Hydra build all packages part of a channel?
<tilpner>
No
MoreTea has quit [(Ping timeout: 240 seconds)]
<tilpner>
If you don't want to setup other channels locally (just try them out quickly), you can use e.g. nix-shell -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz -p stack2nix
<Radivarig>
I'm trying to nixos-install from current official iso, both minimal an graphical gives me the same error: "cannot copy /nix/store/..-nixos-artwork-2015-02-27/share/artwork/gnome/Gnome_Dark.png to /boot", there is an issue from June 14th that is closed https://github.com/NixOS/nixpkgs/issues/26565. Any suggestions?
Infinisil has joined #nixos
zraexy has quit [(Remote host closed the connection)]
stanibanani1 has quit [(Ping timeout: 248 seconds)]
zraexy has joined #nixos
<Infinisil>
So, turns out you can add the x-systemd.automount option to a mount, then when the specific directory is accessed, it's automatically mounted
<tilpner>
Radivarig - You have multiple choices: Try not to hit the path that requires the Gnome_Dark.png, by setting boot.loader.grub.splashImage to something else, or use a newer version of nixpkgs where this is fixed
<Infinisil>
boot.loader.splashImage = null disables the image and makes it text only
<tilpner>
Radivarig - If you instead wanted to try to install the not-quite-released-yet 17.09, you can add "-I nixpkgs=https://nixos.org/channels/nixos-17.09" to your nixos-install invocation
<Radivarig>
Infinisil, tilpner, thank you, trying that atm
<tilpner>
(Though we probably would have to fix your channels afterwards. Maybe they get copied over, so we should set them before installing?)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
Infinisil has quit [(Quit: Lost terminal)]
stanibanani1 has joined #nixos
reinzelmann has joined #nixos
Infinisil has joined #nixos
eacameron has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
stanibanani1 has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
<clever>
Infinisil: systemd-automount breaks a number of things for me
scribbler has joined #nixos
<clever>
Infinisil: i often leave a shell cd'd into a nfs mount for hours, and then when i try to run anything nix in that directory, it hard fails
<clever>
Infinisil: because systemd un-mounted the directory from under me
<Infinisil>
clever: Have you tried TimeoutIdleSec?
<Infinisil>
Oh, it's disabled by default, so that shouldn't be a problem
freeman42x[nix] has quit [(Ping timeout: 260 seconds)]
scribbler has quit [(Ping timeout: 255 seconds)]
nwuensche has joined #nixos
phreedom has quit [(Ping timeout: 248 seconds)]
<Infinisil>
It works perfectly for me though, using it for /boot on usb sticks, only need to be mounted for rebuilds
<nwuensche>
Hi! So I want to add a file to cron, and I used services.cron.cronFiles = [ "cron-file" ]; However, when I build, I get the error : cat: cron-file: Permission denied. I chmod 0777'ed the file, but I still get the error
<tilpner>
nwuensche - "cron-file" isn't a path as far as Nix is concerned
<tilpner>
(Where does cron-file live?)
<nwuensche>
tilpner: I just replaced it. It would be /home/nwuensche/cronjobs for me
<tilpner>
And that still doesn't work?
<tilpner>
Oh, misread that
<Infinisil>
nwuensche: So you have [ "${home/nwuensche/cronjobs/cron-file}" ] there?
<tilpner>
What happens with [ /home/nwuensche/cronjobs ]?
<tilpner>
(Assuming cronjobs is a file)
<nwuensche>
Infinisil: I tried it without [ "/home/nwuensche/cronjobs"]
<nwuensche>
Sorry, I meant with, of course
<Infinisil>
phew, was very confused for a second there
<Infinisil>
Yeah that probably doesn't work because the file wants to be read by the nix build user, which is in a sandbox and everything
<Infinisil>
By using "${path}" it imports the file during the evaluation phase into the nix store and it should be accessible
<tilpner>
Infinisil - Wouldn't leaving off the quotes do that too?
<clever>
Infinisil: ah, for /boot on usb that sounds like less of an issue
<Infinisil>
tilpner: Importing into the store automatically only happens when it's in string interpolation
<Infinisil>
Otherwise it's just a path value
<nwuensche>
Infinisil, tilpner: I use the version without quotes now. Thank you! However, when I crontab -l, it still says that there is no crontab
<tilpner>
Oh, so all the times it imported a path value was just coincidencental, doing string interpolation somewhere down the path?
<Infinisil>
Oh, so [ /home/nwuensche/cronjobs ] works? I'm gonna have to check the source if it's done intentionally
<Infinisil>
tilpner: Since it worked without that for nwuensche I'm not so sure anymore
<tilpner>
Let's check the manual!
<Infinisil>
Am on it :D
mudri has quit [(Ping timeout: 248 seconds)]
<nwuensche>
Could there be a problem with the syntax that causes crontab not to work?
<tilpner>
Infinisil - Maybe it's just any non-store path that ends up in derivations environment?
mudri has joined #nixos
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tilpner>
"A path (e.g., ../foo/sources.tar) causes the referenced file to be copied to the store; its location in the store is put in the environment variable. The idea is that all sources should reside in the Nix store, since all inputs to a derivation should reside in the Nix store."
magnetophon has joined #nixos
orivej has joined #nixos
<Infinisil>
tilpner: Maybe
<Infinisil>
tilpner: But, look at this: In a nix-repl: `./test` vs `"${./test}"`
stanibanani1 has joined #nixos
<tilpner>
Yes, that supports your theory, but I couldn't find it in the manual
scribbler has joined #nixos
<Infinisil>
Yeah, I'm investigating a bit more
odi has joined #nixos
<tilpner>
Infinisil - "Previously, Nix optimised expressions such as "${expr}" to expr. Thus it neither checked whether expr could be coerced to a string, nor applied such coercions. This meant that "${123}" evaluatued to 123, and "${./foo}" evaluated to ./foo (even though "${./foo} " evaluates to "/nix/store/hash-foo "). Nix now checks the type of antiquoted expressions and applies coercions." -- 1.6.1 notes
Radivarig has quit [(Ping timeout: 246 seconds)]
* tilpner
ironically fails at escaping a quote about antiquotation
<Infinisil>
Heh
<Infinisil>
So, this means "${./foo}" and ./foo are indeed different?
stanibanani1 has left #nixos []
<Infinisil>
Am a bit confused now
<tilpner>
Yes, it seems like it. We kind of forgot nwuensche here...
jellowj has quit [(Ping timeout: 248 seconds)]
<Infinisil>
Oh right :P, but I don't know much about cron stuff, I have always used systemd timers instead
<Infinisil>
Oh and I just found out, cronFiles is indeed passed as a derivation attribute
hc has quit [(Read error: Connection reset by peer)]
<tilpner>
Infinisil - Then again, if there is no difference between "/path" and /path, why did ["/home/nwuensche/cronjobs"] not work and [ /home/nwuensche/cronjobs ] work?
<Infinisil>
tilpner: Pretty sure that's because of the sandbox, "/home/nwuensche/cronjobs" doesn't exist there
<tilpner>
But /home/nwuensche/cronjobs doesn't exist there either
<Infinisil>
and since /home/nwuesche/cronjobs is a path, and this is passed as an attribute to the derivation, it gets imported into the store, I think (by the thing you quoted)
Radivarig has joined #nixos
<nwuensche>
Infinisil: I will try systemd timers :)
eacameron has joined #nixos
Radivarig_ has joined #nixos
<tilpner>
Infinisil - Huh, that's true if /path is a path and "/path" is a string. Which I wasn't sure about, given that the path type in Nix is just any string that begins with /
magnetophon has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<Infinisil>
tilpner: Ah, that's the nixos module system though
odi has quit [(Ping timeout: 240 seconds)]
<tilpner>
Yes, I was confusing the nixpkgs and Nix terms "path"
JosW has quit [(Quit: Konversation terminated!)]
magnetophon has joined #nixos
<Infinisil>
Understandable
<Radivarig_>
Infinisil, tilpner, I've managed to install finally. Setting splashImage to null worked, but then I've hit what I think is this issue https://github.com/NixOS/nixpkgs/issues/23926, so I extended efi boot from 512 to 1gb and it worked. Thanks :)
stanibanani1 has joined #nixos
<Infinisil>
Radivarig_: Nice :D
<tilpner>
My /boot is 512M and never filled up
Radivarig has quit [(Ping timeout: 252 seconds)]
<Infinisil>
My /boot was 200MB and did fill up
<tilpner>
Unless your omission of "MB"/"M" was correct, and you were talking about KB or B
takle has joined #nixos
python476 has quit [(Ping timeout: 248 seconds)]
<Infinisil>
tilpner: 200KB? I'm pretty sure it was MB, why do you think otherwise?
<Radivarig_>
512MB or 500MiB
<Infinisil>
Ah
<tilpner>
Yes, I was talking about Radivarigs statement
kuznero has joined #nixos
kuznero has left #nixos []
<tilpner>
But I'm using systemd-boot, which is apparently much smaller
kuznero has joined #nixos
kuznero has quit [(Client Quit)]
kuznero has joined #nixos
<Infinisil>
tilpner: Could you have a look how full /boot is for you? e.g. with `df`
<tilpner>
/dev/sda1 510984 67272 443712 14% /boot
<tilpner>
Or /dev/sda1 500M 66M 434M 14% /boot for humans
<tilpner>
And that's a few generations
<freeman42x>
since stack2nix is broken on any channel... is there anything like stack2cabal? haha
nwuensche has quit [(Ping timeout: 260 seconds)]
<freeman42x>
then I can go stack2cabal -> cabal2nix -> nix build haha
<tilpner>
domenkozar - ^?
takle has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Ping timeout: 246 seconds)]
<tilpner>
(Sorry, should've checked away time before ping)
<tilpner>
Infinisil - Now that I think about it, wouldn't the grub overhead be constant?
<NixOS_GitHub>
nixpkgs/master ce481d2 Peter Simons: Merge pull request #29182 from LumiGuide/fix-ghc-proof...
NixOS_GitHub has left #nixos []
M1k3y has quit [(Quit: Page closed)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/v5PZk
<NixOS_GitHub>
nixpkgs/master c910bbb Bas van Dijk: haskell: fix build of attoparsec-data...
<NixOS_GitHub>
nixpkgs/master a037526 Peter Simons: Merge pull request #29177 from LumiGuide/fix-attoparsec-data...
NixOS_GitHub has left #nixos []
oida_ has joined #nixos
taktoa has quit [(Remote host closed the connection)]
landi has joined #nixos
nckx has joined #nixos
<landi>
Hi kind folk of nixos! I'm just starting with nixos and there's something I just can't figure out:
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar closed pull request #29167: Rework of submodule section plus minor fixes (master...fix-manual2) https://git.io/v5iR9
NixOS_GitHub has left #nixos []
<landi>
I'm not getting menus in many qt applications such kate or qtcreator.
<landi>
vlc (which I think uses qt as well) works though ...
oida has quit [(Ping timeout: 240 seconds)]
<landi>
Maybe this is covered in a faq I didn't notice?
MasterKermitEdq has quit [(Quit: Page closed)]
Fendor has quit [(Ping timeout: 248 seconds)]
reinzelmann has joined #nixos
phreedom has joined #nixos
<tilpner>
Are you on KDE?
<landi>
No
<landi>
I installed kate and qt-creator using nix-env
<tilpner>
By menu you mean the things that contain "File Edit View", etc., right?
<nwuensche>
Infinisil: The timer works now, but I can't use zenity in it. It just says: cannot open display: :0.0
stanibanani1 has joined #nixos
stanibanani1 has left #nixos []
<landi>
tilpner: correct
<Infinisil>
nwuensche: Did you set the User property?
<Infinisil>
nwuensche: Not sure what is required for X stuff to work with systemd services
<landi>
tilpner: not quite actually. It's the pop-ups that appear when you click file edit ...
<Infinisil>
landi: What WM?
<landi>
The menu is there but when I click on an entry it depresses but no pop-up appears
<landi>
Infinisil: xmonad
<nwuensche>
Infinisil: How can I set the user?
<landi>
Infinisil: (I'm using the same config I used other distros sucessfully without this issue.)
<tilpner>
landi - Those work for me on i3. The only KDE/QT-specific setting I have is QT_QPA_PLATFORMTHEME = "gtk2";
<tilpner>
landi - Other distros? What config are you talking about?
ris has joined #nixos
<landi>
tilpner: let me try this out. What I meant is that my xmonad config - when used on ubuntu and gentoo - did not affed the menu pop-ups from appearing.
<tilpner>
landi - If you want to try that out: environment.variables = { QT_QPA_PLATFORMTHEME = "gtk2"; };
<tilpner>
Or set it locally for just kate
<landi>
I set it locally and lauched both kate and qtcreator from that environment ... no change :-(.
<tilpner>
It probably depends on some gtk2 libs, which you might not have
<Infinisil>
nwuensche: Should be systemd.services.<name>.serviceConfig.User = "john"
<tilpner>
You might have to wait for someone who uses KDE stuff (I don't)
takle has joined #nixos
<tilpner>
landi - You're using multiple monitors, right?
<tilpner>
(I only have a laptop display, so it working for me doesn't mean much)
nwuensche has quit [(Remote host closed the connection)]
stanibanani2 has joined #nixos
MasterKermitEsq has joined #nixos
neeasade has quit [(Ping timeout: 260 seconds)]
Fendor has quit [(Ping timeout: 252 seconds)]
<MasterKermitEsq>
anyone come across issues with the new firefox host applications? I think some need python... others... whatever. I guess overrides?
<MasterKermitEsq>
like, passff needs python but if it's not in the path it needs overriding, right? And that's per extension?
ktf has joined #nixos
stanibanani1 has joined #nixos
stanibanani2 has quit [(Ping timeout: 248 seconds)]
mudri has joined #nixos
griff_ has joined #nixos
MasterKermitEsq has quit [(Quit: Page closed)]
Fendor has joined #nixos
justanotheruser has quit [(Ping timeout: 246 seconds)]
Filystyn has quit [(Read error: Connection reset by peer)]
Filystyn has joined #nixos
drakonis has joined #nixos
stanibanani1 has quit [(Ping timeout: 240 seconds)]
MasterKermitEsq has joined #nixos
Fendor has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #29217: feh: 2.19.3 -> 2.20 (master...feh) https://git.io/v5Pcz
NixOS_GitHub has left #nixos []
Radivarig has joined #nixos
stanibanani1 has joined #nixos
<MasterKermitEsq>
anyhow, "nix-shell -E 'with import <nixpkgs> {}; stdenv.mkDerivation { name = "foo"; buildInputs = [ firefox python3 ]; }'" works fine so I'm pretty sure overriding is going to get popular with firefox now. another one for the irc logs :D
<tilpner>
MasterKermitEsq - I have not. If you just want to use pass with FF, look at passmenu
ktf has quit [(Ping timeout: 240 seconds)]
<MasterKermitEsq>
tilpner: nah I've been using passff for over a year so I'm not about to stop doing it now. I'll just throw an override into configuration.nix and be done with it. Maybe I'll even throw pass in there for good measure.
<tilpner>
Okay
<landi>
tilpner: this may be related to multiple monitors after all. I don't know why this hasn't been an issue before. But it doesn't seem to be a nixos issue from what I can tell ...
<landi>
tilpner: thanks!
MasterKermitEsq has quit [(Quit: Page closed)]
kuznero has quit [(Remote host closed the connection)]
Fendor has joined #nixos
stanibanani1 has left #nixos []
Fendor has quit [(Ping timeout: 252 seconds)]
goibhniu has joined #nixos
<mbrock>
given { foo = "x"; bar = "y"; } I want to construct a derivation that only contains the files foo and bar with contents x and y respectively
ona has quit [(Quit: ...)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #29218: rustRegistry: 2017-08-27 -> 2017-09-10 (master...rustRegistry) https://git.io/v5PCa
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 240 seconds)]
Filystyn has quit [(Quit: Konversation terminated!)]
<tilpner>
Infinisil - Don't you want to set preferLocalBuild too?
<mbrock>
that's cool! I will actually be using arbitrarily complicated strings (not just "x"), so I think that using `echo` will give me problems. From some poking around, I've realized that similar problems in the past has led to Nix making a secret option called `passAsFile`, so I'll try to adapt it to use that
<Infinisil>
tilpner: Oh that would be nice
M1k3y has joined #nixos
<Infinisil>
mbrock: Oh cool, also a nice addition
scribble_ has joined #nixos
Itkovian has quit [(Ping timeout: 246 seconds)]
scribbler has quit [(Ping timeout: 260 seconds)]
<Infinisil>
mbrock: Are you refactoring it to use passAsFile already or can I do it?
<Infinisil>
Hmm, this might be harder than I though
<Infinisil>
t
<mbrock>
you can try it in parallel because it's making me a bit confused and I might go to bed ;)
<tilpner>
Infinisil - Look at trivial-builders.nix
<mbrock>
yeah there's example of using it for one file
<Infinisil>
tilpner: I see how passAsFile works, but it's not easy to change my function to use it
<Infinisil>
Although I know how it would work nicely
<Infinisil>
*tries*
<tilpner>
Wouldn't you just passAsFile = attrNames args; ?
<Infinisil>
tilpner: I want it to work recursively too
* mbrock
discovers that `let x = 1; "$${x}"` is not `$1`
<tilpner>
Oh, that'll be harder
<Infinisil>
mbrock: `let x = 1; in "''${x}"`?
Fendor has joined #nixos
<Infinisil>
Ah
<Infinisil>
really?
<tilpner>
"\$${toString x}"
<Infinisil>
Weird
landi has quit [(Quit: Page closed)]
<M1k3y>
Hello together, I have a problem with nginx and ACME. According to the logs letsencrypt can't access the secrets on my server, although it has already worked for another subdomain. Any help is appreciated. Output of nixos-rebuild switch: https://pastebin.com/XjvEE7xg
magnetophon has quit [(Remote host closed the connection)]
<mbrock>
I don't need the recursion, just one level, but it's too tricky for me right now so I'll go to bed :) thx for the help
<Infinisil>
mbrock: Night ;)
<mbrock>
having some very strange problems with string interpolation and bash meta-variables, will relax my brain with something less scary, like Twin Peaks
<Infinisil>
M1k3y: What is root set to? Does the nginx user have access to it
<Infinisil>
?
phreedom has quit [(Ping timeout: 248 seconds)]
<M1k3y>
Infinisil: The root isn't set. I have set: locations."/".proxyPass = "http://unix:/run/gitlab/..."
kuznero has quit [(Remote host closed the connection)]
<Infinisil>
mbrock: Essentially the same as the first thing I posted, but first we map the attrset of strings to an attrset of filenames that contain the strings, with mapAttrsRecursive
<Infinisil>
And then use cp instead of echo
Troupal has quit [(Ping timeout: 252 seconds)]
<mbrock>
ahh, yeah, that looks good!
<mbrock>
I think there might be a reason to use `writeFile` instead of `builtins.toFile`
<mbrock>
I'm not totally sure but I think there's a limitation that `builtins.toFile` strings can't refer to derivation outputs
<Infinisil>
mbrock: Yeah, but that's not needed here
<mbrock>
at least I seemed to run into that while messing around
<Infinisil>
builtins.toFile is done at evaluation time, pkgs.writeFile is done at buildtime
<Infinisil>
And I'm pretty sure toFile is always prefered if you can
<mbrock>
try setting `qux = "bash is at ${pkgs.bash}/bin/bash"` maybe
<mbrock>
if that works then it's all good for me :)
<Infinisil>
Ohh
<mbrock>
anyway nice work 8)
Jackneilll has quit [(Remote host closed the connection)]
<Infinisil>
Yeah that doesn't work, I'll change it to writeFile
mattcode has quit [(Read error: Connection reset by peer)]
<kzpm>
Anyone of you working with lmms on Nixos?
jb55 has quit [(Ping timeout: 248 seconds)]
<Infinisil>
mbrock: Whew, okay got it
<Infinisil>
mbrock: Turns out I just made a small mistake
thc202 has quit [(Ping timeout: 248 seconds)]
<kzpm>
LMMS is working, however the GUI for SynAddSubFX freezes as soon as it is clicked. The error message is: "Notice: could not set realtime priority. VST sync support disabled in your configuration "Cannot load library /nix/store/a4a949kvbx7g9pd16i0js7pz4132iszi-lmms-1.1.90/lib/lmms/ladspa/sifter_1210.so: (/nix/store/a4a949kvbx7g9pd16i0js7pz4132iszi-lmms-1.1.90/lib/lmms/ladspa/sifter_1210.so: undefined symbol: q_sort)" QtXmlWrapper::loadX
fresheyeball has joined #nixos
<fresheyeball>
hey out there
Acou_Bass has quit [(Ping timeout: 252 seconds)]
Acou_Bass has joined #nixos
<fresheyeball>
is there an easy to lock a nix expression to a certain version of <nixpkgs>?
<timor>
viric: also, this one (#29159) is needed to get FreeCAD to run correctly. At least for me, it was building fine, but then segfaulting immediately when run.
<fresheyeball>
I often do mport <nixpkgs> {};
<fresheyeball>
and then when I run the expression later I get different results.
<fresheyeball>
not reproducible
<viric>
timor: meh. no idea then
<viric>
timor: I'm outdated. I guess you know better
<viric>
if it doesn't work, no idea.
<timor>
viric: well it somehow works, but it maybe not completely correct