<jasom>
pxc: make sure you set prefix to be $out by whatever means the installer lets you specify a prefix, that should fix 99% of the issues.
<pxc>
it seems like patchelf will do a good job of showing me most library deps, but strace will probably still be necessary in case other assets are required and maybe for some runtime weirdness
<jasom>
pxc: yup
<jasom>
I had to patch shell scripts, and strace helped me find that. Also the binary assumes it is installed one directory up from /etc (probably /opt or /usr) and uses a path equivalent to $prefix/../etc internally. I'm not joking :(
<pxc>
that is terrible!
<pxc>
is that NoMachine's client?
<jasom>
yeah
<pxc>
'enterprise grade' lolll
<jasom>
so I set the prefix to $out/NX and everything was happy; the installer created a $out/etc for configuration
<pxc>
is that a private expression you have or is it now in Nixpkgs?
<jasom>
pxc: private, it *only* is tested with the client
aanderse_ has quit [(Ping timeout: 252 seconds)]
aanderse has joined #nixos
<pxc>
ah, cool. I witch winswitch were still more actively maintained
<jasom>
and make fun all you want, it's remote desktop experience is lightyears ahead of anything opensourece
<pxc>
and that it worked on macOS
<jasom>
s/it's/its
<pxc>
Winswitch used to be awesome!
<pxc>
xpra is pretty good
<pxc>
but you're right, the jankiness of the open-source tools in that arena hurts.
<jasom>
xpra is what I was using prior to going to nxplayer. It's so-so and is not great for "mostly local, occasionally remote"
<pxc>
it's frustrating because most of the pieces are already there
<jasom>
freerdp-shadow is more stable than x11vnc but both are very crashy
* jasom
rand x11vnc under valgrind once and it was spamming output with memory errors :(
<simpson>
It *is* on my list to write an X11 server which is also an X11 client, kind of like xpra, but less flaky.
<simpson>
It's not very high on the list though. :c
<pxc>
simpson: what's at the top of your list these days? haven't heard from you in a while
<jasom>
simpson: X11 server or X11 window manager? xpra is a window manager (unless they've added a server too)
<jasom>
My plan was to make a compositing window manager that also served up window contents over the network, but design it to run on a real desktop, so that it's better for my situation
<simpson>
jasom: Not sure TBH. Honestly a lot of work first needs to be done to make X11 clients that use Xlib/XCB be okay with reconnecting. There's a lot of ossified scar tissue around that area.
<jasom>
I've got one that works with xrender, but I need to switch to GL for usable performance
<jasom>
the other advantage is that an X11 compositing WM can be made into a wayland compositor fairly easily so it would hopefully be useful in the future as well
<simpson>
pxc: Right now, I'm working on the Monte language, currently hoping that my paper got in for the SPLASH conference. I've also been managing my small business, Matador Cloud, and trying to get products built and out the door.
<simpson>
*Right* right now I'm working on a Matador product.
<jasom>
but getting the little things right is hard (e.g. clipboard, optionally blank the local monitors when a remote is connected, ...)
<pxc>
right on, dude
<pxc>
I gotta go for now, but thanks y'all for your help and I'll see you again tomorrow
zraexy has quit [(Ping timeout: 255 seconds)]
zraexy has joined #nixos
<jasom>
but right now I'm finishing up getting ql2nix to a state where I can publish an overlay... I'm close to having something "okay" at which point I'll publish, but I have ideas to make it much better...
mudri has quit [(Ping timeout: 260 seconds)]
pxc has quit [(Ping timeout: 248 seconds)]
endformationage has joined #nixos
erasmas has quit [(Quit: leaving)]
<U007D>
In trying to create a KVM virtual machine on my NixOS installation, virtual machine manager reports "could not detect a default hypervisor. Make sure that the appropriate virtualization packages are installed (kvm qemu, libvirt, etc.) and that libvirtd is running.
<U007D>
I've set virtualisation.enable = true, which should enable kvm according to nixos.org
<U007D>
qemu and libvirt are set as environment.systemPackages in my configuration.nix
_ris has quit [(Ping timeout: 246 seconds)]
<U007D>
ps -ef | grep "libvirtd" shows a daemon running
pie_ has quit [(Ping timeout: 240 seconds)]
<U007D>
And libvirtd.enable documentation on nixos.org indicates that a user must be a member of the libvirtd group to interact with the daemon, so I've added libvirtd to extraGroups[] for my user
ertes has joined #nixos
<U007D>
Any thoughts on what I'm missing/doing wrong?
eacameron has joined #nixos
<Ralith>
did you actually set libvirtd.enable?
eacameron has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
sellout- has joined #nixos
takle has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] eqyiel opened pull request #29138: transmission.nix: make it possible to use a different home directory (master...transmission-with-variable-home-dir) https://git.io/v562l
NixOS_GitHub has left #nixos []
zeus_ has joined #nixos
justbeingglad has joined #nixos
hamishmack has quit [(Read error: Connection reset by peer)]
<mbrock>
I feel unsure about how and whether to maintain a semi-parallel nixpkgs channel for an organization that does many different open source projects
<mbrock>
maybe I'll just write some bash scripts and it will be easy
drakonis has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v56Vl
<NixOS_GitHub>
nixpkgs/staging 9d6ac8e Vladimír Čunát: mesa: maintenance 17.1.8 -> 17.1.9
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
oida has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
oida_ has quit [(Ping timeout: 248 seconds)]
jsgrant has quit [(Remote host closed the connection)]
proteusguy has quit [(Remote host closed the connection)]
<mbrock>
ahhh, yes, I really should do that
<mbrock>
the presence of the "nix-channel" command made me want to have a channel
proteusguy has joined #nixos
<sphalerite>
That is also an option but I don't think it's as easy to maintain, and it doesn't combine with nixpkgs as nicely
<mbrock>
yeah, I've been noticing that it's kind of painful
<mbrock>
I'd really want to be able to provide a script that sets up all the things for a user, like making sure the binary cache is trusted and stuff
<mbrock>
maybe it's okay to just say "please make sure that this binary cache public key is in your Nix configuration" but that's slightly annoying
Ivanych has joined #nixos
<sphalerite>
U007D: I think I had a problem like that which was caused by having KVM in my user environment as well as the system config.
<sphalerite>
mbrock: sounds not very declarative :p personally I'd prefer a nix file that I can download and stick into my imports in /etc/nixos/configuration.nix
<mbrock>
ah, that's a great option
<mbrock>
yeah, it's a separate concern that I also want to be convenient for people who literally installed Nix 10 seconds ago and don't care about it because they're trying to learn a whole other thing already
<mbrock>
but to some extent it's good to gently teach them what's going on too
<sphalerite>
Of course that option only works with nixos
<mbrock>
yeah, almost all my users are on other distros or Mac
<sphalerite>
What about integrating the software in question into nixpkgs?
<sphalerite>
Then you get a binary cache for free and no extra setup
<mbrock>
we've been integrating a few of the packages, which is nice
<clever>
mbrock: you can also make a channel, that just imports <nixpkgs> and passes it an overlay
<clever>
mbrock: that is what the default.nix in nixpkgs-mozilla does
<mbrock>
ah!!
<clever>
but you also have to keep in mind, will your overlay be compatible with the nixpkgs the end-user has?
<clever>
does that nixpkgs even support an overlay?!
<clever>
it may be more stable for your channel's default.nix to import a hard-coded nixpkgs revision, and overlay that
<mbrock>
I'd like to keep merging into nixpkgs master, but for some more experimental or niche-y stuff I want my own fantasy world (I also have a separate binary cache with stuff like 10 old versions of a certain compiler)
<mbrock>
ah, yeah, I saw something about nixpkgs pinning in the Mozilla repo
<mbrock>
so that seems easier to maintain, I pinpoint the nixpkgs revision but modify it with an overlay... and structure the overlay so that I can merge some things to nixpkgs master...
<mbrock>
it's so awesome that Nix can do things like have one package import a whole other nixpkgs from GitHub and then just use it as part of an expression
<mbrock>
lol such a parsimonious and amazing design
<clever>
you can even do cross-os imports
<clever>
import <nixpkgs> { system = "x86_64-darwin"; } will force this nixpkgs to produce darwin executables
<mbrock>
by cross-compiling?!
<clever>
and i686-linux for 32bit linux, and x86_64-linux for 64bit linux
<clever>
nope, native compiling
<clever>
it will ssh into a build-slave of the correct type, and do a remote build
<mbrock>
haha, what! can I set up such a build slave?
<clever>
but you can have a single nix expression that refers to both builds
<mbrock>
omg, that sounds amazing
<clever>
and you could then have a single derivation, that tar's up the resulting binary, from both OS's
<clever>
and nix-build would just spit out a tar containing elf and mach-o files
<mbrock>
haha, wow
<mbrock>
I run a little script to update my binary cache
<taaperotassu>
Erm I am new with nixos and especielly new to kde. How do I connect to wifi? as nmtui says NetworkManager is not running?
Capprentice has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
<taaperotassu>
and loadkeys fi -> invalid argument? I thought I defined it in my /mnt/etc/nixos/configuration.nix
<akamaus>
taaperotassu, usually it just works. First of all, is your wifi adapters shown by ifconfig -a?
<taaperotassu>
I thinks its wwp0s26u1u5 .. its running
<taaperotassu>
broadcast, running,multicast
Capprentice has quit [(Ping timeout: 240 seconds)]
<akamaus>
taaperotassu, does it have IP address assigned, by chance?
<taaperotassu>
169.254.255.255
eacameron has quit [(Ping timeout: 248 seconds)]
<taaperotassu>
but I tried to ping 8.8.8.8 .. and host unreachable
<akamaus>
taaperotassu, something is wrong then, it is the address which is assigned when something is wrong with dhcp
<taaperotassu>
I am using laptop and just installed nixos.. with only enabling /etc/nixos/configuration.nix
<akamaus>
but at least your nic seems to be alive, which is good
<taaperotassu>
and nixos-install .. wondering if I missed something
<taaperotassu>
also I defined i18n consolekeymap ="fi" , but my keyboard settings are definitely not the same as I did loadkeys fi in installation..
<LateKnight>
Anyone running a custom kernel? How much effort does it take compared to arch?
<taaperotassu>
I think my systemctl networkmanager is not running.
<dtzWill>
aw man the extra information about nixos generations shown in the boot menu is sa-weeeeettt
freeman42x has joined #nixos
<akamaus>
taaperotassu, did you set networking.wireless.enable = true in your configuration.nix, by the way?
<taaperotassu>
yeah
Itkovian has joined #nixos
<taaperotassu>
thought now that I read it.. its for wpa_supplicant? I have normally used network manager.. so I have no clue how to set this up
<clever>
is the network protected with wpa?
<LnL>
dtzWill: yeah! gchristensen added that
<taaperotassu>
yeah.. but installation worked by wifi and network-manager.. now I dont even see any applets etc.. for how to connect wifi
<taaperotassu>
I think I should re-install this and somehow ad network-manager package if its not installed
<clever>
taaperotassu: ah, i think you need to set services.networkmanager.enable = true;
<clever>
taaperotassu: and re-installing is painless and at zero loss
<akamaus>
taaperotassu, section 11.6 of nixos manual says you should manually add needed keys to wpa_supplicant.conf
<clever>
taaperotassu: re-mount all the filesystems under /mnt/ and re-run nixos-install, and it will update it to match configuration.nix
<taaperotassu>
thanks akamaus and clever .. So I could now reboot and mount /dev/disk/by-label/nixos /mnt .. edit and reinstall?
<clever>
and if you have a boot partition, that must also be at /mnt/boot
<taaperotassu>
I installed it all into sda1 and after the command: mount /dev/disk/by-label/nixos /mnt leads me into having near zero /mnt/etc/nixos/configuration.nix configuration?
<clever>
try mounting sda1 instead?
<clever>
maybe your looking at the cd by mistake
<taaperotassu>
okay mount /dev/sda1 /mnt says its busy
iyzsong has quit [(Read error: Connection reset by peer)]
<clever>
what does "realpath /dev/disk/by-label/nixos" say?
<taaperotassu>
/dev/sda1
<clever>
ah, then that was the right path
<clever>
how much is missing from that configuration.nix?, did you properly shutdown?
<taaperotassu>
yeah
<taaperotassu>
XD sorry my bad
<taaperotassu>
I cd to wrong directory by vim
<taaperotassu>
didn't go the /mnt path
<clever>
ah
<clever>
so it WAS the cd's configuration.nix, but not via the path i thought it was
<clever>
i thought it was mounting the iso to /mnt
<taaperotassu>
I just used vim :Explore.. so
<taaperotassu>
mount /dev/disk/by-label/nixos /mnt .. so the iso is in the /mnt
<clever>
realpath says thats sda1, so its not the iso
<taaperotassu>
but I just accidently went to my other path instead of /mnt.. but yeah mounting worked
eacameron has joined #nixos
<taaperotassu>
And I have booted to my iso
<clever>
so i guessed wrong and was still write, heh
<taaperotassu>
my bad.. :D
<taaperotassu>
oh so there wasn't networking.networkmanager.enable = true; .. in the config.. have to define it first..
<taaperotassu>
this is actually a bit stressing as u cant copy past
<taaperotassu>
clever: thanks for the help tho!!!
<clever>
one of the first things i do is enable sshd and then ssh in from another more capable machine
<clever>
but that still needs network
<clever>
though in my case, i have brought the network up manually (no services to help) on a display-less laptop (blindly typing into the shell)
mudri has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<taaperotassu>
I normally ssh to install arch, but this is first time trying nixos :D .. felt a bit stressed out as its kinda different
<taaperotassu>
loadkeys fi is obviously something u cant set by editing i18n consolekeymap I suppose..
<clever>
yeah
<taaperotassu>
probably its the xserver layout
<taaperotassu>
oh networkmanager and neworking.wireless cant be installed together
phreedom has quit [(Ping timeout: 248 seconds)]
<clever>
one does it via wpa_supplicant, the other does it via network manager
adisbladis has quit [(Read error: Connection reset by peer)]
adisbladis has joined #nixos
<taaperotassu>
nixos-install says squashfs error
<taaperotassu>
unable to read fragment cache enty
<taaperotassu>
are there some rules.. for reinstall or changing this settings?
<clever>
did anything happen to the cd/usb your booting from?
<clever>
maybe you bumped it by mistake?
<taaperotassu>
should not
<taaperotassu>
input/output error
<taaperotassu>
well I try to reboot and hopefully goes right
<clever>
yeah, that should fix it
<clever>
sounds like the usb key just came uplugged for a moment
Capprentice has joined #nixos
<akamaus>
clever, are *phase variables automatically copied from nix-expression to nix-shell environment?
<clever>
akamaus: every variable in the derivation becomes an environment variable
<clever>
akamaus: but bash allows functions and variables by the same name, so "unpackPhase" and "eval $unpackPhase" can potentialy do different things
Capprentice has quit [(Ping timeout: 246 seconds)]
<clever>
akamaus: one trick is to run this: phases=unpackPhase genericBuild
<akamaus>
i'm trying to debug cudatoolkit in 17.09. It probably need to be patched, but I cannot do unpackPhase, the source file is weird self-extracting shell script. And there is a custom unpackPhase in expression, but it seems to be ignored
<clever>
have you tried the above command yet?
<akamaus>
clever, nope, I started to type before you :)
<akamaus>
will try now
<taaperotassu>
Thanks clever now my wifi works and keyboard language is fixed.
<clever>
taaperotassu: yay
<akamaus>
taaperotassu, good news :)
<taaperotassu>
Thanks to both of you! :)
<akamaus>
taaperotassu, so turned out basically you made install with a wrong config?
<akamaus>
clever, thats works :)
<taaperotassu>
yup :D .. or more likely didn't know the right options
<taaperotassu>
but yeh wrong config!
<akamaus>
taaperotassu, I remember I had big troubles with wifi in nixos too, but the reason turned out to be a buggy driver for realtek chipset :(
<taaperotassu>
oww I can relate.. built a ryzen cpu computer for linux.. didn't expect it to have some gcc issues.. etc.
eacameron has joined #nixos
ison111 has quit [(Ping timeout: 246 seconds)]
orivej has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
jellowj has joined #nixos
Capprentice has joined #nixos
thblt has quit [(Remote host closed the connection)]
martinb has joined #nixos
nwuensche has joined #nixos
<nwuensche>
Hi! So I configured my Brother Printer with Cups, and it does print. However, it has the wrong layout. It prints without borders, so it looks like the page is lifted up 2cm and the first 2cm are missing when it prints. I tried to change the layout to A4, which should be right, but it doesn't work. Anyone knows how I can do this?
thc202 has joined #nixos
eacameron has joined #nixos
Curiontice has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
Capprentice has quit [(Ping timeout: 260 seconds)]
<makefu>
nwuensche: normally it should be configureable in cups. otherwise this does not sound like a nixos issue, more like a general bug. have you checked out other forums for this error? like ubuntu-forum or archlinux
eacameron has joined #nixos
<nwuensche>
makefu: I will try this, thank you.
Filystyn has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
<taaperotassu>
I have set my timezone in my .config in to right one Europe/helsinki , but what else should I change if I want to get the right time?
zarel has joined #nixos
ryantrinkle has joined #nixos
nwuensche has quit [(Ping timeout: 246 seconds)]
<LateKnight>
How complete is nix repository? Do i need to resort to horrible insecure user repos, like with arch's aur?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bachp opened pull request #29145: uwsgi: enable plugins by default (master...uwsgi-plugins) https://git.io/v56PE
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v56Pu
<NixOS_GitHub>
nixpkgs/master 40e5382 Michael Weiss: android-studio-preview: 3.0.0.12 -> 3.0.0.13
NixOS_GitHub has left #nixos []
stanibanani has joined #nixos
eacameron has joined #nixos
ShalokShalom_ has joined #nixos
<makefu>
LateKnight: there is nixpkgs if that is what you mean. a dedicated security team is working on keeping this repo clean
<makefu>
all changes arrive via PRs and get reviewed before becoming part of the repo
eacameron has quit [(Ping timeout: 260 seconds)]
ShalokShalom has quit [(Ping timeout: 252 seconds)]
ShalokShalom_ is now known as ShalokShalom
eacameron has joined #nixos
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
jellowj has quit [(Ping timeout: 240 seconds)]
gnuhurd has joined #nixos
ixxie has joined #nixos
eacameron has joined #nixos
LateKnight has left #nixos []
georges-duperon has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fuzzy-id opened pull request #29147: haproxy: 1.7.8 -> 1.7.9, download source via https (master...master) https://git.io/v56Xi
NixOS_GitHub has left #nixos []
eacameron has quit [(Ping timeout: 248 seconds)]
_ris has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
ThatDocsLady has quit [(Ping timeout: 264 seconds)]
_ris is now known as ris
cfricke has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
ArtebMan has joined #nixos
<ArtebMan>
Hello! I can't install dictd with Mueller english-russian dictionary.
<ArtebMan>
I use expression: services.dictd = { enable = true; DBs = [pkgs.dictdDBs.mueller_eng2rus_pkg]; };
<ixxie>
ArtebMan: maybe just post an issue on github
<mbrock>
terminological question: in nixpkgs, is it reasonable to say that a "package" is a function that returns a derivation?
iyzsong has joined #nixos
mudri has joined #nixos
<sphalerite>
yeah I'd say so
<sphalerite>
particularly given the name of the callPackage function
jellowj has quit [(Ping timeout: 246 seconds)]
<mbrock>
yep
<sphalerite>
not sure there's really a properly clear-cut terminology for all this stuff though
eacameron has joined #nixos
Curiontice has quit [(Quit: Leaving)]
Capprentice has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] MasseGuillaume opened pull request #29148: Scala-native does not support sbt 1.X yet (master...fix-scala-native) https://git.io/v56Da
NixOS_GitHub has left #nixos []
LysergicDreams has quit [(Ping timeout: 240 seconds)]
LysergicDreams has joined #nixos
nh2 has quit [(Client Quit)]
freeman42x has quit [(Ping timeout: 246 seconds)]
Mateon1 has left #nixos []
* mbrock
wonders how to add new pythonPackages in an overlay...
<mbrock>
ah, I would probably use the `overrides` feature of the pythonPackages function
jellowj has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 2 new commits to release-17.09: https://git.io/v56yL
<NixOS_GitHub>
nixpkgs/release-17.09 2195b6b Bjørn Forsman: kicad: put the full version string in name...
<moredhel1>
Good day all, I'm busy trying to setup wsgidav in a system service, but am having issues with `sys.stdout.encoding` causing it to crash. It only crashes as a systemd service. I found docs saying I can set the LC_CTYPE variable and it should work, how do I set environment variables on a system service?
ArtebMan has quit [(Quit: Page closed)]
<moredhel1>
nvm, I think I found it through trial and error :)
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/v56Sr
<NixOS_GitHub>
nixpkgs/master b5c9a47 Vincent Laporte: smplayer: 17.8.0 -> 17.9.0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v56S6
<NixOS_GitHub>
nixpkgs/master 8e3681d Michael Weiss: pythonPackages.glances: 2.11 -> 2.11.1
NixOS_GitHub has left #nixos []
Filystyn has quit [(Quit: Konversation terminated!)]
bennofs has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
gnuhurd has joined #nixos
zetok has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
jensens has joined #nixos
takle has quit [(Ping timeout: 248 seconds)]
zetok has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/v569a
<NixOS_GitHub>
nixpkgs/master fd84128 Thomas Bach: haproxy: haproxy.org is now accessible via https
<NixOS_GitHub>
nixpkgs/master d343867 Thomas Bach: haproxy: 1.7.8 -> 1.7.9
<NixOS_GitHub>
nixpkgs/master 3df16e8 Joachim F: Merge pull request #29147 from fuzzy-id/master...
<randude123>
How does nix enforce integrity when fetching the package database? Is it signed, or does it just rely on git via https?
python476 has quit [(Ping timeout: 240 seconds)]
<makefu>
randude123: pachages from the binary cache are signed
<makefu>
if you build stuff yourself then checksums of binaries will be used for validation
<randude123>
so nix doesn't need to fetch/sync the package tree to disk first?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v56Hu
<NixOS_GitHub>
nixpkgs/master 6226fd0 Daiderd Jordan: dibbler: fix darwin build
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/v56H2
<NixOS_GitHub>
nixpkgs/master 35c1e70 Nikolay Amiantov: seeks: use protobuf 3.1...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/v56H6
<NixOS_GitHub>
nixpkgs/release-17.09 7ccda60 Daiderd Jordan: dibbler: fix darwin build...
NixOS_GitHub has left #nixos []
WinchellsM has joined #nixos
<WinchellsM>
What is meant by the nix term "manifest"?
<makefu>
randude123: exactly
<randude123>
makefu: but that means i need internet to query packages, etc?
<makefu>
randude123: if you build by source, yes. if you fetch pages from binary cache, then also yes
<makefu>
because for building by source you will need to fetch the sources
gnuhurd has quit [(Ping timeout: 248 seconds)]
<makefu>
randude123: for chaning configuration on nixos it is normally not necessary to fetch sources from the internet.
<tokudan[m]>
nix uses channels. these channels contain the expressions for all packages, so once you've updated the channel once, nix can calculate all available packages without network access
<tokudan[m]>
getting the packages (source or cached version) requires network access
<randude123>
but how does it verify whether the updated channel is legit or not? Using https for access and hoping everything is fine?
<WinchellsM>
If one purely manages NixOS through the configuration.nix, and doesn't use nix-env, then (like me so far :), then running the command `nix-env -q` shows 0 installed derivations.
<WinchellsM>
Is there a way to run `nix-env -q` at the system configuration level? To see which globally installed packages you have?
<tokudan[m]>
randude123: I'm don#t know if the channel is signed as well
<silver_hook>
Is there anything special I have to do to make KTP (KDE/Plasma Telepathy) work on NixOS?
<ixxie>
is there a nice explanation somewhere of the steps Nix takes in parsing expressions? I know Nix produces derivations, but I don't really know how derivates turn into store addresses
<silver_hook>
I installed all the ktp packages, but when I launch it it complains about an issue with the IM kernel (I imagine it means the Telepathy backend)
<tokudan[m]>
WinchellsM: maybe you could also check the dependencies of the active configuration...
vaibhavsagar has joined #nixos
civodul has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
iyzsong has quit [(Ping timeout: 246 seconds)]
acarrico has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v567k
<NixOS_GitHub>
nixpkgs/master 498e3a9 Michael Weiss: androidenv: Update all packages using fetch.sh
NixOS_GitHub has left #nixos []
<mbrock>
whoa, what's the syntactic difference between [import ./foo] and [(import ./foo)] ?
<mbrock>
the former gives me a really obscure infinite recursion error, the latter works fine :)
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v565q
<NixOS_GitHub>
nixpkgs/master 84e34d4 Tim Steinbach: tests: xmonad less dependent on timings
NixOS_GitHub has left #nixos []
ryantrinkle has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/v565m
<NixOS_GitHub>
nixpkgs/release-17.09 e3fa7ef Tim Steinbach: tests: xmonad less dependent on timings...
NixOS_GitHub has left #nixos []
<mbrock>
I put the overlay in a subdirectory, and beside that there's a pinned nixpkgs as a submodule, and the root default.nix combines the two
<mbrock>
this should make it "backwards compatible" with my existing channel setup
hightower2 has joined #nixos
<mbrock>
Mozilla's overlay uses a `fetchFromGitHub` for their pinned nixpkgs, but I think I don't want that, because I want the nixexprs.tar.xz to contain the whole tree
eacameron has joined #nixos
bbarker has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to release-17.09: https://git.io/v565a
<NixOS_GitHub>
nixpkgs/release-17.09 a6bba83 Aleksey Kladov: lxqt-session: fix the build...
NixOS_GitHub has left #nixos []
<jluttine>
i'd like to do something like: config = mapAttrs' someFunction config.some.attributes
<jluttine>
in my configuration.nix
<jluttine>
but i get infinite recursion error
<jluttine>
i understand why, but i can't figure out how to solve it
<jluttine>
basically, i have a function (someFunction) which map to some global configuration (services etc), and i want to call this function for multiple inputs and then combine the results into a single config attribute
ted_ has joined #nixos
ted_ has quit [(Read error: Connection reset by peer)]
<jluttine>
someFunction sets up a webapp (database, vhost, socket) and i can have multiple instances of the webapp
bbarker has joined #nixos
<U007D>
sphalerite thank you for the tip. I'll take a look to see if that's what's going on for me
<jluttine>
and i have the config of each instance in an attribute set. thus, i'm mapping that attribute set with someFunction so i get the configuration of all the webapp instances
acarrico has quit [(Ping timeout: 240 seconds)]
<jluttine>
but i don't know how to do that without infinite recursion..
ixxie has quit [(Quit: Lost terminal)]
<mbrock>
jluttine: it sounds like maybe you should have the inputs to `someFunction` somewhere outside of `config`, to avoid this recursion?
phreedom has joined #nixos
bbarker has quit [(Ping timeout: 240 seconds)]
<jluttine>
mbrock: hmm.. perhaps. i'll think if that would work
<jluttine>
it's just a convenient way to let the user pass the configuration of each web app instance :/
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
hotfuzz has joined #nixos
Arcaelyx has joined #nixos
Arcaelyx_ has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
Arcaelyx has quit [(Ping timeout: 248 seconds)]
Itkovian has joined #nixos
vaibhavsagar_ has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v56Fs
<NixOS_GitHub>
nixpkgs/master af78d76 Michael Weiss: androidenv: Add the Android Instant Apps SDK
<NixOS_GitHub>
[nixpkgs] joachifm pushed 4 new commits to master: https://git.io/v56NM
<NixOS_GitHub>
nixpkgs/master c8f2dba Joachim Fasting: tor-browser-bundle-bin: hard-code path to desktop Icon
<NixOS_GitHub>
nixpkgs/master f84125c Joachim Fasting: tor-browser-bundle-bin: runtime purity improvements...
<NixOS_GitHub>
nixpkgs/master 2bce0b1 Joachim Fasting: nixos/hardened: set mmap_min_addr...
NixOS_GitHub has left #nixos []
hightower3 has joined #nixos
<makefu>
mbrock: the biggest issue is the requirement for "freedom" and that the scheme syntax does not really support you with getting stuff done
<mbrock>
yeah I see what you mean
<mbrock>
I'm happy about cool stuff happening within GNU because on a basic level I think the goal of maintaining a fully free operating system or user land or whatever is really good
hightower2 has quit [(Ping timeout: 260 seconds)]
<mbrock>
also I'm a bit sentimental about how GNU was planned to have Scheme as the base language but then it just kinda never happened
ixxie has quit [(Quit: Lost terminal)]
<mbrock>
and I know that S-expressions are even more offputting to most people than Nix's syntax
<mbrock>
basically syntax in general is a nightmare though
<makefu>
true
<noam>
i like that they use scheme as the language better than the nix dsl. sexps are sexy :) also a lot of exsisting editor support
ryanartecona has quit [(Quit: ryanartecona)]
ktf has joined #nixos
<mbrock>
I realized recently that my JavaScript code looks just like Nix code
<noam>
json has problems like no trailing commas and no comments though. but will that be fixed sometime? i'm not sure.
<the-kenny>
Why would one need *another* serialization format? Nix doesn't have any special data structures that aren't mappable to json, msgpack, edn, or whatever
<makefu>
the-kenny: lambdas?
freeman42x has quit [(Ping timeout: 255 seconds)]
freeman42x has joined #nixos
<the-kenny>
Ah, then our serialization format is the nix programming language ;)
<ktf>
hi, i'd like to have nix setup a few packages, including their development part (e.g. include files) so that I can then use a separate tool to build a package which does not have a nix expression. Is there a way to do so?
<makefu>
di di diiiii
<the-kenny>
ktf: I think you want a shell.nix to use with nix-shell.
<noam>
the-kenny: ah i actually think i don't meant really serialization, but more like a non executable format for user configuration.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/v56Ag
<Isorkin_>
containers.name.hostBridge not work with openvswitch. How to fix?
<ktf>
the-kenny: thanks! I will have a look
<timor>
rycee: Are you responsible for the perl packages?
<rycee>
no!
<makefu>
hahaha
<rycee>
I just worked with Perl some years ago and needed to update some packages. Afterwards I just kept updating them and keeping an eye on it in general.
thblt has quit [(Ping timeout: 246 seconds)]
<timor>
rycee: I tried building all of them (except the ones marked broken), and found a couple that would not build, mainly because of failing tests. If I encounter one which does not build even though it is the latest, should I mark it broken?
georges-duperon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 2 new commits to release-17.09: https://git.io/v56Ax
<rycee>
timor: Sure. Sometimes it is enough to just delete the failing test. For example, the `Connector` package has `rm t/01-proxy-http.t` in `prePatch`.
<mbrock>
because I set up my web server to redirect /nixexprs.tar.xz to a CDN, but apparently the web server's matching doesn't consider those URLs identical
<mbrock>
why is nix-channel --update using that double slash ;(
<rycee>
There are a few similar example in perl-packages.nix.
<julm>
aristid: I'm using xautolock+slock (it's not the most user-friendly setup, but it works)
<aristid>
julm: why is it not user-friendly?
Jackneilll has joined #nixos
<yorick>
okay, figured it out
<julm>
aristid: when the screen is lock, the screen does not show a prompt, and when you fail your password, it just does some lagging unhelpful blinking, such that I may have to re-enter my password multiple times until it accepts it. But just try it and see by yourself if it does this for you too, or if it's just my setup which is failed :]
hightower3 has quit [(Remote host closed the connection)]
<yorick>
julm: yeah, the solution is to use a password that takes longer to type than the delay
<julm>
/o\
<yorick>
julm: alternatively, hit enter again once the delay is over
<yorick>
but yeah, that sucks, it should maybe queue the submit too
Ivanych has quit [(Ping timeout: 260 seconds)]
<julm>
yes I just get angry nowadays and brute force my keyboard, until I just take time to find a better setup
<aristid>
yorick: how does xss-lock work with i3lock? i3lock says it forks and xss-lock says it does not support forking?
<aristid>
yorick: one of the two must be lying in the docs
<yorick>
aristid: oh, maybe I disabled the forking in i3lock
<aristid>
yorick: ah "A script is provided to use i3lock's forking mode with the --tranfer-sleep-lock option (see above)."
<aristid>
in xss-lock docs
<aristid>
yorick: what does the dpms stuff do?
<julm>
Question. When I am NOT on NixOS, can I replace https://nixos.org/channels/nixpkgs-unstable by https://nixos.org/channels/nixos-17.09 without worrying? To reduce download and space consumption, I'd like nixops to reuse the packages already used by my non-NixOS host, when it provides a NixOS-17.09 VM. Hence somehow pinpoint the nixpkgs channel. I've found some way to do this for a package, but not for
<aristid>
"xss-lock-git-2014-03-02" <- that is not a confidence-inspiring version number
zeus_ has joined #nixos
<julm>
but I'm unable to incorporate this nix code into my ~/.nixpkgs/config.nix
orivej has joined #nixos
bulldog has joined #nixos
marusich has joined #nixos
<bulldog>
hello! What is the customary way to mount an ntfs partition on boot?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] timor opened pull request #29155: perl-ApacheTest: mark broken (master...perl-ApacheTest-broken) https://git.io/v56hk
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<aristid>
bulldog: i don't think you can make ntfs your root partition, if that's what you're asking, as the common driver is fuse-based (the in-kernel one is read-only AFAIK)
<bulldog>
oh, not as root
<bulldog>
it is just a data partition
<bulldog>
but do want it mounted every time I log in
<aristid>
bulldog: then i think you should be able to just add it to your fileSystems
<aristid>
bulldog: after adding ntfs to your boot.supportedFileSystems
<timor>
viric: ping
<aristid>
i3lock looks funny
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] Anton-Latukha opened pull request #1565: install-nix: Full progress (master...installFullProgress) https://git.io/v56hH
NixOS_GitHub has left #nixos []
U007D has joined #nixos
mudri has joined #nixos
cmcdragonkai1 has quit [(Ping timeout: 246 seconds)]
ris has joined #nixos
cmcdragonkai1 has joined #nixos
vaibhavsagar_ has joined #nixos
vaibhavsagar_ has quit [(Remote host closed the connection)]
vaibhavsagar_ has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
Filystyn has joined #nixos
vaibhavsagar_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 2 new commits to release-17.03: https://git.io/v5iek
<tilpner>
WinchellsM - Okay, so <nixpkgs> is /nix/var/nix/profiles/per-user/root/cahnnels/nixos/nixpkgs. When you import a directory (as opposed to a file), default.nix of that directory is imported
<tilpner>
WinchellsM - We're importing /nix/var/nix/profiles/per-user/root/cahnnels/nixos/nixpkgs/default.nix, which should look similar to the link above
jellowj has quit [(Ping timeout: 240 seconds)]
<bulldog>
Another question: I just installed NixOS alongside Windows. I am using the same boot partition (EFI) from my previous install. But I haven't been able to figure out how to make grub rescan for OSs
<bulldog>
Windows does not show up on grub at boot
<julm>
copumpkin: it looks like your thread https://github.com/NixOS/nixpkgs/issues/7659 was somehow diverted to another topic at the end :\ Has your proposal of unifying nixos-* and nixpkgs-* channel structures somehow landed in upstream?
<aristid>
it is most weird that my system works mostly OK despite user d-bus being broken
<U007D>
I can query the packages currently installed in my user environment using `nix-env -q` and other variations. Is there an equivalent for the system configuration?
<aristid>
U007D: that's a good question!
jellowj has joined #nixos
<bulldog>
what should I do to make grub rescan my partitions?
<tilpner>
U007D - Something like this works in nix-repl tx0.co/_Fh-
<U007D>
aristid :) yeah, trying to debug why Virtual Machine Manager claims it can't find a default hypervisor. It would be great to confirm with the OS if qemu, libvirt & kvm are installed (VMM claims one or more are missing...)
<U007D>
tilpner wow. thanks!
<tilpner>
(But I can't get it to work with nix-instantiate for some reason)
<nwuensche>
Hi! I want to override nitrogen to also download my wallpaper. However, the default package doesn't import wget, but I need it. Is there a way to pkgs.nitrogen.overrideAttrs the imports, so that I can add wget?
<tilpner>
U007D - Instead of /cfg/nixos/config.nix you would use <nixpkgs/nixos>
marusich has quit [(Ping timeout: 246 seconds)]
zarel has joined #nixos
<tilpner>
nwuensche - What do you mean by imports?
ryanartecona has joined #nixos
<nwuensche>
I mean the first line: {stdenv, ...} stuff
<tilpner>
That alone wouldn't change anything. What do you do after you added another argument there?
<tilpner>
(Do you add it to *buildInputs?)
<tilpner>
(Do you use it to fetch your wallpaper right there?)
iyzsong has quit [(Ping timeout: 248 seconds)]
marusich has joined #nixos
<U007D>
tilpner nix-repl gives "error: getting status of '/cfg/nixos/config.nix' : no such file or directory". And indeed I have no /cfg/... directory. A quick search reveals I don't have a `config.nix` outside of a /nix/store/... directory. Did you mean /etc/nixos/configuration.nix?
<tilpner>
"U007D - Instead of /cfg/nixos/config.nix you would use <nixpkgs/nixos>"
revtintin has joined #nixos
<yorick>
aristid: i3lock-color has the lock thing builtin
<U007D>
ah. ok thanks
<yorick>
aristid: it locks on dpms
<nwuensche>
tilpner: I just want to use wget in postInstall :)
<tilpner>
nwuensche - And you're providing the postInstall via overrideAttrs? Why not fetchurl?
<nwuensche>
tilpner: Because I don't know how to do a fetchUrl inside pkgs.nitrogen.overrideAttrs
<tilpner>
Use pkgs.fetchurl
Ivanych has joined #nixos
<tilpner>
(If you're still not sure, paste the expression)
<nwuensche>
tilpner: Seems to work now, thanks! However, is there a way to use the package cache from nitrogen, even thought I override something? I don't change something while installing the package, I just want to add the wallpaper in the end.
<nwuensche>
tilpner: Right now, nitrogen just completely builds from scratch.
<tilpner>
I don't think it's possible if you add the postInstall
bulldog has joined #nixos
<tilpner>
Actually, what does your postInstall look like now?
noobly has joined #nixos
<noobly>
What's the easiest way to find info on your wifi module?
<tilpner>
U007D - Ahh, I was missing strict evaluation. Does nix-instantiate --strict --eval -E 'map (p: p.name) (import <nixos/config> {}).config.environment.systemPackages' work for you?
<noobly>
none of the commands for other distros was working (lshw, lspci, etc)
<tilpner>
Did lspci not list it, or was it not available, noobly?
<noobly>
tilpner: command not found
<tilpner>
Try nix-shell -p pciutils --run lspci
<tilpner>
(Or you could install it)
<noobly>
:-) the above worked, ty
<noobly>
and yeah I probably should just install it lol
<tilpner>
U007D - Sorry, not sure why I put <nixos/config> in there. It's supposed to be <nixpkgs/nixos> of course
<mpcsh>
hey yall so I'm trying to modular-ize my configuration.nix, and I've got a question. if I declare environment.systemPackages in multiple places (say with one list of packages for development, and another for the DE), and then import both of those files, will the lists get merged?
<mpcsh>
(and does the same thing happen with sets?)
<U007D>
tilpner indeed it does! thank you!!
<U007D>
tilpner clearly, I have a lot to learn
<tilpner>
mpcsh - Yes, they will get merged if you declare them in different modules
<mpcsh>
tilpner: for both sets and lists?
<tilpner>
Yes
<mpcsh>
sweet!
Jackneilll has quit [(Remote host closed the connection)]
<nwuensche>
tilpner: It is now just cp $wallpaper $out/wallpaper.jpg, where $wallpaper is my wallpaper. It works, so thank you!
<tilpner>
nwuensche - Do you insist on using nitrogen for this? If you used a program that takes a path, you could call that program with the result of fetchurl during startup, and avoid any rebuilds or overrides
<tilpner>
(And you could change your wallpaper without recompiling nitrogen)
<nwuensche>
tilpner: No, was just the one that worked. Which program do you mean?
<U007D>
I'm trying to create a KVM virtual machine on my NixOS installation, virtual machine manager reports "could not detect a default hypervisor. Make sure that the appropriate virtualization packages are installed (kvm qemu, libvirt, etc.) and that libvirtd is running."
<tilpner>
nwuensche - You could put "${pkgs.feh}/bin/feh --bg-scale ${fetchurl https://some.url/}" into your startup script. You may want to extract the fetchurl with a let, and add this to the startup script via (untested) services.xserver.dispalyManager.sessionCommands or DM-specific options like services.xserver.windowManager.i3.extraSessionCommands
<tilpner>
*WM-specific
<U007D>
I've set virtualisation.enable = true, which should enable kvm according to nixos.org. I set enableKVM to true, too, because I was still seeing the above error.
<nwuensche>
tilpner: Couldn't I do the same with nitrogen --set-centered FILENAME?
<U007D>
kvm, qemu and libvirt are set as environment.systemPackages in my configuration.nix
<tilpner>
nwuensche - Maybe. The manpage didn't specify that those options take paths
<U007D>
`nixos-rebuild switch` is happy.
JosW has joined #nixos
<U007D>
BUT: dumping my system configuration today shows lib
ktf has joined #nixos
<tilpner>
U007D - Do you have things like "virtualisation.libvirtd = { enable = true; enableKVM = true; }" in your config?
<U007D>
shows `libvirt-3.1.0`, `qemu-2.8.1.1`, `qemu-x86-only-2.8.1.1`, but *no kvm package is listed*. I assume this is the problem?
<U007D>
tilpner yes
<tilpner>
U007D - Usually these enable options install the packages for you already, so you don't need to manually install required packages
<nwuensche>
tilpner: Now my config says: attribute ‘fetchurl’ missing, after I added your command to services.xserver.dispalyManager.sessionCommands. How can I get it in scope
<ktf>
s
<U007D>
tilpner should kvm show up in the dump from `nix-instantiate`? Or is there another way I can find out if it is installed and running as expected? (Virtual Machine Manager seems to think it isn't)
ryanartecona has quit [(Quit: ryanartecona)]
<tilpner>
U007D - What does "systemctl status libvirtd" say?
<tilpner>
nwuensche - Use pkgs.fetchurl again
<tilpner>
nwuensche - (Or import it into the local scope, but that's not really useful or shorter here)
<nwuensche>
tilpner: Of course, thank you.
AndreasO has joined #nixos
<U007D>
tilpner it says loaded, active, running. One line from the log says no servers found in /etc/resolv.conf, will retry; everything else seems happy.
nwuensche has quit [(Quit: Leaving)]
<makefu>
anyone else has issues with steam and Virtualbox in the latest unstable? also it might be a good idea to have a channel for unstable-related issues (as there are many all the time) in #nixos-unstable ?
nwuensche has joined #nixos
<tilpner>
U007D - For some reason I have boot.kernelModules = [ "kvm-intel" ]; in my config. KVM works with QEMU, didn't try libvirt
<mpcsh>
hey anyone know if there's a makefile variable corresponding to the target called on the command line? that is, if I call make shblah, is there a variable that will expand to shblah regardless of what rule it's being referenced in?
<tilpner>
makefu - What issue?
<makefu>
tilpner: steam does not start, virtualbox says "no kernel module"
AndreasO has quit [(Quit: Found more important stuff than irc!)]
nwuensche has quit [(Remote host closed the connection)]
<WinchellsM>
I've read the Nix Pills series on the difference between nix-shell and nix-build, and it's still not clear to me how the environment is different between the two.
<tilpner>
makefu - I've had an issue with steam a few days ago, not sure if it's the same. It was "solved" with "rm -rf .steam" and using steam with newStdcpp = true;
<WinchellsM>
"nix-shell is able to drop us in a shell with (almost) the same environment used by nix-build" -- a quote from Nix Pills. But how are they different?
<U007D>
tilpner so you have no mention of libvirt in your config?
<tilpner>
U007D - I don't use libvirt, but you don't need libvirt to use KVM
<makefu>
tilpner: okay i will try that even though i don't really like that option :D
<tilpner>
makefu - I agree. Don't actually remove it, "mv .steam old-steam" or something
<makefu>
sure :)
noobly has left #nixos []
<U007D>
tilpner ok, I'll take it out then. less is more...
ktf has quit [(Ping timeout: 260 seconds)]
<tilpner>
U007D - That may be the wrong conclusion. I just qemu with KVM from time to time, libvirt will still be more comfortable. You should see if you can get KVM working without libvirt, to rule out that libvirt is a culprit, but that doesn't mean you need to/should uninstall it
<U007D>
tilpner agreed. I'll try to get it working with the simplest possible config, then build from there if it turns out more is needed.
<avn>
WinchellsM: nix-shell set IN_NIX_SHELL=1, and execute shellHook's
nwuensche has joined #nixos
<avn>
so hooks can behave differently, based on IN_NIX_SHELL (but it usually prety uncommon)
phreedom has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Read error: Connection reset by peer)]
<WinchellsM>
Is that the only difference?
<nwuensche>
tilpner: So I tried windowManager.i3.extraSessionCommands = "${pkgs.feh}/bin/feh --bg-scale ${pkgs.fetchurl
<nwuensche>
{url = "...";
<nwuensche>
sha256 = "...";
<nwuensche>
}} ";
<WinchellsM>
Or the only one I should care about at the noobie phase?
<nwuensche>
But it doesn't work. Do you know why?
<U007D>
tilpner boot.kernelModules = [ "kvm-intel" ] is added'. environment.systemPackages = with pkgs; [ ... kvm qemu ... ]; has libvirt removed. fingers crossed! :)
sigmundv__ has joined #nixos
<zarel>
I have troubles registering for nixcon2017, isn't public registration open yet?
<bulldog>
does grub.extraEntries work with EFI?
<bulldog>
Im trying to get my Windows install to show on grub
<tilpner>
nwuensche - Oh, extraSessionCommands are executed before i3 starts. I don't know how feh --bg-scale actually works, so I'm not sure how bad that is. Do you set your i3 config file via Nix too?
<makefu>
tilpner: i will open an issue for steam with the workaround (if there isn't one already)
<nwuensche>
tilpner: Nope, I have it in a seperat file.
revtintin has quit [(Ping timeout: 260 seconds)]
<tilpner>
makefu - Did that work?
<makefu>
steam is still stiching itself together
<makefu>
yep seems to work
<tilpner>
zarel - Someone said it wasn't open two days ago
<mbrock>
hmm, I wonder how to integrate hydra with S3
<pbogdan>
bulldog: have you tried "boot.loader.grub.useOSProber = true;"? it should try and detect other systems and add them to boot menu
<nwuensche>
tilpner: Can I do something like i3config = /home/nwuensche/.i3/config; windowManager.i3.configFile = "$i3config" + "exec feh....";?
<makefu>
tilpner: no need to move .steam it seems
<zarel>
tilpner: thank you. According to the calendar it should be open starting from today
<bulldog>
pbogdan: nope, let me try it
<bulldog>
pbogdan: omg it worked! Thank you!
<tilpner>
nwuensche - You can do something like that, if you're okay with having to nixos-rebuild in order for i3 config changes to apply
<tilpner>
It's disappointing that there are services.xserver.desktopManager.wallpaper options without a way to set the source of that wallpaper
<nwuensche>
tilpner: It is ok, but how is the correct syntax to do something like this? windowManager.i3.configFile wants a path, but I want to add this exec feh line too
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
<tilpner>
nwuensche - Correction: configFile = let original = builtins.readFile /home/nwuensche/.i3/config; wallpaper = pkgs.fetchurl { ... }; fehSnippet = "exec_always --no-background-id ${pkgs.feh} --bg-scale ${wallpaper}; in pkgs.writeText "config" (original + fehSnippet);
<mbrock>
clever: hey, do you have some clue regarding how hydra would integrate with s3? or maybe I need some script that uses the hydra JSON API or something
marusich has quit [(Ping timeout: 246 seconds)]
<nwuensche>
tilpner: Should the first configFile be windowManager.i3.configFile?
<aristid>
yorick: can you explain in detail how the dpms stuff does what it does? it's a bit of black magic to me still
marusich has joined #nixos
<tilpner>
nwuensche - Yes, I didn't want to write the full path
<aristid>
yochai[m]: other than that, i got the i3lock to work after fixing some stupid issues in my nixos install (i had some useless failing unit delay the starting of the some essential services)
<aristid>
sorry i meant yorick
<tilpner>
nwuensche - And I made another mistake. Instead of ${pkgs.feh} you want ${pkgs.feh}/bin/feh
nwuensche has quit [(Remote host closed the connection)]
criley is now known as Nergal
<aristid>
yorick: i think i3lock is unsafe: xss-lock actually attempts to lock on suspend, but i3lock just says it can't grab the screen and gives up. maybe there's a way around it, but i feel it's better to try other lockers.
stepcut has joined #nixos
<stepcut>
Is there a way to get nix-build to only use a single core when building Haskell packages? I tried nix-build '<nixpkgs>' -j1 -A mypackage, but it still passes --ghc-options=-j8 to cabal
justbeingglad has joined #nixos
<aristid>
julm: slock seems to want setuid
justbeingglad has left #nixos []
griff_ has quit [(Quit: griff_)]
<stepcut>
oh, nm, I need --cores 1
<julm>
aristid: my Debian's slock is not setuid, only -rwxr-xr-x
<aristid>
julm: which version? perhaps they disabled the OOM-killer-disabling feature
athan has quit [(Remote host closed the connection)]
<julm>
aristid: suckless-tools 42-2
athan has joined #nixos
<aristid>
hah, programs.slock.enable sets up the setuid wrapper
Filystyn has quit [(Quit: Konversation terminated!)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
athan has quit [(Ping timeout: 240 seconds)]
phreedom has joined #nixos
<aristid>
sooo... slock seems to be more reliable than i3lock
<aristid>
it just takes like 2 seconds after opening the lid to kick in, which isn't great
<aristid>
but better than nothing i suppose
athan has joined #nixos
<sphalerite>
U007D: did you get the libvirt thing working?
Nergal has quit [(Quit: Nergal)]
zarel has quit [(Quit: Leaving)]
anon999 has joined #nixos
<anon999>
hello
<anon999>
I have a problem with GDM, it goes into a weird loop, from tty to a black screen, I'm using the nvidia drivers if that helps
<anon999>
I can successfuly use lightdm or slim and it doesn't go into a strange loop
<sphalerite>
anon999: probably nvidia drivers fault, I think it uses Wayland now and nvidia's Wayland "support" is nonsense from what I've heard
sary has joined #nixos
<anon999>
how big of a performance difference between nouveau and the proprietary drivers?
<sphalerite>
Very, usually, simply because nouveau doesn't support power management on reasonably recent nvidia hardware
<sphalerite>
So it's stuck on the lowest clock rate
<sphalerite>
Or something like that
<sphalerite>
Why do you need gdm?
stanibanani1 has joined #nixos
<anon999>
it's integrated with GNOME well
<anon999>
I will see if it works with nouveau, brb
stanibanani1 has quit [(Remote host closed the connection)]
<mbrock>
can't get hydra to send jobs to my mac, but nix-build can do it :(
<U007D>
sphalerite nope; I just took out libvirt and added a kvm kernel module (helpful suggestions from tilpner), but there's no change in behavior. So strange!
<mbrock>
it just seems to fail immediately with a "transient failure ... unexpected end-of-file" (which I see in journalctl for hydra-queue-runner)
<tilpner>
Or maybe overrideAttrs to preferLocalBuild
<U007D>
sphalerite I'm running Virtual Memory Manager via Plasma 5 (initially want to build the VM's in a GUI until I get more familiar with all the options). When I start VMM, it reports "could not detect a default hypervisor. Make sure that the appropriate virtualization packages are installed (kvm qemu, libvirt, etc.) and that libvirtd is running."
oida_ has quit [(Ping timeout: 240 seconds)]
<Moredread>
tilpner: thx, that seems to work :)
<U007D>
sphalerite I'm open to running another manager, even command line, if necessary; what do you use to configure your VM's?
stanibanani1 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v5iYt
<NixOS_GitHub>
nixpkgs/master 4ff9e9e Ruben Maher: nixos/transmission: make it possible to use a different home directory (#29138)
NixOS_GitHub has left #nixos []
oida_ has joined #nixos
<U007D>
tilpner I've haven't looked through that faq... reading the link now
oida has quit [(Ping timeout: 260 seconds)]
<U007D>
tilpner *sigh* the link doesn't say how to check for those messages. :( But lsmod does indeed show the kvm kernel module, 503k in size with 0 users. It does not list qemu (though I'm not sure that it should)
<U007D>
`qemu-system-x86_64` just brought up a VM, though--so that's awesome!
<tilpner>
U007D - With something like $ qemu-system-x86_64 -enable-kvm -cdrom nixos-graphical-17.03.1769.da2159dafb-x8, do you get the "Could not initialize KVM, will disable KVM support" message?
MP2E has joined #nixos
<U007D>
I guess Virtual Machine Manager isn't designed to work with kvm/qemu. everything I've read suggests I'm configured correctly. I just need to know how to configure a VM for qemu.
<U007D>
tilpner i'll check
<tilpner>
(The specific ISO doesn't matter, just a way of checking if everything works)
<WinchellsM>
Consider 12.5 of https://nixos.org/nixos/nix-pills/inputs-design-pattern.html (Nix Pills). At the top of this section (12.5) it is asserted "note the use of the with expression in buildInputs to avoid repeating pkgs". What's going on here? I thought pkgs was already in scope in the let block. So why does it need to be repeated here again?
<U007D>
tilpner "could not access KVM kernel module: No such file or directory. failed to initialize KVM: no such file or directory"
<tilpner>
U007D - file /dev/kvm ?
<U007D>
tilpner nope
<U007D>
ls /dev/k* -> /dev/kmsg
<U007D>
that's it
FRidh has quit [(Quit: Konversation terminated!)]
<tilpner>
(You were supposed to run "file /dev/kvm", but this works too)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nlewo opened pull request #29158: pythonPackages.ofxclient: remove argparse from requirements (master...ofxclient) https://git.io/v5iYb
NixOS_GitHub has left #nixos []
<mbrock>
YAY, got the Mac to remote build from Hydra, I needed to add my administrator user as a trusted user in /etc/nix/nix.conf and then restart the nix-daemon
<tilpner>
But hey, this is progress. You now know that the problem occurs before libvirt or qemu even matter
<U007D>
tilpner `file /dev/kvm` -> command not found: file :)
anon999 has joined #nixos
<U007D>
tilpner yeah--so the ? is where is my /dev/kvm? Is it strange that `lsmod | grep kvm` returns the kvm module?
<anon999>
with nouveau gdm did start but I couldn't login (I'm sure I used the right password), then when I restarted it the same problem as with the proprietary drivers happened
<U007D>
(when I don't have a /dev/kvm, I mean)
<tilpner>
U007D - Sounds very strange indeed. Note that lsmod lists kvm and kvm_intel for me
<tilpner>
U007D - Check that your CPU supports KVM, and if it's disabled in the BIOS
<anon999>
this is very frustrating, now I added displayManager.auto
<silver_hook>
In Konsole (and Yakuake) htop and cfdisk (and I guess other ncurses apps) look glitched – instead of the whole screen refreshing, only a few characters are.
<silver_hook>
Any idea how to fix that?
Filystyn has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<U007D>
tilpner interesting. It's a threadripper--so I *assume* that could be why kvm_intel is missing. I'll look into whether I need a kmd_amd and will also check my bios--thanks--great suggestions
apostolis has quit [(Quit: WeeChat 1.7.1)]
<tilpner>
U007D - Did you try to add kvm-intel to it while not on an Intel CPU?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] timor opened pull request #29159: coin3d: include fix for newer compilers (master...coin3d-sbhashentry-fix) https://git.io/v5iOz
NixOS_GitHub has left #nixos []
athan has quit [(Ping timeout: 248 seconds)]
<U007D>
tilpner yes
<tilpner>
:/
georges-duperon has quit [(Ping timeout: 252 seconds)]
<tilpner>
"If modprobing kvm_intel or kvm_amd fails but modprobing kvm succeeds, (and lscpu claims that hardware acceleration is supported), check your BIOS settings"
aristid has quit [(Ping timeout: 255 seconds)]
georges-duperon has joined #nixos
aristid has joined #nixos
<ktf>
the-kenny: so the shell.nix trick seems to work for everything but cmake FindX11.cmake, which has hardcoded paths and cannot find X11. Is there any workaround to that?
<sphalerite>
U007D: are you in the libvirt group? Does libvirtd run?
griff_ has joined #nixos
<U007D>
sphalerite I'm not (didn't know about the group). It appears it does run, but following tilpner's config, I wanted to try without libvirt. libvirt did (seem) to run for me, but VMM was unhappy. I've since seen an additional error message from VMM re: libvirtd not running, so that leads me to believe it was working as intended, and the problem was kvm
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
pmade has joined #nixos
<U007D>
sphalerite I got qemu to boot the graphical nixos iso, but attempting to start the display manager gives all kinds of crash (out of memory featured prominently). I assume this is because the VM is not configured correctly (but I don't know yet). At this point, it looks like KVM and QEMU are responding, and I'm now learning a bit more about libvirt vs kvm vs qemu and now they work together to determine what config I should go with. Once that's done,
<U007D>
I'll need to build a VM with enough memory to see if all is working well).
freeman42x[nix] has quit [(Ping timeout: 252 seconds)]
<tilpner>
U007D - The OOM is not a problem with KVM
EastAPOLO[m] has left #nixos ["User left"]
<Profpatsch>
ghcWithPackages is BROKEN >[(}=/[>}{-)}
<Profpatsch>
Why are there no tests that catch stuff like that?
<tilpner>
U007D - Add "-m 4G" to the arguments if you want to provide more memory
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v5iZD
<NixOS_GitHub>
nixpkgs/master c0e7983 Daiderd Jordan: et: fix build with clang
NixOS_GitHub has left #nixos []
apostolis has joined #nixos
<apostolis>
Is there a 3.2.3 version of haskellPackages.alex ?
hiratara has quit [(Ping timeout: 246 seconds)]
hiratara has joined #nixos
<U007D>
tilpner ty, will do. kids are hungry, so i'll be afk 4 a bit
sigmundv__ has quit [(Ping timeout: 240 seconds)]
jb55 has joined #nixos
<U007D>
tilpner sphalerite success--with more memory the VM was able to give me a graphical desktop! Thank you both so much for your help! Now it's all about tuning.
<tilpner>
U007D - But wait. Does it still give the missing /dev/kvm message?
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v5inh
<NixOS_GitHub>
nixpkgs/master 2317a07 Daiderd Jordan: fontforge-fonttools: use $CC
NixOS_GitHub has left #nixos []
<U007D>
and yes, I couldn't find a list of kernel mods, so I just guessed that kvm_amd was a thing and nothing complained. I'd still like to find a list of kernel modules, for NixOS, though, because for all I know there's a kvm_amd64 out there or a kvm_amd_ryzen which might be better. I'll keep looking, though.
<U007D>
tilpner lsmod shows a `kvm` and a `kvm_amd` entry
<U007D>
tilpner my bios had virtualization disabled so I think that's why I had "silent" failures
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to release-17.09: https://git.io/v5icf
<NixOS_GitHub>
nixpkgs/release-17.09 830b121 Daiderd Jordan: et: fix build with clang...
<NixOS_GitHub>
nixpkgs/release-17.09 4075187 Daiderd Jordan: fontforge-fonttools: use $CC...
NixOS_GitHub has left #nixos []
python476 has joined #nixos
<tilpner>
Oh, interesting. I never actually saw a bios that allowed disabling virtualisation (or the discrete GPU...)
thblt has quit [(Ping timeout: 240 seconds)]
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
<pikajude>
okay
<pikajude>
so until recently
<pikajude>
my nix-shell command was aliased to nix-shell --command "IN_NIX_SHELL=1 zsh"
<pikajude>
which launched zsh
<pikajude>
on a recent build of nixUnstable, that command no longer does anything
<pikajude>
but if I remove IN_NIX_SHELL=1 it works
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
<pikajude>
but obviously the environment variable doesn't get set
<tilpner>
Huh, that works for me
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
<pikajude>
cool
<pikajude>
what version of nix
<tilpner>
1.12pre5511_c94f3d55
<pikajude>
wow, same!
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<tilpner>
What's the default.nix/shell.nix you're running it with
takle has quit [(Remote host closed the connection)]
fuzzy_id has joined #nixos
takle has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
<fuzzy_id>
when is public registration for NixCon possible
<fuzzy_id>
according to the website it's scheduled for this week-end
takle has quit [(Ping timeout: 252 seconds)]
<Profpatsch>
fuzzy_id: If that is still accurate, _c_ should enable it tomorrow.
<Profpatsch>
fuzzy_id: It’s 1am in Germany atm.
<pikajude>
aagh who keeps messing with the haskell builders
<pikajude>
my ghc-with-packageses don't have anything in them
<Profpatsch>
pikajude: Yes, I noticed that an hour ago as well.
<pikajude>
stop breaking haskell :'(
<Profpatsch>
A first bisect gave me 676362494d54b8ee1c7411a8963aaa72041fa91e
<pikajude>
it's something to do with the multiple outputs i bet Profpatsch
<Profpatsch>
Yes, that’s the commit3
<pikajude>
ah ok
<Profpatsch>
But it might not be the commit that caused the current breakage.
<pikajude>
probably an easy fix
<pikajude>
someone is missing a "getOutput lib" somewhere
<Profpatsch>
There need to be tests for crucial basic functionality like this.
<Profpatsch>
*automatic* tests.
<pikajude>
yeah, really
<Profpatsch>
With a big deeply-red-colored *TESTS BROKE* on the PR.
<pikajude>
also, i don't know if this is just me, but haskell builder output now has a BUNCH of newlines in it
<pikajude>
that shouldn't be there
<pikajude>
that may be a nixUnstable issue
moet_ has joined #nixos
moet_ has quit [(Client Quit)]
ktf has quit [(Ping timeout: 246 seconds)]
ShalokShalom is now known as haywire
haywire is now known as heywire
ryanartecona has quit [(Ping timeout: 248 seconds)]
stepcut has joined #nixos
silver_hook has quit [(Ping timeout: 252 seconds)]
<mpcsh>
hey, anyone know if system.autoUpgrade.dates can take a relative time (e.g. 6h), or only timestamps?
<tilpner>
mpcsh - Everything described by "man systemd.time"
Infinisil has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
<mpcsh>
tilpner: well yeah I saw that, when I try "14:00" it works fine, but when I try "6h" it says "Failed to start nixos-upgrade.timer: Unit nixos-upgrade.timer is not loaded properly: Invalid argument."
<tilpner>
mpcsh - Try +6h
<tilpner>
"6h left" may work too
<mpcsh>
tilpner: will that correspond to "6 hours from the time you run nixos-rebuild" or "every 6 hours, starting 6 hours from the time you run nixos-rebuild"?
sigmundv__ has joined #nixos
heywire is now known as ShalokShalom
sigmundv__ has quit [(Ping timeout: 248 seconds)]
<Infinisil>
mpcsh: I just came here, what exactly are you trying to do?
<mpcsh>
Infinisil: trying to make the nixos-upgrade script run, say, every 6h instead of at a specified time
<tilpner>
Infinisil - Trying to set OnCalendar with a relative timestamp
<tilpner>
I don't know what that even should do
<mpcsh>
tilpner: I actually looked through the source, it's not OnCalendar, it's startAt that they're using