<GiGa|Laptop>
Hi clever, nix-env -p /nix/var/nix/profiles/system --delete-generations
<clever>
yeah, you still need to do a nix-collect-garbage after that
<clever>
to delete the newly made garbage
krey has joined #nixos
AluisioASG has quit [Ping timeout: 256 seconds]
joehh has quit [Ping timeout: 264 seconds]
silver has quit [Ping timeout: 276 seconds]
<GiGa|Laptop>
clever, thanks, that's much better already
<GiGa|Laptop>
I should make and delete the garbage more often
<clever>
there is also `nix-collect-garbage -d` and `--delete-older-than`, which delete the generations for you, then GC
<clever>
-d just gets rid of all old ones, --older-than has a cut-off time
hakujin has quit [Ping timeout: 260 seconds]
AluisioASG has joined #nixos
<GiGa|Laptop>
good to know, thank
<GiGa|Laptop>
s
<{^_^}>
[nixpkgs] @Redcroft opened pull request #39993 → Update version 16.5.439 → https://git.io/vpwBZ
norfumpit has quit [Ping timeout: 248 seconds]
hamishma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swflint has quit [Ping timeout: 240 seconds]
AluisioASG has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
norfumpit has joined #nixos
swflint has joined #nixos
jrolfs_ has joined #nixos
sm0rux has left #nixos ["Leaving"]
griff_ has quit [Quit: griff_]
AluisioASG has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
goibhniu has joined #nixos
rosa has quit [Quit: rosa]
swflint has quit [Ping timeout: 265 seconds]
rosa has joined #nixos
swflint has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xal>
more packaging fun! I can't use the keyboard in IDA and it's giving me the error: xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb
<mattyu>
Anyone with experience changing themes in plasma5/sddm ? As far as I can tell I can only choose between the default themes (breeze, elarun, maldives and maya). It fails to let me install new ones from the kde installer and there's no way for me to install new ones into the "themes" root in sddm install (because #nixos)... Any thoughts?
<clever>
mattyu: take any package that contains a $out/share/sddm/themes and put it into systemPackages, and it should work
jrolfs_ has quit [Ping timeout: 268 seconds]
<mattyu>
Cool - thanks for this! I'll play with it...
sir_guy_carleton has quit [Quit: Leaving]
<mattyu>
I'm still getting familiar with this os - what's the best practice for something like this? Run a nix-shell on the derivation and make the changes I need? Or change the derivation and run nix-env?
tmaekawa has joined #nixos
<clever>
mattyu: sddm only looks in /run/current-system, so neither nix-shell nor nix-env will put the files there
<clever>
mattyu: if you just want to check a package, use nix-build
tmaekawa has quit [Client Quit]
<clever>
and once the files are in the right sub-dir, you add it to environment.systemPackages and nixos-rebuild
hamishmack has joined #nixos
<mattyu>
ahh.. ok - so the display manager runs at the system level not in the user (application) space?
<Ben______>
I'm playing around with nixos on the laptop. Running LightDM & i3 and trying to configure touchpad via libinput.
<Ben______>
Does anybody know a way to test settings like services.xserver.libinput.accesSpeed without doing nixos-rebuild switch & reboot?
Ross has quit [Ping timeout: 248 seconds]
andreabedini has joined #nixos
Ross has joined #nixos
andreabe_ has quit [Ping timeout: 268 seconds]
simukis has joined #nixos
<Ben______>
Anybody?
<krey>
Ben______: isn't it enough to nixos-rebuild switch and then restart X?
<Ben______>
It's better for sure!
wchresta_ has quit [Ping timeout: 256 seconds]
sivteck has quit [Ping timeout: 264 seconds]
Lisanna has joined #nixos
Ben_______ has joined #nixos
PolarIntersect has joined #nixos
<PolarIntersect>
yo
<PolarIntersect>
Does anyone know
<Ben______>
How's restarting X done again? I'm a little rusty, I'm afraid.
<PolarIntersect>
Does anyone know why SLiM doesn't source `.profile`, `.bash_profile`, and other user files in $HOME by default in NixOS?
<PolarIntersect>
I'm assuming SLiM is the default login manager
<krey>
Ben______: also, have you tried messing with xinput first?
<Ben_______>
Krey: nope, first I'm hearing about that. Let me research that real quick.
<krey>
Ben______: you can restart the lightdm service, should restart X at well
andreabe_ has joined #nixos
<PolarIntersect>
Also, does anyone know if `nixos-rebuild switch` updates the system? or is that a different command?
<clever>
PolarIntersect: the display manager will source .xprofile before launching the desktop manager
<maurer>
nixos-rebuild switch just makes your running system match your configuration.nix and whatever nixos you have downloaded
<clever>
PolarIntersect: and nixos-rebuild switch, will update the system, but it wont restart the display-manager
<maurer>
If you actually want new stuff, you will need to do nixos-rebuild switch --upgrade
<PolarIntersect>
But it'll update current packages, yeah?
<PolarIntersect>
to latest versions?
andreabedini has quit [Ping timeout: 268 seconds]
<PolarIntersect>
ooooh, --upgrade
<PolarIntersect>
cool
<PolarIntersect>
Thank you :)
rosa has quit [Quit: rosa]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #39938 → switch-to-configuration: use Net::DBus to retrieve the list of units → https://git.io/vp25y
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwzT
<{^_^}>
→ 54a13b07 by @edef1c: switch-to-configuration: use Net::DBus to retrieve the list of units
<{^_^}>
→ bcf8e749 by @matthewbauer: Merge pull request #39938 from edef1c/net-dbus-list-units
Ben______ has quit [Quit: Page closed]
andreabedini has joined #nixos
andreabe_ has quit [Ping timeout: 264 seconds]
ryantrinkle has joined #nixos
phdoerfler has joined #nixos
hakujin has joined #nixos
andreabe_ has joined #nixos
<PolarIntersect>
hmm
<PolarIntersect>
Seems like it still didn't upgrade Discord
<PolarIntersect>
Maybe I need to be on a newer channel?...
andreabedini has quit [Ping timeout: 260 seconds]
<clever>
PolarIntersect: nixpkgs itself may need an update first
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgB
<{^_^}>
→ f66a510d by R. RyanTM: cni-plugins: 0.7.0 -> 0.7.1
<{^_^}>
→ e852b619 by @matthewbauer: Merge pull request #39784 from r-ryantm/auto-update/cni-plugins
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #39983 → way-cooler: renaming commands is not needed anymore → https://git.io/vpVDa
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgR
<{^_^}>
→ e9ac594e by Sander Hollaar: fix-way-cooler - remove 'mv' commands not needed anymore, and replace '_' with '-' to fix multiple way-cooler compile fa…
<{^_^}>
→ 938299be by @matthewbauer: Merge pull request #39983 from ookhoi/fix-way-cooler
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgD
<{^_^}>
→ c7b21cd1 by @nh2: epeg: init at 0.9.1.042
<{^_^}>
→ 30caa09e by @matthewbauer: Merge pull request #39881 from nh2/epeg
<colemickens>
I can't tell if I've done something wrong. My NixOS machine is running 4.14.39. When I try to create this VM image, then I see a VM that boots running kernel 4.15... but then it tries to insmod a module built for 4.14.39.
<{^_^}>
[nixpkgs] @offlinehacker pushed 3 commits to master: https://git.io/vpw2c
<{^_^}>
→ c3eefe80 by @xeji: fleet: remove package, module, test
<{^_^}>
→ f039bf9a by @xeji: panamax: remove packages, module and test
<{^_^}>
→ 3ec4528d by @offlinehacker: Merge pull request #39991 from xeji/remove-fleet
throwboy has quit [Remote host closed the connection]
jedai42 has joined #nixos
jedai|3 has joined #nixos
jedai has quit [Ping timeout: 240 seconds]
<jD91mZM2>
What's the recommended way to build haskell packages? cabal2nix works great, sure, but would it be better/worse to use pure cabal?
wchresta_ has joined #nixos
jedai42 has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
<jD91mZM2>
Also, running `cabal build` complains about "/usr/bin/ghc-pkg: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)". Which is odd, since it should detect that ghc-pkg is in my PATH
drakonis has quit [Read error: Connection reset by peer]
<jD91mZM2>
Never mind, the cabal build issue was due to an old shell alias I had which somehow messed things up. My bad.
joehh has joined #nixos
smichel has joined #nixos
wchresta_ has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nixos
nocoolnametom has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @thoughtpolice pushed to master « foundationdb: rename jar file to match upstream »: https://git.io/vpw2Q
nocoolnametom has joined #nixos
<{^_^}>
[nixpkgs] @mogorman opened pull request #39998 → platformio: add git to chroot so it is usable by platformio command → https://git.io/vpw2A
griff_ has quit [Ping timeout: 264 seconds]
andreabedini has joined #nixos
jgertm has quit [Ping timeout: 264 seconds]
jacob_ has joined #nixos
GiGa|Laptop has joined #nixos
<GiGa|Laptop>
Morning|Afternoon|Evening all
<GiGa|Laptop>
Anyway use a Fido2 Yubikey?
<GiGa|Laptop>
*Anyone
wchresta_ has joined #nixos
codygman has joined #nixos
<codygman>
Anyone use spacemacs and mu4e on nixos successfully? I notice it doesn't work by default because mu4e installs itself somewhere different.
<GiGa|Laptop>
Does spacemacs allow you to specify a path to mu4e
<GiGa|Laptop>
?
<GiGa|Laptop>
I sometimes have this problem with git
<GiGa|Laptop>
so I do a "whereis git"
<GiGa|Laptop>
perhaps you can do the same ?
<codygman>
GiGa|Laptop: Oh it does... let me try specifying the path
<GiGa|Laptop>
codygman, I don't know if there's a way to specify it in your system config, but if you can specify it in the program config I suspect you'll be laughing
katyucha has joined #nixos
wchresta_ has quit [Ping timeout: 248 seconds]
periklis has joined #nixos
FireFly has quit [Quit: Goodbye]
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 268 seconds]
Arcaelyx has joined #nixos
GiGa|Laptop has quit [Remote host closed the connection]
smichel has quit [Quit: smichel]
<swaaws>
how do build a kernel module with .nix file (chapter 12 in the nix manual are a little bit slim) https://gist.github.com/manveru/d4bc162127365f6f812d I commented below I think there are commands for nix pkgs
<{^_^}>
[nixpkgs] @nlewo pushed to release-18.03 « gcc49: backport retpoline support »: https://git.io/vpwab
<tilpner>
The build fails for me, but at least it starts building
rosa has joined #nixos
NightTrain has quit [Quit: Lost terminal]
<tilpner>
Adding libelf to nativeBuildInputs gets to the next error "error: code model kernel does not support PIC mode"
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
mingc has joined #nixos
<{^_^}>
[nixpkgs] @demyanrogozhin opened pull request #39999 → particl-core: init at 0.16.0.4 → https://git.io/vpwVZ
asuryawanshi has joined #nixos
<swaaws>
tilpner: So many thx it’s building time. No errors
<tilpner>
Huh
<tilpner>
How do you not get that "does not support PIC mode" error...
<sphalerite>
I don't really get the purpose of trusted-substituters. Why wouldn't users be allowed to just use any substituter as long as the signing keys on the imported NARs are trusted?
seanparsons has joined #nixos
<swaaws>
tilpner: it’s currently downloading I’m on EDGE cellular
vcunat has joined #nixos
<tilpner>
Oh, okay, it'll error in a while then
periklis has quit [Ping timeout: 265 seconds]
katyucha has quit [Ping timeout: 268 seconds]
<swaaws>
tilpner ok i get errors, see the last gist comment
<tilpner>
I already said how to fix that
<swaaws>
Oh sorry, I don’t understand add libelf to native...
obadz- has joined #nixos
va1entin has joined #nixos
<va1entin>
Hey folks, are new non-LTS kernels not being backported to Nixos stable anymore? I haven't seen 4.16 appear in release-18.03 so far and we're already at 4.16.7. In 17.09 the latest stable kernel was backported iirc
<va1entin>
I'm using longterm 4.14 now so it's not that much of a problem. I was just wondering
obadz has quit [Ping timeout: 256 seconds]
obadz- is now known as obadz
<swaaws>
tilpner i get „PIC“error too
katyucha has joined #nixos
<swaaws>
tilpner the PIC error are a gcc bug. To disable add -fno-pie to extra_cflags
<sphalerite>
tilpner: indeed. If an attacker has my user they can get root anyway by messing around with my tmux or whatever
<sphalerite>
as well as that
<tilpner>
Right. They could just mock sudo, and they my password too
<tilpner>
*they have my
<jD91mZM2>
Does that mean I should not stay away from the "docker" group just because it can be used to modify root files?
<sphalerite>
yes
<sphalerite>
IMHO
<ixxie>
sphalerite: do you know which of the regulars here are into NixOps? Are you into it for example?
<tilpner>
On your personal machine, adding yourself to docker is okay (IMO)
<sphalerite>
ixxie: I'm not :p
<jD91mZM2>
It seems like docker can literally mount the whole root without sudo though... that seems pretty spooky
<tilpner>
ixxie - gchristensen is
<sphalerite>
jD91mZM2: sure it can, but it's not something you'd do by accident. And if an attacker is in your user account you probably have bigger problems than securing your root account :)
rosa has quit [Quit: rosa]
wchresta_ has quit [Ping timeout: 240 seconds]
<sphalerite>
jD91mZM2: not something you'd do by accident, unlike sudo sometimes :p
<MichaelRaskin>
jD91mZM2: I request a just-Enter confirmation in a separate VT for some commands
<MichaelRaskin>
But, that is not strictly NixOS and not sudo
<jD91mZM2>
Just change the config to run some spooky root commands, rebuild, bam! system corrupted
<sphalerite>
jD91mZM2: sure it could, but again, if someone's running code as your user you probably have bigger concerns.
<jD91mZM2>
yeah but it could brick my systemmmmmmm
<tilpner>
It's a tradeoff. You're giving security away for some convenience
<tilpner>
If an attacker can alter your dotfiles, they already won. They don't need nixos-rebuild for that
<tilpner>
Though I suppose you'd be giving them an extra option
<sphalerite>
Yeah. And they can copy out your browser profile, which has cookies for all your logins on the web.
<jD91mZM2>
Wait, what is nixos-container? o_o
<sphalerite>
And your mail client config, with login credentials for your email.
jedai has joined #nixos
<sphalerite>
That's a much more attractive option than bricking your system if you ask me :p
<MichaelRaskin>
If you run all your borwser instances under the same user, the attackers have already won. In advance, before doing anything
<tilpner>
Oh hi MichaelRaskin, I was looking at your firefox config
jedai42 has joined #nixos
<tilpner>
Does it really need all the marionette stuff?
<MichaelRaskin>
Marionette stuff is actually for the things I consider usability.
<jD91mZM2>
Yeah but it depends on who's doing it. It's much easier for some evil person to plug `sudo rm -rf --no-preserve-root /` in my dotfiles than it is to steal all my cookies
phdoerfler has joined #nixos
<MichaelRaskin>
Like, if I launch no-JS instance then decide to allow JS
phdoerfler has quit [Client Quit]
<tilpner>
jD91mZM2 - Not really. They have remote access, so they can scp your ~/.mozilla out
jedai|3 has quit [Ping timeout: 260 seconds]
<tilpner>
(Or just tar | nc)
<jD91mZM2>
You assume they have remote access
<MichaelRaskin>
Also Marionette stuff helps me _easily_ save web page HTML after the scripts have been executed
<sphalerite>
They're running code on your machine, they have remote access.
<MichaelRaskin>
For mere isolation, Marionette is obviously superfluous
<jD91mZM2>
Imagine I am a stupid person and somehow create a program with an obvious shell injection flaw
<{^_^}>
→ a0502800 by @Ma27: yubikey-personalization-gui: port to qt5
<{^_^}>
→ c94a1e61 by @xeji: Merge pull request #39987 from Ma27/yubikey-personalization-gui/qt5-port
<MichaelRaskin>
If it just continues, then yes, bad
humanoyd has quit [Ping timeout: 260 seconds]
<jD91mZM2>
On a more serious note, is every output from `readelf -d` a runtime dependency?
<jD91mZM2>
Because I have a few dependencies which I don't know if they're compile time or runtime, and I'd love some easy way to check
<MichaelRaskin>
Yes
<sphalerite>
MichaelRaskin: it does continue
<MichaelRaskin>
Ouch then
<jD91mZM2>
There is no RPATH though... and it seems to work without them
<jD91mZM2>
without it*
<jD91mZM2>
the RPATH
<MichaelRaskin>
jD91mZM2: I think nix-store is a better way to check
<jD91mZM2>
oh was dis
<MichaelRaskin>
And if a full path is written inside the package, this full path is a runtime dependency
<sphalerite>
nix-store -q --references /nix/store/foo shows you all the paths that foo references
<MichaelRaskin>
(oh well… I can create an exception, of course, but that's silly)
<sphalerite>
well it's not necessarily *actually* a runtime dependency.
rosa has joined #nixos
<jD91mZM2>
No I mean I want to check what a normal binary requires
<MichaelRaskin>
Ah
<sphalerite>
you can't really do that in a way that captures all cases
<sphalerite>
but yeah readelf -d is a good start
<sphalerite>
ldd can also tell you how they're resolved
<jD91mZM2>
Seems like it has NEEDED entries for a bunch of 'em, but a RUNPATH for only two, and yet it works without patching
ambro718 has quit [Remote host closed the connection]
<jD91mZM2>
Ah, ldd tells me that they're found anyway. Okay.
<jD91mZM2>
Ok so apparently libssh2 is a runtime dependency. Oh noes
<jD91mZM2>
Seems accurate though. Okay, it works. Yay!
<{^_^}>
[nixpkgs] @jD91mZM2 opened pull request #40002 → powerline-rs: init at 0.1.6 → https://git.io/vpwoB
<sphalerite>
jD91mZM2: you can try running it with LD_DEBUG=libs and it'll give you detailed info on how it searches for each one
<sphalerite>
oooooh, I like. I might start using that.
<jD91mZM2>
I've been told it's one of my more useful programs. Which is hilarious since it's one of the simpiler.
<sphalerite>
you have a lot of programs :P
<sphalerite>
I'm surprised they didn't say that about rot26
<sphalerite>
also, did your username come out of a password generator?
rosa has quit [Quit: rosa]
rosa has joined #nixos
<jD91mZM2>
Sorry for the delay, I was brushing my teeth
<jD91mZM2>
My username is actually not entirely random. I made some stupid encoding that only I know of though, to ensure that nobody knows the truth!1111
<jD91mZM2>
I learned the hard way that usernames aren't easily changeable if you keep using the same one everywhere. So I made a username that is about as disconnected to anything specific as it can get
humanoyd has joined #nixos
<jD91mZM2>
But, since my username is so complicated, my password is really easy for a change /s
<sphalerite>
haha
rosa has quit [Client Quit]
rosa has joined #nixos
<swaaws>
tilpner: i added to the tuxedo-wmi.nix at buildPhase „export hardendingDisable='pic format' the PIC error are gone but new warnings are shown (no working .ko )
<jD91mZM2>
Does NixOS give any advantages on a server? I'm not sure if it works on Raspberry PI 3 yet, but maybe I could replace Arch Linux ARM with it?
<crystalgamma[m]>
how would one go best about installing NixOS on a "new" architecture (ppc64(le) in my case)? crossbuilding an install image (and if so, how?) or getting nix to run on fedora or debian on the target machine, then building nixos-install?
<jD91mZM2>
srhb: No, I keep forgetting to check build status. Thanks!
<srhb>
jD91mZM2: I also think we're essentially enforcing real names nowadays in maintainer-list.nix :)
<srhb>
(Or maybe that's just for people with push access? vcunat do you remember?)
<ajmccluskey>
In case you were interested srhb, moving my LUKS encrypted LVM install to a bigger hard drive went fine. `dd`ed the whole drive over, then resized everything by mostly following this: https://ubuntuforums.org/showthread.php?t=726724.
<srhb>
ajmccluskey: Awesome, thanks for the update. :)
<jD91mZM2>
I sure hope it's only for people with push access, as I am pretty darn strict about not giving out my name for any reason
<srhb>
jD91mZM2: Sure, lots of people feel that way. I'll find out. :)
silver has joined #nixos
<jD91mZM2>
How would I check metadata locally btw?
<jD91mZM2>
I mess that part up almost every time
<srhb>
jD91mZM2: I believe it's described in the ofborg readme, let me check...
<tilpner>
(If that was an answer, I didn't understand it)
<swaaws>
Afk
coot has quit [Quit: coot]
coot has joined #nixos
<sphalerite>
crystalgamma[m]: roughly, you first get nix for that arch (either by building it from source natively there, or using nixpkgs cross-compilation), then you can get nixos-install using nix-env -f '<nixpkgs/nixos>' --arg configuration {} -iA config.system.build.nixos-install
<sphalerite>
crystalgamma[m]: easier said than done of course, you may well need to make a variety of changes to nixpkgs to make it actually build
<jD91mZM2>
srhb: It builds now. Yay!
<sphalerite>
crystalgamma[m]: cross-building a bootable image is probably more fuss than it's worth if you've already got a linux running on it
<vcunat>
srhb: meta.maintainers commonly contains people without push access
<vcunat>
(if that's what you meant)
ambro718 has joined #nixos
rosa has quit [Quit: rosa]
<crystalgamma[m]>
yeah I am totally expecting to do some work to get it running. but if native building nixos-install is the best way, that's what I'm going to try when I get the computer next week
<srhb>
vcunat: It's not. The question I'm asking is whether we're requiring real names from contributors/maintainers that don't have push access.
<srhb>
vcunat: In maintainers-list.nix, that is.
<vcunat>
right, I think so
<srhb>
We probably need a policy document of some kind. :-)
<vcunat>
though personally I don't consider real names too significant
<srhb>
Ditto, it's sad to lose a maintainer over this, but I don't want to merge something I shouldn't because of this. :-)
shabius has joined #nixos
<tilpner>
:/
<vcunat>
well, the meta.maintainers field doesn't really mean much by itself
<sphalerite>
srhb: FWIW we don't have a real name for aszlig
<vcunat>
doing the maintenance is the thing
<srhb>
Agreed. It's nice to feel free to poke the person listed there when things break though :D
<srhb>
It's like consent to be bothered. I like that.
<tilpner>
vcunat - MichaelRaskin said in #nixos-dev that the realname policy might be for legal reasons (copyright things)
<vcunat>
aszlig may not have a real name, but he does have a real photo :-D https://github.com/aszlig
<srhb>
That is _very_ real.
<vcunat>
and I've met him in person, at least on two NixCons
<sphalerite>
his eyes weren't quite as glowing and red at nixcon, but that is him, lol
<jD91mZM2>
sphalerite: tilpner: Setting nix.nixPath seems to override the $NIX_PATH completely?
<jD91mZM2>
Suddenly it contains nothing but nixos-config=<whatever>... How do I preserve nixpkgs and things?
<tilpner>
You copy the old values in there
<TimePath>
any advice for getting the result of `git describe` on a local git checkout with nix?
<vcunat>
I'm no lawyer, but I don't think legal reasons are significant here.
<vcunat>
The copyright is jointly held by hundreds of people, meaning there's basically no possibility to act on it anyway, as you'll always be missing someone.
<swaaws>
tilpner: oh i understand, which Full Name are the .ko
<jD91mZM2>
I can't use nix.nixPath = nix.nixPath // [ "whatever=what" ] possibly?
<vcunat>
(not that the copyright matters really, with such a simple weak license)
<MichaelRaskin>
vcunat: we need to pretend that we have a license to distribute the whole
<sphalerite>
jD91mZM2: either put all the items you want in yourself, or set it as lib.mkDefault ["your stuff"];, which will make it have the same priority level as the default and get merged with it rather than overriding it, *I think*
<vcunat>
MichaelRaskin: I'm not aware that needs knowing real names of all the contributors
<tilpner>
Oh, good idea, sphalerite
<jD91mZM2>
Aha. Thanks
<MichaelRaskin>
I think the real problem is that nobody knows what it does require
<vcunat>
yes :-)
<vcunat>
uncertainty can be a problem by itself
<vcunat>
we could ask, maybe silver_hook ?
<tilpner>
Is there no legal-stuff-person one could ask?
knupfer has joined #nixos
<tilpner>
(There must have been similar questions in the past, right?)
<srhb>
Maybe people were more clever than me and just clicked the button instead of asking.
<srhb>
This was a huge mistake. :-)
<MichaelRaskin>
vcunat: that's what putting «knowingly» into laws does to you
<MichaelRaskin>
Nobody wants to know for sure we are doing something wrong.
<jD91mZM2>
sphalerite: mkDefault didn't actually seem to work. I'm guessing it's because the default value is already set.
<sphalerite>
jD91mZM2: no, in that case it'll be because the default value comes directly from the option declaration and not a separate definition :/
<srhb>
jD91mZM2: No, mkDefault would make the values have the same priority and thus make the lists _merge_. I think there isn't a default value for it though.
thc202 has quit [Ping timeout: 264 seconds]
<srhb>
I'm wrong, what sphalerite said. :)
jrolfs_ has quit [Ping timeout: 260 seconds]
<srhb>
(It does have a default value)
<sphalerite>
jD91mZM2: what *might* also work is options.nix.nixPath.default ++ ["your stuff"];, not sure about this one either though
<sphalerite>
(you'll need to add options to the arguments at the top of your module for this to work, if it works at all)
<tilpner>
sphalerite - The default cntains nixos-config
<tilpner>
So you would have to filter, I think
<sphalerite>
oh yeah in that case ["your stuff"] ++ options.nix.nixPath.default
<tilpner>
Wouldn't that make it appear twice in NIX_PATH?
<srhb>
Why isn't it an attrSet anyway...
<sphalerite>
tilpner: yes, it would
<tilpner>
srhb - Because not all entries have keys
<sphalerite>
^
<tilpner>
sphalerite - That's terrible :/
<tilpner>
Just copy it, much simpler
sydney has joined #nixos
<sphalerite>
tilpner: it would work though!
<tilpner>
:c
<sphalerite>
if it works
<sphalerite>
... yay tautologies
<srhb>
Okay, why isn't it a uniqList -- oh.. :P
<jD91mZM2>
The options.nix.default thing builds
<sphalerite>
holy crap x)
<tilpner>
Now look at your duplicate entries in NIX_PATH and tell me you want to live with that c.c
<jD91mZM2>
... but compiling makes it go "warning: Nix search path entry '/etc/nixos/configuration.nix' does not exist, ignoring"
<jD91mZM2>
compiling again*
rosa has joined #nixos
<sphalerite>
oh yeah because it still has the standard nixos-config entry
<jD91mZM2>
tilpner: Would you rather want to live with a hardcoded nixpkgs location?
<swaaws>
tilpner: you on unstable-channel?
<sphalerite>
yeah probably easiest to just copy the original definition as tilpner suggests.
<sphalerite>
That, or just have /etc/nixos/configuration.nix be a symlink to your dotfiles repo
<jD91mZM2>
I might just keep symlinking to /etc/nixos though, yeah
<tilpner>
jD91mZM2 - Yes. I have NIX_PATH=nixpkgs=/cfg/nixpkgs
<sphalerite>
jD91mZM2: the idea is that you generate the actual working parts of the system with nixos, but you're free to put whatever you want in paths that nixos isn't using
<tilpner>
jD91mZM2 - There's no problem with touching /
<jD91mZM2>
oh okay
<jD91mZM2>
If I have a bunch of openvpn configs, should they be in /root/openvpn or /openvpn or something else?
* sphalerite
just had another nasty horrible idea — nixos and a classic linux distro, living on the same filesystem
<sphalerite>
probably with a bind-mount for etc so they don't confuse each other
<jD91mZM2>
Isn't that basically what installing the nix package manager does?
<tilpner>
jD91mZM2 - Not in /openvpn, but /cfg/openvpn would be okay
uptime has quit [Ping timeout: 260 seconds]
<jD91mZM2>
What's /cfg for?
<tilpner>
:/
<tilpner>
You can put them wherever you want
<sydney>
tilpner: thank you very much, exactly what I was looking for!
<tilpner>
:)
<sphalerite>
jD91mZM2: not really, installing the nix package manager doesn't touch anything outside of /nix (mostly)
<jD91mZM2>
oh
<sphalerite>
the only exceptions are stuff like the shell init snippet that puts your nix profile on your PATH, and creating the nix profile symlink itself
<sphalerite>
but it doesn't touch /etc or anything that belongs to the host OS
<jD91mZM2>
A few days ago somebody mentioned they prefer the stable repos because they get security updates faster. Why is this? Shouldn't it be the opposite?
coot has joined #nixos
<sphalerite>
because master gets big changes that can take a long time to build
<tilpner>
And release channels have calmed down, so they'll pass tests quicker
<sphalerite>
while 18.03 gets only the security updates (and bug fixes), so typically the time between fix committed and channel updating is shorter
<jD91mZM2>
Aha
wchresta_ has joined #nixos
<jD91mZM2>
That's a bummer, I kind of want to make my whole system rolling release
<tilpner>
And you can your base system from stable, then pick your applications from unstable
Hdphn has joined #nixos
<tilpner>
So there's not much reason to use unstable for your base system
<jD91mZM2>
Yeah but then I need to pick out specific ones and things
<tilpner>
*you can run your base system
<jD91mZM2>
I kinda just want everything to be the latest version
<tilpner>
Sure, your choice. You'll have to live with slower security fixes then
<jD91mZM2>
:(
<jD91mZM2>
Is there no sort of priority queue?
<tilpner>
You can always implement them yourself locally, if the channel is too slow
<tilpner>
But that requires following all of them, which probably takes too much time
<jD91mZM2>
mmm...
<jD91mZM2>
The annoying thing with stable is that the bugs that do exist, exist for a longer time since you don't get the bugfixes immediately.
<jD91mZM2>
I'm having a konsole bug I've never seen before suddenly, and I think that's due to my version being outdated. Which is kind of funny since it's exactly what stable is made to prevent
coot has quit [Remote host closed the connection]
<yorick>
ij: it's called nixops scp
<tilpner>
jD91mZM2 - stable here means "fewer changes", not "fewer crashes"
<jD91mZM2>
good point
<ij>
yorick, ah, I see it now, thanks
<tilpner>
But it's easy to try out if unstable konsole fixes your problem
<tilpner>
And once you've confirmed that... just overlay unstable konsole onto your stable system
<jD91mZM2>
Yeah but I want *all the things*
<jD91mZM2>
:^)
<tilpner>
...
sydney has quit [Quit: Leaving]
coot has joined #nixos
<jD91mZM2>
Wait, you need to call nixos-rebuild --upgrade?
<jD91mZM2>
It doesn't upgrade by default?
<tilpner>
That would be horrible
coot has quit [Remote host closed the connection]
b has joined #nixos
<jD91mZM2>
What happens with applications that live on channels that have been removed?
<tilpner>
Nothing special
coot has joined #nixos
<tilpner>
The GC will take care of them after you stop using them
<jD91mZM2>
How do you list all applications that use one specific channel?
<tilpner>
I don't know an easy way to do that
winem_ has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
jD91mZM2: if you have ebough local build capacity, you could just use a master checkout, build the tests you care about, and upgrade if everything is fine
wchresta_ has quit [Ping timeout: 268 seconds]
FireFly has joined #nixos
katyucha has joined #nixos
<jluttine>
how has the usage of mesa changed in nixpkgs recently? i'm getting an error for a derivation that has had "mesa" as a build input: `called without required argument 'mesa'`
jD91mZM2 has quit [Ping timeout: 260 seconds]
coot has quit [Remote host closed the connection]
coot has joined #nixos
vcunat has quit [Ping timeout: 256 seconds]
vcunat has joined #nixos
<jluttine>
srhb: it was built on nixos-unstable at that time
<jluttine>
srhb: can you point me in the right direction what changes are needed for the recent mesa changes (i don't know what they are)?
orivej has quit [Ping timeout: 248 seconds]
<Dezgeg>
maybe there is some preparation for transition to libglvnd
<jluttine>
i'm just googling nixpkgs + mesa but not getting anything that i find useful to figure out what to do
<Dezgeg>
I suppose the new names are libGLU and libGL
<Dezgeg>
(for mesa_glu and mesa_noglu respectively)
<jluttine>
ok. i have no idea whether to use _glu or _noglu.. i just had `mesa` previously
<Dezgeg>
I think 'mesa' was just combination of both _glu and _noglu
andreabedini has joined #nixos
<jluttine>
perhaps i'll just test if it builds with libGL, then i suppose that's the way to go
freeman42x]NixOS has joined #nixos
<Dezgeg>
yes, try libGL, then if that doesn't work, both libGL and libGLU
<jluttine>
ah, both!
<jluttine>
so libGLU isn't a replacement but an addition
<Dezgeg>
yes, it's the GL Utility Library
<{^_^}>
[nixpkgs] @vcunat pushed 170 commits to staging-18.03: https://git.io/vpw6o
<{^_^}>
→ 4a73c1fa by @peti: Merge pull request #39062 from vaibhavsagar/bump-all-cabal-hashes
<{^_^}>
→ 2c9c8905 by @Mic92: peek: add ffmpeg to PATH
<{^_^}>
→ f0d44d8e by @bendlas: dwarf-fortress: 0.44.05 -> 0.44.09
jrolfs_ has quit [Ping timeout: 240 seconds]
alfie has joined #nixos
jD91mZM2 has joined #nixos
<jD91mZM2>
Uhhh... I switched to unstable and when rebuilding it seemed like it killed lightdm?
<srk>
hm, I have a nixops deployment that builds a netboot server which is nixos 17.09 with images of vpsadminos which uses pinned nixpkgs (18.09pre) and somehow it looks like namespaces are clashing The option `users.extraGroups' in `/nix/store/qgmkr6y9w6h21dz56q1i3h36nv2837ix-nixexprs.tar.xz/nixos/modules/config/users-groups.nix' is already declared in
<jD91mZM2>
sphalerite: Okay. Why didn't I get these kinds of problems on Arch? Do they do more tests?
<srk>
I found some info about nixops and different nixpkgs version using scopedImports but no idea how to use that
<srk>
jD91mZM2: happened to me once and I'm running master for over a year now
<sphalerite>
jD91mZM2: arch is a lot bigger and has a lot more people working on it. This bug popped up a couple of days, maybe even a week ago
<sphalerite>
on arch that would be fixed by now
<jD91mZM2>
How do I check which channel I'm using currently? I booted using a previous config and I'm not sure if it's all up correctly
<sphalerite>
for some people this issue even reboots the machine :/
coot has quit [Remote host closed the connection]
<sphalerite>
nixos-version
<sphalerite>
that can show you the version of nixpkgs the system was built from
<jD91mZM2>
Ah. Seems like I'm back to stable
<jD91mZM2>
18.03.132229.7cbf6ca1c84 (Impala)
katyucha has quit [Ping timeout: 260 seconds]
<jD91mZM2>
I'll reboot once again to make sure everything loaded correctly, I'm paranoid. Mainly because xmonad failed (guessing the libraries were updated so the config binary couldn't find them or something)
<sphalerite>
There's the issue for X stopping on configuration switch
<jD91mZM2>
Good to know it's not just my computer fucking up
orivej has joined #nixos
<jD91mZM2>
I'll go reboot and grab lunch. Thanks for all the help!
jD91mZM2 has quit [Quit: WeeChat 2.0]
thblt has joined #nixos
<thblt>
Since I-don't-know-which NixOS upgrade (17.09->18.03 maybe?), I can't power off the machine from LightDM. I know that on regular distros I can solve this by adding the lightdm user to a group allowed to control system power state, but I have no idea how this is done in NixOS. Thanks for any ideas!
<thblt>
Sorry for the complete absence of precision, i guess I don't power off my laptop often enough :-)
<jbetz>
so, all of I sudden, I can't open pidgin, it just crashes immediately. and this was after it working fine for a week.
<sphalerite>
something something polkit. (tbh I don't know)
<jbetz>
where would I find logs for this sort of thing?
spear2 has quit [Quit: Leaving]
<sphalerite>
jbetz: first step I'd take would be to try running it in a terminal
<tilpner>
strace -fvo /tmp/log pidgin, then check /tmp/log
rosa has joined #nixos
<jbetz>
tilpner: okay, now I have a crapload of logs
Hdphn has quit [Ping timeout: 255 seconds]
<tilpner>
You can search for the error string to find a starting point, then check for suspicious failures in the vicinity
<tilpner>
Or look at the pidgin code to for get_dialogs_on_answer, and see what P is
thblt has quit [Remote host closed the connection]
thblt has joined #nixos
xy2_ has quit [Quit: WeeChat 1.9.1]
wchresta_ has joined #nixos
xy2_ has joined #nixos
<tilpner>
And in cases like this you should say that you're using plugins
<thblt>
OK, I got it. It wasn't a permission issue, just a new UI setting in services.xserver.displayManager.lightdm.greeters.gtk.indicators with a strange default value.
<Myrl-saki>
How do I escalate my permissions using trusted users?
<Myrl-saki>
I need to hack into my own machine because I forgot to bring my root passwords..
<tilpner>
Myrl-saki - Is your machine local? Do you have commandline editing enabled in systemd-boot/grub?
<Myrl-saki>
tilpner: Nope.
<thblt>
Myrl-saki: "trusted users"?
<Myrl-saki>
tilpner: I could request a password resett.
<Myrl-saki>
thblt: I honestly have no idea either.
<Myrl-saki>
thblt: Basically, gives you more permissions to the nix store.
<tilpner>
Do you have any login permissions at all?
<Myrl-saki>
I don't know the technicals.
<Myrl-saki>
tilpner: I have login permissions, I don't have root permissions.
<thblt>
Myrl-saki: I don't understand what you mean by "trusted users".
<thblt>
Myrl-saki: at the risk of stating the obvious, the common way to escalate privileges is sudo.
<jbetz>
tilpner: I'm using telegram-purple, which ... yeah, is a likely culprit
<tilpner>
jbetz - Yes, I found that. You should probably create an issue with them, it doesn't look like a Nix-specific problem
<Myrl-saki>
thblt: Oh right, I messed up my statement. I don't have the password for my user at all.
jD91mZM2 has joined #nixos
<Myrl-saki>
We enforce SSH keys/
<Myrl-saki>
So sudo won't work.
<jD91mZM2>
Ever since the X stopping issue xmonad has been acting weird. I'm starting to think it was interrupted during rebuild and that something broke. Is this theory possible?
<{^_^}>
[nixpkgs] @flokli opened pull request #40004 → modules/virtualisation/qemu-vm: always enable serial console → https://git.io/vpwi6
shabius_ has joined #nixos
<thblt>
Myrl-saki: IIUC you can login as a trusted user, that is a user which can create new nix binary caches?
<Myrl-saki>
jD91mZM2: `xmonad---recompile`?
bpa has joined #nixos
<Myrl-saki>
thblt: Yes, seems like a fair statement.
<jD91mZM2>
Myrl-saki: I've rebuilt xmonad multiple times
<Myrl-saki>
thblt: I think it's a read perms at most.
<jD91mZM2>
It loads my config and everything, but my startup script isn't running for some reason
<jD91mZM2>
(The script is started using startOnce)
<jD91mZM2>
It's worked before but suddenly not now
<Myrl-saki>
jD91mZM2: Startup script?
<jD91mZM2>
spawnOnce*
<Myrl-saki>
Oh.
<jD91mZM2>
Where I start feh and stuff
iyzsong has joined #nixos
<Myrl-saki>
jD91mZM2: Unstable?
<thblt>
Myrl-saki: doesn't seem trivial. If you can control the caches, you could inject a custom binary for a root service that would change root's password. But you'd still need to trigger an OS rebuild.
<jD91mZM2>
I was trying unstable but X crashed and now I'm back to stable
<Myrl-saki>
thblt: Right.
<jD91mZM2>
And ever since then starting into xmonad has given me nothing but a mouse cursor and my usual shortcuts
<Myrl-saki>
thblt: That actually seems like a good idea.
<jD91mZM2>
Starting programs works.. sort of. They end up in a really weird position
<thblt>
Myrl-saki: yes, but if you can trigger an OS rebuild, you don't need that.
<thblt>
Myrl-saki: you could just make your user a sudoer.
Synthetica has quit [Quit: Connection closed for inactivity]
<jD91mZM2>
Starting the startup script from ~/.xprofile instead works but my windows are buggy.
<jD91mZM2>
Is it possible that the nixos-rebuild was interrupted and corrupted xmonad somehow?
<thblt>
jD91mZM2: did you try recompiling xmonad already?
<MichaelRaskin>
tilpner: have you ever used this? I might want to try to set this up at some point…
<jD91mZM2>
thblt: Multiple times
<thblt>
jD91mZM2: I really doubt binary corruption is the issue here.
<tilpner>
MichaelRaskin - I haven't used appservices recently (I tried them a long time ago). At the moment, I can't even run Synapse because my VPS is too weak for it
<tilpner>
(2.6GB doing... nothing, just happily federating)
<MichaelRaskin>
I have reached a situation when I have a Synapse instance that can federate with some instances but not matrix.org
<tilpner>
Huh
andreabedini has quit [Read error: Connection reset by peer]
<tilpner>
Was that the intended outcome?
<MichaelRaskin>
I think my synapse instance is a bit smaller
<MichaelRaskin>
Nope, not at all
andreabedini has joined #nixos
<MichaelRaskin>
If it was intended, I would put two or three firewall rules, and it would not be even worth mentioning
<thblt>
jD91mZM2: What's the problem exactly? What do you mean by windows in wrong position?
<tilpner>
matrix.org federation was really slow last I tried (minutes), but it did work eventually
<tilpner>
Much quicker with smaller HS'
<MichaelRaskin>
(maybe I should ask you in #nixos-chat not here)
<Myrl-saki>
thblt: I'm using Nix on Debian, so I'm dead. :(
<jD91mZM2>
thblt: It's difficult to describe. Everything is just generally buggy. My startupHook wasn't running, some windows ended up off screen, some windows weren't drawn, some were on top of others
<thblt>
Myrl-saki: well then it's a Debian problem, not a NixOS problem.
rosa has quit [Quit: rosa]
<jD91mZM2>
latest issue is that no keyboard input is working
<thblt>
jD91mZM2: I'm not even sure it's possible, but maybe your back-and-forth update led to Xmonad being linked again an incorrect version of X libraries?
<jD91mZM2>
Maybe. Is it possible to force rebuild one or more packages?
fendor has joined #nixos
<thblt>
jD91mZM2: I don't even know how to test this. Maybe you could steal my XMonad config, build it, run it, then see if it works? Unlike yours, mine is a Stack project so should work reasonably independently from OS-level Xmonad.
<zybell>
jD91mZM2:Do you run a sessionmanager?
<Myrl-saki>
I wonder if I can hack with NIX_SSHOPTS.
ireas has joined #nixos
<jD91mZM2>
I'm using LightDM
<zybell>
Thats a displaymanager
<jD91mZM2>
good point
<jD91mZM2>
no session manager then. nothing like xfce or anything
Maxdamantus has joined #nixos
Rusty1_ has joined #nixos
<Myrl-saki>
Uhhh
<Myrl-saki>
This is most certainly a bug, isn't it?
<jD91mZM2>
Currently I'm trying to use the default config and see if it works better
katona has quit [Quit: Connection closed for inactivity]
jtojnar has joined #nixos
andreabe_ has joined #nixos
<Myrl-saki>
I can use this to set up a reverse shell and stuff.
<Myrl-saki>
I wonder if this counts as responsible disclosure.
andreabedini has quit [Ping timeout: 264 seconds]
<ireas>
I’m trying to install NixOS to a partition from within Debian. When running nixos-install, I get the following error message (AFAIS after downloading/copying the required packages): “error: while setting up the build environment: getting attributes of path '': No such file or directory”. Why is nixos-install trying to access an empty path? What could cause this?
<jD91mZM2>
The default profile works better definitely. So it might just be my config messing up after all
<thblt>
jD91mZM2: you have a few recent changes to the layoutHook, have you checked these changes worked correctly?
<jD91mZM2>
I've been using this config forever
<jD91mZM2>
It only failed right after trying to use unstable and then X crashing and then REISUBing
<thblt>
jD91mZM2: well there were changes in the layoutHook seven days ago.
<jD91mZM2>
seven days is forever in my book
andreabe_ has quit [Read error: Connection reset by peer]
shabius has joined #nixos
andreabedini has joined #nixos
<jD91mZM2>
What the- now it works
<thblt>
well if I was to try to fix a XMonad-related error, reverting recent changes in bug-prone layoutHook would be the first thing I'd try :-)
<jD91mZM2>
I deleted xmonad-x86_64-linux, xmonad.o, xmonad.hi, etc
<jD91mZM2>
and suddenly it seems to work?!
<jD91mZM2>
(after recompiling)
<thblt>
jD91mZM2: did you delete xmonad.state in the process?
<jD91mZM2>
git can confirm that my config is exactly the same as before... wat
<jD91mZM2>
Yeah I did
<jD91mZM2>
What's that?
<thblt>
jD91mZM2: OK, I should have thought about it. It's the *very first thing* you should delete when you encounter XMonad issues, and you should delete when Xmonad isn't running, because it will be recreated at shutdown.
<jD91mZM2>
oh lol. Sorry
<thblt>
jD91mZM2: serialized state for persisting state when restarting. Also called "forwarding existing bugs to fresh instances"
shabius_ has quit [Ping timeout: 260 seconds]
<jD91mZM2>
Why the heck is that a thing? I thought xmonad didn't save anything between restart?!
<thblt>
jD91mZM2: well it started doing so relatively recently, in 0.13 I think.
<jD91mZM2>
Well that explains a lot. Thank you so much for your help <3
rosa has joined #nixos
<thblt>
you're welcome. I tool me forever to understand this thing was causing mayhem in my Xmonad, and I forgot about it.
shabius has quit [Quit: Leaving]
jD91mZM2 has quit [Quit: Rebooting]
agile has quit [Quit: v]
<zybell>
so xmonad is a sessionmanager too, now
agile has joined #nixos
<ij>
`man' outputs unprintables when piping into the editor, why is that? Is there an nixpkgs issue about it?
<thblt>
zybell: well persisting its state doesn't make it a session manager, I think.
<zybell>
Doesnt it try to run the progs that were open last time to reconstruct the state?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
alex`` has joined #nixos
ireas has quit [Quit: leaving]
Guest14 has joined #nixos
Guest14 is now known as white_rabbit
<ij>
systemd.services.nixops-keys.service.postStart never executes. :(
<thblt>
zybell: no it isn't that smart. It just remembers layouts, workspaces, etc.
<thblt>
zybell: I don't think XMonad has even an abstraction of the fact that windows are created by programs.
<white_rabbit>
hi all
<{^_^}>
[nixpkgs] @jtojnar pushed to master « evolution-data-server: fix SSL support on non-GNOME platforms »: https://git.io/vpwPa
cryp2nomicon has joined #nixos
<zybell>
half a sm then :-)
ixxie has joined #nixos
andreabe_ has joined #nixos
<ixxie>
gchristensen - are you around?
andreabedini has quit [Ping timeout: 248 seconds]
rosa has quit [Quit: rosa]
jD91mZM2 has joined #nixos
aarvar has quit [Ping timeout: 264 seconds]
<jtojnar>
jD91mZM2: the deja-dup thing is the same issue as the xfce plug-ins
<jD91mZM2>
jtojnar And?
<jD91mZM2>
Should I keep it or remove it?
<jtojnar>
jD91mZM2: remove it, propagatedBuildInputs would not work anyway
rosa has joined #nixos
<jD91mZM2>
Oh? Will the xfce-panel part need to be changed as well?
<ij>
When does keys.target get loaded? I added a nixops-keys.foo.text attribute, but it doesn't get reloaded, because it seels like keys.target isn't being wanted.
<white_rabbit>
i've installed the soft platformio from the unstable channel (so the package is v 3.5.2) but when a try to run it with sudo, I have a python OSError : [Errno 13] Permission denied that occurs and I don't really because of what i have this issue. Anyone had a simular issue?
<jtojnar>
jD91mZM2: not familiar with xconf
rosa has quit [Client Quit]
<jD91mZM2>
How dconf won't work btw? I installed it as a system package locally and that works, so it doesn't have to be a user package?
cryp2nomicon has quit [Read error: Connection reset by peer]
xy2_ has quit [Quit: WeeChat 1.9.1]
plakband has joined #nixos
xy2_ has joined #nixos
<jtojnar>
jD91mZM2: propagatedBuildInputs will not make it system package
<jtojnar>
that would be propagatedUserEnvPkgs
<jtojnar>
see the other PR
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
<plakband>
is there a way to merge two sets? such that {a.b = 4;} // {a.c = 5;} will have both an a.b and a.c element, instead of just a.c?
rosa has joined #nixos
b has quit [Quit: Lost terminal]
<jD91mZM2>
jtojnar: Oh, thanks
<jtojnar>
plakband: stdenv.lib.recursiveUpdate?
<ij>
Can I set up network manager connections declaratively?
<jtojnar>
jD91mZM2: looking at xfconf output it looks like dconf, either way propagatedBuildInputs won't work there either
Hdphn has joined #nixos
<jD91mZM2>
jtojnar: Updated!
MinceR_ has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer1 is now known as knupfer
<jtojnar>
jD91mZM2: and it will probably still need to be in the buildInputs since it is also a library
<jtojnar>
but like I said in the other PR, this would need to be added to every xfce application
<ixxie>
I have been doing stuff like b and d but I started to realize everybody else does c/a and I wanted to understand why
<ixxie>
also they started to appeal to me more and more aesthetically ^^
<plakband>
jtojnar: thanks, I think that's it
<jtojnar>
ixxie: c but with tabs, the narrow columns are sometimes harder to scan
<ij>
Rusty1_, Yeah, it doesn't look like it. :) But I also forgot to check that so thanks. (Instead I looked at the soruce and thought I'd missed it. :D Silly.)
<ixxie>
jtojnar: tabs or simple 4 spaces?
<ij>
Rusty1_, But now that I think of it, it could be that I just have to figure out which file to create through environment.etc.
<jtojnar>
ixxie: tabs will allow me to set it to 8 spaces while other people can set it to two spaces
<simpson>
ixxie: I don't know whether cuddles are good. I suspect cuddles are good. c and d have a definite advantage because their indentation is less misleading.
acarrico has joined #nixos
<simpson>
jtojnar: Hm, the Nix parser should probably reject tabs. I'm not sure if that's been done yet though.
periklis has joined #nixos
<jtojnar>
ixxie: on project that have opinionated style formatter I just use smudge & clean filter that increases the indentation width
<jtojnar>
on nixpkgs, I have to use larger font size
<yorick>
seems like some upstreams are taking offense to their software being packaged
<ixxie>
yorick: ?
<ixxie>
really xD
<ixxie>
simpson: cuddles?
katyucha has joined #nixos
<ixxie>
jtojnar: tabs have other problems though
<jtojnar>
ixxie: only if you do alignment
<simpson>
ixxie: A cuddle is when the braces are on the same line as the thing they belong to, like in `mkDerivation {`
<jtojnar>
ixxie: which is terrible by itself if you do not use monospace font
<jD91mZM2>
Tabs are OK until you use `diff` or GitHub or anything else with the default options and then suddenly they have multiplied in width
<jD91mZM2>
And then you decide you want some fields to match up in indention, so you add one or two spaces to a line, and suddenly you have mixed indention and everybody hates you.
<ixxie>
jtojnar: of course I use monospace; I may be green but I wasn't born yesterday
<kuri0>
in what file in nixpkgs can I set the default compiler flags ?
<ixxie>
yorick: weird stuff
<ixxie>
jD91mZM2: yeah the mixed indentation thingy is what catches me off guard
<ixxie>
it seems in nixpkgs double space is the most prevalent indentation right?
<ixxie>
simpson: thanks for teaching me a new term ^^
<yorick>
ixxie: maybe they think it's some sort of official
<simpson>
No worries.
<jtojnar>
ixxie: well, I do not 😀, I even started working on a terminal emulator that would use normal font
<simpson>
yorick: We should seriously consider a policy of telling upstreams that their licenses permit redistribution.
<yorick>
simpson: yeah, but that pisses them off, and their cooperation could be useful
<simpson>
Maybe.
<ij>
Setting up a openvpn connection in network manager with a static key doesn't work (via grayed out 'save') and nm-connection-manager just says "invalid connection: static-key". :/
<{^_^}>
[nixops] @goodraven opened pull request #944 → Add initial support for hetzner cloud → https://git.io/vpw1M
<ixxie>
jtojnar: how come?
b has joined #nixos
<jtojnar>
ixxie: proportional fonts just read better to me
<ixxie>
makes snese
<ixxie>
or sense xD
plakband has quit [Quit: Lost terminal]
katyucha has quit [Quit: leaving]
wchresta_ has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
va1entin has quit [Quit: WeeChat 2.0]
rosa has quit [Quit: rosa]
maingo has quit [Quit: Connection closed for inactivity]
nschoe has joined #nixos
nschoe has quit [Client Quit]
oh_lawd has joined #nixos
<oh_lawd>
hey, I'm running nixos 18.03 and trying to get a datacolor spyder 4 to work, it seems it needs a custom udev rule, but I can't really find any proper information what is the right way to add this to the configuration
phdoerfler has joined #nixos
joehh has quit [Ping timeout: 248 seconds]
wchresta_ has quit [Ping timeout: 240 seconds]
<infinisil>
oh_lawd: Add them with services.udev.extraRules
<lejonet>
Whats the easiest way to pull in stdenv in a nix-shell env that uses buildFHSUserEnv? I know nix-shell -p stdenv works to get just stdenv setup, but I want it setup inside of a FHS chroot too and can't really figure out how, adding it to targetPkgs makes it error out because its a function
<jtojnar>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<jtojnar>
oh_lawd: ^
<oh_lawd>
jtojnar: thank you :)
<oh_lawd>
my first day with nixos so I don't know it all yet, I should read the whole manual though
<lejonet>
oh_lawd: the manual is good :)
<oh_lawd>
yep, I think so...
<lejonet>
I'm not all too deep into my nixos adventure myself, but the manual is quite good, usually :)
<oh_lawd>
the biggest question is why I'm trying this distro only now
<oh_lawd>
after over 20 years of linux use...
<lejonet>
:P
<oh_lawd>
I need to convert all my machines to the same configuration now
<lejonet>
I've been asking myself that the past weeks :P
<oh_lawd>
yeah...
daveo has joined #nixos
<ixxie>
oh_lawd: we have also been putting some work on the wiki recently
<ixxie>
oh_lawd: nixos.wiki
<ixxie>
its still got a long ways to go, but hopefully you can find useful stuff there
<ixxie>
and its good to get the newcomers feedback on that, because its easy to forget what is obvious and what is not after being around for a while
<jD91mZM2>
sphalerite: powerline-rs is merged (thanks jtojnar!) :D
<{^_^}>
→ caed1877 by @bachp: cryptsetup-generator: add postFixup
nuncanada has joined #nixos
<jtojnar>
ma27: perhaps it would be possible to backport fontconfig 2.12.4 but there are probably other dependencies too
<jtojnar>
I do not care about unstable enough to justify such work
<jtojnar>
people can still use GIMP 2.10 from unstable
coot has joined #nixos
<jtojnar>
s/care about unstable/care about release/
daveo has joined #nixos
<lejonet>
Whats the easiest way to override the package version for a users env? The regular nixpkgs.config.packageOverrides doesn't seem to work if I put it in ~/.config/nixpkgs/config.nix
<jtojnar>
lejonet: in that file, it is just packageOverrides
<daveo>
I was starting to attempt to make a derivation for the new Discord. People were helping me and I cloned the nixpkgs repo.
<jD91mZM2>
You probably want to use package overlays instead lejonet
<lejonet>
jtojnar: ah, that would explain it, thanks :)
<jD91mZM2>
daveo: I have done that already. Lemme give you my code, hold on
<lejonet>
jD91mZM2: this is just a dirty hack to quickly update discord, I'm going to do it properly, with an overlay, afterwards :P
<lejonet>
lol, I'm not the only one trying to quickfix discord xD nice :P
slyfox has quit [Ping timeout: 264 seconds]
<lejonet>
I'll gladly copy your work :D cheers!
<jD91mZM2>
There's a whole team of us apparently :P
<lejonet>
Yep
<daveo>
well that's awesome
<jD91mZM2>
Anyway, now you just use `nix-env -iA nixos.discord-latest`
* lejonet
gives jD91mZM2 a big hug, and beverage of choice :)
slyfox has joined #nixos
<daveo>
I'll remove my old one first?
<jD91mZM2>
Apparently overlays add it to all channels btw, which is funny. You'll might see nixos-unstable.discord-latest which is the exact same package
<jD91mZM2>
You might*
<jD91mZM2>
daveo: Old one? What do you mean?
<daveo>
and does it need allow-unfree?
<daveo>
0.0.4
<jD91mZM2>
Yeah, remove that
<jD91mZM2>
I have no idea if it requires unfree... probably?
<jD91mZM2>
Since it'll keep all the old values for licenses and stuff
<daveo>
do I need to do something else first like add a channel?
<daveo>
error: attribute 'discord-latest' in selection path 'nixos.discord-latest' not found
<daveo>
warning: name collision in input Nix expressions, skipping '/home/dw/.nix-defexpr/channels_root/nixos'
<jD91mZM2>
sec
<daveo>
testing in action
<jD91mZM2>
Wow, `nix-env -q` is really slow
coot has quit [Remote host closed the connection]
<daveo>
hmm, wonder how that can be improved?
<jD91mZM2>
Does `nix-env -qaA nixos.discord-latest` give you any output?
<daveo>
I'll try
<jD91mZM2>
What user are you running it from? The same one as the overlay, right?
<daveo>
let me know if there is anything I have to do in terms of updating. not sure if it works at all like apt or yum or pacman...whatever
<jD91mZM2>
Overlays should work by just adding them to the directory. So I'm really unsure why it doesn't work for you
Hdphn has joined #nixos
<daveo>
nix-env -qaA nixos.discord-latest gave `error: attribute 'discord-latest' in selection path 'nixos.discord-latest' not found` I'm using 18.03
Brek has quit [Ping timeout: 255 seconds]
<mmlb>
hey all, I'm following along with nix-pills and am at pill 8 and am hitting a seemingly bug/roadblock.
<jD91mZM2>
Are you sure allowUnfree is set correctly? What happens if you set it in the ~/.config/nixpkgs/config.nix?
<mmlb>
The drv as inheriting binutils-unwrapped and expecting the env var to be binutils_unwrapped, but nix build and nix-build both set the env var to binutis-unwrapped
<jD91mZM2>
Or you mean confix.nix? yeah just create it.
<daveo>
yeah ok
<daveo>
creating
<daveo>
and then set the env var like NIXPKGS_ALLOW_UNFREE=1
<daveo>
or
<daveo>
{ allowUnfree = true;}
<jD91mZM2>
second approach
<daveo>
does it need anything else in terms of boilerplate new to nix....
<jD91mZM2>
Nono, no update step. nix-env reads these files every time
<jD91mZM2>
I should put my nixpkgs config to my dotfiles repo
<jD91mZM2>
Crap, I have to go. Sorry! I'll be back soon
<daveo>
no problemo
<daveo>
it's awesome you did this
<daveo>
later
periklis has quit [Ping timeout: 240 seconds]
chessai has joined #nixos
coot has joined #nixos
shabius has quit [Quit: Leaving]
endformationage has joined #nixos
civodul has joined #nixos
phdoerfler1 has joined #nixos
phdoerfler has quit [Read error: Connection reset by peer]
<daveo>
jD91mZM2: if this wasn't committed to nixpkgs or somehow added to the official repo does that mean I had to run the overlay.nix in the gist before any of this works. If that was the case sorry on my part. a pretty basic fail...
phdoerfler has joined #nixos
phdoerfler1 has quit [Ping timeout: 260 seconds]
wchresta_ has joined #nixos
<jD91mZM2>
daveo: I'm back!
<jD91mZM2>
This should not have to be updated in any way
<jD91mZM2>
What happens if you change ~/.config/nixpkgs/overlay.nix to some invalid syntax like `{}`?
<{^_^}>
[nixpkgs] @dezgeg pushed to master « nixos/lib/make-ext4-fs: Add a sanity check »: https://git.io/vpwHx
<jD91mZM2>
overlays/overlay.nix*. The same file I sent
grumble has quit [Read error: Connection reset by peer]
grumble has joined #nixos
papika has joined #nixos
<papika>
would ayone be able to help me understand a bit more about imperative and declarative configurations? I'd like to find a way to compare the system state in /nixos/configuration.nix to whatever I've been changing using nix-env... that way I can go back and save things in the config to have them persist. is that what other people are doing?
<jD91mZM2>
papika: Since nix-env is per-user, you can use `nix-env -q` to query all installed packages for that user
daveo has quit [Ping timeout: 248 seconds]
krey has quit [Ping timeout: 268 seconds]
<papika>
jD91mZM2: ok, that's good to know, but what about changes I've made in configurations or systemd services I've enabled?
<MichaelRaskin>
nix-env is only about packages
<MichaelRaskin>
configuration.nix can be just put into a VCS
<papika>
perhaps there's a nix command to diff system states tho?
<jD91mZM2>
papika: Wait, you can enable systemd services?
<jD91mZM2>
I thought that *had* to be done using nix
<papika>
jD91mZM2: hmmm I've just been doing `systemctl enable -now thing.service`
<MichaelRaskin>
I think there is nix-diff, but it is more a debugging tool for packages, best used when differences are limited
<papika>
and doing `vim ~/.config/stuff.config` which feels bad because I'm scared a nixos rebuild will destroy my work
<jD91mZM2>
NixOS does not touch your home folder
<jD91mZM2>
Only if you use home-manager
wchresta_ has quit [Ping timeout: 256 seconds]
<papika>
MichaelRaskin: thanks yeah I've been meaning to use a VCS for the OS... maybe git-annex
<papika>
jD91mZM2: ah good to know! so dotfiles are not something that should/can be written to /etc/configuration.nix?
<jD91mZM2>
Nope. NixOS is more for system configuraton, like /etc/lightdm/lightdm.conf
<papika>
I was kind of hoping for a fully declarative system... but even just having that for system packages is a great step
humanoyd has quit [Quit: WeeChat 2.1]
<papika>
jD91mZM2 thanks :)
<jD91mZM2>
For a fully declarative system, I've head a lot of people recommend home-manager
<MichaelRaskin>
There are some tools (nixup, homemanager for declarative configuration of user-level files)
<papika>
I'll look into homemanager - thanks guys
<jD91mZM2>
Does anybody know how to compile cargo packages with examples? Basically I need to run "cargo build --release --example whatever" instead of just "cargo build --release". Simply modifying cargoBuildFlags doesn't work because when it clones the repo it also checks if Cargo.lock exists, which it doesn't.
phdoerfler has quit [Ping timeout: 260 seconds]
raynold has joined #nixos
<papika>
jD91mZM2 not sure... but are you looking to have an override for a nixpkg? because I'm also curious how to do that,and build something just a little bit differently
stephenjudkins has joined #nixos
<jD91mZM2>
From what I've understood people generally don't like overriding nix packages. But you can create a clone around existing ones, an "overlay"
<leary`>
Oh my god ... I've been stressing trying to figure out why fontforge's shares weren't getting linked in to /run/current-system/sw/share for days. I just realised I could find the derivation source for system-path and saw that it exports the option environment.pathsToLink. Just setting that to [ "/share" ] fixes everything. >.>
<leary`>
Why is this not default? Is there a good reason?
stephenjudkins has quit [Remote host closed the connection]
Judson has quit [Ping timeout: 276 seconds]
<jD91mZM2>
leary`: I got a really similar issue with xfce4-panel. It sucks. But packages can't currently control that setting :(
<daveo>
my laptop, or at least plasma, has been hanging about 30 min. unfortunately Ctrl+alt+f1 not working
<daveo>
is there a Magic SysRq key?
<jtojnar>
jD91mZM2: regarding xfconf, it would be probably better to hear from Xfce maintainers like @yegortimoshenko first
<jD91mZM2>
daveo: For restarting the whole computer? Yes. For just restarting plasma? Not IIRC
<ben>
from what ive read about modern system administration practices on the internet, the solution is to throw out the laptop immediately and switch to a standby system
<ben>
(i usually just hard-poweroff after 30+ seconds of unresponsiveness)
<jD91mZM2>
jtojnar: You already CC'd him on GitHub... So I'm just waiting there :^)
<jD91mZM2>
ben Oh noes not the hard-poweroffs D:
<jD91mZM2>
daveo: You could try enabling Ctrl+Alt+Backspace as a shortcut for killing X
<jtojnar>
jD91mZM2: yep, just wanting to save you work in case it gets rejected
<jD91mZM2>
jtojnar: Ah, thanks!
<jtojnar>
leary`: ideally the derivations should work even when they are not linked to the nix profile (e.g. from nix-shell)
<jD91mZM2>
I'm not really sure how this whole communication thing works. Are all maintainers here on IRC?
<MichaelRaskin>
No
Judson has joined #nixos
<ben>
statistically, some of them can't be on irc because they're probably in a tty right now trying to fix their desktops
Judson is now known as Guest16037
<jD91mZM2>
ben: Good point
<hodapp>
statistically, some of you are also actually dogs
<jD91mZM2>
hodapp: pls hooman dont tell the others
<daveo>
hodapp: on the internet nobody knows you're adog
* jD91mZM2
goes to bark at mailman
* hodapp
pets jD91mZM2
fendor has quit [Ping timeout: 264 seconds]
<ben>
early misunderstandings of the practice of dogfooding have left their marks on the project
* hodapp
ponders this
<MichaelRaskin>
Some of the dog contributors got designated as food?
<MichaelRaskin>
That would be horrible
<hodapp>
D:
<daveo>
irc. such wow such awesome.
<MichaelRaskin>
On the internet, nobody knows you are a dog. Except if you are Florence Ambrose, genetcially modified sentient wolf. In that case, DOGGY!
vcunat has joined #nixos
<daveo>
jD91mZM2: hard reboot and then I'm enabling the Ctrl Alt backspace. is there a way to put that in my configuration.nix? also I tried print screen as the Magic SysRq with REISUB. nothing. is magic SysRq mapped to some other key by default in nixos?
<{^_^}>
[nixpkgs] @jD91mZM2 opened pull request #40009 → termplay: init at 2.0.3 → https://git.io/vpwFq
<clever>
jD91mZM2: if you have root, you can use --option to set any flag in nix.conf
<jD91mZM2>
clever++
<{^_^}>
clever's karma got increased to 2
<drakonis>
:o karma bot
<jD91mZM2>
clever+=9999
<jD91mZM2>
aww
<clever>
lol
<jD91mZM2>
infinisil: pls fix
<infinisil>
Heh
<MichaelRaskin>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<MichaelRaskin>
drakonis: not just karma bot
<jD91mZM2>
And it sends notifications every time I make one more PR to nixpkgs! It's the best bot
xcmw has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
It's not the first bot to notify on PRs, though
ixxie has joined #nixos
<MichaelRaskin>
We all know what usually happens next…
<jD91mZM2>
No but it does the job well :D
<jD91mZM2>
Wait what?
<MichaelRaskin>
All of them did this job well…
<MichaelRaskin>
Did
<jD91mZM2>
oh no is there a curse of the pr bots?
<MichaelRaskin>
Yes.
<infinisil>
There is?
<MichaelRaskin>
The curse is called «flood complaints to the author»
<jD91mZM2>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 116
<jD91mZM2>
needs more karma
<isHavvy>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 117
<jD91mZM2>
Thank you for your work isHavvy
<infinisil>
You better not try to increase your owns karma
<jD91mZM2>
Oo is there a special case for that?
<isHavvy>
isHavvy++
<{^_^}>
isHavvy's karma got decreased to -1
<jD91mZM2>
OOO
<jD91mZM2>
I like that
muzzy_ has joined #nixos
muzzy has joined #nixos
muzzy__ has joined #nixos
<isHavvy>
Bog standard in every karma bot I've seen.
<jD91mZM2>
isHavvy++
<{^_^}>
isHavvy's karma got increased to 0
<jD91mZM2>
you're back! :D
<MichaelRaskin>
MichaelRaskin--
stephenjudkins has joined #nixos
<MichaelRaskin>
Oh, but… wyhe4cu4t6eh++
<MichaelRaskin>
wyhe4cu4t6eh++
<{^_^}>
wyhe4cu4t6eh's karma got increased to 1
<jD91mZM2>
++
<{^_^}>
's karma got increased to 2
<isHavvy>
nixos++
<{^_^}>
nixos's karma got increased to 1
<MichaelRaskin>
NixOS++
<{^_^}>
NixOS's karma got increased to 1
<isHavvy>
Oh, capitalization isn't normalized.
<infinisil>
Huh, why does " " work :/ I should refine the regex a bit more, also to allow "foo++ for being nice"
<clever>
CLEVER++
<{^_^}>
CLEVER's karma got increased to 1
<isHavvy>
clever: How clever of you, to get around the bot like that.
<jD91mZM2>
infinisil: In my "++" thing I might have used a zero-width space. Sshhhhh
<infinisil>
Ohh haha
<makefu>
😂++
<{^_^}>
😂's karma got increased to 1
<clever>
isHavvy: but it doesnt total with the other count
<isHavvy>
Nope.
<jD91mZM2>
infinisil: I'm not sure but [\p{Zs}\p{Cf}] seems like a regex that handles both unicode spaces and unicode invisible things. Jeez, regex isn't always fun apparently
<infinisil>
Hmm alright, but regex implementation vary wildly with what things they support
stephenjudkins has quit [Remote host closed the connection]
<jD91mZM2>
clever: When you say a single repo is held on one machine... Do you mean that there is one physical machine per repository??!?
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
rauno has joined #nixos
<clever>
jD91mZM2: there may be several repos sharing a machine
cryp2nomicon has quit [Quit: leaving]
<jD91mZM2>
ok good phew
<clever>
but all forks of that repo stay within the machine
<jD91mZM2>
ah
<jD91mZM2>
Is this more efficient perhaps, since it can use git magic?
<clever>
ive found that any time i push a PR to my fork of nixpkgs, it has to upload the last 3 months of activity
<MichaelRaskin>
It is not even git magic, they have their own magic
<clever>
so my fork is not magically getting objects from upstream
<infinisil>
Hmm... Couldn't git work with a git store like the nix store?
<infinisil>
Because everything gets hashed too
<samueldr>
wouldn't that cause an issue with private forks and (unlikely) enumeration of hashes?
<clever>
infinisil: git also has pack files, where it compresses things using deltas
<infinisil>
Oh wait, it's using SHA1 hah, probably could get collisions if every project were using a single location for its objects
<clever>
samueldr: the git protocol only lets you reference things that are within a branch
<clever>
samueldr: and this actually causes problems with pkgs.fetchgit
<clever>
samueldr: you have to know what branch a given rev is on to clone it
<blob>
Hey, guys! I almost created the new package for nixpkgs. May I send a pull request? Should I include myself in maintainer-list? May I join https://github.com/NixOS to maintain package?
<samueldr>
being a member of the nixos org is for the trusted users which push and merge on the nixpkgs repo, but yes, open a pull request, and yes if you intend to maintina the package do add yourself to maintainers
<MichaelRaskin>
blob: that third no is «maybe later», but you need some kind of track record
<ixxie>
how do I install a release.nix to my user environment?
<jD91mZM2>
I just realized I didn't set a license in the powerline-rs package. Would it be annoying to send off another PR or should I let it be?
<samueldr>
annoying maybe, right definitely, though if it's updated often, you could always sneak it in the next update
<samueldr>
(assuming it's already been merged, otherwise just push a new (squashed) commit)
<jD91mZM2>
Good point. I might realease an update changing some defaults tomorrow which I've noticed are annoying
<jD91mZM2>
But nobody will panic if I let it stay overnight?
<clever>
jD91mZM2: i'll probably never find the link to that blog thing i saw, but it had stories about things like a lottery somebody held on github, the last person push a commit before time X wins
<clever>
jD91mZM2: github told them not to, they did it anyway, and the users basically DDoS's the system with pushes :P
<jD91mZM2>
wow
jD91mZM2 has quit [Quit: Leaving for the day, sorry]
<{^_^}>
→ 07ee2b90 by @Mic92: john: build with recent gcc
<{^_^}>
→ 7ac652df by @Mic92: john: disable aarch64
<{^_^}>
→ 38ae2105 by @xeji: Merge pull request #39929 from Mic92/john
xy2_ has joined #nixos
kreetx has joined #nixos
<MichaelRaskin>
«github told them not to, they did it anyway» — there are multiple interesting stories like that…
<clever>
another was the demo repo that is in the github tutorial, the one everybody is told to fork
<clever>
the system couldnt handle that many forks
krey has joined #nixos
<MichaelRaskin>
There is also that story about people who recommended users to do --depth 1 checkouts, then full pulls of a package metadata repository
<MichaelRaskin>
Turns out, pulls in repositories with half the history are a worst-case for some of GitHub server code
blankhart has quit [Ping timeout: 248 seconds]
<ixxie>
how do I know if the program in my shell comes from my user nix-env or from my system?
<MichaelRaskin>
which program
<clever>
ixxie: run the type command on it
<MichaelRaskin>
Ah right, which is not installed by default, and is not available as builtin in bash
<clever>
and type can reveal aliases and functions
<samueldr>
MichaelRaskin: the statement "which program" can be confusing :)
<clever>
type program too, people often just type program :P
<MichaelRaskin>
Literal program, without even substituting the program name?
<MichaelRaskin>
Into IRC?
<ixxie>
clever: and /run/current-system/sw is the system not my user environment right?
<clever>
usually i put the program name into the example
<clever>
ixxie: correct, that comes from systemPackages
<infinisil>
Oh.. Great.. Using stack with nix, has been working fine for a bit, but now something got corrupted in the stateful build directories and i can't build it anymore :/
<clever>
infinisil: stack builds are impure, and often lack GC roots, so nix is free to garbage collect things its using
<clever>
infinisil: i prefer using tools like stack2nix to convert it into proper nix expressions, then using nix-build
PLPD-Bot has quit [Remote host closed the connection]
<infinisil>
But that's super slow
drakonis has quit [Read error: Connection reset by peer]
<infinisil>
I need fast iteration for development
<clever>
you can also nix-shell into any derivation in the tree and iterate within it
<clever>
as long as you can confine your changes to a single cabal project
<infinisil>
I mean stack has been working fine, i got no problems with it (except that)
<clever>
if the state is corrupt, you can try just blowing away .stack-work and see if it repairs itself
PLPD-Bot has joined #nixos
<infinisil>
It's actually weird, I got hosts A's HOME mounted to host B's HOME/A, and building it from host B works, from A it doesn't. I did rsync some files inbetween the hosts to not have to rebuild everything
<ixxie>
clever: how can I get the one from nix-env to be the one running?
<{^_^}>
→ d86866cd by R. RyanTM: gitAndTools.gitRemoteGcrypt: 1.0.3 -> 1.1
<{^_^}>
→ dc4aa990 by @xeji: Merge pull request #39770 from r-ryantm/auto-update/git-remote-gcrypt
<ixxie>
I shouldn
<infinisil>
nix repl
<ixxie>
I shouldnt have to sudo nix-repl right?
<clever>
ixxie: use `nix repl` not `nix-repl`
<drakonis>
nope
<ixxie>
aah
<ixxie>
lol
<ixxie>
new world
<drakonis>
you shouldn't
<clever>
nix-repl is linked against nix1 and requires `export NIX_REMOTE=daemon`
<drakonis>
nix 2.0 still not fully recommended right?
<clever>
`nix repl` is linked against nix2, and auto-detects the daemon
<clever>
drakonis: 18.03 defaults to nix 2
<infinisil>
drakonis: It doesn't even have a man page, so not by me
<clever>
ixxie: also, why are you trying to nix-env the master of nix?
<MichaelRaskin>
nix-2.0 is one thing, nix program is another thing
<ixxie>
clever: what do you mean? I am trying to nix-env nixops
<clever>
ixxie: oh, didnt read the tarball name that closely
<clever>
both nix and nixops have the same pattern
<ixxie>
clever: the release has attributes called build, herznerBootstrap and tarball
<ixxie>
and tests
<clever>
ixxie: now look inside the build attribute
<clever>
you should find one for each arch
<infinisil>
MichaelRaskin: True, but since nix-build and co are pretty much the same as before, so I'd think the nix program is what people usually mean with Nix 2.0
<infinisil>
s/so/
<ixxie>
clever: I saw something like that in the release.nix
<MichaelRaskin>
It's complicated, as nix-build behaviour is also slightly different
<oh_lawd>
hmm, I didn't really get how these overlays work... I found mozilla's overlay for their stuff, got rust working already nicely, but I don't get how to use their firefox nightly setup...
<mightybyte>
Anyone else have the callHackage function return the error "found zero or more than one cabal file"?
<ixxie>
clever: yay! that did the trick
<ixxie>
clever: thanks
<clever>
mightybyte: does the github repo for it contain zero or more then one cabal file?
<srk>
ixxie: also nix-shell sets IN_NIX_SHELL env var that can be used to change prompt to indicate you're in a shell
<clever>
ixxie: it would help if i knew the error msg the build fails with
jgertm has joined #nixos
<ixxie>
clever: I just needed to install from the release.nix instead of the channel
Fare has quit [Ping timeout: 240 seconds]
<ixxie>
srk: I am completely new to nixops and would like to orientate myself with the basics before moving on to other tools
<srk>
ixxie: that tool is just a wrapper that pins nixpkgs to specific version (along with nixops) and uses local state files instead of one shared in ~/.nixops
pie__ has joined #nixos
acarrico has joined #nixos
<srk>
ixxie: if you look at nixops/dev-shell you can see it calling release.nix -A build.$SYSTEM
<clever>
srk: `nixops modify -I nixpkgs=URL` can be used to pin the nixpkgs nixops uses
pie_ has quit [Ping timeout: 248 seconds]
<oh_lawd>
hmm, so if I have the firefox-overlay.nix in `~/.config/nixpkgs/overlays`, it should just work?
<clever>
oh_lawd: probably
<srk>
ixxie: you can either use ./dev-shell from repo to enter shell or include that from overlay.. or override nixops package src
<oh_lawd>
at least firefox-nightly-bin in systemPackages doesn't work directly
<clever>
oh_lawd: oh, and nixos doesnt obey ~/.config/nixpkgs/overlays
<oh_lawd>
or is it that I can't use it in systemPackages?
<srk>
clever: good to know, nixops manager script is still quite usefull cause of the git crypted local state file(s)
<clever>
oh_lawd: nixos only obeys nixpkgs.overlays
<ixxie>
srk: maybe, but I still wanna take this step by step :P I am a bit slow with these things
blankhart has joined #nixos
<ixxie>
srk: Nix stuff doesn't exactly come that naturally to me :P
<srk>
ixxie: it depends, if you want to share your deployments that thing is really nice. for playing with nixops you don't need that obviously
<srk>
ixxie: it comes with practice :)
<ixxie>
srk: I wanna get my first deployment going for now
rain1 has joined #nixos
<srk>
(=time) :D
frank87 has quit [Remote host closed the connection]
<ixxie>
yeah indeed it does
frank87 has joined #nixos
<srk>
today I managed to reverse engineer scopedImport so I can use 17.09 nixops images with built-in 18.09 images.. :)
<srk>
was wondering how does the <nixpkgs> magic works till I've found out about __nixPath :D
<ixxie>
clever: the overlay should be able to work for my nix-env -f release.nix -iA build.x86_64-linux call right?
<clever>
ixxie: release.nix doesnt touch the nixops in nixpkgs, it forces it to build from ./.
<clever>
so the overlay wont come into play
<codygman>
I have a nix-based haskell project that is hello world generated by cabal init and shell.nix/default.nix generated from cabal2nix/cabal2nix --shell. How can I add a dependency that isn't on nix but is on hackage?
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
<clever>
srk: yep, that lets you mutate the "global" scope for future files you import
<clever>
srk: normally, nix files are pure, and cant access the locals in another file
<srk>
right
zybell has quit [Ping timeout: 264 seconds]
knupfer has quit [Remote host closed the connection]
tertle||eltret has joined #nixos
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srk>
clever: not-os based vpsadminos is going for a staging deployment in couple of days acting as playground node along with our old infra, polishing last few issues with netboot deployment
jgertm has quit [Ping timeout: 268 seconds]
<oh_lawd>
oh, it's latest.firefox-nighly-bin
Stekke_ has joined #nixos
<clever>
srk: nice
knupfer has joined #nixos
<srk>
clever: fun stuff.. like netboot is running in openvz nixos container from the old infra serving the next-gen images for new headless nodes
<srk>
can't even update the deployment to 18.03 due to more systemd and old kernel issues so I'm hoping the migration goes well and we won't have issues with legacy kernels anymore
<codygman>
clever: thanks. that worked for me after I put it in shell.nix
<{^_^}>
→ d76ac270 by @romildo: enlightenment: add dependency on mesa_noglu
<{^_^}>
→ cc2880a7 by @joachifm: Merge pull request #39902 from romildo/fix.enlightenment
humanoyd has quit [Quit: WeeChat 2.1]
<srk>
clever: yeah, I was looking at where it is used and decided not to change/ propagate it to submodules (stuff like <nixpkgs/nixos/lib/make-squashfs.nix>)
<srk>
I kind-of like the scoped solution
<{^_^}>
[nixpkgs] @joachifm merged pull request #40000 → nixos/documentation: Correct use of lib.optional → https://git.io/vpwr3
<{^_^}>
→ b81aa028 by @abbradar: firewall service: run stop commands in reload
<{^_^}>
→ 76c8e5ea by @xeji: Merge pull request #39055 from abbradar/reload-stop
zybell has joined #nixos
shabius has joined #nixos
<ixxie>
thanks clever
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<codygman>
How would I add a buildInput such as chromedriver to this shell.nix http://dpaste.com/28FK355?
sigmundv__ has joined #nixos
jtojnar has quit [Ping timeout: 248 seconds]
<oh_lawd>
how do you store wifi passwords if you push your configs to a repository?
<oh_lawd>
wpa_supplicant.conf?
<clever>
oh_lawd: i manage /etc/wpa_supplicant.conf manually
<clever>
nixos just lacks one on initial bootup, and i scp it from another laptop
jtojnar has joined #nixos
<oh_lawd>
ok, makes sense
<oh_lawd>
hmm, there's also the cifs mount credentials that can't follow in the repository
<clever>
i also use a secrets.nix containing { name = "hunter2"; }
<oh_lawd>
need to think a bit how can I transfer those + password wallet, ssh-keys et.al safely when I create a new installation
<clever>
and then in my configuration.nix i have let secrets = import ./secrets.nix; in { ...
<clever>
then i can refer to the values in configuration.nix, and keep them in one file that is in .gitignore
shabius has quit [Quit: Leaving]
<oh_lawd>
ok, and then keep that file in a usb stick or something
<oh_lawd>
copy it when doing a new installation
<clever>
yep
<drakonis>
someone help out the guy on #nixos-dev
<clever>
also of note, you can aim nixos-install at a usb stick
<clever>
and you can just have a fully working nixos install on USB
<clever>
then you can just boot into a customized env, that already has the secrets in the right spots, and just: cp /etc/wpa_supplicant.conf /mnt/etc/wpa_supplicant.conf
<ghostyy>
hey, i have a question - if i had a programming langyuage with packages for different modules and stuff, dependencies between modules, how easy would it be to use nix's package manager to do package management (building + dependency resolution + distributing) for those packages? would i need to modify nix? im assuming id have to at least set up some kind of private nix repo for distributing the packages + nix expressions
<ghostyy>
and do nix developers consider this an important use case for their software (making it easy to use for other people to use nix for managing packages in their own software ecosystem)?
<clever>
ghostyy: it should be possible purely with nix scripting, no need to modify nix itself
shabius has joined #nixos
blob__ has joined #nixos
<infinisil>
oh_lawd: If you wanna use configuration.nix you can also just use the supplicant options to specify your wifi passwords
<clever>
ixxie: then they are in your configuration.nix, and you need internet access to rebuild the config, to get internet access
blob__ has quit [Client Quit]
daveo has joined #nixos
tusj has quit [Quit: Leaving]
<ixxie>
clever: was that intended to me?
<daveo>
jD91mZM2: something like ...
blob has quit [Ping timeout: 264 seconds]
phdoerfler has joined #nixos
<infinisil>
oh_lawd: By putting `{ networking.wireless.networks.myWifiName.psk = "passw0rd"; }` into private.nix, adding private.nix to your .gitignore, and importing it by adding `imports = [ ./private.nix ];` to your configuration.nix
<codygman>
I tried adding chromeDriver to my haskell project, but I was wrong about adding it mkDerivation.buildInputs, how can I do this? Here are my shell.nix, default.nix, and project.cabal files: https://gist.github.com/codygman/0fcc522ee1ef37158253239a0b6980f3
<zybell>
ghostyy:You simply use the name of the package mgr for that lang, add '2nix' to that, look in nixpkgs for that name,install and youre set. You are not the first.
<infinisil>
clever: Ah yes that's true
<logzet>
This may be a dumb question: Is there an option to executo a script at user login within configuration.nix?
acarrico has quit [Ping timeout: 240 seconds]
Stekke_ has quit [Quit: Page closed]
<simpson>
zybell: ghostyy is a language designer, not a language user, I think.
<{^_^}>
→ bc261055 by R. RyanTM: libwebp: 0.6.1 -> 1.0.0
<{^_^}>
→ 3adeff0f by @xeji: Merge pull request #39429 from r-ryantm/auto-update/libwebp
<infinisil>
logzet: You probably want to use a systemd service for this
<logzet>
Hmm, seems like the clean solution nowadays
<infinisil>
systemd.user.services
<logzet>
Okay, I'll go and grab my systemd unit writing skills
<logzet>
Ahh, everything seems to be an option, nice!
<infinisil>
More or less :)
<infinisil>
I'd look in nixpkgs for examples, just search for "systemd.user.services" and you'll find a bunch of uses
andreabe_ has joined #nixos
daveo has quit [Remote host closed the connection]
phdoerfler1 has quit [Quit: Leaving.]
<logzet>
infinisil: Okay, thanks
andreabedini has quit [Ping timeout: 264 seconds]
<infinisil>
Hmm.. Options like `systemd.hooks.userLogin = "xmessage Hithere";` would be nice
endformationage has joined #nixos
<codygman>
infinisil: Thanks for the recommendation, but I think that's only for haskell executables because it errored with attribute chromeDriver not found
<infinisil>
Ah well where does it come from?
<infinisil>
There is no chromeDriver attribute in nixpkgs, of course it can't find it
<infinisil>
Ah it's "chromedriver"
arianvp2 has joined #nixos
<arianvp2>
is it possible to make nixos containers mutable?
shabius has quit [Ping timeout: 256 seconds]
<arianvp2>
I want to update the nix store inside a container
<{^_^}>
→ 3837ddde by @jtojnar: firefox: remove GStreamer
<{^_^}>
→ db78fe50 by @jtojnar: opencv: use GStreamer 1.0
<{^_^}>
→ 1c33dff4 by @jtojnar: libcanberra: fix GStreamer support
aarvar has joined #nixos
<jtojnar>
Ben_______: depends on how the buttons register
<jtojnar>
do you see them with xev?
<jtojnar>
(from xorg.xev package)
kreetx has quit [Ping timeout: 240 seconds]
MP2E has joined #nixos
<Ben_______>
I don't have that installed, and nix-shell -p xev didn't give it to me either. How can I get it?
<jtojnar>
nix-shell -p xorg.xev --run xev
<Ben_______>
thx
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<Ben_______>
Okay, they're registering with their own keycodes in xev.
xcmw has joined #nixos
<jtojnar>
hmm, we have services.illum.enable, maybe try that
<{^_^}>
→ 0c4f72c3 by @bfortz: eid-mw: 4.1.19 -> 4.4.1
<{^_^}>
→ d84a06fe by @bfortz: eid-mw: 4.1.19 -> 4.4.1
rain1 has quit [Remote host closed the connection]
logzet has joined #nixos
<Ben_______>
Well, more than anything else I'm trying to figure out how it's supposed to work & where to find the information neccessary to making it work.
<infinisil>
Ben_______: What I've done is just handle that with my display-manager
<infinisil>
xbindkeys is a standalone daemon you can run to respond to key events
<infinisil>
Oh interesting, I just found the option `services.actkbd.bindings`, which let's you specify bindings directly in your nixos config
<Ben_______>
Ok, now I can find keycodes with xev & that goes to the keys prop in services.actkbd.bindings. But what about the events prop, and how do I find the commands to use for the various functions?
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<infinisil>
events prop?
logzet has quit [Remote host closed the connection]
<infinisil>
You can control the backlight with xbacklight
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
acarrico has quit [Ping timeout: 256 seconds]
acarrico has joined #nixos
<lejonet>
Isn't nixops supposed to follow the nix.maxBuilds set in the nixos configuration?
<lejonet>
erh nix.maxJobs*
<lejonet>
Its just using 1 core for me, and I've got nix.maxJobs = lib.mkDefault 16;
asuryawanshi has joined #nixos
<lejonet>
do I need to set nix.buildCores too?
codygman has quit [Ping timeout: 260 seconds]
goibhniu has joined #nixos
<lejonet>
yep, that seems to have done the trick :)
<Ben_______>
I've gotten xbacklight to work, I can set screen brightness from the console, but binding that to the function key with services.actkbd.bindings didn't work.
<Ben_______>
services.actkbd.bindigs = with pkgs; [ {keys=[232];events=["key"];command="xbacklight -dec 50"}];
ertes has quit [Ping timeout: 240 seconds]
<Ben_______>
I'm not sure where the problem is, possibly the key code to use here doesn't match up with what xev tells me, or i'm not putting the right command.
olto has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 240 seconds]
nallar has joined #nixos
knupfer has quit [Remote host closed the connection]
<colemickens>
garbas: do you know what has changed with pip 10 packaging? It doesn't really work with a simple update of urls/hashes. The tarball layout is different, and not in a straightforward way (Though I'm not a python person).
xy2_ has quit [Ping timeout: 240 seconds]
<zybell>
which the displaymanager sets in login hook
<colemickens>
I'd be curious if you have any tips. It appears 'azure-cli' needs to be installed with pip-10 due to recent changes.
<zybell>
Please note the section headed:Run a Command When X Starts, When The Greeter Starts, When the User Session Starts
coot has quit [Quit: coot]
<Ben_______>
So, the hook would be adding a script or command to display-setup-script=[script|command] ?
semilattice has joined #nixos
<Ben_______>
Right
<zybell>
you need two
<zybell>
The other two:greeter (=logout) and session (=login)
<Ben_______>
One for registering the command to the key when the user logs in, and one to unregister it?
<zybell>
and register it to lightdm. there it should work too.
<zybell>
*and*!
<Ben_______>
So how does the lightdm.conf tie to configuration.nix?
Rusty1_ has joined #nixos
<Ben_______>
Looking at https://nixos.org/nixos/options.html#services.xserver.displaymanager.lightdm there are a bunch of settings available, but how to map between what can be done in the lightdm.conf versus configuration.nix?
<zybell>
you must check which module writes the .conf and extend it,possibly with seat modules.