<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fAgjc
<{^_^}>
[nixpkgs] @dtzWill opened pull request #46351 → kconfig-frontends: update and fixups → https://git.io/fAgjR
thc202 has quit [Ping timeout: 252 seconds]
iyzsong has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
mounty has joined #nixos
sbdchd has joined #nixos
<aszlig>
aminechikhaoui: the hardened mode in virtualbox works by using setuid wrappers (which in turn drop privileges) to make sure that only these system binaries have access to the kernel modules
<gchristensen>
oh cool
<aszlig>
aminechikhaoui: if you have virtualbox in your user environment and/or not going through these wrappers you won't have access to them
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #46352 → nanorc: Init at 2018-09-05 → https://git.io/fAgjN
phreedom__ has joined #nixos
Edes has quit [Ping timeout: 240 seconds]
phreedom has quit [Ping timeout: 256 seconds]
graphene has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @NeQuissimus pushed to master « nanorc: Init at 2018-09-05 »: https://git.io/fA2em
Supersonic has quit [Ping timeout: 240 seconds]
Guanin_ has joined #nixos
slack1256 has joined #nixos
Guanin has quit [Ping timeout: 244 seconds]
Supersonic112 has joined #nixos
tmaekawa has joined #nixos
Guanin_ has quit [Ping timeout: 245 seconds]
tmaekawa has quit [Client Quit]
jedahan has joined #nixos
hamishmack has joined #nixos
jedahan has quit [Ping timeout: 244 seconds]
Izorkin_ has joined #nixos
Izorkin has quit [Disconnected by services]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
silver has quit [Read error: Connection reset by peer]
sigmundv has quit [Remote host closed the connection]
ryantrinkle has joined #nixos
Fare has joined #nixos
primeos has quit [Remote host closed the connection]
<jasongro`>
Hm. There's a minor problem if lightdm becomes the default.
<jasongro`>
If I have lightdm enabled and gnome3 enabled, but not gdm, nixos-rebuild gives me an error.
<samueldr>
oh
<gchristensen>
what kind of error?
lassulus_ has joined #nixos
<jasongro`>
I'll check in a minute.
<jasongro`>
It hasn't been worrying me because I haven't needed to use lightdm and I wasn't sure ANYONE would need to use lightdm.
<jasongro`>
quote:
<jasongro`>
error: The option `services.xserver.displayManager.lightdm.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/display-managers/gdm.nix' and `/etc/nixos/configuration.nix'.
<jasongro`>
end quote
<jasongro`>
I'm afraid I don't have time to investigate further right now - sorry - but I do know this is a regression, some time in the last week or two.
<samueldr>
jasongro`: is this on unstable or 18.09 or by enabling both on 18.03?
<jasongro`>
unstable
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
<samueldr>
ok right, your last sentence explained
<jasongro`>
nw!
<samueldr>
oh naughty, the PR has "services.xserver.displayManager.gdm.enable = false;" for the gnome3 test
aexoxea has joined #nixos
<samueldr>
(lightdm + gnome3 is tested through the release tests)
<samueldr>
(but not with lightdm enabled + gnome3 enabled without disabling things)
<jasongro`>
Ha!
<samueldr>
if you hadn't figured it out, you probably can use that until it's fixed properly
<jasongro`>
I'm impressed that lightdm + gnome3 is tested at all though.
<samueldr>
not noted in this post, but tests I find interesting: a system configuration of apache + wordpress is built, and verified to be served properly
<jasongro`>
"Uses Optical Character Recognition to wait until it sees the system is ready" !!!
<samueldr>
I mean, isn't that what *you* are doing when logging-in your system?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiloreux has quit [Ping timeout: 272 seconds]
kiloreux has joined #nixos
kiloreux has quit [Ping timeout: 244 seconds]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
kiloreux has joined #nixos
hamishmack has joined #nixos
<adamantium>
Hi, what are these "wrapped" files, .desktop files ??? e.g. ".firefox-wrapped" because I use exwm and helm external to launch programs, kinda like dmenu, and when i type e.g. "firefox" it doesn't only show "firefox", but an additional entry ".firefox-wrapped", which in turn somewhat spams the menu, and drives me nuts.
<samueldr>
ah
<samueldr>
do you know about "makeWrapper"?
<adamantium>
Not yet, but I get the feeling I am about to know.
<samueldr>
:)
<samueldr>
some software needs to be massaged for how nixpkgs work. One of the common things that helps is setting custom environment variables for miscellaneous stuff
<samueldr>
to do so, makeWrapper is used in the build to wrap the binary with a script that adds the needed things
<samueldr>
you can't "just wrap" a binary, so it moves the binary out of the way, puts in place a script, and then calls the binary
<samueldr>
the way they implemented "moving the binary out of the way" is to keep it where it is, but rename it as a hidden file
<samueldr>
so if you `less $(which firefox)` you will see such a wrapper
<samueldr>
(there could be an additional layer of indirection with firefox, so you might see that one having a script referring to another /nix/store/.../bin/firefox, which this one is a wrapped binary with .firefox-wrapped at its side)
<adamantium>
so the .wrapped-firefox is the actual binary
<adamantium>
and if i look at "firefox" it's a script to set it up
<samueldr>
in a more succint phrasing, yes
<adamantium>
that makes perfect sense actually
<adamantium>
Now i'm less annoyed, and i'll just hack on helm I suppose to ignore hidden files with the external launcher
<adamantium>
Thanks
<samueldr>
your query, though, leaves a question in my mind now; what would break if they were moved to .../libexec?
<adamantium>
I wonder why they are turn in in helm though, the .wrapped-* files, i mean, it's too bad they are not in a separate location
<adamantium>
why they turn up* why they appear, I mean.
<edef>
i'm surprised your launcher shows dotfiles
<edef>
but, yes, i do think we should probably move things to libexec more
<adamantium>
yeah me too
<adamantium>
haha
<samueldr>
how common are dotfiles in PATH?
<samueldr>
(outside nixos)
<adamantium>
Well, it's definitely an edge case
<adamantium>
i dont know how many people are using exwm, and then how many are using helm vs ivy or ido
drp` has quit [Remote host closed the connection]
<adamantium>
iirc ivy does not show dotfiles, but only shows .desktop file entries, which is another annoyance altogether for me.
<adamantium>
Thanks for the good explanations samueldr
<samueldr>
just for kicks, on a system without nix things, `(IFS=:; for p in $PATH; do find $p; done) | grep '/\.' | wc -l` returns 0, 474 on my nixos desktop
<samueldr>
ah, my query is invalid anyway lol
<samueldr>
(if you PATH has e.g. /.gem/ it would have counted them)
<samueldr>
never learned awk and at this moment I think it could have helped
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to release-18.03: https://git.io/fA2fb
sigmundv has joined #nixos
<samueldr>
107 with a fixed oneliner `(IFS=:; for p in $PATH; do find $p; done) | sed -e 's;.*/;;' | grep '^\.' | wc -l`
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to staging: https://git.io/fA2JU
gspia_ has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
<fyber>
How does adding the unstable repo work? The docs make it look like it's a switch (all my packages and the system itself are now bleeding edge), but the command makes it look like it's being added in addition to the stable channel..
<fyber>
So, if I "add unstable" am I now using NixOS Unstable not NixOS 18.03?
<samueldr>
assuming your nixos system is built using channels (if you don't know, it very likely is), nixos will be built using root's channels, and will use the one named "nixos" (by default)
<samueldr>
so depending on how you add the channel, either to your user, or to the system's (root's) (as long as it is not named nixos), your system would likely not even know it exists
JonReed has quit [Ping timeout: 252 seconds]
iyzsong has joined #nixos
takeda has quit [Read error: Connection reset by peer]
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
Anyone know how to get an electron package working? I found node2nix, but it doesn't include electron in the generated shell.
wpcarro has joined #nixos
nD5Xjz_ has joined #nixos
<boomshroom>
Hi, wpcarro and nD5Xjz_!
nD5Xjz has joined #nixos
wpcarro has quit [Ping timeout: 244 seconds]
nD5Xjz_ has quit [Ping timeout: 245 seconds]
Mateon1 has quit [Remote host closed the connection]
Growpotkin has quit [Remote host closed the connection]
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
nD5Xjz_ has quit [Ping timeout: 244 seconds]
worldofpeace has joined #nixos
<worldofpeace>
samueldr: ping :P
<samueldr>
hi worldofpeace
<samueldr>
or: worldofping
<worldofpeace>
hah
<worldofpeace>
Do you think you could merge #42610
<kini>
Dumb question -- I want to add an ntp server to services.timesyncd.servers in my nixos config file, but how do I reference the default value? Like, I want to say services.timesyncd.servers = [ "my.ntp.server" ] ++ defaultServers;
<worldofpeace>
Currently there's no working file manager in the installation iso.
<worldofpeace>
Because of this.
<samueldr>
worldofpeace: noted for "tomorrow" (later today) (it's 00:40 here)
<Ralith>
I dunno what "translate" means, but the shell script the README directs you to may be of interest
<boomshroom>
I would love nothing more than to run a script in the directory and have a working derivation that builds the project in such a way that I only need one command to launch it.
<boomshroom>
That's probably not happening any time soon.
<Ralith>
it probably could, but it's up to you
<boomshroom>
That would require me learning the package manager to my least favourite language.
<Ralith>
it didn't for me, but 🤷
<boomshroom>
when building the `package` attribute that node2nix outputs, it thinks it's a library.
jasongrossman has joined #nixos
<boomshroom>
I feel like electron apps are common enough nowadays to warrent its own tool.
knupfer has joined #nixos
knupfer has quit [Client Quit]
<{^_^}>
[nixpkgs] @copumpkin pushed to master « swift-corelibs.corefoundation: update and modernize »: https://git.io/fA2kP
kiloreux has quit [Ping timeout: 272 seconds]
sigmundv has joined #nixos
jasongro` has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
<bigvalen>
Hmm. Where do you set the console font resolution ? For some reason, my HP Microserver boots up with a 1024x786 graphics mode, instead of a text mode console.
<butchery>
Running into a weird problem with libvirtd and pulseaudio on a headless system, if I set qemuVerbatimConfig = ''user='1000''';, pulseaudio fails to start correctly, it looks like libvirtd.service is starting it as my user, incorrectly, and the actual user service for pa is failing, so I cannot use pactl, etc unless I pkill pulseaudio and systemctl --user start pulseaudio
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
smolboye has quit [Ping timeout: 252 seconds]
smolboye has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed to master « vim-plugins: remove .git extension from spec »: https://git.io/fA2qs
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ma27 to release-18.09 « pythonPackages.pycaption: fix build (#46356) »: https://git.io/fA2mj
NightTrain has quit [Ping timeout: 252 seconds]
jasongro` has quit [Remote host closed the connection]
wpcarro has joined #nixos
ilikeheaps has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
butchery has quit [Ping timeout: 252 seconds]
smolboye has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
wpcarro has quit [Ping timeout: 252 seconds]
smolboye has joined #nixos
_ris has joined #nixos
xok has joined #nixos
thc202 has joined #nixos
<xok>
hello all...
<symphorien>
hi
<xok>
I am trying to provision a new system using nixops but I get an error: SSH Key is already in use on your account
<xok>
how do I remove, replace or reset the key?..
<rycee[m]>
elvishjerricco: Home Manager used to call into the nixos lib functions to generate the manual and man pages but sometimes people would change the library code and HM would break. So I copied it over to HM.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<pacey>
How would I install an different theme from the Internet
<tilpner>
By packaging it
<tilpner>
Here's the package I have for solarized-sddm-theme: https://tx0.co/23
<Thra11>
https://nixos.wiki/wiki/NixOS_on_ARM mentions bootstrapping NixOS from an existing Linux distribution. Are there any instructions anywhere explaining how to do this?
<pacey>
that is a bit beyond me, is their a simple guide on packaging a theme?
<pacey>
*there
<tilpner>
pacey - You probably can just use builtins.toString (fetchFromGitHub { ... }) as the value
<pacey>
is the ... just the github url?
knupfer has quit [Ping timeout: 240 seconds]
philippD has joined #nixos
<tilpner>
No. Look at my previous paste for an example
<symphorien>
Thra11: search for NIXOS_LUSTRATE in the manual for example
smolboye has quit [Ping timeout: 272 seconds]
bbarker has quit [Quit: Leaving]
smolboye has joined #nixos
<{^_^}>
[nixpkgs] @rycee pushed commit from R. RyanTM to master « josm: 14066 -> 14178 »: https://git.io/fA23u
<{^_^}>
[nixpkgs] @xeji pushed commit from @samueldr to master « yabause: 0.9.14 -> 0.9.15 (#46353) »: https://git.io/fA23d
<{^_^}>
[nixpkgs] @xeji pushed commit from @samueldr to release-18.09 « yabause: 0.9.14 -> 0.9.15 (#46353) »: https://git.io/fA23p
sbdchd has quit [Ping timeout: 246 seconds]
<pacey>
in a nix file, how do get the rev and sha 256 number
b has joined #nixos
<symphorien>
,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.
<symphorien>
rev is the branch name or tag name or commit sha
<{^_^}>
[nixpkgs] @xeji pushed commit from @dywedir to master « ripgrep: 0.9.0 -> 0.10.0 (#46331) »: https://git.io/fA2sX
Thra11 has quit [Quit: WeeChat 1.4]
acarrico has quit [Ping timeout: 252 seconds]
<phry>
oh, btw.: is there a nice autoformatter for nix? my files look like a mess
pacey has quit [Quit: Leaving]
silver_ has joined #nixos
<jasongrossman>
phry: There's a nice Emacs mode for nix.
<phry>
jasongrossman: I'm in VS code most of the time and in vim some of the time, so a command line tool I could integrate with bost would be best. Not really want to jump over to emacs in time.
<phry>
s/bost/both/
silver has quit [Ping timeout: 246 seconds]
xok has joined #nixos
<xok>
can anyone point me to a documentation, or a manual or something like that to write modules for specific services?..
<xok>
For example to write a module to install phpMyAdmin for example...
tzemanovic has quit [Remote host closed the connection]
<symphorien>
then ask yourself: how would I go at installing this on a regular distribution when compiling myself ?
<symphorien>
I imagine there is a location for php files and you have to point apache/nginx to this location
<{^_^}>
[nixpkgs] @xeji pushed commit from @tadfisher to release-18.09 « nixos/networkmanager: fix VPN plugin service definition targets (#46201) »: https://git.io/fA2GO
polyzen has joined #nixos
<symphorien>
by reading what the options offered by the nginx or apache modules do, you should e able to find how to so this
<symphorien>
I don't know anything about php and nginx and all so I can't help you precisely
<symphorien>
the main idea is: the php files are in ${pkgs.zabbix.server}/share/zabbix/php , and the modules write files in /etc, how can I get apache to use them
pi3r has joined #nixos
<{^_^}>
[nixpkgs] @symphorien opened pull request #46362 → Non broken fetchcargo → https://git.io/fA2GZ
<symphorien>
the gist is: they are a regular nixos configuration plus a script which connects to a vm with this configurations and ensures things are as expected
<xok>
it's a very basic configuration and it alerts an error:
<xok>
error: cannot coerce null to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix:676:7
<xok>
can you help with that?..
<xok>
or maybe you Myrl-saki ???
<symphorien>
can you run nix-info as suggested in the topic please ?
<greg_>
Hey! Can anyone help me with an issue I'm dealing with? It should be quite simple
<infinisil>
,ask greg_
<{^_^}>
greg_: Just ask your question. It's the best way to know if anybody can help.
<greg_>
Thanks a ton! I'm trying to identify the computer on which I'm running by calling `builtins.readFile "/sys/class/dmi/id/product_name"`, but I get a `error: unexpected end of file` error
<greg_>
However, `cat /sys/class/dmi/id/product_name` works without a problem. Is there a limitation in `readFile` I'm not aware of?
<ixxie>
xok: basically the directory structure you are used to is called Linux Standard Base (LSB), and the problem is Nix is something completely different than LSB
<symphorien>
xok: so, after building it appears the httpd conf is empty
<symphorien>
you have to use the http module to tell apache about the php files of zabbix
<symphorien>
how to read the httpd conf: nixops ssh, systemctl cat httpd, the path to the conf is here
<symphorien>
it is in the nix store
<LnL>
greg_: heh, interesting idea does that file have special characters like eg. \0?
<{^_^}>
[nixpkgs] @Ma27 opened pull request #46369 → pdf2htmlEX: mark as broken → https://git.io/fA2cB
iyzsong has quit [Ping timeout: 240 seconds]
<das_j>
Does anyone here have a proper way to manage secrets?
<das_j>
Like wireguard keys
sbdchd has joined #nixos
<ixxie>
das_j: I think most people but them in flatfiles and import them into the configuration
<das_j>
I have no idea about emacs or how it works but this looks like a proper example
mayhewluke has joined #nixos
<{^_^}>
[nixpkgs] @romildo opened pull request #46373 → Add some more Deepin packages: → https://git.io/fA282
pi3r__ has quit [Ping timeout: 252 seconds]
pi3r has quit [Ping timeout: 252 seconds]
greg_ has quit [Quit: Page closed]
<oscarvarto>
das_j, Thanks for helping me. Am I supposed to clone the nixpkgs repository somehow and create a new mode in a sibling folder from haskell one?
<oscarvarto>
I have been trying to use home-manager, and have succeeded to some extent, but now I am stuck. I don't know how to bring into scope some variables
<das_j>
oscarvarto: Depends. If you want to contribute it back to nixpkgs, this is the correct approach. Or if you just want to use it locally, overlay the package in
<das_j>
The nixpkgs README tells you how to properly check it out
<oscarvarto>
like melpaBuild, fetchFromGitHub, writeText, etc.
<das_j>
I usually overlay the package so I can use it locally and when I have used it for long enough that I am confident it's stable, I port it into the nixpkgs tree
<oscarvarto>
So, which nixpkgs README are you referring to?
<oscarvarto>
I cannot find the checkout instructions you just mentioned
<{^_^}>
[nixpkgs] @samueldr opened pull request #46376 → [WIP] texlive: Adds patch for missing synctex header. → https://git.io/fA2BQ
jonreeve has joined #nixos
<{^_^}>
[nixpkgs] @dasJ opened pull request #46377 → treewide: Use http/https for homepages → https://git.io/fA2B5
<jonreeve>
Does anyone know how to switch users, if home-manager manages your X session? I use SDDM as a display manager, and BSPWM as a window manager, but I can't seem to do Ctrl+Alt+F1 to get another SDDM login screen, as I would normally do on Arch.
jtojnar has quit [Remote host closed the connection]
oscarvarto has joined #nixos
<oscarvarto>
das_j, Do I have to fork the repo to be able to do a pull request?
<Myrl-saki>
What the fuck
<das_j>
oscarvarto: Yes
lsyoyom has joined #nixos
<Myrl-saki>
In my ZFS, I have a function called crap lmao
<Myrl-saki>
s/ZFS/zsh/
<das_j>
Myrl-saki: ZFS wouldn't have surprised me
<disasm>
lol
<Myrl-saki>
I have no idea what it does
<Myrl-saki>
myrl@myrl:~$ type crap
<Myrl-saki>
crap is an autoload shell function
endformationage has joined #nixos
oscarvarto_ has joined #nixos
<{^_^}>
[nixpkgs] @dasJ opened pull request #46378 → treewide: Unquote all URLs → https://git.io/fA2RL
oscarvarto has quit [Ping timeout: 252 seconds]
nD5Xjz has quit [Ping timeout: 246 seconds]
<disasm>
you gotta be defining it somewhere, lol
<Myrl-saki>
I know
<Myrl-saki>
Yet I don't know where
<Myrl-saki>
:D
nD5Xjz has joined #nixos
<{^_^}>
[nixpkgs] @vincentbernat opened pull request #46379 → nixos/nginx: populate extraDomains with vhosts using useACMEHost → https://git.io/fA2RW
<Myrl-saki>
I ag'ed crap yet I can't find it. :P
<Myrl-saki>
Let me try my laptop which has a cleaner HOME.
averell has quit [Quit: .]
<haitlah>
I'm back guys :D
<samueldr>
Myrl-saki: you'd need to redirect the output, but you probably can start zsh with -x to get a log of *everything* it executes
Guanin_ has quit [Ping timeout: 240 seconds]
<haitlah>
Can't get my binary working after having patched it with patchelf
<haitlah>
The runpath is correct (checked with readelf)
<haitlah>
I get: error while loading shared libraries: libgthread-2.0.so.0
<symphorien>
is this library loaded with dlopen ?
<Myrl-saki>
TBH, it's probably not worth finding what defined it.
<haitlah>
And the rpath contains /nix/store/hhncd3f33scx5azdv503s34095wm7llj-glib-2.54.3/lib
<haitlah>
Which contains libgthread
averell has joined #nixos
oscarvarto__ has joined #nixos
oscarvarto_ has quit [Ping timeout: 244 seconds]
<abcrawf>
I switched over to nixos-unstable to give 19.03 a try, but I ran into a few issues after upgrading (e.g. OpenVPN doesn't seem to work, the Gnome Settings program cannot load VPN settings, the new Power Statistics program cannot enable timerstats). In which bug tracker should I report these issues?
<disasm>
abcrawf: I'm definitely using openvpn on command line on 18.09/unstable without issues. Is it just the NM integration that's broken or is it broken if you launch your configs from CLI or via nixos config?
<pi3r__>
I have another question about this process. It takes hours because all haskell packages are not cached and need to be compiled. By default this is done with profiling enabled.
<pi3r__>
Is there a way to speed it up by disabling profiling for all new compiled haskell modules ?
<pi3r__>
I don't really know how to disable profiling for all the deps tree but then I wonder maybe I am going to build even more package if I disable profiling in such a way (as I guess only profiled haskell packages are in the cache).
<{^_^}>
taffybar/taffybar#415 (by PierreR, 5 minutes ago, open): Build with ghc-8.2.2 using Nix
thc202 has joined #nixos
<{^_^}>
[nixpkgs] @samueldr opened pull request #46383 → [WIP] qt5.*: Fixes modules src being subtly broken. → https://git.io/fA20h
boomshroom has joined #nixos
<boomshroom>
Hello again!
<boomshroom>
Is there any way to set the node dependencies for Electron? I have them in a store path, but I'm not sure how to give them to Electron.
<boomshroom>
I see atom/env.nix, but those all look like native libraries rather than node modules.
gudea[m] has joined #nixos
<gudea[m]>
Hey guys, I need some assistance to get a box into workable state again. (Note: I mistakenly wrote about the issue on #nix yesterday but that channel is dead.)
<boomshroom>
Unfortunately, gudea[m], this channel is also not very active.
<infinisil>
boomshroom: This channel isn't very active? There's people talking all the time!
<jonreeve>
tilpner: I know I can log out and log back in as a different user, but how can I *switch* users (i.e. without logging out of the first user)?
<ixxie>
infinisil: I don't get it; there was a PR and people requested for review and it just froze with no comments
<boomshroom>
Maybe it's just always when I'm not logged in.
<gudea[m]>
This is on what should still be a nixos 17.09 system. I attempted to upgrade to 18.09 yesterday. That got me a message of this kind: https://pastebin.com/iNjNm4X5
<gudea[m]>
So I went and installed ``nix`` (``nixos.nixStable2``) and upgraded it to version 2.1.1.
<disasm>
any haskellers using snack-lib? I manually modified snack to use a newer nixpkgs version, and snack build is working with my test project. I'd like to refactor it to use snack-lib though and add a release.nix that builds with hydra, but there doesn't seem to be a whole lot of documentation around snack-lib, just using snack.
<oscarvarto>
das_j, I have written the default.nix for the package I want to try, but don't know how to build, can you provide more details please?
<gudea[m]>
Now all attempts to update or downgrade the system fail with something like this: https://pastebin.com/6twkTvfx
<gudea[m]>
<freenode_boo "Unfortunately, gudea, this chann"> I received great help here in the past. Not much alternatives left since the mailing list died.
<boomshroom>
gudea[m]: Have you GCed the old version yet? If not, you can reboot, select the old version, and then run `sudo /run/current-system/bin/switch-to-generation boot`.
<das_j>
oscarvarto: You need to include it from pkgs/top-level/all-packages.nix. Read the comment at the beginning to find the proper location
<ixxie>
rycee[m]: you around perchance?
<gudea[m]>
<freenode_boo "gudea: Have you GCed the old ver"> It should still be there and should be bootable. However – what’s the upgrade path to 18.09 then? All I did was replacing the channel and trying to upgrade as usual.
sigmundv has quit [Ping timeout: 246 seconds]
Guanin_ has joined #nixos
<infinisil>
gudea[m]: So, the first error for "signed-binary-caches" is due to Nix renaming its config file (/etc/nix/nix.conf) flags, without keeping the old ones for backwards compatibility (i have no idea why that wasn't done)
<boomshroom>
I haven't gotten around to that part yet. :P I'm currently running 2 generations behind the latest because of various things not working.
<haitlah>
Any way to have an editable derivation ?
<gudea[m]>
<freenode_inf "gudea: So, the first error for ""> I know, that one appears to be irrelevant though.
<symphorien>
gudea[m]: did you restart the daemon after upgrading nix ?
<haitlah>
I'm wrapping a soft that need to write in its install directory
<haitlah>
Unable to do it since its in the store
<haitlah>
And I'm not able to change that path
<infinisil>
gudea[m]: Oh um, you shouldn't have installed nix manually, the error message told you to update nix by updating nixos
<gudea[m]>
<freenode_sym "gudea: did you restart the daemo"> Yup, I also rebooted the derivation. No change.
<infinisil>
Oh wait
<infinisil>
You tried to update nixos which got you that message?
<infinisil>
Well damn, somebody didn't think this through
<gudea[m]>
<freenode_inf "gudea: Oh um, you shouldn't have"> Well it gave me two options: ``nixos-rebuild switch`` which failed, and “alternatively”, using ``nix`` 2.x to upgrade – which I did …
<gudea[m]>
Yes, I wanted to upgrade 17.09 → 18.09
<oscarvarto>
das_j, Thank you very much.
<oscarvarto>
It is indeed a steep curve to start with NixOS and nix
<infinisil>
gudea[m]: Yeah, these instructions don't really work. Reason is (as previously mentioned) that the daemon has a different version than the client. And you only updated the client, while NixOS is running the old deamon
<emily>
gudea[m]: your Matrix-IRC bridge is translating mentions pretty bizarrely
<oscarvarto>
I've been using NixOS this week only, and have been struggling somewhat
<das_j>
oscarvarto: You're welcome. I know it's hard at the beginning, but once you grasped the concepts, it will get a lot easier
<emily>
gudea[m]: e.g. [[ <freenode_sym "gudea: did you restart the daemo"> ]] ([[..]] to delimit) when replying to symphorien
<gudea[m]>
Sorry for matrix messing this up. I can’t install irssi right now for some reason … :P
<infinisil>
emily: (not to be rude, but that's really irrelevant right now :))
<{^_^}>
#46382 (by boomshroom, 28 minutes ago, open): Provide builder or tool for Electron
<gudea[m]>
Hmm, both the ``nix`` and ``nix-daemon`` binary report version 2.1.1.
<emily>
infinisil: yeah, I know, sorry. it was just strange enough that I felt compelled to comment on the format
<infinisil>
gudea[m]: Trying to think how the upgrade could work..
<gudea[m]>
Ahh, scratch that, I just noticed the ``nix-daemon`` in my env isn’t actually the one that’s live:md5sum /proc/$(pgrep nix-daemon)/exe $(which nix-daemon)
<infinisil>
sphalerite: That's a bit too ugly for my taste
<infinisil>
symphorien: That should work yeah, but will have to downgrade again first..
jtojnar has quit [Read error: Connection reset by peer]
<sphalerite>
infinisil: it's a one-off hack and should work :p
<symphorien>
nix-channel --rollback; it's easy
<infinisil>
Really the problem is that the upgrade process for NixOS doesn't work
<infinisil>
And I don't know of a clean solution
<symphorien>
infinisil: here going through 18.03 as an intermediary step would have made this work
<infinisil>
Ah true
<symphorien>
because 17.09 -> 18.03 supports nix1 and 18.03 defaults to nix2
<infinisil>
Not optimal still, but nicer
<symphorien>
so let's say "upgrading multiple version is not supported"
<infinisil>
There's lots of people coming back from older systems though and wanting to upgrade to the latest one
ixxie has quit [Ping timeout: 252 seconds]
<gudea[m]>
Ok, I think I’ll boot into the last working derivation and try upgrading via 18.03.
<infinisil>
It's a bit embarassing to have to tell that that's not supported
<sphalerite>
there is also a "clean" solution that's not embarrassing to recommend
<sphalerite>
boot into an 18.03 installer, mount your stuff, run nixos-install
pi3r__ has quit [Ping timeout: 252 seconds]
pi3r has quit [Ping timeout: 252 seconds]
<infinisil>
Telling to reinstall NixOS to upgrade is pretty embarassing imo
<symphorien>
well everyone can't boot another media for one
<sphalerite>
it's not reinstalling
<symphorien>
and I agree with infinisl
<sphalerite>
it's building from outside
<sphalerite>
I don't think there's anything embarrassing about not supporting old versions, especially when there is still a clean upgrade path
<sphalerite>
where by "old" I mean older than the previous release
<sphalerite>
upgrading ubuntu or debian wouldn't be any less fuss
graphene has quit [Remote host closed the connection]
<infinisil>
It's not "not supporting old versions" that's embarassing, but not even supporting upgrades from older-than-the-latest version
<symphorien>
and except LTS -> LTS, ubuntu does not support multi hop upgrades either
<infinisil>
Oh rly
<symphorien>
let me check
jtojnar has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed commit from @7c6f434c to release-18.09 « Merge #46348: chromium: 68.0.3440.106 -> 69.0.3497.81 »: https://git.io/fA2uq
<sphalerite>
infinisil: nixos-install is a method of upgrading. It leaves the old system entirely intact.
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
<infinisil>
sphalerite: Yeah sure, but to the end user it's pretty much a reinstallation, even though it isn't technically one
<sphalerite>
infinisil: no it isn't. No partitioning, no rewriting config, no copying all the config over again
graphene has joined #nixos
tzemanovic has joined #nixos
<infinisil>
Okay, maybo no *full* installation, but at least half of one. Booting into an installer is the annoying part
<sphalerite>
and we have lots of methods (CD, USB, kexec, grub menu entry trick) to boot into an installer
<elvishjerricco>
Can't you go from any old NixOS to one that only builds with Nix 2.0 just by building the newest nix and building your system using that?
<{^_^}>
[nixpkgs] @xeji opened pull request #46385 → [WIP] mark long-failing packages broken for 18.09 → https://git.io/fA2un
<elvishjerricco>
So maybe nixpkgs should always let you build nix itself with pretty old versions of Nix
<infinisil>
elvishjerricco: daemon/client mismatch is the problem
<elvishjerricco>
infinisil: Hm true
<elvishjerricco>
I guess new Nix DBs may also not be compatible, so simply running as root doesn't solve that
<symphorien>
maybe there should be a warning when the client detects the mismatch
<elvishjerricco>
Definitely
<infinisil>
In any case, the error message in <nixpkgs/default.nix> should be changed to reflect that you might need to do a stepwise upgrade
<infinisil>
Or fix the direct upgrade path somehow
<infinisil>
But I don't see how that could be done
<elvishjerricco>
Does 18.09 require 2.0? Or is that change being saved for the next release?
<infinisil>
Yup it des
<elvishjerricco>
I'd kinda prefer we wait another 6 months TBH. Requiring a new major version only 6 months after its release seems super premature to me
<{^_^}>
#46387 (by Infinisil, 1 minute ago, open): Impossible to easily upgrade NixOS from <=17.09 to 18.09
<sphalerite>
infinisil++
<{^_^}>
infinisil's karma got increased to 23
<infinisil>
Also, the nix.conf format changed non-backwards compatible with 2.0..
<das_j>
If I wanted to test 18.09, would I need to switch to unstable or is there another release?
<symphorien>
there is already a nixos-18.09 channel
<das_j>
symphorien: So I can just switch to that and rebuild?
<symphorien>
yes
<das_j>
Nice
<das_j>
wcpgw
mizu_no_oto has joined #nixos
<boomshroom>
Anyone here familiar with Electron?
<das_j>
btw, is there a nix-way of managing channels? some nix command instead of nix-channel?
<das_j>
I mean the new nix 2.0 interface
<symphorien>
I don't think so
<das_j>
hm, okay
<infinisil>
The only thing I'm using the new nix command for is the repl actually
<infinisil>
Because nix-repl has been removed, so there's really no alternative
<boomshroom>
infinisil: I also use it for running one off commands with `nix run`
<infinisil>
I just use my `ns = nix-shell` alias, `ns -p hello`
<infinisil>
seems to be much shorter than `nix run nixpkgs.hello` lol
<das_j>
ffs, I have the feeling that running without a displayManager becomes more difficult with each nixos release
<emily>
"nix search" is a killer app
<rycee[m]>
ixxie: Yeah. What's up?
<emily>
nix-env(1) killed my Nix enthusiasm several times
sbdchd has joined #nixos
<boomshroom>
I've just been using nox for searching. That or the website.
<emily>
yeah... I didn't know about those at the time though
<infinisil>
Ah yeah nix search could be nice, I'm just ripgrepping through nixpkgs to find stuff
<infinisil>
Also can find nixos modules and stuff quickly like this
tzemanovic has quit [Ping timeout: 252 seconds]
<emily>
infinisil: that... might be nicer than nix search still, lol
<emily>
I mean, my previous dippings into NixOS were fairly light
<emily>
but the sheer amount of time and awkward syntax it took to search for packages was definitely part of what killed them
<boomshroom>
ripgrep. I'm surprised that as a masive Rust fanboy, I haven't installed it yet. Probably because most of my grepping is with git grep.
<infinisil>
boomshroom: While I'm excited for Rust, that really wasn't my reason for installing it, it's just because there's been so many people saying how damn fast it is
<infinisil>
And that I can confirm
<boomshroom>
How does it compare in usability to `git grep`.
<infinisil>
Also the output is very nicely formatted, and has a nice CLI in general
<infinisil>
Can't say, I never use git grep
haitlah` has joined #nixos
sbdchd has quit [Remote host closed the connection]
Izorkin has quit [Ping timeout: 244 seconds]
sbdchd has joined #nixos
haitlah has quit [Ping timeout: 246 seconds]
<avn>
infinisil: +1 for `git grep` in tree ;) do it since very beginning
<LnL>
it searches more than git grep, but rg does honor .gitignore
<avn>
LnL: possible I should give ripgrep a try
pi3r__ has joined #nixos
pi3r has joined #nixos
rfold has quit [Quit: leaving]
pi3r__ has quit [Read error: Connection reset by peer]
pi3r has quit [Read error: Connection reset by peer]
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
sbdchd has quit [Remote host closed the connection]
<rfold>
clever: I got audio working this time! All I had to do was enable the kernel module snd-soc-rt286. However now kworker is using 100% CPU and sometimes the login screen son
<rfold>
won't show up.* I think I'm using the wrong driver actually.
justanotheruser has quit [Ping timeout: 240 seconds]
<rfold>
Also couldn't read the CPU temperature after enabling that kernel module. Something must be horribly wrong.
devopsdeluxe has quit [Quit: ZNC 1.7.1 - https://znc.in]
<das_j>
I just upgraded to 18.09 and I see systemd-machined running. Is this a change or did I just miss it in 18.03?
devopsdeluxe has joined #nixos
<sphalerite>
das_j: it certainly exists on my 18.03
<sphalerite>
although it's not running. Seems to be triggered by D-Bus stuff
<das_j>
sphalerite: Okay, so I probably just missed it in the past
<das_j>
Oh it's running here
<sphalerite>
running `machinectl` makes it start, for me
<das_j>
hmm
Izorkin has joined #nixos
<das_j>
I'll just mask the service
wpcarro has joined #nixos
<boomshroom>
Just installed ripgrep. Now to find more about that Electron problem.
<das_j>
Is there any reason to bump system.stateVersion this time?
<sphalerite>
boomshroom: I suggest alias rg='rg -S' also
<sphalerite>
das_j: no. Don't bump stateVersion.
<das_j>
Alright
<sphalerite>
as a general rule.
<das_j>
When would I bump it, then
<das_j>
?
<sphalerite>
basically never
<das_j>
Umm, but why have it in the first place?
<boomshroom>
sphalerite: What does -S do and does it include colour by default?
<sphalerite>
boomshroom: -S does "smart case handling", i.e. case-sensitive iff the pattern contains any uppercase characters
<sphalerite>
yes, colour is default
<sphalerite>
if outputting to a tty
justanotheruser has joined #nixos
<boomshroom>
good
rfold has quit [Quit: leaving]
<boomshroom>
tmux counts as a tty, right?
gratin has quit [Ping timeout: 272 seconds]
graphene has quit [Remote host closed the connection]
rfold has joined #nixos
graphene has joined #nixos
<disasm>
how do you get the public key for your hydra server to put in nix.binaryCachePublicKeys?
<rfold>
clever: switched to the proper driver and now everything works! <3
<disasm>
rfold: what driver is that? :)
<rfold>
disasm: snd-soc-rt3266 is the correct one for Dell XPS 9560 audio apparently
<disasm>
nice :)
<rfold>
snd-soc-rt286 is the wrong one and breaks a bunch of stuff :')
wpcarro has quit [Remote host closed the connection]
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
<magnetop`>
I'm trying to NIXOS_LUSTRATE a debian VM, but I can't find a valid grub.device: root is on /dev/xvda1, but /dev/xvda doesn't exist. any ideas?
haitlah` has quit [Remote host closed the connection]
<symphorien>
Try to extract the information from the current debian installation ?
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
delores has joined #nixos
<magnetop`>
thanks, great idea. lemme find out how... :)
<magnetop`>
the guy that made the VM was talking about VM's that boot without a bootloader. maybe this is one of those? How would one install nixos on there?
<magnetop`>
I had never heard of that btw
<clever>
magnetop`: ah, those are difficult to deal with with nixos
<clever>
magnetop`: basically, you have the kernel and initrd on the host filesystem, and then you just point the VM at those
<clever>
but you need to copy the kernel out of the guest any time it updates
<clever>
and nixos changes it more often then other distros, which can be a pain to deal with
<magnetop`>
clever: right. so best to ask him to install a system with a bootloader then?
<clever>
magnetop`: id say its best to just have a single block device at xvda, and then you can install a bootloader normally
<magnetop`>
clever: so I'd have to ask him for that, right?
<clever>
yeah
<magnetop`>
clever: OK, thanks. unfortunately, I'm halway trough a NIXOS_LUSTRATE procedure. how do I make the PC boot debian again?
<magnetop`>
do Ijust remove /etc/NIXOS and /NIXOS_LUSTRATE ?
<clever>
debian just ignores those files entirely, so you can just leave them
<clever>
nixos likely wont boot, because the bootloader failed to install
<magnetop`>
OK, so then just move back "sudo mv -v /boot /boot.bak"
<magnetop`>
?
<clever>
if you have a backup of the old /boot, you can restore it
<clever>
ah, but you have some notifications appearing outside the terminal, asciinema cant catch those
<ldlework>
clever: i know all about asciinema
<ldlework>
i was one of their first users and have bug reports on it
<clever>
ah
<ldlework>
asciinema would obviously not work for what i'm trying to show
<clever>
yeah
<ldlework>
but big ups to ascienma regardless, love them
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
<magnetop`>
Idlework: what are we seeing here? Looks interesting...
<ldlework>
magnetop`: i have several expensive commands (home-manager, nixos-rebuild, emacs config rebuild) bound to global keys, which are run inside "quake-style" dropdown terminals. If the command succeeds, the terminals die, and I get a success notification. If they fail, the console sticks around and the output is pipped into less so I can review it, and I get a failure notification. Once I close the failure term,
<ldlework>
the command can be run again.
das_j has quit [Quit: "Bye!";]
<{^_^}>
[nixpkgs] @andrew-d opened pull request #46392 → wkhtmltopdf: 0.12.4 -> 0.12.5, use Qt5 → https://git.io/fA2VK
tzemanovic has joined #nixos
camsbury has joined #nixos
goibhniu has joined #nixos
das_j has joined #nixos
<camsbury>
hi all -> I have a simple haskell project building with haskellPackages.callCabal2nix, and I would like to have hie available while developing
<camsbury>
not sure how the nebulous .env attribute works in my shell.nix
<camsbury>
but it would be good if I could load both my project and hie
mizu_no_oto has joined #nixos
Fare has quit [Ping timeout: 272 seconds]
<infinisil>
camsbury: What I did was wrap hie with a script that enters the correct nix-shell (to get the correct ghc and cabal) and then calls hie-wrapper
mizu_no_oto has quit [Client Quit]
<camsbury>
oh okay
<infinisil>
My recently merged PR to https://github.com/domenkozar/hie-nix added hie-wrapper, it just selects the correct hie version based on the ghc in the path
<infinisil>
(well it's not me that made hie-wrapper, it's from the hie team)
<infinisil>
Oh and actually I'm calling hie via direnv, which ends up just calling nix-shell, but has some more logic in it
<rycee[m]>
infinisil: The dag module I think would be nice to have in Nixpkgs. It's IMHO a bit more pleasant to work with than the strings-with-deps module 🙂
<rycee[m]>
infinisil: Hmm, I can't recall exactly but I think it was something that I wanted to express both an "after" and a "before" relationship and strings-with-deps only can express "after".
tzemanovic has quit [Ping timeout: 272 seconds]
<infinisil>
Ah, yeah that might be it
<rycee[m]>
I think my initial need for that was that I wanted a clear separation in the activation script between the "preparation" phase (not making any actual changes) and the "execution" phase (making changes).
<ldlework>
hi rycee[m]
<rycee[m]>
Which became the "writeBoundary" activation entry.
<infinisil>
Yeah, seems to work well
<{^_^}>
[nixpkgs] @oxij opened pull request #46396 → Nixos/slim for auto → https://git.io/fA2wQ
<rycee[m]>
ldlework: Howdy!
<ldlework>
rycee[m]: did you see that video I linked
das_j has quit [Quit: "Bye!";]
<rycee[m]>
infinisil: Fortunately the topological sorting algorithm was already implemented in Nixpkgs lib so I just needed to create some data structure and some associated functions :-)
<rycee[m]>
ldlework: Ah, no. I'll check.
das_j has joined #nixos
<rycee[m]>
ldlework: That's pretty slick!
<ldlework>
:)
<rycee[m]>
A ricers dream :-)
Ariakenom has quit [Quit: Leaving]
marusich has joined #nixos
<gudea[m]>
Hey guys, I’m back to confirm that the 17.09 → 18.03 → 18.09 update path worked out in the end. Thanks for the assistance.
knupfer has joined #nixos
funkmybios has joined #nixos
<funkmybios>
how active is this now ?
<das_j>
Is there a way to get the nixpkgs revision in nix?
<{^_^}>
[nixpkgs] @zimbatm opened pull request #46397 → strongswan: set the right dir for TLS CA cert → https://git.io/fA2rW
<das_j>
Sorry, even more complicated. Is there a way to get a readable version of nixpkgs in a package?
<das_j>
I have sandboxing enabled, so I cannot read the path in /root
<phry>
I am noticing that nixops seems to download some things that are seemingly completely unrelated to the target machine (headless, no X11), like i3lock or gnome-dark. Has someone noticed the same?
<phry>
those things are present on the host though
<jonreeve>
Does anyone have a workaround for the lsb-release issue that causes Python packages to fail in nix-shell?
<das_j>
Okay, how can I get the currently installed NixOS version?
<das_j>
Like 18.03?
<jonreeve>
nixos-version?
<jonreeve>
Or `nixos-version | head -c 5`
<das_j>
jonreeve: No, I need it in nix
<das_j>
Sandboxed build
<LnL>
you can't
<das_j>
Seriously? :O
<LnL>
but there's lib.nixpkgsVersion
<LnL>
that's the nixpkgs version you are currently building on, not what os version you are running
<das_j>
But that still is longer than I need it. I just need 18.03. Is a substring the correct solution here?
<tilpner>
das_j - If you are a module, there may be a config.system.nixosVersion
<LnL>
those are not necessarily the same and the latter shouldn't affect build resuts
<das_j>
tilpner: Aahh, that's what I was looking for
<das_j>
Let's see if that works now
<LnL>
ah for modules you can use that
<das_j>
tilpner: Well... error: The option `system.nixosVersion' is used but not defined.
xeji has quit [Quit: WeeChat 2.1]
delores has quit [Quit: WeeChat 1.9.1]
<das_j>
Ah
<das_j>
system.nixos.release
<copumpkin>
I'm getting the sense that double-nested callPackages doesn't work properly
<jonreeve>
Hm I can't get any Python packages to install...everything fails with "subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 3."
<jonreeve>
And it seems I'm getting the same thing if I try to use virtualenv.
<LnL>
do you have a stacktrace?
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #46401 → [18.09] set min version back to 1.11 → https://git.io/fA2oC
<{^_^}>
[nixpkgs] @oxij opened pull request #46402 → merge: master to staging → https://git.io/fA2oW
<samueldr>
justanotheruser: your user has no channels, so it is printing this annoying message, you can disregard; I have to check back, but I believe we have a PR reverting the cause
<samueldr>
so TLDR, justanotheruser, just disregard the warning for now
<justanotheruser>
ok ty
baimafeima has joined #nixos
baimafeima has quit [Remote host closed the connection]
sbdchd has quit [Remote host closed the connection]
<camsbury>
with that in it
<infinisil>
Can't help debugging if I don't know the problem
<infinisil>
Possibly the problem is that the hie-directory isn't startable with a nix-shell, because it's not the root directory
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<camsbury>
sure
<funkmybios>
well its nice that people are here, trying my first nixos install on Acer hardware - seems to have network issues DHCP not working en3ps0, wifi not working either ..