romanofskiWork has quit [Ping timeout: 268 seconds]
romanofs1iWork has joined #nixos
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
esmerelda has joined #nixos
<esmerelda>
hey, I'm fighting with my touchpad, and I can't seem to get it to work
<esmerelda>
I'm using libinput. it shows up as ETPS/2 Elantech Touchpad
lokado has joined #nixos
<esmerelda>
I see from xinput that the device is disabled. I tried to enable it manually but I see in the logs that it says it couldn't enable it.
<esmerelda>
anyone have experience waging war on mice?
w-spc-gir has quit [Remote host closed the connection]
ZaraChimera has joined #nixos
hedning has quit [Quit: hedning]
rardiol has left #nixos [#nixos]
hamishmack has joined #nixos
doyougnu has quit [Quit: WeeChat 2.2]
etbe has joined #nixos
rardiol has joined #nixos
<etbe>
How do I get NixOS to use text mode only so I can run kvm with -display
<etbe>
+curses? "set gfxpayload=text" in grub.cfg makes the kernel start in text mode,
<etbe>
+but then later in the boot process it switches to 1024*768 graphics mode
apaul1729 has quit [Remote host closed the connection]
<elvishjerricco>
etbe: You have to disable vesafb, efifb, and make sure you don't load graphics drivers.
rardiol has quit [Remote host closed the connection]
rardiol has joined #nixos
<rardiol>
why are the nixbld{0..32} users showing up on ubuntu login screen?
marsam has quit [Remote host closed the connection]
dermetfan has quit [Ping timeout: 268 seconds]
<etbe>
elvishjerricco: thanks for the suggestion, seems that loading bochs_drm is the cause of that part of the problem.
<ottidmes>
rardiol: maybe because they fall into a certain uid range, maybe you can configure Ubuntu to change this range, or you could modify the uids of the nixbld users
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « opencollada: 1.6.67 -> 1.6.68 »: https://git.io/fhek8
<etbe>
I'm totally new to NixOS. What's the NixOS way of maintaining config files? I've just put "blacklist bochs_drm" in a file in /etc/modprobe.d, can I do something with /etc/nixos/configuration.nix to declare that?
<ottidmes>
esmerelda: what config are you using? I assume you have enabled synaptics? https://nixos.org/nixos/options.html#synaptics maybe it does not auto detect it, you could try the `dev` option as well, its funny that you mention "waging war on mice" while it literally banged my wall a minute ago to chase away what I hope is a mouse...
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
elvishjerricco: I was looking for that option actually, I worked around it by specifying the modprobe option via the kernel argument list, thanks!
<esmerelda>
ottidmes: I tried synaptics but then disabled it. I can try it again
<ZaraChimera>
Time to get my ZFS NixOS install done.
<rardiol>
ottidmes: thanks, just lowered UID_MAX to 30000
<ZaraChimera>
That does look interesting. I actually was considering doing an encrypted install this time around as the NixOS is going on a notebook machine.
siers has quit [Ping timeout: 250 seconds]
<esmerelda>
I've found encrypted installs to work pretty easily
<ZaraChimera>
Now I just have to dust off my memory of how to set up WiFi through connman.
<esmerelda>
hrm. I don't know if the touchpad even works... maybe it's broken
<ZaraChimera>
Does it work within the live media?
<esmerelda>
it did when I installed! and now it doesn't. :\
<ZaraChimera>
Could be you need to enable synaptic or similar in configuration.nix
<esmerelda>
I just tried switching to that; it doesn't work either :\
asymmetric_ has quit [Ping timeout: 246 seconds]
<esmerelda>
maybe there's some driver conflict?
<ZaraChimera>
Hmm, have you tried the other tool for trackpads? I forget what it is called off the top of my head.
<esmerelda>
libinput?
<ottidmes>
elvishjerricco: Thank you for writing it down :) I sometimes think I really ought to make write downs like that every time I tackle a problem that took a while to figure out properly. Like as if you were writing a thorough StackExchange answer or something similar, its useful for yourself and others, but I tend to only actually do that when answering my own questions on such forums
<ZaraChimera>
That is the one. I remember that libinput did not work for me, but synaptic did.
<ottidmes>
esmerelda: I remember someone recently writing here about having needed a patched libinput to get it to work
<elvishjerricco>
ottidmes: Yea that article is part one of probably three about my attempt to dual boot Windows on a VFIO-powered VM so I can do ZFS snapshots of Windows :P
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to staging « zeromq: 4.2.5 -> 4.3.0 »: https://git.io/fheI1
<ottidmes>
elvishjerricco: that makes more sense, I still dual boot as well, but I rarely leave NixOS to go to Windows 10, just for some games, because my GPU driver sucks on Linux
<elvishjerricco>
ottidmes: Yea games are the only reason I'm doing Windows. That and Windows is an easier test bed for this tech than macOS
jtojnar has quit [Quit: jtojnar]
<ZaraChimera>
I also use Windows 10 (gaming, streaming, and Adobe CS6 Master Suite) and OSX (Audio recording and mastering)
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkin_ has quit [Ping timeout: 245 seconds]
nDuff has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
lsyoyom has quit [Ping timeout: 244 seconds]
<nDuff>
Why does builtins.tryEval (builtins.pathExists "http://example.com/foobar") throw an error, rather than returning an attrset with { success = false; value = false; }?
ntd has quit [Quit: ntd]
<elvishjerricco>
nDuff: For some reason, `tryEval` only catches expressions that use the `throw` feature of the language, not erroneous use of the language
<nDuff>
Ahh -- that helps a great deal in terms of setting expectations.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhetj
<nDuff>
Is there a suggested / best-practice way to disambiguate between URLs and absolute paths (which is my actual intent)? (I could search for a substring like "://", but... eww).
<elvishjerricco>
nDuff: I think paths always start with /
<nDuff>
Good point. :)
orivej has quit [Ping timeout: 240 seconds]
nD5Xjz has quit [Ping timeout: 268 seconds]
rummik has quit [Read error: Connection reset by peer]
rummik has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
<etbe>
I set a boot.blacklistedKernelModules in /etc/nixos/configuration.nix and ran nixos-rebuild switch, but it didn't rebuild the initrd which still loads some of the modules I want to blacklist (for example floppy which is not needed on a VM in a DC). How do I get the initrd to not load those modules?
<siraben>
How do I get Emacs with imagemagick support?
<elvishjerricco>
Unfortunately I don't know of a way to remove things from that list in the module system, other than doing `boot.initrd.availableKernelModules = lib.mkForce [ /* copy of the stuff listed in hardware-configuration.nix */ ];`
<elvishjerricco>
Other than that, you can use the `modules_blacklist` kernel param to really force it.
<ottidmes>
etbe: another way might be to add an apply to the option and filter the list
<elvishjerricco>
ottidmes: Whoa you can do that?
nD5Xjz has joined #nixos
<elvishjerricco>
That would have been useful in many cases :P
<ottidmes>
elvishjerricco: you should, I have not used that trick myself yet, but it should, I am going to test it now
<ottidmes>
elvishjerricco: hmm, when I try I run into "<file>.nix is a prefix of options in <other-file>.nix"
<etbe>
elvishjerricco: It doesn't like the lib.mkForce part, seems to work OK without it but doesn't give the desired result. undefined variable 'lib' at /etc/nixos/configuration.nix:13:40
<elvishjerricco>
etbe: You need to add it to the parameter list at the top of the file, where `pkgs` is defined
<ottidmes>
etbe: at the top of your config you have to include lib, like: { config, lib, pkgs }: ... your config ...
<ottidmes>
etbe: personally I would go with elvishjerricco second suggestion, seems like the safer route, e.g. what if some kernel module is needed by some service, using the mkForce solution would break that
<elvishjerricco>
etbe: I agree with ottidmes. The `module_blacklist` kernel param is much safer
<elvishjerricco>
ottidmes: What did you try for that apply thing?
<etbe>
elvishjerricco: thanks that works!
<ottidmes>
elvishjerricco: options.boot.initrd.availableKernelModules.apply = filter (x: x != "xhci_pci"); but options do not seem to get merged, so it finds two definitions of the same option it seems
<etbe>
ottidmes: Well I'm just trying to get NixOS VMs to do the same things as my Debian VMs so I don't think there's any risk here.
<elvishjerricco>
etbe: The mkForce thing is very extreme, and a little likely to make your system unable to boot
<ottidmes>
etbe: still you should prefer the option that can not come back to haunt you later
<etbe>
I'm cool with non-booting VMs. With kernel upgrades I reboot unimportant VMs first and it's easy to identify problems and fix them before rebooting the important ones. It's the subtle problems that I'm worried about (like changes to daemon default config).
<ottidmes>
elvishjerricco: I am thinking about making PR about apply, because what if there already is an apply defined, I would love to be able to chain them
<elvishjerricco>
etbe: Doing the other thing is just as easy, has no downsides, and several upsides. Just saying I don't see a reason not to do it :P
<ottidmes>
this ^
<etbe>
OK, I'll give it a go.
vk3wtf has quit [Ping timeout: 250 seconds]
georges has quit [Ping timeout: 268 seconds]
<ottidmes>
etbe: this works too: options.boot.initrd.availableKernelModules = mkOption { apply = filter (module: module != "xhci_pci"); };
kvda has quit [Read error: Connection reset by peer]
<ryantm>
Is there an easy way to override the expected outputHash of a fetchurl expression with Nix programmatically?
sir_guy_carleton has joined #nixos
lokado has quit [Quit: Connection closed for inactivity]
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
redj has quit [Ping timeout: 272 seconds]
<hyper_ch>
why do you want to do that?
marusich has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
kvda has joined #nixos
<ryantm>
hyper_ch: I'm trying to think of a way to fix the nix-prefetch-url program that is currently broken for all sorts of fetchers. If I changed the outputHash to be something wrong, then maybe I could use nix-build to fail to build the derivation and extract the correct hash from its output.
<ryantm>
If I don't break the outputHash, nix-build could just return the existing already built derivation instead of doing the actual work of building the source.
<ryantm>
I can make a program that breaks the outputHash in the source directly, but that isn't a viable replacement for nix-prefetch-url.
plakband has joined #nixos
<ryantm>
Maybe I should just dive into the C++ nix implementation, because this is seeming pretty hacky.
jasongrossman has quit [Ping timeout: 252 seconds]
<plakband>
I have an entry in my nix-env -q that I can't seem to remove, is this a common thing?
<ZaraChimera>
I have 4GB of RAM on my system at the moment how much swap space should I be assigning, as Nix on ZFS says that it is not suggested to use a zfs pool as variable swap space.
Mr_Keyser_Soze has joined #nixos
vk3wtf has joined #nixos
<ivan>
ZaraChimera: 2-4GB though many uses cases will not need any
<ZaraChimera>
This machine will be generally used for writing, chat over discord or jitsi, maybe some basic programming.
<ZaraChimera>
I think you need some swap space for suspend/hibernate to function properly.
palo1 has joined #nixos
<Yaniel>
IIRC the old rule of thumb was to have 2x as much swap as you have RAM
Mr_Keyser_Soze has quit [Remote host closed the connection]
<ZaraChimera>
Okay, so I can just followed the example parted command in the NixOS manual.
<ZaraChimera>
I had kind of been hoping I could assign a zfs pool to function as swap and let the system dynamically resize it as needed.
<ZaraChimera>
Originally the idea had been to make one ZFS partition with different pools for different distros, but since my machine is MBR rather than GPT, that does not appear to work.
palo has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
<Yaniel>
also I hope you have zram enabled if you only have 4GB of RAM
<ZaraChimera>
My BIOS definitely does not support EFI or UEFI. It will not boot from disk with a GPT partition table and I have not found a replacement for the bios or an update that would add EFI support.
<tilpner>
ZaraChimera: I don't know ZFS, but you may want to check whether this (still) applies: "As of 2014-03-04, you shouldn't use a ZVol as a swap device, as it can deadlock under memory pressure"
<ZaraChimera>
tilpner, Yep. I saw that. I shall do some more digging to see if that still applies. Holiday project is to setup and get myself a nice NixOS install.
<Yaniel>
I should probably look into ZFS/XFS for my next setup
<ZaraChimera>
I wonder how involved installing a different BIOS with EFI support would be. Or if the MBR is something that is actually hardwired into my computer.
<Yaniel>
so far good ole ext4 has served me well
<ZaraChimera>
I had a ZFS running a while ago. I liked it as it gave an extra protection against oops-deletions.
<Yaniel>
yeah it has some neat features for user data
<Yaniel>
for the system itself nix does a good enough job that I don't need to care
<ZaraChimera>
Just have to exclude nix and nix store directories from the snapshotting or roll-backs and such will not function right.
<ZaraChimera>
Hmm. Hexchat really does not seem to like the us_intl keyboard layout.
<ZaraChimera>
It does weird things with the single and double quotes.
sbdchd has quit [Remote host closed the connection]
<simpson>
In kubenix, I'm writing a module for Spartakus. Upstream, Spartakus would like me to run $(uuidgen). The official Helm chart runs Go's uuidv4. It doesn't matter whether I get a new one each time, but I don't really care which UUID I start with.
schopp0r has quit [Ping timeout: 245 seconds]
<simpson>
Is there a better option than something like `--argstr uuid $(uuidgen)`? This isn't very elegant, but worse, it's not compositional with kubenix's modules.
<neonfuz>
Recommended directory in nixpkgs to put a userspace driver?
<neonfuz>
uses uinput, I would think drivers might go in os-specific, but I think uinput isn't actually linux only
<tilpner>
There is misc/drivers
<drager>
What do you get when you install nixos? I mean, packages etc. Will it provide a DE/WM?
<neonfuz>
oh cool, misc/drivers is perfect
<tilpner>
drager: NixOS can be configured to install with a graphical environment. The default generated configuration does not have one though
<neonfuz>
drager: nixos is driven by a configuration, you would need to specify that in the configuration
<neonfuz>
that being said, you can find a sample config and modify it pretty easily to start with whatever WM
<drager>
Great, so I basically get nothing? I want nothing to start with. If you're familair with arch linux I'm after basically the same defaults after a installation
<neonfuz>
that's default
<drager>
Awesome, thanks!
<tilpner>
You get a little more than nothing
<tilpner>
E.g. nano is annoyingly hard to get rid of
<neonfuz>
oh yeah, true
<drager>
That's fine I guess :D
<neonfuz>
but idk if he's saying arch he's not /that/ minimal
<drager>
Yeah, I basically don't want a DE/WM and stuff like that
hyper_ch2 has joined #nixos
<neonfuz>
oh, if you enable x I think it might default to something though
<neonfuz>
just read the docs or whatever as you go along on getting a WM etc
<tilpner>
It will default to an xterm session (why is that even a thing?)
<neonfuz>
yeah it's odd...
<tilpner>
(If you enable X)
<neonfuz>
I guess so you don't get stuck?
<neonfuz>
yeah in your config you're pretty much gonna want to do services.xserver.enable = true; services.xserver.xterm.enable = false;
<tilpner>
Well, it's a cheap way to test if X is working, without pulling in much more
<drager>
I'm happy as long as I know what I get and can decide which packages I have installed etc.
<drager>
So it sounds all good, thank you both
<neonfuz>
jsyk, you generally won't be wanting to just install a window manager like other oses
<neonfuz>
like you can do 'nix-env -i i3' to install i3, but what's preferable generally is setting services.xserver.windowManager = { i3.enable = true; default="i3"; }
<neonfuz>
declarative is considered better, it can do more than just install packages, like setting up sessions
<drager>
Alright, what will be the difference here?
<drager>
The first "just installs" i3?
<neonfuz>
you update your config and run 'nixos-rebuild switch'
<neonfuz>
vs if you install with nix-env it's only installed as your user
<drager>
I see, and I don't get a new entry-point to boot from?
<drager>
Which I get in the latter?
<neonfuz>
yes, but it'll just be like "nixos-generation-2"
<drager>
For the first case?
<neonfuz>
for the second
<drager>
Oh ok
<neonfuz>
the first will just install to your environment as your user, and won't do anything to the boot options
<drager>
Right, makes sense
<{^_^}>
[nixpkgs] @vdemeester opened pull request #52555 → cni: migrate to using buildGoPackage → https://git.io/fheCD
<neonfuz>
you can stil rollback nix-env, it's really a whole different way of installing packages
marusich has quit [Ping timeout: 244 seconds]
<neonfuz>
it's a bit confusingc at first why there's 2 ways of doing things, but really nixpkgs is usable on other oses with nix-env, while if you're actually using nixos you can take advantage of declaratively configuring your os
<drager>
So, you almost always use the declartive way when installing new packages?
<neonfuz>
a lot of people do, personally I still use nix-env a lot because it can be more convenient-
<neonfuz>
I find with system stuff, window managers, services, etc, it's best to use nixos
<neonfuz>
but I install many of my user applications like browsers etc with nix-env
<tilpner>
Declarative and nix-shell for things I need right now without editing config
<neonfuz>
oh yeah nix-shell too
<jasongrossman>
drager: The declarative way is definitely more The Nix Way, even though people sometimes use other ways for speed.
<neonfuz>
you can do like 'nix-shell -p google-chrome' and it'll download google chrome and put you in an environment that can run it
<neonfuz>
for quick things
<jasongrossman>
drager: I think a lot of us use nix-env or nix-shell for speed when we're trying something that probably won't be permanent.
<drager>
Yeah right, it sounds like I would use the declarative way for things like you say, wm, services etc
<drager>
jasongrossman: Yeah, that sounds awesome
<jasongrossman>
drager: YES. And also for other things to practise The Nix Way.
<jasongrossman>
:-)
<neonfuz>
services are really convenient, it's usually as simple as service = {enable = true; option = thing;}
<jasongrossman>
drager: I get the impression that you're a person who's going to like NixOS.
<neonfuz>
and it'll enable it at boot
<neonfuz>
annoying thing to me is it seems hard to have a service be installed but not running by default at boot?
<drager>
jasongrossman: I'm pretty sure I will! It sounds very great
<jasongrossman>
drager: It is! At least, people usually love it a lot or hate it a lot (and of course the latter bunch go away).
<drager>
Oh I see
<neonfuz>
the main annoyance for me is occasional really annoying compatibility problems
<jasongrossman>
And I think a lot of us came here from Arch (or Manjaro).
<neonfuz>
because other people write code expecting the system to be a certain way
<drager>
Thanks all, I will read through the docs more closely. I appreceite all the answers and info!
<tilpner>
Well, try :)
<jasongrossman>
drager: Have fun!
<drager>
:)
fusion809 has quit [Remote host closed the connection]
palo has quit [Quit: WeeChat 2.2]
dkao has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
hotfuzz_ has joined #nixos
hotfuzz has quit [Ping timeout: 250 seconds]
<dkao>
error: value is null while a set was expected, at /nix/store/ln25ib694xa2ydh2vxirj89pn50wbz6y-nixpkgs-19.03pre161900.61c3169a0e1/nixpkgs/pkgs/top-level/default.nix:63:5
<dkao>
error: evaluation of the deployment specification failed
<{^_^}>
[nixpkgs] @ackien opened pull request #52562 → git-secret: Add gawk to wrapper → https://git.io/fhegz
ZaraChimera has quit [Quit: Leaving]
marusich has quit [Remote host closed the connection]
nD5Xjz has joined #nixos
argo has quit [Remote host closed the connection]
Phillemann has joined #nixos
<Phillemann>
"There’s many more kinds of arguments, they are documented in nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh" - is this sort of "documentation" encouraged in Nix?
<Phillemann>
It seems a little gratuitous.
suzu has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @peti to release-18.09 « ghc: add new compiler version 8.6.3 »: https://git.io/fhear
civodul has joined #nixos
rixed has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @vdemeester opened pull request #52563 → containerd: migrate to using buildGoPackage → https://git.io/fheaX
<{^_^}>
[nixpkgs] @timokau pushed to master « pythonPackages.jupytext: init at 0.8.4 (#52545) »: https://git.io/fherL
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @lopsided98 to staging « x265: fix build on ARM »: https://git.io/fher3
<{^_^}>
[nixpkgs] @Mic92 closed pull request #52549 → x265: fix build on ARM → https://git.io/fhee4
mr_noobs has quit [Ping timeout: 245 seconds]
IRCsum has joined #nixos
mr_noobs has joined #nixos
<jomik>
Anyone here knows how I can have gradlew use my system-wide installation (same version). I have tried setting GRADLE_USER_HOME to the /nix/store dir, but it doesn't pick it up, probably because there is no wrapper/dists in ther
spacekookie has quit [Quit: **more agressive swooshing**]
Makaveli7 has quit [Quit: Leaving]
<Lisanna>
Mic92, ok, thanks
qyliss has quit [Quit: bye]
qyliss^work has quit [Quit: bye]
<jomik>
More importantly, is there a way to set nixpkgs.config attributes for a nix-shell instance?
dustinm- has joined #nixos
<srhb>
jomik: The simplest way is to explicitly change the call to nixpkgs in a shell.nix
<jomik>
shell.nix should basically just return a derivation
<jomik>
where the buildInputs is what I want in my shell?
<ldlework>
jomik: you can use mkShell to make it even simpler
<srhb>
jomik: I can't answer that without more context.
<srhb>
Like, that might be the thing you want, but I don't know what you want :P
<jomik>
I just want to add some packages to my path in here :D
<jomik>
One of them being androidsdk, which requires a config set
<srhb>
mkShell sounds right :)
<jomik>
Yah, I just opened it on github :D
<jomik>
So, I just have to set inputsFrom, essentially?
<srhb>
jomik: I think you want buildInputs?
<srhb>
jomik: inputsFrom will give you the inputs of the listed derivations.
ubert has joined #nixos
<jomik>
Oooh
<jomik>
What is the use of `rest`? Is it to add environment variables, essentially?
<jomik>
Uh, where is mkShell located?
<srhb>
jomik: Any attribute not already handled..
<srhb>
jomik: The name is defined in all-packages.nix
<srhb>
jomik: The source is in build-support/mkshell
<jomik>
ah, I thought it was on stdenv like mkDerivation
<jomik>
Wth... androidsdk_8_0 is undefined O.o
agander has joined #nixos
<jomik>
It is in nix repl
<jomik>
Wait, it isn't.
<jomik>
androidsdk_8_0 is defined in mobile/androidenv/default.nix though, but I can only see androidsdk?
qyliss has joined #nixos
<jomik>
Got it :D
qyliss^work has joined #nixos
<srhb>
quack.
Wharncliffe has joined #nixos
<jomik>
RIP. It doesn't automatically accept the licenses. Lol
lokado has quit [Quit: Connection closed for inactivity]
<jomik>
installPhase isn't executed.
<michas>
Hi, if I activate a service using a module and later in the config set the `postStart` attribute of the service - Will the new string replace the old one or will it be appended to the old one? Where do I find documentation for this? Is there a way to decide myself which behavior I want to have?
<jomik>
michas: iirc strings are overriden, attribute sets and lists are merged.
<michas>
jomik, That's what I expected, but it looks like it gets appended for some reason...
<jomik>
Oh, ignore me then :D
<adisbladis>
jomik: That expression is a bit strange and does not use the normal phases
<jomik>
adisbladis: I am trying to use your expression for nix-shell now. But, I am getting this unmarshal error error unmarshal() base64 decoding: illegal base64 data at input byte 0
mr_noobs has joined #nixos
philippD has joined #nixos
<jomik>
Oh. that is probably a direnv error :/
jomik has quit [Quit: WeeChat 2.2]
orivej has quit [Ping timeout: 240 seconds]
mr_noobs has quit [Ping timeout: 245 seconds]
mr_noobs has joined #nixos
<{^_^}>
[nixpkgs] @vdemeester opened pull request #52572 → openshift: migrate to using buildGoPackage → https://git.io/fhexg
<{^_^}>
[nixpkgs] @primeos pushed to master « monkeysphere: Patch OpenSSH to run the tests in the sandbox »: https://git.io/fhexh
<domenkozar>
going to do a short spam here as well: we're running a poll what to focus development on new Nix CI, please sign up at https://hercules-ci.com/ to guide focus into what are your painpoints to be solved
<gchristensen>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 17
agander has quit [Ping timeout: 250 seconds]
dslegends has quit [Read error: Connection reset by peer]
jomik has quit [Quit: WeeChat 2.2]
hotfuzz has joined #nixos
mkoenig has quit [Remote host closed the connection]
hotfuzz_ has quit [Ping timeout: 245 seconds]
mskalski has quit [Quit: bye]
jtcs has quit [Ping timeout: 272 seconds]
mskalski has joined #nixos
jtcs has joined #nixos
orivej has joined #nixos
lokado has joined #nixos
ghasshee has joined #nixos
<ghasshee>
Hi, I updated my os with my garbage collected and I am now missing skypeforlinux, how to resolve it ?
shabius has quit [Quit: Leaving]
shabius has joined #nixos
mr_noobs has quit [Ping timeout: 246 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
sigmundv_ has quit [Ping timeout: 246 seconds]
sbdchd has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #52573 → cups: drop patches → https://git.io/fhvfI
<mpickering>
It seems that `go2nix` doesn't expect the existence of this `go.mod` file which exists to pin the dependencies, is there a way to turn this file into `deps.nix` as expected by `go2nix`?
mulderr has joined #nixos
Mrmaxmeier has joined #nixos
<mpickering>
apparently `vgo2nix` is the answer
<mpickering>
let's see if that work
<mpickering>
alas, it does not
orivej has quit [Ping timeout: 240 seconds]
revtintin has quit [Quit: WeeChat 1.9.1]
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fhvTo
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #52559 → openspades: Fix Darwin build, for 18.09 → https://git.io/fhe0d
drakonis has quit [Read error: Connection reset by peer]
j_r0m has quit [Ping timeout: 256 seconds]
<samueldr>
the API level is versioned in tandem with the operating system version number, in a monotonically increasing number
<enleth>
jomik: 8.0.0 is the release number of the whole thing, 26 is API level of internal libraries. No idea what was intended, but that's where they come from.
<ilya-fedin>
If someone wrote me something, please repeat, my client has disconnected
Mr_Keyser_Soze has joined #nixos
<gchristensen>
nobyd said anything
buttbutter has joined #nixos
jperras has joined #nixos
<ilya-fedin>
I hope there will be a solution to the problem of rebuilding from live
<buttbutter>
Hey. I'm trying to install NixOS for the first time. Upon booting off a USB stick, I just get plopped into a GNU terminal. No idea what to do at this point. Can anyone guide me/link me to some information?
boxscapeR has joined #nixos
<buttbutter>
Into a GNU GRUB***
cyounkins has joined #nixos
<buttbutter>
So, into a GRUB terminal. I just don't really know my way around GRUB, I guess.
<samueldr>
I think generally one will use nixos-install in the live disk to rebuild; though it will use the NIX_PATH (thus nixpkgs checkout) of the live disk, AFAIK
<samueldr>
(ilya-fedin ^)
<boxscapeR>
I've used python36Packages.buildPythonPackages with tarballs before to build dependencies. Is there some way to use this with .whl files, or some other function that lets me use .whl files as python dependencies?
random_yanek has quit [Ping timeout: 240 seconds]
<samueldr>
buttbutter: how did you make the USB stick?
<buttbutter>
samueldr: Using dd, as suggested in the wiki.
develCuy has joined #nixos
<samueldr>
buttbutter: oof, shouldn't give a grub terminal, any output (error messages) before the terminal?
<buttbutter>
samueldr: No :(
<buttbutter>
Just goes straight there.
<samueldr>
buttbutter: I'm assuming a fresh download, right, which iso? graphical or minimal?
<ilya-fedin>
samueldr: I really do not want to re-run nixos-install, it is very long
<buttbutter>
Tried both graphical and minimal, same result. And yes, downloaded it just before.
<gchristensen>
nixos-install is idempotent -- it won't rebuild things it doesn't need to
<samueldr>
buttbutter: you verified the sha256 sum of the iso?
<buttbutter>
I have no idea if this may be the issue, but I know a lot of people with my laptop reported difficulties installing linux due to the hybrid graphics situation. But it seems like not getting past GRUB is too early in the boot process for that to be the issue, right?
<buttbutter>
samueldr: Ah...no. I'll do that :)
<samueldr>
buttbutter: it could!
<samueldr>
though it's hard to be 100% sure without further investigation :/
<buttbutter>
samueldr: I can't disable the hybrid graphics since it literally bricks the BIOS in my computer. Not kidding. ;_;
<samueldr>
ouch, computers are hard :/
Ariakenom has joined #nixos
<samueldr>
it may help look for infos: what's the model?
<buttbutter>
It's a ThinkPad X1 Extreme
<shapr>
ooh
<shapr>
buttbutter: I have the P52, I think I'll have to wait until the installer has kernel 4.19
<buttbutter>
shapr: The P52 has the same bricking issues =/
<shapr>
buttbutter: I ran into issues with the i915 chipset and race conditions with usb
<samueldr>
shapr: you can have it today!
<ilya-fedin>
gchristensen: And if it can put connman? I specified zsh in environment.systemPackages, however zsh is not in the system.
<shapr>
samueldr: wait how?
<buttbutter>
shapr: Do *not* switch the graphics to discrete only. Literally bricks your computer.
<samueldr>
give me 1 mins
<shapr>
buttbutter: uh, I already did switch, and it's fine
<buttbutter>
Oh, it's not 100%.
<buttbutter>
But tons of reports of it.
<shapr>
but I can switch it back
<shapr>
buttbutter: maybe it's that I have the xeons?
<buttbutter>
shapr: No idea. I don't think anyone has really identified the issue.
<shapr>
samueldr: is that the graphical installer? I'm a nix n00b
<buttbutter>
The P52 actually might have a new BIOS to fix it already.
<samueldr>
oh, no, the minimal one :/
<shapr>
buttbutter: I dunno, I can check which version I'm running in a few minutes
<buttbutter>
I think it's fixed in 1.17
<buttbutter>
X1E is still stuck at 1.15 :P
<shapr>
buttbutter: failed to install nixOS for a bunch of hours, then installed ubuntu
<shapr>
oh, I think I do have 1.17
<samueldr>
shapr: though to be fair, the graphical one only gives you a gui for *other* things than the installer, the installer still is console based with commands
<shapr>
oh really?
<shapr>
I already did the partitioning and all that
<samueldr>
yeah, you'd still follow the guide like on the minimal install, only difference is it's done in an X11 graphical session
<shapr>
ok, I'll try the latest non-graphical installer this evening!
<shapr>
I had a bunch of problems installing ubuntu, everything worked fine once the nvidia drivers were installed, something flakey with the i915 graphics drivers
<shapr>
buttbutter: is that the problem you're having?
<shapr>
buttbutter: oh, you get a terminal! mine said "booting installer" and nothing more
<buttbutter>
shapr: I get a GRUB panic terminal or something :(
<samueldr>
looks like our grub config doesn't init for buttbutter; like grub can't read the config or something
<shapr>
farther than I got
<buttbutter>
I'm gonna try some new installation media
<shapr>
but I'll try the un-pretty installer after work
<samueldr>
I wonder if it is an issue with grub, and if so, if it's fixed either in a distro fork (e.g. fedora's, debian's, ubuntu's, suse's) or in grub git... last release was 19 months ago, during which some new hardware can exhibit corner cases or unimplemented features :/
Rusty1 has quit [Quit: Konversation terminated!]
<shapr>
x1 extreme and p52 are more recent than that
<samueldr>
working with "old" hardware I don't experience such issues :(
<buttbutter>
samueldr: Ubuntu uses GRUB, right?
<samueldr>
AFAIK they do
<buttbutter>
Maybe I'll try to boot into that.
<samueldr>
AFAIK those four defaults to GRUB in both the iso and installers
<samueldr>
BUT, the way we build our installer config might also exacerbate issues!
boxscapeR has quit [Remote host closed the connection]
alex`` has joined #nixos
Boomerang has quit [Ping timeout: 240 seconds]
__Sander__ has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 245 seconds]
Synthetica has quit [Quit: Connection closed for inactivity]
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Read error: Connection reset by peer]
cyounkins has quit [Ping timeout: 245 seconds]
cyounkin_ has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
<ilya-fedin>
I started nixos-install ... While it is going, I will tell you about another problem. EFI in my netbook does not allow to add boot records. It only loads bootx64.efi and the Windows Boot Manager. It also doesn't work with grub: I get the cursor in the upper left corner and nothing else. So, the problem is that systemd-boot places itself in /EFI/systemd and /EFI/BOOT, in the latter case, it overwrites the rEFInd that I need.
<ilya-fedin>
How can I tell it not to do this during installation/upgrade?
<shapr>
buttbutter: ubuntu installer locked up for me a bunch of times, until I installed the nvidia drivers, good luck
<samueldr>
ilya-fedin: looks like `bootctl` itself is called when installing systemd-boot, but it looks like it won't upgrade itself once installed, unless you use either nixos-install or the --install-bootloader flag to nixos-rebuild
dbmikus has joined #nixos
<samueldr>
and bootctl install is documented as such in its manpage: "Installs systemd-boot into the EFI system partition. A copy of systemd-boot will be stored as the EFI default/fallback loader at ESP/EFI/BOOT/BOOT*.EFI."
<samueldr>
annoying I'd say
<buttbutter>
shapr: I just want to see if it even starts...
<buttbutter>
Really have no desire to install Ubuntu. Although I could install NixOS from Ubuntu I guess.
<buttbutter>
Maybe that's a workaround :)
<shapr>
yeah, I considered that
<shapr>
but I want to use my new laptop!
<samueldr>
what's good in using a system without nixos? :^)
<buttbutter>
Hehe
<buttbutter>
I still need to learn the Nix language too :V
<shapr>
I don't know, have not yet successfully installed nixOS :-(
<buttbutter>
But I know a lot of Haskell, so I think it should be okay!
<shapr>
yay!
jonaswouters has joined #nixos
<hodapp>
o hai shapr!
<jomik>
samueldr: I mean, I'd be able to work if I didn't have NixOS installed :P I can't get these android sdks working D:
<shapr>
o hai hodapp !
<ilya-fedin>
samueldr: How can I force it not to make a copy in /EFI/BOOT? There are very few options in configuration.nix for systemd-boot.
* hodapp
steals shapr's unicycle and tries to ride it in circles, falls and breaks his ass instead
<gchristensen>
__Sander__ knows about android SDKs, jomik
<shapr>
hodapp: did I bring my unicycle when I came to visit you?
<hodapp>
yes :P
<shapr>
oh good, I didn't remember
<hodapp>
you had people try it out in the space
<shapr>
ohh yeah
<samueldr>
ilya-fedin: looks like there is no way in the nixos config to disable the call to `bootctl install` when nixos-rebuild is asked to reinstall the bootloader (like in nixos-install) and it's `bootctl install` that forces its way to bootx64.efi :/
<shapr>
hodapp: wish I'd gotten your help installing nixos while I was there
<samueldr>
ilya-fedin: AFAICT, nixos-install --no-bootloader should disable the installation of the bootloader
<samueldr>
so if you already have systemd-boot installed, and refind re-installed to the default boot location, it should work and not break thing
<buttbutter>
Well, I got it to give me a GRUB menu. But once I select an option it just gets stuck :D
<samueldr>
(AFAIUI)
<buttbutter>
Can you blacklist kernel modules before selecting an option?
<buttbutter>
I want to disable anything Nvidia.
<shapr>
which kernel module is causing you trouble?
<hodapp>
shapr: lol, I didn't use NixOS at that point or I would have
<buttbutter>
I mean, I *suspect* Nvidia.
detran has joined #nixos
<buttbutter>
Or Nouveau. Whatever is used.
<samueldr>
buttbutter: if you edit the boot option, `module_blacklist=list,of,module,names`
<samueldr>
it's a kernel cmdline option
<buttbutter>
Ah, perfect. Thanks. Sorry, I never used GRUB to any extent. Total noob.
<ilya-fedin>
samueldr: This fucking systemd gives no option :(
<shapr>
yeah, nouveau caused me a bunch of problems, doesn't seem to handle Quadro P2000
<samueldr>
ilya-fedin: yeah :$ I find this quite surprising given it's rude to force its way to be the default efi program
<samueldr>
s/default/fallback/
pareidolia has quit [Ping timeout: 246 seconds]
<samueldr>
one could have a better fallback program, e.g. refind, installed
<ilya-fedin>
samueldr: I hope someday NixOS will support rEFInd
<gchristensen>
nixos + refind worked fine on my mac machine
<hodapp>
interesting, haven't tried on my Mac
rardiol has joined #nixos
<samueldr>
gchristensen: we don't have generations menu building for refind AFAIR
<hodapp>
had mediocre luck with support on my 2008 Macbook. all sorts of things like the touchpad were almost-but-not-quite-right and it was a pain to use
<gchristensen>
samueldr: eh? it just chained over to systemd-boot
<samueldr>
exactly :)
<gchristensen>
whats the problem?
<samueldr>
refind itself could be configured to boot nixos
<samueldr>
the issue at stake here is that there's the fallback location for UEFI programs, and systemd-boot's bootctl ALWAYS overwrites it when installing systemd-boot :/
<samueldr>
so if you install refind there because of a bad UEFI implementation, enabling --install-bootloader in nixos-build (like nixos-install does) will forcibly install it over, which is mostly an annoyance
<{^_^}>
[nixpkgs] @bendlas pushed to master « allegro5: fix build for mesa 18.2.5 »: https://git.io/fhvsa
Synthetica has joined #nixos
<gchristensen>
aaaach
<gchristensen>
computers are complicated
<samueldr>
though, there's also another annoynance linked here: if systemd-boot's bootloader is updated, it will never be upgraded without intervention in nixos, compared to grub's state file which allows nixos to know it should or not upgrade grub
<buttbutter>
Is there any way to get a log or anything of the sort when launching the NixOS installer? Mine just gets stuck with no output after selecting an option.
ThatDocsLady_ has quit [Ping timeout: 272 seconds]
apaul1729 has joined #nixos
gspia has quit [Quit: Leaving]
lokado has quit [Quit: Connection closed for inactivity]
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 268 seconds]
waleee has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
arjen-jonathan has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @marsam opened pull request #52588 → fffuu: init at unstable-2018-05-26 → https://git.io/fhvcP
<dtz>
my nix tools and browser seem to think
<gchristensen>
WFM, can you send me more info?
<Denommus>
warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': HTTP error 302 (curl error: SSL peer certificate or SSH remote key was not OK); retrying in 2469 ms
<dtz>
yeah ^
<LnL>
can you reproduce with curl?
<dtz>
"This server could not prove that it is cache.nixos.org; its security certificate is from www.nixos.org. This may be caused by a misconfiguration or an attacker intercepting your connection." <-- chrome's thoughts on the matter
<Denommus>
should I use another URL for nixpgs-unstable? If so, which?
<gchristensen>
demize: this has been under planning
<gchristensen>
switching DNS providers is hard to set nice TTLS for
<gchristensen>
Denommus: can you run nix-shell -p bind.dnsutils --run "dig nixos.org ns" ?
goibhniu has quit [Ping timeout: 268 seconds]
<Denommus>
it's doing... something
<Denommus>
oh, it's first downloading dependencies
kai_w has joined #nixos
<Denommus>
ok
<gchristensen>
demize: can you test now?
<demize>
gchristensen: Depends on the providers, but sure, that's a valid concern. On the other hand, since you moved to cloudfront, you could have switched to a short TTL ahead of time and then switched the old DNS provider to the cloudfront CNAME at the same time.
<{^_^}>
#51858 (by YuMingLiao, 1 week ago, open): error: value is null while a set was expected, at pkgs/top-level/default.nix:63:5 (when nixops deploy)
justan0theruser has quit [Ping timeout: 250 seconds]
orivej has quit [Remote host closed the connection]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
dmc has quit [Quit: WeeChat 2.3]
sir_guy_carleton has joined #nixos
ensyde has joined #nixos
orivej has joined #nixos
dmc has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
buttbutter has quit [Ping timeout: 256 seconds]
Mr_Keyser_Soze has joined #nixos
alex`` has joined #nixos
rfold has quit [Quit: leaving]
simendsjo has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Remote host closed the connection]
Guanin has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<Guanin>
Hi, can someone point me to some example repos of configs for multiple machines and users? I'm looking for some inspiration for my setup, as I want to switch to NixOS on my desktop, too (already have it on my homeserver and laptop)
<buttbutter>
srhb: You were the guy with the P52...right?
<Guanin>
@ldlework, that looks pretty sane at first glance :)
<buttbutter>
srhb: I just got NixOS on my X1E. Booted the pop!_OS live cd and install nix from there, no problem.
<buttbutter>
So that's my recommended route for now :)
cyounkins has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apaul1729 has quit [Remote host closed the connection]
cyounkin_ has quit [Ping timeout: 250 seconds]
aleph- has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 268 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
drewr has quit [Ping timeout: 260 seconds]
tzemanovic has quit [Remote host closed the connection]
<jasongrossman>
buttbutter: \o/
simukis has quit [Quit: simukis]
<samueldr>
buttbutter: which bootloader did you end up choosing?
<buttbutter>
systemd :)
<buttbutter>
Well...wasn't a choice. It was just the default. But that's what I'm familiar with from Arch anyway.
<samueldr>
(there's no real default, only a recommendation in the default configuration file, grub is represented too :))
<buttbutter>
samueldr: But if you go the UEFI-route, systemd is the default, right?
<samueldr>
none are
tzemanovic has joined #nixos
<samueldr>
ah, though the manual still has the phrasing saying "you have to" use systemd-boot
kvda has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #52594 → make-disk-image: use filterSource instead of cleanSource → https://git.io/fhval
<buttbutter>
Something like that :D
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<samueldr>
and I say "there's no default" since the options are not built like "boot.loader.efi.enable", but "boot.loader.a-bootloader.enable", without a "I don't care just make it work" option
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
ntd has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<buttbutter>
The config file generator automatically enabled systemd.
<buttbutter>
So that's why I see it as a default. I never typed "boot.loader.systemd-boot.enable = true"
tzemanovic has joined #nixos
<buttbutter>
Just appeared out of the ether into my configuration.nix :D
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
drewr has joined #nixos
<samueldr>
hm, I was under the assumption the default configiration.nix had those as commented-out examples, but it looks like I'm wrong... the perils of never re-installing :/
tzemanovic has quit [Remote host closed the connection]
<samueldr>
(I'm looking at the configuration file generator)
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<buttbutter>
Maybe it's recently been changed
tzemanovic has quit [Remote host closed the connection]
<buttbutter>
But hey, that's just a testament to Nix--why ever reinstall :D?
tzemanovic has joined #nixos
<samueldr>
nah, well before 2016 it already was checking "does it look like an EFI system?" and adding it as a default
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
Mr_Keyser_Soze has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<mkaito>
probably a stupid question, but given that `avrbinutils` appears in all-packages.nix how come `nix-env -iA nixos.avrbinutils` says it's not defined?
imdoor has quit [Quit: imdoor]
<samueldr>
mkaito: looks like it was moved during some cross cleanup between 18.09 and unstable
tzemanovic has quit [Ping timeout: 252 seconds]
<samueldr>
it may be `pkgsCross.avr.binutils` now, though annoying if again cross cleanup removed previously available attributes
Mr_Keyser_Soze has quit [Remote host closed the connection]
<sir_guy_carleton>
does anybody use here use autoupdate for their desktop installations? how often do you set the timer for?
<nDuff>
Are there any best practices to use to prevent an expensive-to-calculate value from being realized when the attrset it's in is printed at the repl?
<nDuff>
Could hide it behind a function, sure, but that's a calling-convention change so means updating everything that might want to look at it.
jackdk has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 246 seconds]
<mkaito>
samueldr: thanks. the compatibility double standard is annoying, agreed.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<zgrep>
How would one do the equivalent of nixos-rebuild from the livecd? Preferably without requiring an internet connection, because the change I made does not require an internet connection (and setting one up is annoying).
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #52597 → lvm2: disable parallel building → https://git.io/fhvVD
erasmas has quit [Quit: leaving]
<zgrep>
Ah, looks like nixos-enter gets me closer to where I want.
Mr_Keyser_Soze has joined #nixos
<zgrep>
But not close enough. Just calling nixos-install again seems to do what I want, though.
kvda has joined #nixos
dbmikus_ has quit [Quit: WeeChat 2.3]
dslegends has quit [Quit: dslegends]
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 250 seconds]
cyounkins has quit [Ping timeout: 240 seconds]
<devalot>
In a nixops configuration, I want to set targetEnv to container if the host is NixOS, otherwise set it to libvirt or virtualbox. Is there a way to figure that out? From config.boot?