<clever>
and you can add arguments by just setting security.pam.services.passwd.foo = "bar";
<eqyiel[m]>
thanks!
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
Maxdamantus has joined #nixos
glines has joined #nixos
newhoggy2 has quit [(Ping timeout: 250 seconds)]
<mguentner>
let's say a derivation A has a propagatedBuildInput and this derivation is used inside B. Is there a way to "invalidate" or ignore this inside B?
<clever>
simplest thing i can think of, dont add A to buildInputs, put it on some other variable (and then somehow tell configure where to find it)
Fare has quit [(Remote host closed the connection)]
Fare has joined #nixos
jmiven has quit [(Quit: co'o)]
jmiven has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #20889: [Do not merge*] Restore stdenv debugging at the cost of more complexity (master...stdenv-debug) https://git.io/v1WAK
<gchristensen>
clever: do you have good resources for using GPG correctly?
<clever>
gchristensen: i dont use gpg much, and its a bit of an anoyance, because the main passphrase is managed by lastpass, and lastpass is only configured in chrome, and chrome takes an hour to load
<clever>
i need to configure things better
<clever>
made some bad choices, lol
<gchristensen>
heh
<Rotaerk>
hmm that's over a year old
<Rotaerk>
wonder how it is now
Sigma has joined #nixos
Sigma has quit [(Remote host closed the connection)]
lverns has joined #nixos
Sigma has joined #nixos
Sigma has quit [(Remote host closed the connection)]
Sigma has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
<clever>
there is a package for it in nixpkgs, but it must have something wrong with it
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<eacameron>
clever: So you can just hop into a different arch?
<eacameron>
clever: I have no idea how that's even possible.
<clever>
gccCrossStageStatic is the derivation for a cross-compiler
<clever>
this expression configures it to target arm
<clever>
but you need an arm cpu or qemu to run the kernel
<eacameron>
clever: Ah so this doesn't lat you run an arm kernel
<clever>
yeah
<clever>
[clever@amd-nixos:~]$ nix-shell -p qemu
<clever>
[nix-shell:~]$ qemu-system-arm
<clever>
but this does
Wizek has quit [(Ping timeout: 265 seconds)]
<c74d>
If I want to add a program to pkgs.perlPackages that depends on some other Perl modules that will need to be added as well, should I file a PR for each, or just one PR?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
goodwill has joined #nixos
eacameron has quit [(Remote host closed the connection)]
glines has quit [(Ping timeout: 268 seconds)]
<Rotaerk>
clever, wouldn't configuring an application like vim with stuff that normally goes into the .vimrc, but doing it in the nix package, have the disadvantage of creating a build per user where the only difference is their preferences?
<Rotaerk>
just seems like a lot of duplication for the sake of one text file
<clever>
Rotaerk: that build of vim is 5kb in size
<clever>
and thats the filesystem rounding up
<Rotaerk>
so you wouldn't approach it that way for something larger
<clever>
its a 2 line bash script, exec /nix/store/33kvljzvmq0h9gw3x5ysa7qycb9kgvlp-vim_configurable-8.0.0005/bin/vim -u /nix/store/frha47l567ral1a7v5xc9c75x3g9wk8g-vimrc "$@"
<clever>
so each user, gets their own 2 line bash script, and their own vimrc, but they all share the actual vim build
<Rotaerk>
oh
<Rotaerk>
I see; cool
<Rotaerk>
btw, that file you pasted ... what references that? what's the entry point into that package
<clever>
the one i pasted earlier is a nixos module
<clever>
so i add it to the imports list of configuration.nix
<Rotaerk>
hmm is there some way to make it user-specific
<clever>
that configures some bash aliases to map vi -> vim, and to install vim system wide
<clever>
you can extract part of it and put it into ~/.nixpkgs/config.nix
<clever>
and then install it with nix-env
<Rotaerk>
ah, k
<Rotaerk>
thanks
<clever>
Rotaerk: the plugin options in chrome/firefox work the same way, because compiling chrome takes forever
<Rotaerk>
god, I can imagine
<jasom>
so, nix-shell can't seem to find <nixpkgs> anymore; did something change? I'm getting a error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)
<c74d>
If I want to add a program to pkgs.perlPackages that depends on some other Perl modules that will need to be added as well, should I file a PR for each, or just one PR?
<Rotaerk>
wonder how you add other things besides nixpkgs to it... doesn't specify the separator
<clever>
its :
<clever>
and you can use -I on the commandline to append things
<clever>
[root@router:/tftproot/try2]# nix-build netboot_rpi3.nix -o result --show-trace -I nixpkgs=/tftproot/try2/nixpkgs/ -Q
edvorg has quit [(Read error: Connection reset by peer)]
<clever>
this is something i was doing recently, where i wanted to force which nixpkgs to use
<clever>
i rarely touch NIX_PATH directly
<Rotaerk>
well it NIX_PATH contains an assignment to nixpkgs, and you can assign multiple things to nixpkgs by separating them with :
<Rotaerk>
but it doesn't say how to assign *to* more than one thing within NIX_PATH
<clever>
i think duplicate nixpkgs= entries override eachother
<clever>
so it doesnt make sense to have 2 nixpkgs= entries within $NIX_PATH
<Rotaerk>
e.g. NIX_PATH=nixpkgs=foo:bar:baz&somethingelse=blah;huh
<Rotaerk>
and then <somethingelse>
<Rotaerk>
s/blah;huh/blah:huh/
<clever>
that tells it to find <nixpkgs> in foo, and to also search for things in bar, the & will either get parsed by your shell, or, its part of the directory "baz&someting" but thats before an = token
<clever>
so its a bit confusing as to what that would do in such an example
<Rotaerk>
no no, the & was a made-up separator, since it doesn't seem to specify one in the doc
<clever>
the separator is just :
<clever>
NIX_PATH
<clever>
A colon-separated list of directories used to look up Nix
<Rotaerk>
so NIX_PATH=nixpkgs=foo:bar:somethingelse=baz:bim
<clever>
heh, second word in the paragraph
<Rotaerk>
so now, nixpkgs includes foo and bar, and somethingelse includes baz and bim
<clever>
so if you try to resolve <nixpkgs> it will use foo
<clever>
and if you try to resolve <somethingelse> it will use baz
<clever>
in all <other> cases, it will look for bar/other, and bim/other
<clever>
and return the first one it can find
<Rotaerk>
hmm, it says that if I do: NIX_PATH=nixpkgs=/foo:/bar, it will search both /foo and/bar, when you specify <nixpkgs>
<Rotaerk>
but you seem to be indicating that nixpkgs is *just* /foo, and then /bar is for "other" things
<clever>
yeah, when you fo nixpkgs=/foo, it will strip the nixpkgs off, and then look in /foo
<clever>
and in this exact case, there is nothing left, so it uses /foo directly
<Rotaerk>
but when I have foo=a:b, <foo> evaluates to a only, not a:b
fiddlerwoaroof has quit [(Ping timeout: 258 seconds)]
<clever>
when you load the nixos expressions via nixos-rebuild, it will try to import <nixos-config> to find your configuration.nix
<clever>
yeah, : is the seperator, b is a second thing to search in
<clever>
not connected to the foo=a entry
tinkyholloway has quit [(Ping timeout: 260 seconds)]
<Rotaerk>
oh, so when you do foo=, it's not assigning the entire colon-separated list to foo
tinkyholloway has joined #nixos
<clever>
yeah
<clever>
your only assigning a single entry
<Rotaerk>
k
fiddlerwoaroof has joined #nixos
<Rotaerk>
yea that explains why there's no second separator, then :P
newhoggy2 has joined #nixos
<Rotaerk>
well I was always aware there was a : separator, but I thought it was a list of lists and that the : separated the elements of the inner lists
<Rotaerk>
err was responding to history, sorry
fiddlerwoaroof has quit [(Ping timeout: 250 seconds)]
systemfault has quit [(Quit: Bye!)]
fiddlerwoaroof has joined #nixos
newhoggy2 has quit [(Ping timeout: 260 seconds)]
RchrdB has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] 8573 opened pull request #20891: perlPackages.Swim: init at 0.1.44 (master...8573/pkg/add/perlPackages/Swim/1) https://git.io/v1lUN
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to release-16.09: https://git.io/v1lTB
<NixOS_GitHub>
nixpkgs/release-16.09 a6f741d Andreas Herrmann: matplotlib: Fix TkAgg...
<NixOS_GitHub>
nixpkgs/release-16.09 6a9f087 Frederik Rietdijk: Merge pull request #20775 from aherrmann/pr_matplotlib_tkagg_stable...
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v1lTE
<NixOS_GitHub>
nixpkgs/master ffdf7ec Maximilian Güntner: cpp-ipfs-api: init at 2016-11-09...
<NixOS_GitHub>
nixpkgs/master ab39c29 Frederik Rietdijk: Merge pull request #20879 from mguentner/cpp_ipfs_api...
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v1lTu
<NixOS_GitHub>
nixpkgs/master 629b979 romildo: adapta-backgrounds: init at 0.4.0.6
<NixOS_GitHub>
nixpkgs/master 3c731f4 Frederik Rietdijk: Merge pull request #20877 from romildo/new.adapta-backgrounds...
RchrdB has joined #nixos
roconnor has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] rycee pushed 4 new commits to master: https://git.io/v1lTQ
<NixOS_GitHub>
nixpkgs/master 64aabae Robert Helgesson: perl-CryptX: 0.041 -> 0.044
<NixOS_GitHub>
nixpkgs/master 0dc4e70 Robert Helgesson: perl-Math-BigInt: 1.999801 -> 1.999802
<NixOS_GitHub>
nixpkgs/master 7cdf160 Robert Helgesson: perl-Test2-Suite: 0.000052 -> 0.000061
Itkovian has joined #nixos
vcunat has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1lkw
<NixOS_GitHub>
nixpkgs/master 33abc70 Vladimír Čunát: xorg-server variants: eradicate symlink to /var/tmp...
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from 91f8ca4 to 98524d9: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip e951644 Frederik Rietdijk: pythonPackages: use fixed-point combinator
<NixOS_GitHub>
nixpkgs/python-wip 98524d9 Frederik Rietdijk: Python interpreters: add pkgs attribute
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1lIf
<NixOS_GitHub>
nixpkgs/master 84d737c Vladimír Čunát: clisp: remove Darwin from meta.platforms for now...
jsgrant has joined #nixos
<viric>
clever: maybe the nixpkgs kernel is too old
<NixOS_GitHub>
[nixpkgs] vcunat pushed 17 new commits to staging: https://git.io/v1lI8
<NixOS_GitHub>
nixpkgs/staging 1960fb5 Vladimír Čunát: pciutils: 3.5.1 -> 3.5.2
<NixOS_GitHub>
nixpkgs/staging 8f89fe6 Vladimír Čunát: harfbuzz: 1.3.2 -> 1.3.3
<NixOS_GitHub>
nixpkgs/staging 3861886 Vladimír Čunát: libjpeg(-turbo): 1.5.0 -> 1.5.1
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v1lIa
<NixOS_GitHub>
nixpkgs/master 374ac13 Frederik Rietdijk: Docs: fix Python docs
<viric>
clever: feel free to update it
viric has quit [(Quit: reboot)]
roconnor has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1ltG
<NixOS_GitHub>
nixpkgs/master d34ccd1 Vladimír Čunát: xf86-input-synaptics: 1.8.3 -> 1.9.0...
<vcunat>
ah, now, I screwed up the commit
<Havvy>
vcunat: Can you undo it in the reflog?
<vcunat>
I pushed it publicly, as you can see above
<vcunat>
it will be recorded in the history "forever"
<Havvy>
Unpush it.
<vcunat>
I pushed a revert.
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1ltB
<NixOS_GitHub>
nixpkgs/master bf220b1 Vladimír Čunát: Revert "xf86-input-synaptics: 1.8.3 -> 1.9.0"...
<vcunat>
Years ago I would've force-pushed back to HEAD^, if noticed this quickly, but that's disallowed in master nowadays.
<Havvy>
Ah.
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1ltg
<NixOS_GitHub>
nixpkgs/master 3b3daf4 Vladimír Čunát: xf86-input-synaptics: 1.8.3 -> 1.9.0...
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1ltP
<NixOS_GitHub>
nixpkgs/master 1b158bd Vladimír Čunát: xf86-input-*: update drivers not in common use
<MichaelRaskin>
Fare: do you have the synaptics enabled?
<MichaelRaskin>
Without it your touchpad is recognized as just a mouse…
latk has joined #nixos
FRidh has joined #nixos
<FRidh>
is pkgs.overridePackages gone from unstable / master ?
<vcunat>
FRidh: I do see it in there.
kampfschlaefer has joined #nixos
takle has joined #nixos
<FRidh>
vcunat: I can't use it since e4cd45a30c92a19a240df835cdaf6da5f76ea9fc is merged
<vcunat>
That's well possible. I only checked for existence of the identifier.
<vcunat>
Best mention it on the PR.
JagaJaga has joined #nixos
<FRidh>
vcunat: it seems the new overridePackages doesn't override the package set, but the top-level set
takle has quit [(Ping timeout: 258 seconds)]
<vcunat>
I haven't gotten yet to read the PR at all, even though I was pinged on it long ago.
toogley has quit [(Quit: toogley)]
zagy1 has quit [(Quit: Leaving.)]
ilja_kuklic has joined #nixos
takle has joined #nixos
<ronny>
hi
zimbatm[m] has joined #nixos
<zimbatm[m]>
hi
<ronny>
gm zimbatm[m]
<ronny>
whats the propper way to install packages with parameters to the nix file changed
<ronny>
as far as i can tell, normal override call isnt intended to do that
<zimbatm[m]>
what do you mean by "with parameters to the nix file changed"?
<zimbatm[m]>
are you changing the file itself?
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1lqX
<NixOS_GitHub>
nixpkgs/master cb2c5f4 Vladimír Čunát: xf86-video-ati: 7.7.1 -> 7.8.0...
<ronny>
zimbatm[m]: the default,nix of the package has parameters with defautl names, i want to change those, since they alter dependencies and configure options
<ronny>
btw, is there an easy wat to ask nix, "what file was pkgs.foo" declared in?
<ronny>
*way
<zimbatm[m]>
the shortest path I know is to look in pkgs/top-level/all-packages.nix
<Dezgeg>
pkgs.foo.meta.position should usually evaluate to something useful
<zimbatm[m]>
regarding your first question, if you want to override a package's defaults on the whole nixpkgs level then you can use packageOverrides
<zimbatm[m]>
otherwise if it's just A depending on B and you want to change B's defaults then you'll have to A.override { B = B.override { ... }}
<ronny>
zimbatm[m]: i want to enble some extra plugins for claws_mail
<FRidh>
ronny: create a a function with your choice of parameters and defaults that call the package you want to change the signature of. Then use overridePackages or packageOverrides to fit it into nixpkgs
<zimbatm[m]>
are you installing the package using nix-env?
<FRidh>
ronny: maybe builtins.functionArgs is useful to you
<ronny>
zimbatm[m]: atm yes, but i want to delcare it for systemPackages after finishing experimenting
<ronny>
FRidh: i dotn follow, i literally just want to call a package file with one parameter set to true (which defaults to false)
<zimbatm[m]>
here you can see how the packageOverrides translate on the user level and then system level: https://nixos.org/wiki/Bluetooth
<FRidh>
ronny: if you want to evaluate it with a different value, just use override. If you want to change the default value so future calls use that default value, create a function that calls the package but has the same parameters but with the adjusted defaults, and put this function call where the old call was using overridePackages
beginner has joined #nixos
<ronny>
so bascially all i need is putting this into packageOverrides = pgks: { pkg = pkgs.pkg.override { fooValue = changed; } ; }; ?
xwvvvvwx has joined #nixos
<beginner>
hey guys, I used i586-mingw32msvc-g++ on ubuntu. Anyone knows how i get mingw running on nix? is it maybe included in the package commoncpp2?
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 4 new commits to master: https://git.io/v1lmn
<NixOS_GitHub>
nixpkgs/master 8e8742e c74d: perlPackages.ModuleBuildPluggable: init at 0.10...
<NixOS_GitHub>
nixpkgs/master e12b2b8 c74d: perlPackages.ModuleBuildPluggablePPPort: init at 0.04...
<NixOS_GitHub>
nixpkgs/master 524f7c0 c74d: perlPackages.HTMLEscape: init at 1.10...
newhoggy2 has joined #nixos
<ronny>
FRidh: works fabulous, thanks
pikajude has quit [(Quit: Quit)]
pikajude has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh opened pull request #20893: Python: use fixed-point combinator, add pkgs to interpreter (master...fixed3) https://git.io/v1lm2
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
thc202 has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh opened pull request #20894: Python: rewrite buildPythonPackage, support `flit` format (master...buildpythonpackage_flit) https://git.io/v1lm9
[0x4A6F] has quit [(Ping timeout: 250 seconds)]
[0x4A6F] has joined #nixos
wangoe has joined #nixos
ugjka is now known as UgJkA
<ronny>
btw, whats needed to use netflix on firefox on nix?
newhoggy2 has quit [(Remote host closed the connection)]
modulistic has quit [(Remote host closed the connection)]
<sternenseemann>
fpletz: thx
<ronny>
hmm, why is librewrite not documented?
<ronny>
eh redirect
cfricke has joined #nixos
<ronny>
hmm
<ronny>
whats wrong when i get a error: The option `packageOverrides' defined in `/etc/nixos/modules/convenience.nix' does not exist.
newhoggy2 has joined #nixos
f4 has quit [(Quit: Ухожу я от вас)]
wangoe has quit [(Quit: leaving)]
viric_ has joined #nixos
xwvvvvwx has quit [(Ping timeout: 260 seconds)]
xwvvvvwx has joined #nixos
evangeline has quit [(Ping timeout: 260 seconds)]
Itkovian has joined #nixos
<ronny>
hmm
<ronny>
i figured i have to use nixos.config...
<ronny>
however now im suddenly missing a different package :/
wangoe has joined #nixos
<ronny>
nm, i had a dypo in a definition :/
wangoe has quit [(Client Quit)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
arjen-jo1 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
vandenoever has joined #nixos
newhoggy2 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
<ronny>
FRidh: what you do to the python infrastructure is simply fabulus :)
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
civodul has joined #nixos
zimbatm has quit [(Remote host closed the connection)]
sdothum has joined #nixos
mizu_no_oto has joined #nixos
zimbatm has joined #nixos
wangoe has left #nixos []
wangoe has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
<ToxicFrog>
So let's say I wanted to handle /etc/aliases in the nix configuration. How do I do this? The exim nixpkg doesn't have any options for aliases, and while I can point exim.conf at any arbitrary aliases file, I don't know how to get that file into /etc
<ToxicFrog>
I mean, I could just have it refer to /etc/nixos/mail/aliases, but that seems like a cop-out
newhoggy2 has joined #nixos
xwvvvvwx has quit [(Quit: leaving)]
iyzsong has quit [(Ping timeout: 240 seconds)]
<Fare>
how do I configure dict to talk to dictd on localhost?
<NixOS_GitHub>
[nixpkgs] elitak opened pull request #20899: libxslt: fixed crossDrv, where no python is available (master...libxslt) https://git.io/v1lCJ
<MichaelRaskin>
cat .dictrc
<MichaelRaskin>
server 127.0.0.1
<Fare>
is that ~/.dictrc ?
<MichaelRaskin>
Yes
<Fare>
shouldn't there be a way to tell nixos about /etc/dict.conf ?
<Fare>
hey, I realize I don't have vi on my machine. Dunno how I feel about that.
<MichaelRaskin>
It looks like it thinks the global one is the package-shipped one
<gchristensen>
add it to your systemPackages?
<Fare>
it's not /etc/dict.conf, it's /nix/store/hcd5n1w83ckbyj9sygd2kx8sbxf1vd2a-dictd-1.12.1/etc/dict.conf
<Fare>
which doesn't exist
iyzsong has joined #nixos
<Fare>
gchristensen, how do I do that?
<Fare>
I really need to read the docs about nixos
<gchristensen>
yes
<Fare>
also, how do I convince nixos to somehow reload the wifi and/or sound modules at some point late in startup? Somehow when I boot they come up wrong.
julien-truffaut_ has joined #nixos
<Fare>
and how do I tell it that yes I have a touchpad (look, it's in xinput device 11!) and please distinguish its buttons, that are not all button 1?
Shou has quit [(Quit: 🛏)]
<gchristensen>
our all-packages.nix is hilariously out of order :P
<MichaelRaskin>
I think the latter part is something about hardware.synaptics.enable
ixxie has quit [(Ping timeout: 246 seconds)]
<wangoe>
you could try sthg like config.services.xserver.synaptics.buttonsMap = [ ];
julien-truffaut_ has left #nixos []
Shou has joined #nixos
<Fare>
shall I file a bug against nixpkgs for how dictd is packaged?
<joepie91>
gchristensen: all-packages.nix is a bit impractical in general :/
<Fare>
wangoe, I already have an entire configuration in services.xserver.synaptics, to no avail
<joepie91>
near-impossible to find anything and both browsers and a lot of editors choke on its size
<gchristensen>
yes
<joepie91>
are there any plans to resolve this? :P
<MichaelRaskin>
You want to say all-packages.nix serves as a useful editor selection criterion?
<Fare>
also, why is X logging to /dev/null ? It's painful to have to start a new X server to get logs
<Fare>
plus the default log location in /nix/store/.../var/log is unhelpful
<MichaelRaskin>
doesn't it log to the journal?
<Fare>
MichaelRaskin, how would I tell?
<MichaelRaskin>
journalctl -u display-manager, most likely
iyzsong has quit [(Quit: bye.)]
<MichaelRaskin>
Wait, do you succeed to launch a second X session on NixOS?
<Fare>
MichaelRaskin, session, i don't know, but X server yes
<Fare>
just copy/paste and modify the command-line reported by ps
<MichaelRaskin>
Hm, I stopped using NixOS-proper, because a second X server said EPERM when trying to grab a console — that was as root
<MichaelRaskin>
This started happenning after some systemd update
<Fare>
MichaelRaskin, on the command line, I replaced "vt7" by "vt9" and had no problem with the console.
<MichaelRaskin>
Hm. How interesting
<Fare>
(II) Using input driver 'mtrack' for 'SYNA2B29:00 06CB:77C6'
<Fare>
(II) config/udev: Adding input device SYNA2B29:00 06CB:77C6 (/dev/input/mouse1)
<MichaelRaskin>
I obviously corrected the vt name, but it didn't work for me
<Fare>
also known as /dev/input/event8
<Fare>
I only corrected the vt name (vt7->vt9), the server number (:0 -> :1) and the log file (/dev/null -> /tmp/X.1.log) and it all worked. I mean, I didn't try starting a session, just a server
<MichaelRaskin>
I guess what I use never qualifies as a session anyway
<MichaelRaskin>
Maybe X.org later added some workaround for systemd destructive behaviour, not sure
<MichaelRaskin>
I did more or less the same, with little luck
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v1lWL
<NixOS_GitHub>
nixpkgs/master 605f923 Eric Litak: libxslt: fixed crossDrv, where no python is available
<NixOS_GitHub>
nixpkgs/master e4f4447 Frederik Rietdijk: Merge pull request #20899 from elitak/libxslt...
<MichaelRaskin>
Fare: that's what my current Xorg.conf has and it works OK with Synaptics
xwvvvvwx has joined #nixos
cfricke has quit [(Quit: WeeChat 1.6)]
<MichaelRaskin>
What are your pointer-relevant InputClass sections?
<Fare>
I have a /etc/X11/xorg.conf.d/50-synaptics.conf, symlink to /etc/static/X11/xorg.conf.d/50-synaptics.conf that looks like a constant not affected by my nixos configuration
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1lWR
<NixOS_GitHub>
nixpkgs/master 63a1edb Joachim Fasting: ion3: requires lua 5.1...
<MichaelRaskin>
How interesting
<Fare>
it has three entries that look related to touchpads
<MichaelRaskin>
I generate my xorg.conf by NixOS code and it already includes all the synaptics stuff inline
asymmetric has quit [(Ping timeout: 240 seconds)]
<Fare>
how do you generate your xorg.conf with nixos?
<MichaelRaskin>
Fare: maybe you have stale stuff in /etc/ that is not getting overwritten correctly by NixOS?
<nathan7>
Dezgeg: Thanks for making this possible <3
<gchristensen>
ce!
<gchristensen>
nice! nathan7, Dezgeg
<Fare>
MichaelRaskin, how do I tell?
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v1l8Y
<NixOS_GitHub>
nixpkgs/staging dc451ad Vladimír Čunát: i3-gaps: enableParallelBuilding = false;...
<wangoe>
Fare: have you tried turning it on and off again?
<Fare>
another minor gripe is NTP taking 90s to timeout when rebooting
<Fare>
wangoe... yes :-(
<nathan7>
Next up is building a kernel that'll run nicely on this Cavium ThunderX
herzmeisterderw has quit [(Client Quit)]
* Fare
tries libinput instead of synaptics
<MichaelRaskin>
Fortunately, I have crazy enough clock situation to be unable to run NTP as a daemon
<Dezgeg>
cool, I should indeed polish up all the patches I have lying around and merge them
<MichaelRaskin>
Fare: do you have read-only /nix/store?
<Fare>
MichaelRaskin, looks like so
<MichaelRaskin>
Then it could be safe to try wiping everything nix-related in /etc/ and switching
<Fare>
well, at least the contents has read-only permissions
<vcunat>
the default is to mount it read-only
<Fare>
I am a person with lots of defaults.
<MichaelRaskin>
I am not sure xorg.d is supposed to exist
<Fare>
I certainly didn't create it manually
<Fare>
and after I switched, the file I mentioned above disappeared.
<MichaelRaskin>
Talking with people still using mainline NixOS makes me appreciate the inverse-etc-construction approach more…
<Fare>
I'll try rebooting (also trying to check multiboot with Windows and Ubuntu)
<MichaelRaskin>
(I have overlayfs of static etc and /var/etc in /etc, so I can look up what the hell comes form where)
<Fare>
ttyl
<Fare>
what inverse-etc-construction?
zsoc has quit [(Ping timeout: 265 seconds)]
<MichaelRaskin>
etc is a symlink to a directory where the overlayfs of Nix-built etc (bottom) and /var/etc (top) lives
<Fare>
I also couldn't find a way to tell hexchat not to use firefox, but chromium
<MichaelRaskin>
Is Chromium your default browser?
<MichaelRaskin>
Did you try setting $BROWSER ?
<Fare>
I'll try...
Fare has quit [(Quit: Leaving)]
Fare has joined #nixos
Fare has quit [(Remote host closed the connection)]
Fare has joined #nixos
<Fare>
nope, BROWSER or XBROWSER doesn't do it
* Fare
looks into xdg-open
<MichaelRaskin>
I have checked that BROWSER changes xdg-open behvaiour. At least on my primitively-built system…
<Fare>
:-/
glines has joined #nixos
mizu_no_oto has joined #nixos
<MichaelRaskin>
Is your touchpad still unhappy?
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v1l4L
<NixOS_GitHub>
nixpkgs/master 9ccc14b Tuomas Tynkkynen: linux_rpi: Add some feature flags...
<Fare>
I didn't restart the X server yet...
cfricke has joined #nixos
<MichaelRaskin>
Didn't you test in a background X instance anyway?
<Fare>
interestingly, xdg-open seems to chain into kde-open5
<MichaelRaskin>
Oh wow
<MichaelRaskin>
And then this delegation chain ends up with a loop
<Fare>
:-)
<Fare>
I went to my kde settings and told it to use chromium
<Fare>
this is pretty f'ed up, though
<MichaelRaskin>
Sorry Mario, but your princess is in a yet another castle
<MichaelRaskin>
I can't decide whether I am tempted to check out NixOS again as second-X-session works, or too reluctant to touch the _other_ bad systemd stuff (binary logs requiring random-access for reading the last line, insistence to handle lid-close…)
c0bw3b has joined #nixos
<c0bw3b>
hello ppl of #nixos :)
Rotaerk has joined #nixos
wangoe has left #nixos []
ebzzry has joined #nixos
<c0bw3b>
i have a simple problem i can't seem to workaround with my users definition .nix file
<c0bw3b>
and it's inside a bigger users.users.my = { }; block
<MichaelRaskin>
And the key doesn't contains " just in case?
<c0bw3b>
no it does not
<wangoe>
users.extraUsers maybe?
<c0bw3b>
will try
<MichaelRaskin>
Maybe unclosed quote above in the file?
<wangoe>
c0bw3b in my config it is users.extraUsers.name.openssh. ...
<c0bw3b>
yep but i read on https://nixos.org/nixos/options.html that extraUsers was just an alias for users.users so i went for the original keyword :p
<c0bw3b>
but MichaelRaskin was spot on! i had an unclosed string 3 lines before...
<c0bw3b>
and i relied on the vim colorieation thinking previous lines were fine... ugh >_<
takle has quit [(Remote host closed the connection)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
Shell has quit [(Changing host)]
Shell has joined #nixos
Shell has quit [(Changing host)]
Shell has joined #nixos
takle has joined #nixos
<joachifm>
gchristensen: never tried it
<gchristensen>
aye
<gchristensen>
I'm trying to package Parcimonie.sh but it is requiring almost more patch code than original code :P
jbo has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
<jbo>
Hi there -- I'm trying to make a dev environment for calibre. This is my first attempt to use nix-shell. My WIP is here: http://pastebin.com/ria9ciC9
takle has quit [(Ping timeout: 260 seconds)]
<jbo>
(it returns "cannot coerce a function to a string fn:3:2")
<jbo>
calibre is packaged for nixos here -- is there some way to re-use the build file to create the environment?
<vcunat>
(the first one takes nixpkgs from the current directory)
<jbo>
vcunat: ahh... well that makes things easier! thank you!
<vcunat>
{-)
<vcunat>
:-)
pstn has quit [(Ping timeout: 240 seconds)]
<jbo>
vcunat: what's the 'default.nix' equivalent of that second command-line?
<vcunat>
jbo: I don't understand
<vcunat>
it takes the expression from nixpkgs tree
<vcunat>
I thought your point was to use that instead of your default.nix
<jbo>
yeah - that's working away now. I'm still trying to understand the .nix format -- is there some way to write a defualt.nix that when $(nix-shell .) is run, it does the equivalent of $(nix-shell '<nixpkgs>' -A calibre) ?
<vcunat>
ah I see
<vcunat>
if you don't pass the argument to nix-shell, it uses ./default.nix
<vcunat>
you can put "import <nixpkgs>" into your default.nix, for example
<vcunat>
oh, my bad
<vcunat>
jbo: nix-shell defaults to ./shell.nix
<vcunat>
nix-build defaults to ./default.nix
<jbo>
it also reads default.nix
<jbo>
more the "-A calibre" part
<Shell>
ping
<Shell>
you could put: (import <nixpkgs> {}).calibre in your default/shell.nix
<vcunat>
Hmm, it defaults to both, actually -
<vcunat>
it checks for shell.nix and then for default.nix if the first doesn't exist
xwvvvvwx has quit [(Quit: leaving)]
latk has joined #nixos
latk has quit [(Client Quit)]
<jbo>
Shell: cool yeah, looks like that did the job
<jbo>
thank you both!
Fare has quit [(Ping timeout: 265 seconds)]
rsa has quit [(Ping timeout: 246 seconds)]
rsa has joined #nixos
jbo has quit [(Quit: leaving)]
jbo has joined #nixos
jgertm_ has quit [(Ping timeout: 265 seconds)]
Fare has joined #nixos
<gchristensen>
I have several user units in systemd which only work after a `nixos-rebuild switch`. anyone know why the user units don't work before a switch? they're setup as "wantedBy = [ "multi-user.target" ]; before = [ "muti-user.target" ];"
<Rotaerk>
hmm is there a difference between packages and derivations? are there non-derivation packages?
<MichaelRaskin>
Well, package is not a meaningful term
<MichaelRaskin>
There are Nix expressions
<MichaelRaskin>
Some of them return derivations
<gchristensen>
joachifm: ugh looks like the issue is parcimonie just isn't useful anymore
<Rotaerk>
it's a term that's used throughout the manuals, and the website
<MichaelRaskin>
Derivations can be serialised into the Nix store
<gchristensen>
joachifm: and thaht is my issue
<MichaelRaskin>
Derivations can be realised (built)
<MichaelRaskin>
they have outputs, each output is a store path
<gchristensen>
Rotaerk: MichaelRaskin is right, but for common usage, derivations are a basic unit in nix. there are derivations which are not packages.
<joachifm>
gchristensen: you can probably reproduce it with torsocks -i (for isolate)
<gchristensen>
joachifm: yeah I think it was an issue with gpg2 usage instead of torsocks :(
<Profpatsch>
I’d like to merge it because another PR depends on it.
goibhniu has joined #nixos
tomberek has joined #nixos
Fare has quit [(Remote host closed the connection)]
<viric_>
Dezgeg: no more seccomp problems - definitely I had a wrong kernel
<Dezgeg>
ok, good
<tomberek>
Anyone familiar with nixops? How can I refer to the eventual IP of a resource? I need the IP of machine A in the configuration of machine B. In terraform there is the concept of exported attributes. What is the equivalent?
iamcorpix has joined #nixos
<simpson>
tomberek: There isn't a way to do this AFAIK. Would a hostname be okay? The nixops machines all can see each other's hostnames.
Fare has joined #nixos
<tomberek>
@simpson: yes, hostname would work. I'm just thinking of future requirements where I might need something like that. Imagine needing some attributes of EC2 instances, not known ahead of time.
<Rotaerk>
is haskell NG no longer a thing? don't see it
<simpson>
tomberek: I can't really imagine such a situation, but I'm pretty small-minded.
<tomberek_>
found this in the manual: It combines system configuration management and provisioning. Provisioning affects configuration management: for instance, if we instantiate an EC2 machine as part of a larger deployment, it may be necessary to put the IP address or hostname of that machine in a configuration file on another machine. NixOps takes care of this automatically.
<tomberek_>
so it seems it can do it, i just don't know the syntax to make it happen
newhoggy2 has joined #nixos
glines has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1lwY
<NixOS_GitHub>
nixpkgs/master 0fd5a0c Vladimír Čunát: lyx: 2.1.5 -> 2.2.2...
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
<Fare>
good news: libinput is working where synaptics wasn't
<MichaelRaskin>
How interesting
MaxStirner has left #nixos []
<Fare>
my right click is back!
kampfschlaefer has joined #nixos
Itkovian has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
systemfault has joined #nixos
<tomberek_>
anyone know how to refer to attributes of one machine in another machine's configuration? (NixOps)
godparticle[m] has left #nixos ["User left"]
kampfschlaefer has quit [(Quit: No Ping reply in 180 seconds.)]
vcunat has quit [(Quit: Leaving.)]
kampfschlaefer has joined #nixos
tomberek_ has quit [(Ping timeout: 260 seconds)]
acertain has joined #nixos
newhoggy2 has joined #nixos
mizu_no_oto has joined #nixos
mizu_no_oto has quit [(Client Quit)]
<zimbatm[m]>
tomberek_: that's something disnix supports I believe
<zimbatm[m]>
in the context of AWS it makes more sense to have an ELB that's set to a Route53 alias
<zimbatm[m]>
the the set of machines responding to the service can be dynamic and you can use autoscaling groups as well
<zimbatm[m]>
basically adding a layer of indirection
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1loz
<clever>
viric_: ive been working against master with my current tests
<viric_>
ok
c0bw3b has left #nixos []
<joko>
Guys, are you cross-compiling or compiling directly on such (ARM) devices?
<clever>
joko: the native compiled kernel in nixpkgs is broken, and after putting up with 2 hour rebuilds for minor changes, i tried testing a cross-compiled kernel
<joko>
I do own a Wandboard and a Raspberry Pi 3 and was thinking of testing NixOS on them
<clever>
joko: and the cross compiled worked instantly
<clever>
joko: but the rest of the OS was natively compiled, i just installed nix on a raspbian rpi2
<clever>
joko: let me grab 2 links
<joko>
I have ArchLinux ARM on Wandboard and they recommend doing native installs + distcc
<clever>
joko: this explains how to get nixos-install outside of nixos, which allows you to install against some external storage (another sd card for ex)
<joko>
clever: got it, thanks ;)
<clever>
joko: and it will just compile everything thats missing, nix build slaves can also help to spread the workload to nearby arm's
<joko>
And regarding cross-compiling, distcc? Are there any guidelines?
xwvvvvwx has joined #nixos
<c74d>
joko: hm, I don't see that paragraph in the current `systemd-nspawn` manpage
<clever>
joko: cross-compiling is tricky, there is support for it in nixpkgs, but not all packages make it easy, many claim they want the pkg-config for the target arch by mistake
<clever>
joko: so your x86 machine gives the build an arm pkg-config, and then the build falls over
<Dezgeg>
yes, wandboard can be made to boot that once you get a suitable u-boot
<Dezgeg>
I've done once, should probably write down how to do it some day...
Guest40686 has quit [(Ping timeout: 245 seconds)]
mrrtump has joined #nixos
<mrrtump>
hey how hard is install?
<mrrtump>
I never did nixos b4
<mrrtump>
harder than debian?
<mrrtump>
or ez
Fare has joined #nixos
<gchristensen>
I'd recommend trying it in a vm
<clever>
Dezgeg: progress!!
<clever>
Dezgeg: i checked out the revision in nixpkgs, and cross-compiled, the problem is back
<clever>
Dezgeg: raspberrypi-kernel_1.20161020-1 is a bad revision
<Dezgeg>
is the firmware from the matching version?
<clever>
Dezgeg: i'm using some firmware from the next branch (beta testing the network boot stuff)
<clever>
so that might be related
xwvvvvwx has quit [(Quit: Lost terminal)]
<clever>
oh, and now that i can compile faster, i can shove a printk into the failing code
asymmetric has quit [(Ping timeout: 258 seconds)]
sebastian has joined #nixos
<mrrtump>
amd 965 6 core
<mrrtump>
4 years old
<mrrtump>
debian being punks
<mrrtump>
so I wana step up to something nicer
e1 has joined #nixos
<e1>
I noticed that parallel building of chromium is not enabled. Is there a reason for that? I didn't notice one in the comments in the corresponding *.nix files.
<clever>
Dezgeg: its looking more firmware/dt related now, 20160921 is also bad
glines has joined #nixos
<c74d>
is the NixOS VM stuff in nixos/modules/virtualisation/qemu-vm.nix documented somewhere?
<clever>
c74d: i havent seen any, but i know how it works if you have questions
wangoe has left #nixos []
<c74d>
ah, thanks
<c74d>
my questions include such basic ones as "what is this and how would I even begin using it"
Seichi has joined #nixos
<clever>
c74d: nixos-rebuild build-vm
* Fare
uses qemu mounting /dev/sda read-only to test his attempts at configure dual-booting into ubuntu
<c74d>
oh!
Seichi has quit [(Client Quit)]
<c74d>
I'd forgotten about that nixos-rebuild subcommand
newhoggy2 has quit [(Remote host closed the connection)]
<sebastian>
I'm trying to get an environment with the ocaml compiler as well as utop and certain ocaml packages, and it seems that pkgs/development/ocaml-modules/ contains the things I'm looking for, but I can't seem to figure out how to get nix-shell -p to recognize that they exist
<digitalmentat>
I create a temporary ssh config file and feed it to the nix-build cmd, the config file is workign fine but ssh-agent stuff is pretty finnicky
<clever>
digitalmentat: and what does "ls -lh /tmp/hax" say?
<digitalmentat>
sandboxes _were_ enabled to get passed a bug but it's disabled now
<digitalmentat>
unless it's enabled some other way I don't know about
<digitalmentat>
i.e /etc/nix/nix.conf has build-use-sandbox = false
<clever>
grep use-sandbox /etc/nix/nix.conf
brh has joined #nixos
<clever>
digitalmentat: and what does "ssh-add -l" say?
<digitalmentat>
oh...interesting
<digitalmentat>
it has no identities
<digitalmentat>
hmm
<clever>
that would explain things
<clever>
you need to add a key to the agent with ssh-add
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
<digitalmentat>
clever, but I did :-/
<digitalmentat>
clever, either way
<clever>
maybe it got restarted at some point without you noticing
<digitalmentat>
yeah
<digitalmentat>
thank you for rubber duckying and thinking to ask that, I appreciate it a lot
<clever>
the ssh-agent in openssh looses all keys upon restart
<clever>
the agent inside gpg doesnt, it saves (in encrypted form) all keys, and will pop up a gui to ask for the pw as-needed
<clever>
i ran ssh-add on my laptop, under an ssh -A (forwarding desktop agent to the laptop) once
<clever>
and now the desktop has 2 keys
<digitalmentat>
got it, that would explain it
<digitalmentat>
I did not understand that :-/
<digitalmentat>
thanks a lot clever
<savanni>
Is there anyone around who would be willing to help me with my nixos installation? This clean installation is turning into a disaster of hardware problems and I'm losing my ability to troubleshoot.
<clever>
savanni: what kind of problems is it giving?
<digitalmentat>
:waves: savanni
<savanni>
chrome isn't switching to the correct webcam. Bluetooth services won't start. Configuration options on my tablet aren't toggleable. More are there, I'm sure. But all of these are things that worked before I did a clean installation.
matthewbauer has quit [(Ping timeout: 258 seconds)]
<clever>
savanni: when chrome is using the webcam, there is a webcam icon in the address bar, you can change the camera in there
<savanni>
one would think, yes. But in fact, you can't. I can go into the Chrome settings and see multple webcams listed, and select the one that I want to use, but it has no effect.
<savanni>
My guess would be maybe a permissions problem on the webcam, but I can't really find things in /dev any more.
<clever>
savanni: which channel does "sudo nix-channel --list" give?