justanotheruser has quit [Ping timeout: 240 seconds]
init_6 has joined #nixos
wrl has quit [Read error: Connection reset by peer]
Ridout has quit [Ping timeout: 240 seconds]
monotux has quit [Quit: WeeChat 2.4]
monotux has joined #nixos
ddellacosta has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
emacsomancer has quit [Quit: WeeChat 2.6]
wrl has joined #nixos
justanotheruser has joined #nixos
Zer000 has joined #nixos
<Zer000>
hey do you guys use firefox? I have version 69 on my nixos and it is missing the screenshot tool, usually found in the ... menu in the url
<Zer000>
does anyone else have this "regression"
ilyagotfryd has joined #nixos
ilyagotfryd has quit [Ping timeout: 245 seconds]
hmpffff has joined #nixos
<zfnmxt>
Is `networking.enableIPv6 = false` broken for anyone else? For some reason I still have an IPv6 IP as of the last day.
<zfnmxt>
Welp, I just toggled the option between true and false and rebuilt and it fixed it. Phooey hidden state :(
mexisme has joined #nixos
<contrun[m]>
I am using nixos-unstable. Some packages are broken. So I will use those packages in 19.03. Now the channel 19.09 is out. I need to manually add that channel. Can we have a symlink https://nixos.org/channels/nixos-stable which points to the last stable channel release (for now, 19.09)?
s34n_ has joined #nixos
<s34n_>
nix-env -iA should automatically install dependencies, right?
<contrun[m]>
s34n_: But the channel itself is stall. I want to keep my packages up to date.
abathur has quit [Ping timeout: 265 seconds]
<s34n_>
contrun[m]: ??
<s34n_>
contrun[m]: I'm guessing you think I was responding to something you commented before I joined
<contrun[m]>
s34n_: Yeah. Sorry for that.
<s34n_>
np
<s34n_>
I installed something from nixpkgs, but it doesn't work.
<s34n_>
I'm wondering if it assumes a certain base enviroment without actually requiring the dependencies to guarantee it
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
endformationage has quit [Quit: WeeChat 2.6]
Acou_Bass has quit [Ping timeout: 265 seconds]
slack1256 has quit [Remote host closed the connection]
<Zer0xp>
Okay, so a random question, do you think NixOS can be used by non-programmers if the setup was done for them ?
kleisli has quit [Ping timeout: 276 seconds]
<evils>
i don't think anyone needs to know they're using nixos, as long as no new packages need to be installed
<etu>
I've been toying with the idea to replace my fathers Ubuntu with NixOs and that I roll out updates for him. He doesn't have very high requirements.
<etu>
But there will be an increased support burden by doing that, because he manages Ubuntu fine
<etu>
Until he want's a package that's not in Ubuntu and yeah... I'm way better at making packages on NixOS than Ubuntu...
<Ashy>
alias "apt install"="nix-env -iA" :P
<Ashy>
can you make aliases with spaces in them?
<etu>
Pretty sure that you can't
<Ashy>
yeah apparently not, i think if they can manage ubuntu they can likely manage installing packages on nixos
<evils>
ubuntu has GUI tools for installing a package...
orivej has joined #nixos
mexisme has joined #nixos
<evils>
etu: you can use nix on ubuntu
Tucky has joined #nixos
<etu>
evils: Yes, I've considered that. One can also build snap-packages using Nix
<alexarice[m]>
when I rebuild, some systemd units get restarted, is there a way I can trigger this on my systemd units?
<evils>
etu: is there already something that builds snaps?
<teto>
alexarice[m]: there is the restartIfChanged = false; entry + you can check for modifications in configuration files for instance
<teto>
don't remember the setting but you can grep for it
<Zer0xp>
I find package updation a pain, having the need to write overlays. Is there an alternative to that ? Or can someone tell me the simplest way to write a package ?
<dminuoso>
srhb: Isn't that the wrong way around? I thought that attribute was about creating some file using some pre-existing file.
<teto>
has python develop mode stopped working ? I get "/nix/store/k0igqpz995nmxwf6piyd5jjpcc7gcnyc-python3-3.7.4/bin/python3.7 -m pip <command> [options] \n no such option -e" (on nixos-unstable)
<srhb>
dminuoso: Right, but if you (or some module) used the text attribute to set it to a string, behind the scenes writeText is being used, and source is set to that path, iirc.
<dminuoso>
srhb: Is there a way to enforce that the file exists when my module is activated?
<srhb>
dminuoso: Enforce how? If you set it, it exists. Or do you mean assertions?
<dminuoso>
So let me start with my problem perhaps.
<srhb>
Yeah :P
<teto>
I think I got the pb
<dminuoso>
Here's the situation: I want to configure postfix, and it requires has some attributes `{ mapFiles = { foo = ./bar; }; }` - behind the scenes it generates some file /var/postfix/conf/foo which runs through postmap into /var/postfix/conf/foo.db
<srhb>
Those are runtime generated, right?
<dminuoso>
Well they are generated whenever I deploy that config with nixop
<dminuoso>
`services.postfix.mapFiles` is the nixos option
<srhb>
Right, foo is by nix, foo.db at runtime by postmap..
<dminuoso>
Right.
<dminuoso>
And it requires an attribute set of paths, but here comes my issue. I want to generate these files too, which I could with pkgs.writeText of course - but this is basically etc-style of config, is it sane to generate new store paths every time I modify these maps?
<srhb>
Yes.
<srhb>
It's also the only option you have, short of doing scary indirect links or something.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pie_ has quit [Ping timeout: 240 seconds]
sigmundv__ has joined #nixos
<davidtwco>
Is there a way to use nix-build to test a package upgrade in a local nixpkgs checkout (w/out installing it)? Whenever I do "nix-build -A <pkg> ./default.nix" it just prints the path of the package I already have installed, it doesn't attempt to build the new version.
mexisme has quit [Ping timeout: 246 seconds]
<sphalerite>
davidtwco: then you haven't made any relevant changes
<sphalerite>
davidtwco: are you sure you're editing the right file in the right nixpkgs checkout?
<sphalerite>
or: are you sure the result is the same as what you already had?
<davidtwco>
sphalerite: I can see the changes in the git diff of the directory I'm running nix-build from, so I'm confident it's the correct checkout. I've changed the version and the sha256.
<davidtwco>
sphalerite: could it be that my system's overlay has a package of the same name? (so I can use it while I wait for upcoming the nixpkgs PR)
hyper_ch2 has joined #nixos
spazzpp2 has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
<emily>
how are you fetching the code?
<davidtwco>
(well, the overlay has a older version that I've not upgraded yet)
lordcirth_ has joined #nixos
<davidtwco>
emily: It's using pkgs.fetchFromGitHub
<spazzpp2>
Hi everyone! Can somebody help me with this? Nixos on raspi fails to init wlan drivers.
<emily>
davidtwco: I'd like to see a diff, I guess. my expectation would be forgetting to change the sha256 but you said you handled that so I'm not sure
<emily>
the overlay thing does sound like it might cause issues, if your overlay is specified in your nixpkgs configuration or something?
<emily>
since I guess nixpkgs might be loading your overlay
<davidtwco>
emily: it's the overlay, as soon as I changed that it started complaining.
<emily>
right
<emily>
in that case, you just have to get it to ignore your config then I guess
<emily>
not sure how nixpkgs config even works -- it's not on NIX_PATH right?
<emily>
maybe it just impurely reads from ~/.config/nixpkgs...
<davidtwco>
I believe I'm adding nixpkgs-overlay to the NIX_PATH from NixOS so that they share overlays.
nalck has joined #nixos
<emily>
okay, then you probably want to override that when doing nixpkgs development
<emily>
not sure how you can *remove* a directory with -I, but maybe -I nixpkgs-overlay=/var/empty or something works
<davidtwco>
I'll give that a shot, thanks.
<nalck>
Hello, I am trying to make a GNOME application for Nixpkgs, it's my first time doing this and would appreciate a little guidance if anyone has time / interest. Thanks!
<davidtwco>
emily: that worked
<davidtwco>
emily++
<{^_^}>
emily's karma got increased to 7
<emily>
yay
<emily>
davidtwco: fwiw, you can also just set `nixpkgs.overlays` in configuration.nix
<emily>
hm, I have both set...
<emily>
wonder why
<davidtwco>
I thought that only applied to the NixOS configuration and not stuff like nix-shell.
<TheSirC[m]>
Long story short : I am trying to pacakge a driver for a printer and it does not build, I narrowed it down to the source downloaded is not the one extracted.
<TheSirC[m]>
When I do it manually (downloading and extracting ) it gives the right source, when I do it via `nix-build` it extract a different source
<l33>
hi.. time to say good bye to osx and go nixos...... ive got bootcamp .... shall i completly wipe the entire laptop , or is there way i can put nixos on to my boot camp patition? I've just started... so not stuck yet.
<l33>
i'm live streaming on twitch.tv/rolandvdrums if you wanna 'watch me'
<TheSirC[m]>
> [TheSirC](https://matrix.to/#/@TheSirC:matrix.org): and matches that of something else
<TheSirC[m]>
*This* . This is the reason why. Can you explain why whatever the source you put it just look at the hash to find the derivation of some source ? Doesn't this cause security problem if there is a hash collision ?
<{^_^}>
error: syntax error, unexpected $end, expecting ')', at (string):267:1
<Shell>
TheSirC[m]: nix uses sha256 for hashes. there are no known hash collision vulnerabilities for sha256. it's exceptionally unlikely that there will be a collision by accident, to the point that if it happens, we know that the algorithm is broken - it essentially can't happen by accident.
<{^_^}>
[nixpkgs] @teto pushed commit from @davidtwco to master « starship: 0.18.0 -> 0.19.0 »: https://git.io/JeGis
arjen-jonathan has joined #nixos
<TheSirC[m]>
Shell: So if I understand correctly, my problem comes from the fact that I have the _other_ derivation that was in the store with the same hash ?
<{^_^}>
[nixos-homepage] @edolstra merged pull request #307 → nixos/support: link to nixpkgs manual → https://git.io/Jesey
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/JeGin
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/JeGic
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
<Shell>
TheSirC[m]: the problem is you said "this URL has this hash" and Nix trusts you when you say that, so it went to the store/cache to find an already-downloaded copy with that hash. don't tell Nix things that aren't true. :)
<Arahael>
Shell: The problem isn't the accidental collisions, though - it's the intentional ones.
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @r-ryantm to release-19.09 « clib: 1.8.1 -> 1.11.2 »: https://git.io/JeGir
<Shell>
arahael: sure, but those are essentially impossible.
CrazyMind102 has joined #nixos
<Arahael>
Shell: Not impossible, but extremely difficult.
<Shell>
arahael: or rather - if we knew a way to generate sha256 collisions, a lot more things a lot more important than the Nix store would be broken.
<Arahael>
Shell: Such is the cat and mouse game with security.
Palpares has quit [Remote host closed the connection]
veske has quit [Quit: This computer has gone to sleep]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<boolman>
Im new to nixos, and I dont really undestand the home-manager, how can I use existing modules from the github repo? https://github.com/rycee/home-manager/tree/master/modules I tried downloading the files and just import them in my home.nix but it results in a conflict
<alexarice[m]>
has anyone got offlineimap working through systemd? I am trying it with passwordCommand and my script fails when offlineimap is ran through systemd
<alexarice[m]>
I expect it is due to the path being set up weirdly
<teto>
right I was sure there was one but maybe it was just a PR or me fooling around (I use mbsync now, too many pb with offlineimap, also it was too slow)
<teto>
alexarice[m]: what does journalctl say ?
<alexarice[m]>
is mbsync better? I am not fixed on using offlineimap
<alexarice[m]>
journalctl says that my script returns exit code 2
cfricke has joined #nixos
Chiliparrot has joined #nixos
<andi->
alexarice[m]: I used mbsync for many years and it has never let me down. It is also a lot faster then offlineimap..
<alexarice[m]>
andi-: maybe I should look into that, thanks
<alexarice[m]>
Having said that have fixed the issue I did have now
<alexarice[m]>
needed to add bitwarden-cli to my path for my script
<slabity>
I have a Nix expression that evaluates to a plain-text secret password. How can I safely use that without it being exposed in the Nix store? Do I need to somehow run it through `mkpasswd` and use the `passwordFile` options instead?
<MichaelEden[m]>
slabity: yes either store it hashed or store a path to a file with the password
fendor has quit [Ping timeout: 265 seconds]
veske2 has quit [Ping timeout: 245 seconds]
<emily>
slabity: I do both: mkpasswd -m sha-512 --rounds=500000 and put that in /etc/emily.shadow, then passwordFile = "/etc/emily.shadow" (quotes important or it gets put in the world-readable nix store)
<NfixEstrada[m]>
Hello! I'm trying to install AndroidStudio and by extension, it's emulator. The program itself is running perfectly ok, but the emulator fails to start with the following error: `3:40 PMEmulator: /home/nefix/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory`, since it's using the qemu that has
<NfixEstrada[m]>
downloaded. What should I do?
<samrose>
I am working on creating a package and module for apache hive that I will also eventually PR to nixpkgs. when an application depends on an sql database like mysql or postgresql is it usually conventional to install/configure that in a module for nixos?
<samrose>
or maybe it is better to define that service in configuration.nix and then make options in module for the available databases?
rajivr___ has quit [Quit: Connection closed for inactivity]
<Taneb>
We're trying to package the onnx Python library (https://github.com/onnx/onnx) and running into trouble. cmake seems to be trying to read a file from "/build", which doesn't exist
sigmundv__ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @illegalprime opened pull request #69548 → generic-extlinux-compatible: generate build-time and host-time extlinux builders → https://git.io/JeGyG
wfranzini has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @srhb pushed commit from @johanot to release-19.09 « ceph: 14.2.3 -> 14.2.4 »: https://git.io/JeGyc
<dminuoso>
clever: Okay that's a neat little trick to remember. :)
<inkbottle>
clever: So this form of factorization isn't correct
<clever>
exarkun: super.python27.override overwrites the packageOverrides, it doesnt append to it
<dminuoso>
In my case its great because Im mapping some configuration file to nix, and it basically things like { ... expansion_limit = 0; size_limit = expansion_limit; } so its fairly cool that I dont need to write this as logic.
<exarkun>
oops :/
<clever>
inkbottle: it will only merge if those entries are in different files, and one loads the other thru imports
<{^_^}>
[nixops-hetzner] @paumr opened pull request #1 → bugfix - nixpart now requires (nix)udev → https://git.io/JeG9J
<inkbottle>
clever: however, about the password, it starts with ssdm, and ask for a password which I don't know
<exarkun>
I also think this reveals that I don't actually understand the `self` and `super` arguments passed to an overlay, which I thought were documented as being "the overlay you are constructing right now" and "the output of the previous overlay to run"
<niso>
drakonis: ^
<exarkun>
respectively
<drakonis>
aight
<drakonis>
niksnut, check the nixops-hetzner pr
<drakonis>
hmm, nixpart is available, nice.
<clever>
inkbottle: ctrl+alt+f1, login as root, with the pw you set
<dminuoso>
Or can nix not do any runtime type checking and assert that a caller is indeed supplying correct things?
<niso>
drakonis: means it was a known issue?
janneke_ has joined #nixos
<inkbottle>
clever: yes, what I'm doing...
<niso>
drakonis: and fyi: nixpart is in desperate need of refactoring
<niso>
*nixpart0
<clever>
inkbottle: which part are you stuck at?
polmaan has quit [Ping timeout: 245 seconds]
<l33>
hmmm, can't get nixos live cd to complete boot to root prompt on a mac?
<l33>
shall i just throw it on the /bin?#
<inkbottle>
clever: No, it's ok, for the moment
<clever>
exarkun: self is the final version, after applying all overlays, including future ones in the list
jak_wolf[m] has joined #nixos
polmaan has joined #nixos
<clever>
exarkun: super, is everything up to the one before current
janneke has quit [Ping timeout: 245 seconds]
<exarkun>
ah, that makes sense, thanks
<l33>
am i in the right channel for nixos installers on laptops?
<clever>
l33: yes
<l33>
bingo..she's booted
<l33>
root prompt ahoy
<drakonis>
niso, no i didn't know it was available
<niso>
drakonis: ahh, k
<clever>
niso: have you seen my nixops issue that might be able to make use of nixpart features?
<exarkun>
that seems a lot like something I tried which didn't work but I guess it must not be exactly the same ... but it suggests I need to change what's in these repositories, anyway, to expose the packageOverrides value instead of exposing overlays
<exarkun>
because you can't get the packageOverrides value back *out* of the resulting python derivation, afaict
Zer0xp_ has joined #nixos
<exarkun>
which is annoying because overlays would be a much nicer thing to aggregate than "value shaped like *this* that fits in exactly *this* place that you can fit into a bespoke overlay"
<pie_>
its kind o fuseless because theres a lot of objects you cant really do proper equality testing on
dermetfan has quit [Ping timeout: 240 seconds]
<pie_>
at least not from within nix
<pie_>
but im getting sidetracked
<pie_>
whats broke? :P
t58 has joined #nixos
<exarkun>
heh
<exarkun>
the big-picture is that the application is misbehaving in my system test but it doesn't log enough information for diagnosis. the error comes out of twisted so I patched twisted to log more.
<exarkun>
but I can't get my patched twisted to actually get used by anything
<pie_>
i keep wishing we had more integrated "FML JUST ADD MORE DEBUG STUFF TO THIS THANSK NUXPKGS" switches
<exarkun>
but also weird stuff happens. like I just changed the version number of twisted in my overridden version, and now it's rebuilding twisted. so it seems to think it is a dependency of _something_.
<exarkun>
and if I evaluate nixpkgs w/ my overlays then I see that tahoe-lafs as propagatedBuildInputs including twisted derivation that includes my patch
<pie_>
you can figure out what its a dependency of for succeeding builds with nix why-depends
<exarkun>
I just bumped the version (which I hadn't done at all before) because that seems like the most reliable way to be able tell what code is actually in some /nix/store path
<exarkun>
although I'm slightly afraid that some part of python packaging junk is going to strip my changes
<pie_>
hm
growpotkin has joined #nixos
<exarkun>
which it seems to have done because I have a new store object with a different hash but the same version number ("Twisted-18.9.0"
<exarkun>
)
<exarkun>
sigh
<exarkun>
also this new package does not have my changes
<exarkun>
so maybe it is including my override but failing to patch somehow?
<pie_>
ok so your current nix expression is what you last pasted?
<exarkun>
I assumed if a patch could not be applied that would fail a build ...
<pie_>
yes that should fail
<exarkun>
I'll paste the latest
<pie_>
in fact if it succeeds then should say the patch suceedd
<mrSpec>
I create the file, nixos-rebuild works fine, when I reboot I cant do nixos-rebuild again because file is missing: cp: cannot stat '/run/keys/initrd-ssh-key': No such file or directory
<mrSpec>
regenerating file after each reboot is not the solution for sure, any ideas what did I wrong?
l33 has quit [Remote host closed the connection]
hmpffff has quit [Quit: Bye…]
iqubic has joined #nixos
jgeerds has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<inkbottle>
kde-settings/touchpad setting has less options on my 1st NixOS than it had with the graphical live CD. I have "libinput.enable = true". E.g. I do not have horizontal scrolling which I had w. the usb-stick.
chloekek has quit [Ping timeout: 276 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
<clever>
mrSpec: put the key somewhere that will persist, /run is wiped on reboot
<mrSpec>
clever: thanks, I'll double check it, but I think that I've already tried that. Put file to /root/ (and changed path in the config), got the same error.
nalck has quit [Quit: nalck]
<clever>
mrSpec: i think the path is baked into older generations, and as it generates the initrd's for the old ones, it looks at the old path
<clever>
mrSpec: you may need a `nix-collect-garbage -d` to blow them away, or more selective GC'ing
<mrSpec>
clever: thanks! Seems like nix-collect-garbage -d worked :)
<mog>
pie_, ran out of disk space doh
<mrSpec>
clever: do you think it would be helpful for others to change the manual, and mention that /run/ is not good path? Why there is /run/key is in the example?
* mrSpec
uses nixOS just for few days
<clever>
mrSpec: i think thats a nixops specific path
<clever>
mrSpec: deployment.keys will copy keys to that dir
<clever>
and your likely to want initrd ssh, when using nixops, since the hardware is remote
<inkbottle>
If I have an option set in my configuration.nix; If I comment that line and do nixos-rebuild switch; Will the option be set to a default value?
<lassulus>
yes
<inkbottle>
OK
<inkbottle>
I have to do the rebuild as root?
<lassulus>
yes
<inkbottle>
OK
<lassulus>
otherwise everyone could just run anything on your machine? :)
<inkbottle>
My second question was not very smart, indeed
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<lassulus>
well there is stuff like home-manager which gives you declarativity but on user level
<inkbottle>
But it's my first nixos, and I'm still nervous
<lassulus>
well you have rollbacks, so you are mostly safe
<lassulus>
and the syntax/type checker also has your back most of the time
<gloaming>
inkbottle: Are your display manager and kernel the same as the CD?
ilyagotfryd has joined #nixos
<gloaming>
Looking at those sources it seems the CD uses slim instead of sddm
<inkbottle>
good question
hyper_ch has quit [Read error: Connection reset by peer]
<inkbottle>
It did look about the same, can't say it wasn't ssdm
hyper_ch has joined #nixos
<mrSpec>
If I did changes in my mounted zfs datasets, it is safe to call nixos-generate-config to get new hardware-config, or should I call something else?
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @r-ryantm to release-19.09 « git-secret: 0.2.6 -> 0.3.1 »: https://git.io/JeG5h
<esclear>
I'm currently using the qmake build input together with libsForQt5.callPackage.
<inkbottle>
lassulus: so, on my thinkpad, touchpad working better with synaptic.enable than libinput.enable (and the "switch" is not complete w/o logout/login)
<lassulus>
ah, maybe you booted up an older installation image, where it was still on synaptics. but yeah, the X server has to restart for this kind of changes.
<gloaming>
pie_: Oh, lol. Well if you use nix-env you won't suffer nearly so much :)
<esclear>
gloaming: Ah, okay. So I'm using a somewhat established pattern :D Trying to get my first package right.
<esclear>
Although I'm a bit confused as some derivations don't specify the .pro file, while others do so in qmakeFlags.
polman has quit [Ping timeout: 240 seconds]
polmaan has quit [Ping timeout: 245 seconds]
<rycee>
Hey, anybody know if there is going to be some form of meetup in Berlin between 6th and 11th of October? I'll be there then and it would be nice to meet up :-)
freepotion has left #nixos [#nixos]
asymptotically has quit [Quit: Leaving]
<lassulus>
rycee: yep, in october we will meet every wednesday in the c-base
<lassulus>
maybe also tuesdays
<rycee>
Cool. I have no idea of where in Berlin that is but I'll be there :-)
orivej has joined #nixos
<lassulus>
cool, If you have problems finding it, just query me
<l333>
okay, nixos booting on mac, + wireless! and X11! :-)mytrack pad's not quite working right, and example configuration.nix for mac hardware out there?