gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
Guest20586 has quit [Remote host closed the connection]
<samueldr> srid: "error: cloning builder" I think that's the issue I had, too, using their rescue disk to do the install :/
<srid> ahmedtd_: ah, too bad. so i guess qemu is the only way forward?
<srid> samueldr: ^
<samueldr> maybe not, did you take a looks at the other options I listed?
<samueldr> (I fear qemu may cause issues if the disks have hardware-level raid)
<samueldr> tenten8401_: do I remember right that it was you, not long ago, that set-up a nixos server with two disks?
<tenten8401_> I did
<samueldr> how did you end-up installing?
<tenten8401_> made the raid 1 array with mdadm and set up the devices to their appropriate raid array
<srid> samueldr: i'll try nixos-in-place next
<tenten8401_> I don't know if that's the correct declarative way to do it but it works
<tenten8401_> but yeah, I did it through rescue and then had qemu connect to both disks
<samueldr> oh, I meant, the method to install nixos, nixos-infect, in-place, qemu?
<tenten8401_> lemme get the command
<samueldr> ah good
<tenten8401_> qemu-system-x86_64 -net nic -net user,hostfwd=tcp::80-:80 -m 4G -alt-grab -localtime -enable-kvm -cpu kvm64,+nx -smp 2 -usbdevice tablet -k en-us -cdrom nixos-minimal-18.03.132687.14c248a4ab7-x86_64-linux.iso -hda /dev/sda -hdb /dev/sdb -vnc 0.0.0.0:0 -boot menu=on
<samueldr> ^ srid I encourage you to try alternatives, but we have a success story here :)
newhoggy has joined #nixos
<tenten8401_> yeah, that's what I ended up using and it works quite well providing you know how to actually partition it
<samueldr> (encouraging moststly for the fun of learning!)
<tenten8401_> unless you need EFI vars
<tenten8401_> then I think you have to use grub and install as removable EFI, but I haven't tested how well that works
<samueldr> your server ended-up being UEFI or Legacy?
<tenten8401_> legacy
<tenten8401_> couldn't get it to boot UEFI
<samueldr> is it too much to ask which provider/server type?
<tenten8401_> Hetzner serverbidding
<tenten8401_> lemme get CPU model
<samueldr> so they allow switching uefi/legacy? that's interesting
<tenten8401_> I don't know
<tenten8401_> I do know you can get a free KVM for 3 hours
<tenten8401_> It's a Intel(R) Xeon(R) CPU E3-1246 v3 @ 3.50GHz server
<samueldr> > legacy // couldn't get it to boot UEFI
<{^_^}> undefined variable 'legacy' at (string):151:1
<samueldr> I thought it meant that you made a choice :)
<tenten8401_> nope
<tenten8401_> but I'm sure I could get it to boot UEFI with the KVM if I wanted
<samueldr> it's good to know it defaults to legacy (not that legacy is good, but knowing which it defaults to)
<tenten8401_> I didn't have EFI vars accessible from the rescue system, and I couldn't get it to boot when installed with any EFI-only solution
<tenten8401_> that doesn't neccesarily mean EFI doesn't work, but I couldn't get it to work
<Myrl-saki> Okay. I'm feeling a bit stupid right now. Aside from runCommand, is there a way to make a directory out of files?
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/687f5d2fa17 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
jluttine has quit [Ping timeout: 245 seconds]
jluttine has joined #nixos
<tenten8401_> Is there a proper way to declaratively define a raid array that the server should be installed on?
<tenten8401_> I think making it with mdadm is required unless you're deploying to a cloud service that NixOps supports
thc202 has quit [Ping timeout: 268 seconds]
elasticdog has quit [Ping timeout: 260 seconds]
elasticdog has joined #nixos
newhoggy has quit [Remote host closed the connection]
kp__ has quit [Ping timeout: 256 seconds]
<infinisil> Myrl-saki: Um, what's not good with runCommand?
bennofs1 has quit [Quit: WeeChat 2.0]
<Guanin> Okay, my libGL problem persists even with a new user and after switching from xmonad to gnome3, so I guess I can rule out any problems that might be caused from ~ and the window manager. Even worse, nextcloud crashes always (with xmonad, it only crashed once and worked afterwards)
kp__ has joined #nixos
`_ has joined #nixos
`_ has quit [Client Quit]
<infinisil> tenten8401_: Not currently, but aszlig has done some experimentation at some point (not sure what the state is now): https://github.com/NixOS/nixpart/wiki/Device-tree-representation
blankhart has joined #nixos
<tenten8401_> also, when converting a boolean to a string, is there a way to actually have it output "true" or "false" instead of 1 or 0?
<tenten8401_> currently I'm just using ${tostring cfg.myBool}
`_ has joined #nixos
silver_ has joined #nixos
<`_> I have a weird one
<aszlig> tenten8401_: try lib.boolToString
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c15e6fd3fd9 (from 27 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<`_> networking.interface.eth0.ipv4 does not exist
<`_> happens on one of my computers
<`_> but one another one
<`_> when building a machine for nixops
<aszlig> `_: it should be interfaceS
Maxdamantus has joined #nixos
<`_> it works on another machine which is weird
<`_> I may have mistyped it out
<`_> This is two people sharing a tmux session btw lol
<tenten8401_> boolToString seems to still be outputting 1 and 0
<infinisil> > lib.boolToString true
<{^_^}> "true"
<infinisil> > lib.boolToString false
<{^_^}> "false"
<tenten8401_> the heck
silver has quit [Ping timeout: 240 seconds]
<`_> aszlig: thanks
`_ has quit [Client Quit]
<infinisil> aszlig: Is nixpart usable btw?
`_ has joined #nixos
<`_> aszlig: it was interfaces we mistyped
<tenten8401_> forgot to re-deploy, that's why it was still outputting 1 and 0, my bad
<`_> So the deploy works on one machine but not the other
<aszlig> infinisil: well, there is a nixpart branch, which is currently WIP
<aszlig> infinisil: i intend to resume working on it before nixcon
<infinisil> `_: I'm just imagining you both typing on one keyboard like this: https://www.youtube.com/watch?v=u8qgehH3kEQ
<`_> infinisil: basically
<`_> infinisil: you got any idea? I am at a loss, the pkgs are pinned, both computers have the same versin of nixops
<aszlig> infinisil: lots of movie os going on :-D
<infinisil> aszlig: Fancy
<infinisil> `_: "It doesn't work" isn't very helpful
<infinisil> What doesn't work?
<infinisil> Error?
<`_> Sec
<`_> So its a nixops deployment. The second file paseed to nixops create specifiys a machine on digital ocean. The config in that file is generated by nixos on that machine, and copy pasted to make the deployment work. This deploys just fine on one computer but the other computer inexpclicably rejects the whole thing claiming the eth0.ipv4 option does not exist.
<`_> I am failing to find any reason why it would fail to build the machine because it has to have ipv4
<`_> Actually this deployment works on 2 other machines
<`_> identical nix expression
<`_> pinned nix packages
<`_> same version of nixops
<`_> We are baffled
<`_> and sweaty
<`_> speak for yourself
<infinisil> Heh
<infinisil> Umm.. Can you gist the files?
<`_> there is the one in question
<alexteves_> is there a way to launch a gui application via cron? cron seems to run commands just fine by using https://nixos.wiki/wiki/Cron, so I'm not sure if my problem is nixos-specific
<infinisil> `_: What's that base.nix thing?
<`_> We have multiple machines, base.nix defines the base configuration for them.
<infinisil> I'm not really sure if that could be the reason, but the option values need to get merged properly with mkMerge or imports
<aszlig> `_: might be a good idea to use imports = [ ./base.nix ]; or something like that
<aszlig> `_: what's the traceback you're getting?
<infinisil> Yeah, would also use imports
<`_> what do you mean traceback?
<infinisil> Oh yeah you still didn't post the error hah
<`_> error: The option `networking.interfaces.eth0.ipv4' defined in `/home/xxx/dev/hs/kassir/infrastructure/src/web-digital-ocean.nix' does not exist
<infinisil> Can you gist how base.nix looks like as well?
<alexteves_> turns out it wasn't nixos-specific at all, I just needed to add `DISPLAY=:0;` before,
<infinisil> `_: I think using imports might solve the problem
<aszlig> this looks a lot like configuration didn't get merged properly
<infinisil> Yeah
<`_> infinisil: how is the nix evaluator not being deterministic?
<`_> because the exact same code, builds and deploys on 2 other machines
<`_> did the set merge system undergo changes?
<infinisil> Nix is deterministic, you have done something wrong somewhere
<infinisil> And I can't know what you did wrong with too little information
<aszlig> `_: well, if you have the exact same config, have a look at the differences of the physical spec of nixops
<`_> I am saying, I have the code checked out on two computers
<aszlig> `_: nixops show-physical
<`_> both computers are nixos
<`_> and one it builds and the other it doesn't
<aszlig> `_: it might be that the DO backend defines a networking interface
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<`_> aszlig: its not the DO backend
<`_> its the nixos backend
<`_> as in nixops deploying to nixops
<`_> eck
<`_> as in nixops deploying to nixos
<infinisil> `_: Okay the problem isn't the merging, probably
<aszlig> `_: you mean the "none" backend?
<aszlig> `_: for both?
<`_> none
<infinisil> `_: Somewhere there will be a difference between the machines, Nix doesn't just decide to not work on one of them
<infinisil> Maybe add some -v's and compare the output on the 2 machines
<`_> good idea
<`_> it's saying -v doesn't exist as an argument
<`_> flag*
<aszlig> `_: as said, please compare the physical spec of the two machines
<infinisil> Oh that's nixops, right..
<joepie91> `_: have you verified that you're running the latest NixOS on *both* of them?
<joepie91> the networking options changed in either 17.09 or 18.03, I forgot
<`_> go for it
<`_> we haven't
<`_> we should
<`_> sec
<infinisil> 02:51:17 <`_> pinned nix packages
<aszlig> joepie91: in 17.03 for the ipv4 attribute
<joepie91> was it 17.03 where it changed? oof, time flies
<infinisil> I think that was the first NixOS I installed :O
<aszlig> joepie91: well, it could be even before than
<`_> I do believe that's the case
<joepie91> I started on... 16.09....?
<joepie91> I think?
<`_> I think we're on different versions
<aszlig> joepie91: but in 17.09 it changed again, but not in an incompatible way... in 17.03 (IIRC) the ipv4/ipv6 attributes got introduced
<joepie91> aszlig: at some point a changed was introduced where you could now specify multiple address assignments instead of one
<joepie91> I believe
<joepie91> change*
<joepie91> I had to change that format for one of my servers
<infinisil> joepie91: Wait what's your GH handle?
<joepie91> infinisil: joepie91, why?
<infinisil> Just wanted to check nixpkgs for your first commit :P
<joepie91> lol
<joepie91> I don't have many nixpkgs commits, if any at all
<joepie91> just some PR(s?) that I need to redo
<joepie91> on the miles-long todo liost
<joepie91> list*
<infinisil> Ah I see
<aszlig> joepie91: it was 2014 what i meant, but back then ip4/ip6 were introduced
<aszlig> joepie91: so ipv4/ipv6 got introduced in december 2017
<`_> ok, the vm being deployed to is 18.03
<joepie91> right
<aszlig> so in a way it's only available in 18.03
<aszlig> s/\<a way/in this case/
<aszlig> s/in in/in/ ;-)
<joepie91> aszlig: error at line 3: stack overflow
<aszlig> `_: okay, so one is a vm and the other one is a physical machine?
<joepie91> :P
<`_> ok
<`_> so one machine is 17.09, and the other is 18.03
<`_> that is a legit difference between the machines
<`_> going to try upgrading the 17.09
<aszlig> `_: yep, especially because in 17.09 there is no ipv4 option
<`_> will update
<infinisil> Watching a git bisect run is so satisfying..
<infinisil> Used it to find the commit where ipv4 was introduced: https://github.com/NixOS/nixpkgs/commit/c1bed05e341756f7fdfa73035c7f1e078e49be3d :P
<`_> ok, so while that machine is upgrading
<`_> I want to understand why this is the case, so I can recognize other errors in this class in the future
<`_> also infinisil: yes git bisect run is _super_ satisfying
<joepie91> `_: it's basically just that the config format changed between 17.09 and 18.03, and so while the option was valid in one version, it wasn't valid in the other
<`_> why does the underlying version of nixos impact the success evaluating this expression???
<joepie91> generally, whenever one thing works somewhere but not elsewhere, it's because the systems are on a different channel
<`_> ok
<joepie91> `_: the config option you're setting for the network is defined in nixpkgs, and the nixpkgs channel/release you're using determines your nixos version
<`_> so, the picture of what needs to be consistent to guarentee success:
<`_> - The nixos version of the command runner
<`_> - The nixpks version
<joepie91> (those two are tied together)
<`_> nixpkgs*
<`_> I pin to a commit hash
<`_> not a channel
<`_> so from the perspective of project, there are more variables
<`_> (nixos version, nixpkgs version, nixops command version)
<`_> not too bad actually
<joepie91> `_: for this kind of 'option doesn't exist' error, nixops version should not matter for anything that lives within the machine definition
<joepie91> just the nixpkgs/nixos being used for that system
<joepie91> (and possibly hardware in some cases)
<joepie91> nixops version should only affect nixops-specific settings, like provider backend, the options available for them, and so on
<joepie91> either way, if something produces magically different results on two systems then 9 out of 10 times it's going to be a matter of "machine follows a different release/commit"
init_6 has joined #nixos
`_ has quit [Ping timeout: 264 seconds]
andymandias has quit [Ping timeout: 264 seconds]
andymandias has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
<pikajude> what's the command to copy a certain path from a certain host
<tenten8401_> Just figured I'd ask before I try, are you able to run Docker inside of NixOS containers?
<tenten8401_> and what technology are they based on?
<tenten8401_> scratch that last question, it's based on systemd-nspawn
tzemanovic has joined #nixos
alexteves_ has quit [Remote host closed the connection]
newhoggy has joined #nixos
Mateon3 has joined #nixos
newhoggy has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Ping timeout: 256 seconds]
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
blankhart has quit [Ping timeout: 268 seconds]
blankhart has joined #nixos
alex`` has quit [Ping timeout: 268 seconds]
rschm has quit [Remote host closed the connection]
rschm has joined #nixos
<{^_^}> [nixpkgs] @uri-canva opened pull request #42832 → bazel: fix darwin build on hydra → https://git.io/fwlk8
mkoenig has quit [Remote host closed the connection]
hxrts has joined #nixos
mkoenig has joined #nixos
realrokka has quit [Read error: Connection reset by peer]
realrokka has joined #nixos
tenten8401_ has quit [Ping timeout: 245 seconds]
tenten8401_ has joined #nixos
stepcut has joined #nixos
iyzsong has joined #nixos
tenten8401_ has quit [Ping timeout: 268 seconds]
lassulus_ has joined #nixos
coot has joined #nixos
<init_6> is there some deriviatives for vmware-player?
coot has quit [Client Quit]
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
tenten8401_ has joined #nixos
ryantrinkle has quit [Remote host closed the connection]
tenten8401_ has quit [Ping timeout: 264 seconds]
drakonis_ has joined #nixos
stepcut_ has joined #nixos
<infinisil> Heh, there's the nicely named option power.ups :P
tenten8401_ has joined #nixos
tenten8401_ has quit [Client Quit]
stepcut has quit [Ping timeout: 248 seconds]
07IADBG9K has joined #nixos
07EABLV63 has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
sbdchd has quit [Remote host closed the connection]
drakonis_ has quit [Quit: Leaving]
Drakonis has joined #nixos
tenten8401_ has joined #nixos
tenten8401_ has quit [Ping timeout: 240 seconds]
spear2 has quit [Remote host closed the connection]
bluesfreak72 has joined #nixos
Ross has quit [Ping timeout: 260 seconds]
nallar has joined #nixos
nallar is now known as Ross
<bluesfreak72> Hi there. I'm trying to change my default WM/DE to awesome wm. I installed the package and copied / pasted changes to /etc/nixos/configuration.nix Here is a pastebin of the error and my configuration.nix file: https://hastebin.com/idahiyuqej.bash
<clever> bluesfreak72: line 8 and 87 are both starting a set, thats not valid
andymandias has quit [Ping timeout: 260 seconds]
<clever> bluesfreak72: and why do you have an entire options&config block on lines 80-138??
<bluesfreak72> clever: I'm very green on Nix. I'll take a look.
<clever> bluesfreak72: id say delete the entire 78-138 chunk, it doesnt belong in configuration.nix
<clever> if you want to enable awesome, just do services.xserver.windowManager.awesome = true;
<clever> oops, services.xserver.windowManager.awesome.enable = true;
andymandias has joined #nixos
paraseba has quit [Ping timeout: 276 seconds]
<bluesfreak72> clever: # services.xserver.windowManager.awesome.enable = true;
<bluesfreak72> services.xserver.windowManager.awesome.enable: command not found
<clever> bluesfreak72: you have to set that in configuration.nix
<bluesfreak72> Oh ok.
<clever> Jul 01 00:23:53 enigma firewall-start[13444]: iptables v1.6.2: invalid port/service `600022' specified
<clever> networking.firewall.allowedTCPPorts = [ 600022 ];
<clever> bluesfreak72: why are you trying to open an invalid port?
<bluesfreak72> clever: I like to run openssh on that port. I set it in /etc/ssh/sshd_config.
<clever> that is port 600,022 which is invalid
paraseba has joined #nixos
<clever> ports can never go over 65,535
<bluesfreak72> clever: Oh. One too many zeros...
<clever> also, you dont have to open the port for ssh
<clever> the ssh service opens it for you
<clever> if services.openssh.openFirewall is true (the default) then it allows services.openssh.ports thru the firewall automatically
<bluesfreak72> clever: I guess I'm thinking too deeply into it. If I change the port in sshd_config will it automatically open 60022?
<infinisil> bluesfreak72: There ain't no sshd_config you can safely edit on NixOS, use the `services.openssh.*` options
<infinisil> Specifically services.openssh.ports to specify the port it should use
<clever> bluesfreak72: nixos will ignore the /etc/ssh/sshd_config file and only use the port defined in configuration.nix
<bluesfreak72> Ok. That time I didn't get an error, so I'm going to try logging out and back in...
<bluesfreak72> I'll be back in here shortly...
bluesfreak72 has quit [Quit: Leaving]
* infinisil is confused why he logs out
Drakonis has quit [Remote host closed the connection]
bluesfreak72 has joined #nixos
<bluesfreak72> clever: I'm now in awesome!!! Thanks for the help. I just noticed the time. I need to hop off here for the night. I'm sure I'll be back in here soon.
<clever> its 1:40 am here :P
<bluesfreak72> I'm an hour behind you. Suburb of Toledo, Ohio.
<bluesfreak72> clever: I really appreciate the nix-fu. I'm out.
<clever> laters
bluesfreak72 has quit [Client Quit]
07EABLV63 has quit [Remote host closed the connection]
07IADBG9K has quit [Remote host closed the connection]
tadni has joined #nixos
tadni_ has joined #nixos
tadni- has joined #nixos
tadni_ has quit [Quit: Leaving]
tadni- has quit [Client Quit]
tadni has quit [Remote host closed the connection]
robstr has joined #nixos
tadni has joined #nixos
tadni_ has joined #nixos
tadni_ has quit [Remote host closed the connection]
tadni has quit [Remote host closed the connection]
alex`` has joined #nixos
tadni has joined #nixos
iyzsong has joined #nixos
Drakonis has joined #nixos
Guanin has quit [Ping timeout: 276 seconds]
Guanin has joined #nixos
tadni has quit [Ping timeout: 245 seconds]
tadni has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
alex``` has joined #nixos
alex`` has quit [Ping timeout: 264 seconds]
aarvar has quit [Ping timeout: 268 seconds]
<init_6> 12:37 PM here
Drakonis has quit [Read error: Connection reset by peer]
endformationage has quit [Quit: WeeChat 1.9.1]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Cale has quit [Remote host closed the connection]
leothrix has quit [Quit: ZNC 1.7.0 - https://znc.in]
leothrix has joined #nixos
blu3r4d0n has quit [Quit: WeeChat 1.9.1]
blu3r4d0n has joined #nixos
tadni has quit [Remote host closed the connection]
blankhart has quit [Ping timeout: 245 seconds]
tadni has joined #nixos
tadni_ has joined #nixos
tadni has quit [Remote host closed the connection]
juhe has joined #nixos
b has quit [Ping timeout: 260 seconds]
blu3r4d0n has quit [Changing host]
blu3r4d0n has joined #nixos
<juhe> Hi any idea how to get file system specified in configuration.nix' fileSystems configuration option up after network is up and put it down before network is stopped? It's inconvenient especially during shutdown to wait for unmount fail due to inaccesible network (which was put down before).
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/060a98e9f4a (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
liuyb has joined #nixos
tadni_ has quit [Remote host closed the connection]
blankhart has joined #nixos
tadni has joined #nixos
rschm has quit [Remote host closed the connection]
rschm has joined #nixos
tadni_ has joined #nixos
tadni has quit [Client Quit]
myshoe has joined #nixos
tadni_ has quit [Remote host closed the connection]
simukis has joined #nixos
Maxdamantus has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/060a98e9f4a (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
john2 has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
Maxdamantus has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39981 → Sage on nixos → https://git.io/vpVP9
<{^_^}> [nixpkgs] @7c6f434c pushed 24 commits to master: https://git.io/fwlOL
coot has joined #nixos
Turion has joined #nixos
<gonz_> Is there a convenient way to build a nixos image from a box that only has `nix` and not `NixOS` yet? I'd like to just build the image with everything I know I want and then install it and sort out the details when I'm already up and running.
buckley310_ has joined #nixos
buckley310 has quit [Quit: Bye]
<srhb> gonz_: I believe the usual approach is to use one of the kexec-based installers
buckley310_ has quit [Quit: Bye]
sjourdois has joined #nixos
buckley310 has joined #nixos
<Turion> I have a nixos machine running, and I want to install basically the same config on a 10 years old mac book. Anything I should know? In particular, do I need to understand what UEFI is? (Because I'm not sure I do)
<Havvy> UEFI shouldn't be a thing on a 10 years old mac book.
<srhb> Havvy: Are you sure about that? I think I remember my very, very old white macbook using UEFI?
<srhb> Or maybe the 'U' is what is wrong?
<Turion> Either way, it's not the good ol' BIOS?
<gonz_> srhb: Thanks, I'll take a look at this.
<srhb> Turion: I tend to avoid old MBR style booting if I can at all. Not sure whether you can in this case, but I'd certainly try..
<srhb> Then again, I don't consider the old way "good" :D
buckley310 has quit [Quit: Bye]
<Turion> srhb
<Turion> srhb: Happy to give up the old ways, as long as I know how to get the machine running ;)
<srhb> Turion: (Un)fortunately my mac days are long gone, but I think I used some boot manager called rEFIt (now rEFInd?) back in the day to eventually load the efi boot of my linux. Which I think was Arch at the time...
buckley310 has joined #nixos
<sphalerite> I've got an old macbook pro booting nixos just through GRUB
<srhb> Neat.
<sphalerite> Turion: I'd recommend using EFI, since apple's BIOS emulation performs various kinds of weirdness
<sphalerite> not sure which ones apply in your case, but yeah
<sphalerite> Do you know the model number?
<sphalerite> Should be something like MacBookx,y
rschm has quit []
<juhe> \o/, Is there an alternative to nixos-container, that would run different OS in container? Or should I use low level systemd-nspawn to handle that?
<Turion> sphalerite: Below the display it says MacBook pro...
<Turion> srhb: The manual says I should use systemd boot for UEFI, but EFI is different then?
<srhb> Turion: No, that should be the right and only NixOS adjustment you need to make iirc :)
andymandias has quit [Ping timeout: 264 seconds]
<sphalerite> Turion: is OSX running on it? You should be able to get the model number like MacbookPro2,3 or something from the "About this Mac" thing
<Turion> Where would I find the model number?
<sphalerite> or if you've got some linux on it run dmidecode and grep it for MacBookPro
<srhb> Turion: fwiw I use that for all the machines I have except for one where I uses grubs mirroring capability.
<Turion> sphalerite: Ah, I don't know. Never actually turned it on. (A friend gave it to me, doesn't need it anymore)
<srhb> (well, NixOS' grub mirroring facility)
<Turion> Let me se
<Turion> srhb: You use what? systemd boot?
<sphalerite> you can use systemd-boot or grub on EFI systems, whatever you prefer
<sphalerite> I generally use systemd-boot unless I need one of GRUB's features (which I usually don't)
<Turion> sphalerite: I want the one that is most failsafe to set up :P
wchresta has joined #nixos
<sphalerite> 🤔 not sure which one that would be. systemd-boot is probably easiest though.
<srhb> Turion: Yeah, I use systemd-boot primarily.
andymandias has joined #nixos
<srhb> I think it has the least need for knob-turning, and also the least support for it.
<Turion> sphalerite: It's a MacBook Pro 5,5
<Turion> I'll try that then
<srhb> Turion: Remember lots of swap space then... :-)
<Turion> srhb: :/ Oh well... I was hoping to get a more performant machine than my similarly old HP, but that one also has just 2 GB
<srhb> Turion: It will probably be fine, I'm only mentioning it because Nix 2.x currently has some bugs that makes it really hard to run on very low memory systems.
<srhb> Turion: Once things are installed, it's probably fine :)
<Turion> Then I wonder how I'll actually get the files on there. I already have my whole system on this machine. Can I just copy the store so it needs to download very little?
<sphalerite> yes
<Turion> srhb: Running on this HP is already a pain sometimes. When I upgrade my system, I need to switch of firefox, chromium, thunderbird and other big apps
<sphalerite> for a start boot the installer system
<srhb> Turion: More swap for installing and you'll be fine :)
<srhb> Turion: Should be fixed in 2.1/2.5 anyway iirc.
<srhb> Hope it's out soon.
<Turion> Oh that's great to hear
<srhb> Er.. 2.1 / 2.0.5
orivej has joined #nixos
<srhb> Reducing the number of jobs allowed can also help. (I just oomed the nix daemon on a 16 GiB RAM system...)
<Turion> But can't I pry open the Mac, take the disk and connect it to my machine via USB and install from my system?
<sphalerite> no, you need to change some firmware settings to make it do the GRUB stuff
<sphalerite> s/GRUB/systemd-boot/
<sphalerite> is copying over the LAN not a desirable option?
<Turion> sphalerite: What firmware settings?
knupfer has joined #nixos
<sphalerite> boot order
<Turion> I don't have a LAN. I have a WLAN, if that helps
<sphalerite> using efibootmgr or similar
<sphalerite> that's a type of LAN ;)
<sphalerite> may well still be faster than the internet, depending on your connection
<sphalerite> but yeah I'd still recommend using the regular installer system, if you don't want to burn a CD or put it on a USB stick maybe you can netboot it
<Turion> I must admit I have no idea how to copy files over a WLAN
<sphalerite> we can worry about that once you've actually got the installer system running :)
<Turion> sphalerite ok ;) I'll report back
<Turion> (Still leaves a glaring question mark on my face: What's efibootmgr and how do I use it. Gotta do some reading on that now)
<srhb> Turion: Learning how efi booting works is probably a worthwhile investment anyway. :)
<Turion> I guess so
<sphalerite> you shouldn't actually need to touch it yourself though, nixos handles it if you set boot.efi.canTouchEfiVariables = true; :)
<Turion> Why can't I change the boot order when I start the machine? Does EFI/UEFI not have some kind of console before boot?
<Turion> sphalerite: Ah, so I just set that true when I write my initial config, then I create my first generation, then I can remove that config line again?
<sphalerite> yes
<Turion> Great
<sphalerite> or you can just leave it there, it shouldn't break anything either
<srhb> Turion: iirc efibootmgr actually installs a small program into the firmware of the machine which in turn hands over to a boot loader(?) on your disk.
<srhb> this is the point where I realize I have forgotten most of the efi essentials... :-)
<sphalerite> srhb: it tells the firmware where to find the next stage boot loader, no actual program involved
<Turion> srhb: Oh wow. Does sound a bit hacky, to admit.
<sphalerite> srhb: you can view the paths by running efibootmgr -v
<Turion> Ah ok
<srhb> sphalerite: Thanks :)
<sphalerite> Turion: important thing on macs: don't delete the existing EFI System Partition when installing, make sure to reuse it
<sphalerite> i.e. mount it on /boot
<sphalerite> it contains some files that are important to the boot, though I can't remember or may never have known how
<Turion> sphalerite: Ah ok, otherwise it won't even boot into the initial system and I'm locked out?
<sphalerite> I'm not 100% sure what the consequences are, just that they're undesirable :p
phdoerfler has joined #nixos
<Turion> Now here's a thing that nearly made me give up on NixOS: When I installed it on this machine, systemd wouldn't give me a terminal before it could set up networking on its own. But how on earth can it get to the internet if I'm not allowed to enter my Wifi password, let alone specify my nonfree wifi firmware?
<srhb> Turion: Uuuh, that sounds broken for sure. You should get a terminal which you then use to setup the network.
<sphalerite> yeah that shouldn't happen
<Turion> srhb, sphalerite: Yeah, the problem was a bit intricate
<Turion> If I waited for the terminal to appear, I couldn.t connect to the network because it had already done all the hardware checks and deemed my network card dead (because no cable was plugged in)
<srhb> That does not sound like normal behaviour.
<Turion> If I plugged in the cable during boot, it would recognise the card, but not find network (because... gosh I don't remember... MAC filter??)
<srhb> You should absolutely be able to set up networking after the fact without a cable plugged in..
<Turion> srhb: Yes, that was strange, maybe old hardware misbehaving, no idea
<srhb> Indeed. Doubt you'll experience the same thing on the macbook. :)
<srhb> Probably other fun stuff though!
<Turion> Anyways it was a mess. I just hope the nixos installer knows how to make the Mac's wifi run and everything will go moderately smoothly I guess!
<Turion> Yaay ;) as long as it's fun stuff I can resolve by learning something, that's great!
<srhb> I am dreading buying a new laptop and seeing what quirks I'll have to deal with. Fortunately I suffer from laptop paralysis, so that'll probably be a few years yet.
<sphalerite> srhb: ♥ laptop paralysis
<srhb> sphalerite: It's horrible, but cheap... :P
<sphalerite> srhb: I think I managed to worsen mine by getting a new laptop last year. In retrospect I think I spent far more money than I really needed to
<sphalerite> because I can do most of the stuff I actually use my big laptop for on the chromebook, which was 10× cheaper
<sphalerite> s/worsen/increase/
<sphalerite> it's not necessarily a bad thing, eh?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> Although I do rather like the 4K monitor
<srhb> sphalerite: Aw.. Yes. I have the same thing, I think. I can't decide on cheap laptop and get a real PC and just stream games and stuff to my laptop, or expensive laptop that'll probably be way overpowered for most things....
<srhb> I hate 4K, can't get anything to look right. I'll probably get one for color/brightness and scale down to 1080p :P
<sphalerite> the one thing the chromebook is lacking in is storage
<sphalerite> s/lacking/most lacking/
<srhb> I've gotten used to living on 180G, I think that should be easily achievable.
<sphalerite> 2GB RAM can be a bit bottlenecky as well
asymmetric has joined #nixos
<srhb> O_o THAT I couldn't live with
<sphalerite> Ah but my chromebook only has 16GB of storaage built in. I use a 32GB micro-SD card for everything though
<srhb> ouch.. OK. Definitely not for me :P
<sphalerite> it's certainly not usable as a sole primary driver
<sphalerite> But it can do a lot of what I need my computers for
<sphalerite> Oh and I still haven't got a graphical browser running on it. But that's also a minor detail, right? 😉
<sphalerite> s/graphical browser/full-featured browser/
<srhb> Totes. Who care about the 21st century anyway
<sphalerite> dillo runs just fine on it
hamishmack has joined #nixos
<srhb> ooo unstable got bumped. Reboot time.
<sphalerite> still I love it. Amazing battery life and stuff. And it was so cheap that I'm a lot less worried about taking it with me. And it's small and light so it's also *easier* to take with me.
<sphalerite> plus it has an ARM processor. And can run without any nonfree software (including firmware).
<srhb> sphalerite: That *is* cool.
<sphalerite> no graphics acceleration either *yet*, but there's a project to remedy that which seems to be coming along nicely.
<sphalerite> supposedly you can get that working with ARM's nonfree driver crap but I don't want to fight that beast
<juhe> I put nixos on couple of lars chromebooks, runs well, though 32GiB is really a limitation w.r.t. NixOS. It's important to garbage collect rather often.
<sphalerite> but that's an intel one isn't it?
<juhe> yes
<juhe> relatively powerful, with core i3 I think.
<sphalerite> but my freedom :p
<srhb> can pls has hexacore freedom laptop. thx.
<juhe> hm, I wanted to look at ryzen laptop a dell one with 13" display - not available in europe though :-/
<Turion> The mac didn't like my boot stick so far... I'm creating a new one
john2 has quit [Ping timeout: 260 seconds]
thc202 has joined #nixos
wchresta has quit [Ping timeout: 240 seconds]
<Turion> It would be cool if there was something like nixos code review where people show their configs and other people comment on how they can beautify it/fix bugs etc.
<sphalerite> srhb: asus chromebook flip c101pa has 6 cores and will probably eventually be quite freedom-compatible
<sphalerite> srhb: the main missing piece is graphics acceleration AFAIK
<sphalerite> and wifi firmware but that's what USB dongles are for right?
<sphalerite> Turion: how did you create it?
<sphalerite> you need to write the image straight to the block device for EFI boot
<sphalerite> I usually use dd if=nixos-….iso of=/dev/sdX bs=1M status=progress oflag=direct
phdoerfler has quit [Quit: Leaving.]
rihards has joined #nixos
<Turion> sphalerite: I don't recall, it's over a year ago. For that reason I'm making a new one with "cp blabla.iso /dev/sdb"
<sphalerite> also good :)
<sphalerite> and to make it boot you need to hold left alt while turning it on I htink
<Turion> Yes, it doesn't detect the usb stick as anything it can boot from
<Turion> It does offer "Network Startup" whatever that'll mean
<Turion> Yep, with the new iso on USB it still only offers the main disk when I hold left alt on startup
<Turion> Also, it says that it can't read the disk when I boot into MacOS
<Turion> Should I... burn a CD??!? It feels... wrong, but I think I might be able to do that.
<{^_^}> [nixpkgs] @Mic92 merged pull request #42816 → iwd: 0.2 -> 0.3 → https://git.io/fEWoX
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fwlGn
phdoerfler has joined #nixos
Turion has quit [Quit: Leaving.]
<sphalerit> Turion: it's normal that it says that
<sphalerit> Weird that it doesn't want to boot from it either though
<sphalerit> Same if you hold alt while powering on, and only plug it in after?
knupfer has quit [Ping timeout: 265 seconds]
<srhb> wait, does cp foo.iso /dev/bar really do the right thing
<srhb> TIL.
Turion has joined #nixos
<Dezgeg> reportedly not in all variants of 'cp'
<sphalerit> srhb: yep.
<sphalerit> Oh?
<srhb> I suppose it should make sense that dd and cp are essentially the same thing if you don't pass any of the more elaborate parameters to dd
<{^_^}> [nixpkgs] @Mic92 pushed to master « iwd: set statedir to /var/lib/iwd »: https://git.io/fwlGM
<sphalerit> But coreutils doed
<srhb> Never thought about it.
<Turion> What do I need to do in order to have the correct permissions to write cds? k3b claims that cdrecord should have different permissions than it has
<{^_^}> [nixpkgs] @gebner pushed to master « goldendict: 1.5.0.rc2 -> 2018-06-13 »: https://git.io/fwlGQ
liuyb has quit [Ping timeout: 245 seconds]
<Turion> Live dangerously. Run k3b as root.
<cocreature> is there an easy way to modify an existing derivation to add arguments and environment variables while still getting all the desktop files and similar stuff?
<cocreature> e.g. I want to run thunderbird with some environment variable set
<cocreature> I can make a new derivation and use makeWrapper but then I don’t have the desktop file and whatever other files thunderbird expects to be installed
coot has quit [Quit: coot]
<srhb> cocreature: Cheap hacks I can think of are things like overriding postInstall
<srhb> cocreature: (To provide the wrapper)
<srhb> cocreature: Cheaper yet, symlinking the contents of the unwrapped derivation in place.
<srhb> cocreature: Or maybe using something like buildEnv to combine a wrapper with the original.
<tilpner> ^ symlinkJoin
<Turion> Installing a new system is always when the funniest stuff happens. Episode 23: I started wpa_cli just for fun and now it hangs trying to connect to wpa_supplicant. I can't kill it because apparently Ctrl + Alt + F2 etc. doesn't give you a different terminal on a MacBook keyboard
<Turion> Ctrl + Z works though! Glorious times!
<cocreature> srhb: I was trying to avoid overriding postInstall since that’s a) somewhat fragile for packages that have a complex postInstall and b) forces me to build the package from source
<cocreature> tilpner: perfect, thanks!
<Turion> sphalerit: You said I definitely have to keep the disk structure of the MacBook?
<Turion> I have an "EFI System" on sda1 which is 200M big and an "Apple HFS" on sda2
coot has joined #nixos
<sphalerite> urien1[m]: you can throw out Apple HFS if you don't need OSX on it. EFI System is whaty ou need to keep
<sphalerite> oops wrong highlight
<sphalerite> Turion: ^
<sphalerite> Turion: for the ctrl-alt-f2 thing, try ctrl-alt-fn-f2
<sphalerite> also, make sure to actually kill wpa_cli after stopping it
<Turion> Ah! Thanks
<Turion> So I'd mount sda1 as /mnt/boot and sda2 as /mnt, although the latter reformatted as ext4 or whatever
<sphalerite> And you can toggle how the f-keys work using the fnmode parameter for the apple-hid kernel module
<Turion> Ok
<sphalerite> yes that should work
<Turion> Apparently I need b43 firmware for the wireless to work -.-
<sphalerite> I've heard people recommend keeping OSX around for firmware updates and stuff but I'm not sure any of those will still be happening for a 10-year-old machine
<sphalerite> oh no, the horrors of the BCM4331
<Turion> Yes indeed :/
<Turion> Do I have to make a custom installer?
<sphalerite> I'm pretty sure I've had nightmares about that chip.
<sphalerite> networking.enableB43Firmware should make it work though
<sphalerite> do you not have any way to connect through an ethernet cable?
<Turion> Yes, but it needs internet in order to download it
<Turion> I don't even have an ethernet router
<srhb> Just copy the path from another machine
<srhb> Oldskool
<srhb> Sneakers transfer :-)
<Turion> srhb: Haha good ol' two-legged network
<sphalerite> yeah it's a bit of a pain but you should be able to do it
<sphalerite> Or you could make a custom installer
<sphalerite> You don't need an ethernet router if you have an ethernet cable and an ethernet port on another machine that does have internet access though
<Turion> well, stupid question, /etc/nixos/configuration.nix is readonly for the installer...
<sphalerite> plug cable into both laptops, ip a add 10.123.123.1/24 dev ens25 on one and some non-colliding one on the other
<sphalerite> you can make it read-write
goibhniu has joined #nixos
<sphalerite> oh hm. I'm not sure whether it'll actually look for the firmware in the right place even after a switch thoguh
<sphalerite> Because it might use /run/booted-system/firmware and not /run/current-system/firmware.
<sphalerite> As an extra nasty-delightful hack I guess you could replace /run/booted-system
gurmble has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed 2 commits to master: https://git.io/fwlZp
<Turion> sphalerite: A LAN cable... ah yes, these things exist indeed. Somewhere.
<Turion> Though not at my place anymore :/
<Turion> And now I'm getting USB device descriptor -110 errors when I plug in my USB stick. It's a bit cursed.
<juhe> Dezgeg: is there a plan to make RPi 3 model B+ booting the sd-image-aarch64-linux.img?
<mpickering> When is it appropriate to use buitins.fetchgit rather than pkgs.fetchgit?
<sphalerite> Turion: I've often had that with faulty USB sticks iirc
grumble has quit [Ping timeout: 600 seconds]
<juhe> Dezgeg: will try it right away, then report back, thx!
<srhb> mpickering: When you have Nix 2 I guess?
<srhb> And when you're willing to pay the cost/reap the benefits... builtins.fetchgit can be exceptionally slow.
<srhb> But private repos are easy.
joehh has joined #nixos
<Turion> sphalerite: Hmmm, yes might just be the hardware :/ it's the only one I have right now though
<mpickering> Because there is no sha for builtins.fetchgit, isn't it mutable?
<sphalerite> mpickering: yes
<mpickering> So that seems a big difference to pkgs.fetchgit?
<sphalerite> mpickering: you *can* in fact pass a hash to it since nix 2.0, but yeah
<sphalerite> it's for use outside nixpkgs when the convenience of a non-deterministic git fetching tool outweighs the disadvantages of non-determinism
<Turion> sphalerite: No, the errors occur for other devices (e.g. my phone as well) :/ something wrong with the USB subsystem, I guess
<sphalerite> Turion: well that's a pain. Maybe that's why it didn't want to boot from the stick either.
<Turion> No, the USB system on my HP isn't working properly
coot has quit [Quit: coot]
<palo> I just read about the gentoo-github repo security issue from the 28th (eg : https://bit.ly/2KmNWJq) do we also have something inplace to not fully depend on the verfification algorithms of github ?
<palo> (maybe this was already discussed here)
<sphalerite> Turion: oh. So you have 2 only-partly-functioning laptops? Fun :D
<srhb> palo: What verifications algorithms are you referring to? afaik if you can commit to nixpkgs, you can add malware.
<Turion> sphalerite: Make it 3 actually. The third is the most broken. Doesn.t even get past POST.
<Turion> sphalerite: I don't know, I'm somehow hoping that the MacBook isn't broken and a tiny bit faster than the HP
graphene has quit [Remote host closed the connection]
<sphalerite> Turion: oh boy.
<Turion> Now how do I copy things into the /nix/store of the live cd? That's not supposed to even work, right?
<sphalerite> yes it is
<sphalerite> well
<sphalerite> you can't put them on the CD itself
taktoa has joined #nixos
<sphalerite> but you can put them in the store of the booted system
<Turion> mount -o remount,rw /nix/store doesn't work
graphene has joined #nixos
<sphalerite> you don't need to
<sphalerite> you can just write to it using nix commands as usual
<sphalerite> like nix copy, nix build, etc
<Turion> Ah. I'll pretend I knew before that nix copy existed.
<Turion> nix-copy? I only see nix-copy-closure which seems to need SSH..? I just manually copied /nix/*b43-firmware*, hoping for the best
<palo> srhb: I mean the one from github. (email password, maybe 2 factor or what they use).
<Turion> Ah sorry. Spaces matter.
<srhb> palo: I don't think we have any further verification systems.
<srhb> I also don't know what they could possibly be... post-commit phone-ring? :-)
<palo> I found it quite smart that they found a way to use github tools (issues, pull-requests, ...) make package maintainment simple, but have there own servers and own ways to verify users. This way they don't depend on the quality of github code.
<srhb> palo: Oh, I didn't realize this was caused by a bug in github verification.
<Turion> Why does nix copy need a default.nix?
<srhb> Turion: It does not.
<palo> srhb: well it happend before (and most likely will happen again) that if somebody hacks github and injects code in important repos. I was just currious if we have something in place to make that harder for our repositories.
<sphalerite> Turion: you just need to tell it what to copy
<palo> but I more or less have an answer now.
<srhb> palo: I don't think self-hosting necessarily makes this easier. If someone gains access to privileged credentials, you're boned either way...
<sphalerite> Turion: if you don't specify anything it tries to copy the result of building default.nix in the CWD
<Turion> I'm trying nix copy --from file:///myphonemounted/somehash-b43-firmware-5.100.138
<palo> srhb: this is true. but other strange things, like bad configured networks of github, or a shitty cloud hoster is also a good way to get unverified access.
<srhb> Turion: --from store thing-from-store
<palo> anyway. I was just currious.
<srhb> palo: I didn't mean to dissuade you from being security conscious. :D
<sphalerite> Turion: it needs to be a flat-file binary cache for nix copy --from file:///… to work
<srhb> palo: I'm sure there's room for improvement.
<srhb> just not sure which approaches are worth it :)
<Turion> srhb, sphalerite: it's just a directory where I've copied all the stuff from the store that I deemed necessary
<sphalerite> Turion: won't work that simply unfortunately :(
<srhb> Turion: You probably want to nix copy --to your-removable-store paths
<srhb> Turion: And then nix copy --from your-removable-store paths
<sphalerite> Turion: on the machine where you have it, run nix copy --to /myphonemounted /nix/store/somehash-b43-firmware-5.100.138
<Turion> Ah ok
<sphalerite> then on the machine where you want it, run nix copy --from /myphonemounted /nix/store/somehash-b43-firmware-5.100.138
newhoggy has joined #nixos
<palo> srhb:that is for sure, security is not building up wall without a cloue what could happen, it must be thought through and is not easy.
<sphalerite> or --all instead of the full path on the nix copy --from, since the store will only contain the relevant stuff
<srhb> palo: agreed. :)
<palo> srhb: thanks anyway, I will think about this topic a bit and might start another discussion in the future with some concrete ideas
<srhb> palo: Great to hear. Do you know about discourse.nixos.org ? It might be a good venue too.
<pstn> What's wrong with my nix 2.0 when it asks me to update the search cache on all searches?
<sphalerite> pstn: nothing wrong.
<srhb> pstn: Nothing, it always does.
<palo> srhb: no did not know about it. will check it out
rihards has quit [Ping timeout: 256 seconds]
<sphalerite> pstn: you don't need to update it every time, it's just informing you because the results *might* be stale if you've updated stuff since its generation
<srhb> pstn: It's just a warning that the results are always that of the cache.
andymandias has quit [Ping timeout: 276 seconds]
<srhb> (The entire point of the nix search command :))
<pstn> Ah, alright. Thanks.
xy2_ has joined #nixos
<Turion> sphalerite, srhb: In the "nix copy --to" part, I'm getting first "error: creating symlink from '/home/turion/mnt/nixos/nix/var/nix/gcroots/profiles' to '/home/turion/mnt/nixos/nix/var/nix/profiles': Operation not permitted" and when trying again "error: could not set permissions on '/home/turion/mnt/nixos/nix/var/nix/profiles/per-user' to 1777: Operation not permitted"
<sphalerite> aw pff I'm guessing it's a function-impaired filesystem
<sphalerite> a flat-file binary cache should still work though I think
<Turion> Yes, it's an android emulated mass storage device
<sphalerite> so the same command but with file:// before the path
<Turion> I'd be surprised if it works 100% normal
<sphalerite> then you need to copy out with file:// as well
<Turion> Yay!
<Turion> The --to part worked
<sphalerite> this would be a lot easier if you had a network connection between the two machines — then you could just do `nix copy --to ssh://root@10.123.123.2 <paths>` on the source machine
<sphalerite> but hey, we work with what we've got, right? :D
patrl has joined #nixos
<juhe> just curious, what's relation between "nix copy" and "nix-copy-closure"?
<sphalerite> juhe: nix copy is the fancy new tool which has nice progress and is part of the new UI
andymandias has joined #nixos
newhoggy has quit [Remote host closed the connection]
<sphalerite> juhe: in addition to fancyness, it also supports more types of stores — so you can copy to and from flat-file binary caches via the filesystem or the web as well as via SSH
<sphalerite> juhe: nix-copy-closure isn't entirely superseded yet as far as I know though, as nix copy does not have any facilities for copying .drvs as opposed to output paths.
<juhe> sphalerite: hm, nice (apart from some lacking functionality), that's probably what I've seen during installation some time (a week?) ago - liked it. Can it do something like "nixos-rebuild switch" too?
<sphalerite> juhe: for that you'd use nix build. It's not integrated into nixos-rebuild yet because it's not a stable UI and as such may change
<sphalerite> juhe: but you can get a fancy progress bar for system building by running `nix build -f '<nixpkgs/nixos>' --no-link system`
<juhe> sphalerite: ok, makes sense, thx!
<sphalerite> then nixos-rebuild should complete without any further building, unless you pass --upgrade
xy3_ has joined #nixos
xy2_ has quit [Ping timeout: 248 seconds]
<juhe> sphalerite: hm, I'll try it with next update.
<sphalerite> :)
<Turion> srhb, sphalerite: I don't understand how I have to use nix copy. "nix copy --from file:///path/to/my/mounted/phone/ nowwhatdoIwritehere"
<Turion> Am I supposed to remember the hash?
<sphalerite> Turion: in this case you can just use --all I think
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #42834 → security.sudo.extraRules: documentation fix → https://git.io/fwlcN
<Turion> sphalerite: Yay, that does something! Although it complains about missing signatures and skips the two things
<sphalerite> Turion: add --no-require-sigs
<Turion> Right :)
<Turion> Now the fun part. nixos-rebuild switch without internet.
klntsky has quit [Ping timeout: 250 seconds]
<Turion> Hang on, I can use my phone with USB tethering...
klntsky has joined #nixos
<Turion> Either way, thanks a lot srhb and sphalerite for teaching me nix copy and these things :D
taktoa has quit [Remote host closed the connection]
<sphalerite> :)
<Turion> Ok, back to actually installing nixos ;)
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fwlCG
newhoggy has joined #nixos
fendor has joined #nixos
gurmble is now known as grumble
<juhe> it's pity that systemd-importd didn't get to NixOS. I'm migrating some systemd-nspawnd containers to nixos and systemd-importd would be very handy for this task
newhoggy has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @pSub pushed to master « fswatch: 1.11.3 -> 1.12.0 »: https://git.io/fwlC1
b has joined #nixos
<sphalerite> juhe: hm odd, I wonder why this is
<juhe> sphalerite: maybe because of this, which sort of makes sense: https://github.com/NixOS/nixpkgs/pull/21599
<sphalerite> ah, hm
<juhe> I think a separate package would resolve it
<sphalerite> I'd be surprised if systemd could handle being spread across different prefixes
<sphalerite> although this assumption is moslty based on received systemd hate :p
<juhe> hm, then maybe a different full blown systemd package :-)... Yes systemd is beast...
stepcut_ has quit [Remote host closed the connection]
<juhe> anyways, systemd-importd can be workaround so it is not that big problem
<sphalerite> you could reintroduce support for it using an overlay, but that would mean rebuilding almost everything
stepcut has joined #nixos
<juhe> right... decision, though, is to live without systemd-importd :-p
<sphalerite> works :D
<juhe> :)
sir_guy_carleton has joined #nixos
tzemanovic has joined #nixos
stepcut_ has joined #nixos
xy3_ has quit [Quit: WeeChat 2.0]
xy2_ has joined #nixos
stepcut has quit [Ping timeout: 240 seconds]
newhoggy has joined #nixos
iyzsong has quit [Ping timeout: 255 seconds]
juhe has quit [Ping timeout: 256 seconds]
juhe has joined #nixos
iyzsong has joined #nixos
newhoggy has quit [Ping timeout: 276 seconds]
<Turion> nixos-generate-config didn't create a fileSystems entry... is that expected?
<Turion> I accidentally didn't mount my new system under /mnt but /root/mnt. Is that going to be problematic?
<tilpner> Turion - You can set the root with --root
<tilpner> Turion - nixos-generate-config --root /root/mnt
<Turion> Yes, I did that
<Turion> I'm just wondering whether the hardware detection didn't find my filesystems because of that
<tilpner> And there are mounted things below /root/mnt, which did not result in an entry?
<tilpner> That's not good
<Turion> It just recognised my swap
juhe has quit [Remote host closed the connection]
<Turion> Ah. I did "nixos-generate-config --root mnt", being in the /root directory. Apparently hardware detection doesn't work with relative paths, or with paths other than /mnt. I remounted everything under /mnt and generated a new config, that worked
stepcut_ has quit [Remote host closed the connection]
stepcut has joined #nixos
juhe has joined #nixos
<sphalerite> Turion: yeah it expects you to put the destination system entirely in /mnt
<sphalerite> Turion: or whatever root you specify
stepcut has quit [Ping timeout: 276 seconds]
<cocreature> is there a way to mask a systemd user service (pulseaudio in this case) for a specific user?
patrl has quit [Ping timeout: 276 seconds]
<sphalerite> cocreature: systemctl --user mask pulseaudio.service ?
<sphalerite> I don't think there's a way to do it in nixos config
<cocreature> sphalerite: hm that doesn’t seem to work since gdm is not a regular user
<sphalerite> oh nice >_>
<clever> cocreature: `sudo -u gdm /bin/sh` should force a shell
<cocreature> clever: ah let me try that!
<cocreature> Failed to connect to bus: no such file or directory :(
<clever> cocreature: it may only work when at the gdm login screen
<clever> i suspect the systemd user service for systemd itself has to be running?
<cocreature> yeah probably something like that
<sphalerite> if you run dm-tool switch-user (it's from lightdm but works for other DMs) you should get a new gdm login screen and active gdm user session
<cocreature> this probably isn’t going to work anyway, since $HOME for gdm seems to be /run/gdm
<cocreature> I should probably try to figure out what the equivalent of putting a file at /var/lib/gdm/.config/pulse/default.pa is on nixos
<Turion> I have a USB soundcard that used to work. Currently, when I connect it, dmesg will eventually stop complaining and show me that the card is recognised. But alsamixer doesn't list the card anymore. (It did just a few days ago)
Lears has quit [Remote host closed the connection]
<Turion> Ok, now even dmesg doesn't tell me that the card exists
silver has joined #nixos
<clever> Turion: does lsusb say it exists?
<Turion> clever: No, not anymore :(
<Turion> Ok, I think this computer is physically falling apart
<Turion> As in, the USB must be breaking away from the mainboard
<ben> can `nixos-rebuild` put it back together
<Turion> ben: You meant me?
<ben> meh, not particularly
Lears has joined #nixos
<Turion> sphalerite: Got nixos running on that ol' macbook! Thanks for your help!
ajs124 has joined #nixos
<Turion> Dang, I did want it to be encrypted...
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
klntsky has quit [Ping timeout: 250 seconds]
<Turion> I set "services.xserver.displayManager.sddm.enable = true;" and "services.xserver.desktopManager.plasma5.enable = true;", and when running nixos-rebuild I get "attribute 'display-manager' missing"
<clever> Turion: you also need services.xserver.enable = true;
klntsky has joined #nixos
<Turion> *ahem* oops. Thanks, clever!
ajs124 has left #nixos [#nixos]
<Turion> Does any place sell NixOS stickers?
<Turion> I really need to cover up that apple logo before I go outdoors with this thing
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
<qyliss> I have NixOS stickers
<qyliss> Trying to remember where I got them
<qyliss> Conference or something?
tzemanovic has quit [Remote host closed the connection]
<qyliss> Oh, somebody brought me them from CCC
<qyliss> They exist, anyway
<Turion> qyliss: Do you have a huge batch or just for your personal use?
tzemanovic has joined #nixos
<qyliss> I have like 2
<qyliss> But whoever was giving them out there must have had a bunch
tzemanovic has quit [Remote host closed the connection]
<Turion> Ok ;) seems like I need to make friends with your friends
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<Turion> How legal is it if I use the nixos logo and order stickers from e.g. stickermule.com, I wonder
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
<infinisil> Hey, how could I check a libfoo.a file to see if there are any errors with it?
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]
blankhart has quit [Ping timeout: 248 seconds]
<infinisil> It's a random libfoo.a downloaded from the internet, and I'm wondering if it would be usable on NixOS
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
goibhniu has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<infinisil> Ah, I guess that's a static library so it would work on NixOS anyways, I think
bennofs has joined #nixos
<LnL> Turion: don't see why that would be a problem https://github.com/NixOS/nixos-artwork
iyzsong has quit [Quit: ZNC 1.7.0 - https://znc.in]
iyzsong has joined #nixos
<Turion> LnL: Yes, CC-BY license! Should work. Will do that for the next meetup or conference
tzemanovic has joined #nixos
leat has quit [Ping timeout: 256 seconds]
tzemanovic has quit [Ping timeout: 256 seconds]
<sphalerit> Turion: on my last macbook I crossed the apple out with electrical tape and put a tux sticker on top :D
<sphalerit> That was before I used nixos
<sphalerit> Now I have nixos stickers on my laptops
leat has joined #nixos
<Turion> sphalerit: Yes, I'll do something like that, as soon as I have proper stickers
<Turion> sphalerit: The EFI stuff didn't quite work, though... I have canTouchEfiVariables = true, but still I need to manually select the disk on startup
leat has quit [Remote host closed the connection]
leat has joined #nixos
<Turion> My automatic hardware configuration detected the swap device by uuid. Now I want encrypted swap, which means uuid won't work anymore. Do I just delete the lines from hardware-configuration.nix? But they might be added again by some automatic tool?
<sphalerite> Turion: uuid should still work, it'll just be a new one
<sphalerite> you can rerun nixos-generate-config to update hardware-configuration.nix
<Turion> I thought it's a new one on every boot?
<sphalerite> it won't touch configuration.nix if it already exists
<sphalerite> oh right that depends on how you set it up
<sphalerite> if you have a persistent key (which you need if you want to use the swap for suspend as well) it doesn't generate a new one every time
<sphalerite> but you can also generate it with a random key each time in which case yeah you'll need to use /dev/mapper/cryptswap or whatever you call it
<Turion> I don't need suspend. And I don't want to enter a password every time on boot, so I guess I need random encryption.
<Turion> I'll just say device = "/dev/sda2";, is there any downside with that?
<Turion> (Assuming that I'll never reconnect disks anyways)
<Turion> Any idea on the EFI issue, though?
bluesfreak72 has joined #nixos
bluesfreak72 has quit [Client Quit]
tzemanovic has joined #nixos
bennofs has quit [Quit: WeeChat 2.0]
andymandias has quit [Ping timeout: 248 seconds]
sbdchd has joined #nixos
tzemanovic has quit [Ping timeout: 265 seconds]
Turion has quit [Ping timeout: 265 seconds]
andymandias has joined #nixos
<sphalerite> Turion: using device = "/dev/sda2"; will make the swap unencrypted.
<typetetris> Hi, I use nixos-18.03 und tried to install chromium with `chromium.enableWideWine = true` in my ~/.config/nixpkgs/config.nix, but it fails with `tar: ./opt/google/chrome/libwidevinecdmadapter.so: Not found in archive` is it a known issue ?
<sphalerite> Turion: for the EFI issue, could you paste the output of `efibootmgr -v`?
alexteves has joined #nixos
joehh has quit [Ping timeout: 248 seconds]
liuyb has joined #nixos
moet has joined #nixos
Turion has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to master « checkstyle: 8.10.1 -> 8.11 »: https://git.io/fwlBD
<{^_^}> [nixpkgs] @ookhoi opened pull request #42837 → anonscm.debian.org_gcc6.patch-not-found - replace anonscm.debian.org … → https://git.io/fwlBy
joehh has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #42838 → [WIP] openvswitch: expose required kernel config → https://git.io/fwlBh
numerobis has quit [Ping timeout: 256 seconds]
aarvar has joined #nixos
joehh has quit [Ping timeout: 256 seconds]
iyzsong has quit [Quit: ZNC 1.7.0 - https://znc.in]
<cocreature> can I get nixos to create a file somewhere in /run/gdm on every boot? /run/gdm appears to be in a tmpfs so whatever I create there doesn’t persist
<symphorien> maybe with systemd-tmpfiles ?
<cocreature> symphorien: ah that looks like it might work! now I only need to figure out how to use that :)
<Turion> sphalerite: Why does device = "dev/sda2" imply unencrypted swap? What do I do otherwise?
orivej has quit [Ping timeout: 264 seconds]
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
<GiGa> Hello
<{^_^}> [nixpkgs] @ldesgoui opened pull request #42839 → qutebrowser: shorten launch time marginally if an instance is already running → https://git.io/fwl0s
turion_macbook has joined #nixos
alexteves has quit [Ping timeout: 256 seconds]
<turion_macbook> sphalerite: https://pastebin.com/HuqvCQs9
<turion_macbook> sphalerit
<turion_macbook> (Hard to distinguish you from your evil twin ;) )
xy2_ has quit [Quit: WeeChat 2.0]
<Myrl-saki> samueldr: I got pmOS working on my device. I'll report back. ::
<Myrl-saki> samueldr: :)
<Myrl-saki> OTOH, I'm starting to think NixOS + low memory would be a disaster.
<Myrl-saki> samueldr: Any thoughts regarding that?
<sphalerit> turion_macbook: I get highlights for both :)
<sphalerit> Yeah it looks like it didn't set up the boot entry
<turion_macbook> When I did nixos-rebuild switch for the first time, I forgot to make efi variables writable, I did that in a later generation
<turion_macbook> Could that be the problem?
<turion_macbook> nixos-rebuild never complained
<turion_macbook> sphalerit: Can I somehow "force" it to rewrite the efi stuff?
<{^_^}> [nixpkgs] @timokau opened pull request #42840 → pythonPackages.backports_shutil_get_terminal_size: 1.0 -> 2018-06-30 → https://git.io/fwl0H
<cocreature> symphorien: thanks again, I got it working! now my bluetooth headset is finally happy with being an a2dp sink
phdoerfler has quit [Quit: Leaving.]
<symphorien> :)
<cocreature> that reminds me, I think Baughn you had a problem with a2dp yesterday? have you got it working since? if not, I might have some ideas now that I finally managed to get it working for me
hxrts has quit [Remote host closed the connection]
teej has joined #nixos
alex``` has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @gebner opened pull request #42841 → HEIF support → https://git.io/fwlE3
humanoyd has joined #nixos
obadz has quit [Ping timeout: 265 seconds]
Lisanna has joined #nixos
obadz has joined #nixos
liuyb has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Pneumaticat opened pull request #42842 → barrier: fix compilation on Qt 5.11 → https://git.io/fwlEa
alexteves has joined #nixos
<Lisanna> can declarative hydra project/jobset configs be specified in the extraConfig option of the nixos module?
endformationage has joined #nixos
<jluttine> any ideas how should i modify my packaging so that the missing libraries would be found: https://hastebin.com/xiyebehaxo.go
Izorkin_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Lisanna> it bugs me a little that the "declarative hydra" solution still requires some manual setup
<jluttine> libgfortran.so.4 and libgomp.so.1 not found :/
<Lisanna> jluttine are you building from source or trying to repackage an existing ELF?
<jluttine> Lisanna: building from source
<Lisanna> jluttine builds done with stdend are supposed to add lib dependencies to the RPATH of produced elfs
<Lisanna> stdenv*
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<Lisanna> use the patchelf tool to help you debug what might have gone wrong?
asuryawanshi has quit [Read error: Connection reset by peer]
alex`` has joined #nixos
<Lisanna> so it should have added the paths to the libgomp and libgfortran deps to the rpath... if they weren't provided as buildinputs, the linking step should have failed
<Lisanna> ...just a guess, I'm not an expert on stdenv, but did you maybe specify them as nativeBuildInputs instead of buildInputs?
<mpickering> is fetchFromGithub allowed in restricted evaluation mode?
rardiol1 has joined #nixos
<mpickering> is it just builtins.fetchgit which is not allowed?
<Lisanna> mpickering well, builtins.fetchTarball isn't allowed either
teej has quit []
<infinisil> mpickering: All networking is disallowed unless you add the url to allowed-uris
<infinisil> Wait, maybe not all, not sure about fixed output ones
<mpickering> NUR does evaluation in restricted eval mode
<mpickering> so this means you have to put all your nix files in your nur-packages repo
<mpickering> or use submodules
Izorkin has joined #nixos
<samueldr> Myrl-saki: don't know! I think that low-memory is what you make of it
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<samueldr> though, low storage space is more of a factor
<samueldr> for that, always building the system using cross-compilation and flashing a "one-genration only" image may alleviate issues
aszlig has joined #nixos
<jluttine> Lisanna: needed to add gfortran.cc.lib to buildInputs instead of just plain gfortran :S
tomberek has joined #nixos
fendor has quit [Quit: Leaving]
<tomberek> I am using a private hydra for CI. I thought I was signing packages because I have added the "store-uri=local?secret-key=/path/to/key" into services.hydra.extraConfig, but it doesn't seem to be taking effect. When I manually run nix sign-paths --all, everything works. Is there another setting or way to inspect/debug this issue?
<Baughn> cocreature: It's working for the moment. We'll see what happens when I reboot.
<tomberek> for example, does the secret-key-file need to be in nix.conf?
<Lisanna> tomberek binary_cache_secret_key_file = /path/to/key
<Lisanna> you have to set both of those iirc
<tomberek> Lisanna: hydra provides warnings about binary_cache_secret_key_file as deprecated and ignored, and recommends the store_uri=...?secret-key instead
elasticdog has quit [Ping timeout: 264 seconds]
elasticdog has joined #nixos
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<tomberek> Lisanna: ah! thanks!
Jason_Grossman has joined #nixos
<Jason_Grossman> Hi hi. I'm finding neither stable nor unstable will build for me at the moment, because I have windowManager.stumpwm.enable = true;
<Jason_Grossman> This is a pity!
<Jason_Grossman> Any advice?
humanoyd has quit [Quit: WeeChat 2.1]
<Jason_Grossman> I have the latest stumpwm installed manually (using nix-env -iA), but NixOS is trying to install an older version of stuwmpw because of that .enable line. And the older version won't build.
17WABN9L8 has joined #nixos
7GHAA8L61 has joined #nixos
<srid> my nixos 17.09 install isnot really using cache, for installing things like tmux
<srid> was the cache removed for older nixos versions?
7GHAA8L61 has quit [Remote host closed the connection]
17WABN9L8 is now known as tadni
<tilpner> srid - It's still in the cache here
asuryawanshi has joined #nixos
<tilpner> nix-store -r /nix/store/pfmagd7hxbnabyv73bgq6c9fbn0bbg5v-tmux-2.6
<{^_^}> [nixpkgs] @aszlig pushed to master « openblas: 0.3.0 -> 0.3.1 »: https://git.io/fwlzM
Drakonis has joined #nixos
<Lisanna> Jason_Grossman might need to open an issue at https://github.com/NixOS/nixpkgs/issues
<Jason_Grossman> Lisanna: Thank you.
<Turion> Jason_Grossman: don't you have the same channel globally and for your user?
<Jason_Grossman> Turion: No, but I'm not sure what difference that makes in this case. The problem is that stumpwm.enable is causing NixOS to pick a version of stumpwm that won't build.
aristid has quit [Ping timeout: 260 seconds]
aristid has joined #nixos
<Turion> Jason_Grossman: That would make a difference. Everything in /etc/nixos/configuration.nix will build with your global channel, everything you install as user with nix-env will take your user channel
<Jason_Grossman> Yes. I'm not sure how that helps - sorry if I'm misunderstanding your point.
<Turion> So if the build fails in an older channel, it will fail on Hydra, and not finding the binary, your nix will try to build it from sources, which probably fails for the same reason like it did on Hydra. Update the root channel to whatever channel you can install it successfully as user, and then hopefully it should work
<Turion> Which channels do you have, respectively?
<Jason_Grossman> I've tried both unstable and stable, globally.
GiGa has quit [Quit: Leaving]
mightybyte has quit [Quit: leaving]
<Jason_Grossman> "if the build fails in an older channel" - note that the problem is not with a package.
<Jason_Grossman> The problem is with something pulled in by a .enable option.
<Jason_Grossman> nixos-rebuild doesn't try to do anything with sources (for this particular problem).
<samueldr> Jason_Grossman: it may help if we can see the full error message, and as it's issues with channels, the output of `nix-info`
<Jason_Grossman> samueldr: Good. I'll generate those.
<samueldr> (use gist or any pastebin for more than one line output)
<Jason_Grossman> Thanks.
<Jason_Grossman> I see there is already an issue for this, and it's marked as resolved but doesn't seem to be, so I'm updating my channels and trying again.
<Jason_Grossman> I've just pulled in a lot of recent upgrades, so it'll be some time before I report back. Later!
<{^_^}> [nixpkgs] @edolstra pushed to master « boost: Disable Python / Numpy support by default »: https://git.io/fwlgl
moet has quit [Ping timeout: 245 seconds]
hxrts has joined #nixos
<{^_^}> [nixpkgs] @fragamus opened pull request #42843 → add hmetis package → https://git.io/fwlgV
<{^_^}> [nixpkgs] @peti pushed to master « ghc: add 8.6.1-alpha1 pre-release »: https://git.io/fwlg6
<Turion> Jason_Grossman I thought you said something failed to build? Well, what happens with .enable = true;, amongst many other things, is building a derivation. This also happens when installing a package.
jb55 has joined #nixos
<Jason_Grossman> Turion: Right, but that derivation doesn't give me any control over which version of the package is built, and it builds the wrong version even in stable.
<samueldr> Turion: the error message may actually have been "is marked as broken, refusing to evaluate."
<samueldr> if it was related to the issue they linked
<Jason_Grossman> samueldr: Yes.
<Turion> Yes right
<samueldr> ah good, then updating should fix this
<samueldr> as long as the channel you subscribe to has that fix
<Jason_Grossman> I thought I'd tried that, but I'm double checking. :-)
Izorkin has joined #nixos
<samueldr> 18.03 (current stable) doesn't have the fix
<samueldr> unstable has the fix
<mpickering> How is nix cat-store different to cat?
<samueldr> a quick hacky fix, Jason_Grossman, would be to download the raw fixed file, and add it to `imports = ...;` in your configuration.nix
bennofs has joined #nixos
<samueldr> I would suggest you add a comment describing why it's there and starting 18.09 or if you use unstable to remove it :)
<Dezgeg> a guess: cat-store works for directories
<samueldr> oh, and there's another thing you'll need (give me a minute)
<Jason_Grossman> samueldr: Ah. Thanks. That's the sort of advice I was expecting (I just didn't know the syntax), and I'll do that if updating doesn't work. This is strange, because I thought I'd updated several times since the fix was merged, but we'll see.
<Jason_Grossman> samueldr: Thanks, but you might want to not bother looking it up until I've finished double checking that I still have the problem.
<samueldr> with this: disabledModules = [ "services/x11/window-managers/stumpwm.nix" ];
<Jason_Grossman> samueldr: Great. Thanks. I've made a note of that.
<samueldr> eh! I already know the solution, so anybody else having the problem on 18.03 now maybe can find it in the logs :)
<LnL> mpickering: cat-store works for all store types, not just locally
<gchristensen> samueldr: oh cool I didn't know that worked
Berra has joined #nixos
<Jason_Grossman> :-)
<mpickering> Thank you LnL
<Jason_Grossman> samueldr++
<{^_^}> samueldr's karma got increased to 4
<samueldr> gchristensen: not sure yet it works, but https://nixos.org/nixos/manual/#sec-replace-modules
Drakonis has quit [Ping timeout: 256 seconds]
<samueldr> and earlier this week there was talk for a similar issue
<Berra> "path '/usr/bin/bash' is not in the Nix store" - this makes no sense to me - culprate: https://github.com/domenkozar/hie-nix/blob/master/fetch-nixpkgs.nix
<samueldr> (using a new not-yet-in-nixpkgs revision of the znc module)
patrl has joined #nixos
orivej has joined #nixos
Tobba has quit [Read error: Connection reset by peer]
Tobba has joined #nixos
init_6 has quit [Ping timeout: 264 seconds]
<Lisanna> wow, the nixpkgs releaseTools look really awesome
orivej has quit [Ping timeout: 256 seconds]
zearen has joined #nixos
<Lisanna> the rpm builds are done in VMs of the particular distro in question!
<gchristensen> Nix and Nixpkgs are pretty cool :)
<Berra> I tried using nix add-to-store /usr/bin/bash - doesn't help - I have no clue why this is a problem to begin with.
hxrts__ has joined #nixos
<Berra> It's a bit annoying this can happen under nix
<{^_^}> [nixpkgs] @aszlig pushed 2 commits to master: https://git.io/fwBhO
<Lisanna> although it's a little weird that the release.nix build logic for a package and the nixpkgs build logic for a package are completely separate... makes me feel a bit uneasy
hxrts has quit [Ping timeout: 245 seconds]
<LnL> Berra: nix/fetchurl doesn't work if your nix isn't installed in the store
<Berra> LnL so nix-env -i nix ?
<LnL> maybe, depends on your install
<Berra> LnL I'm on an Arch machine and have nix installed
<samueldr> Berra: which method%
<Berra> samueldr: I installed it using the arch user repository - so I don't know the details.
<samueldr> (as AFAIR there were multiple AUR packages, there is the official curl method, and the new fpm package)
<Berra> samueldr: What should I look for when reading the tarball?
<LnL> can you run nix-shell -p nix-info --run nix-info
<Lisanna> or is the ideal way to do this to move all of a package's build logic into its release.nix, then import release.nix from the nixpkgs expression for it?
<Berra> LnL system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(root): "nixpkgs-18.09pre144771.8e78a9a68fe", channels(arch): "nixpkgs-18.09pre144905.060a98e9f4a", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<Berra>
<samueldr> (I just looked in the AUR, there are no more multiple versions, only nix and nix-git, fwiw)
tomberek has quit [Quit: Page closed]
<Berra> Ok ok - so I'm now suspecting that nix (I did not know this is something nix did) picked up some .nix in the dir I stood in and thus effected the install
<Berra> I was anyhow now able to install hies - It might also have been solved by intalling nix in the store.
<Berra> Thanks for the help samueldr LnL
patrl has quit [Ping timeout: 276 seconds]
<LnL> Berra: ok so it also installed the daemon, in that case nix-env -i nix only changes the client. I think that will fix this problem but might introduce issues down the line if you don't keep those versions in sync
<Berra> LnL: Hmm - I will avoid that problem when I switch to NixOS I guess - but my coworkers will be using nix on MacOS
<Berra> LnL So they will have that problem
<{^_^}> [nixpkgs] @aszlig pushed to master « libtorrent-rasterbar: Use Boost supporting Python »: https://git.io/fwwNw
<Unode> On a CentOS 6.5 with nix in a custom location I'm having issues re-compiling openjdk. It has been successfully compiled in the past so other paths already exist in the store. Is there any way to 'force' nix to use one of those as dependency instead of trying to rebuild it?
<LnL> not if you use nixos or the installer from nixos.org
<Unode> other paths = the exact same version of openjdk already exists in the store but different hash.
<LnL> since those don't install into /usr/local while the AUR package does
<Berra> LnL: Ok - they will install using the nixos.org installer and thus avoid that problem, good to know. Thanks
<{^_^}> [nixpkgs] @nlewo merged pull request #42706 → gnucash: 3.1-1 -> 3.2 → https://git.io/f4Fku
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fwrNp
<LnL> yeah, it's a bit of a weird edgecase if nix is installed in a custom location
<cocreature> Hey, I’m trying to package lollypop-portal but when I try to run it I get “No module named 'gi'”. I stole from the lollypop the pythonPath = [ pygobject3 ] line thinking that this would help but evidently it doesn’t. Here’s is my derivation https://gist.github.com/cocreature/a38f18a30879f281131e9574c7709999
<cocreature> I never had to deal with python and nix before so I’m probably doing something stupid here
<{^_^}> [nixpkgs] @nlewo merged pull request #42692 → lynis: 2.6.4 -> 2.6.5 → https://git.io/f4dxI
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fwKJG
sbdchd has quit [Remote host closed the connection]
<LnL> domenkozar: ^ fyi, in case you didn't know about that
<domenkozar> LnL: which discussion?
<LnL> the fetchnixpkgs thing doesn't work if nix itself isn't installed into the store
<domenkozar> yeah it doesn't work for distro installed Nix
<domenkozar> since 2.0
<{^_^}> [nixpkgs] @dtzWill opened pull request #42844 → curl: fix configure flag for random device. → https://git.io/fwKZS
<LnL> because <nix/fetchurl.nix> will return paths outside of the sore builtins.storePath fails
john2 has joined #nixos
<domenkozar> yeah Nix 2.0 fetchTarball ftw
<infinisil> cocreature: Probably buildPythonApplication handles such stuff better
andymandias has quit [Ping timeout: 248 seconds]
<cocreature> infinisil: does that work for weirdly packages stuff that is built using meson?
hxrts__ has quit [Quit: Leaving]
hxrts has joined #nixos
<infinisil> cocreature: Does it just uses python in a build step?
noam has quit [Quit: Leaving]
<cocreature> no, the programs is written in python
<cocreature> but the build process is done using meson instead of some standard python thingy
Neo-- has quit [Ping timeout: 256 seconds]
matrium has joined #nixos
<infinisil> I see
hxrts has quit [Client Quit]
<cocreature> as I mentioned I stole most of this from the lollypop derivation which should have a similar build process
<infinisil> There's different python build options, hold on
<cocreature> except that works while mine doesn’t :)
hxrts has joined #nixos
<cocreature> I also tried propagatedBuildInputs = [pygobject3] but that didn’t help either
tadni has quit [Remote host closed the connection]
hxrts has quit [Client Quit]
<infinisil> cocreature: Using buildPythonApplication with format = "other" should work
<cocreature> infinisil: alright, thanks! I’ll try that
<infinisil> And then propagatedBuildInputs should be used
andymandias has joined #nixos
Sonarpulse has joined #nixos
<infinisil> Oh and maybe you need to package this gi package
<cocreature> I thought that’s pygobject3?
<infinisil> It is?
<cocreature> at least that includes things in site-packages/gci
<cocreature> *gi
tzemanovic has joined #nixos
* infinisil doesn't have a lot of experience with python either
matrium has quit [Ping timeout: 260 seconds]
<cocreature> buildPythonApplication doesn’t seem to help, I’m still getting the same error with https://gist.github.com/257859d19e985c6e19d6879811b2214d
tzemanovic has quit [Ping timeout: 256 seconds]
<infinisil> cocreature: It might be this one instead: https://pypi.org/project/pgi/
<slabity[m]> Is there a builtin/lib function that lets me check if a file exists?
<samueldr> builtins.pathExists
Sonarpulse has quit [Ping timeout: 245 seconds]
john2 has quit [Ping timeout: 245 seconds]
<slabity[m]> Awesome, thanks
<cocreature> infinisil: I would be rather surprised by this given that lollypop which is written by the same author seems to use pygobject3
jwynn6 has quit [Ping timeout: 264 seconds]
<infinisil> cocreature: Hmm.. https://github.com/pygobject/pgi
booglewoogle has joined #nixos
igo95862 has joined #nixos
knupfer has joined #nixos
numerobis has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #42844 → curl: fix configure flag for random device. → https://git.io/fwKZS
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fwFTs
goibhniu has quit [Ping timeout: 240 seconds]
<booglewoogle> hey. i'm trying to build something -- https://github.com/FasterMelee/Ishiiruka -- with cmake. it fails with this https://pastebin.com/UCDNhhMw telling me It can't find ALSA or OpenAL. i've got those in the store though. (packages AlsaLib and mesa - from what I understand, that's those). how can I access them for the build procedure?
moet has joined #nixos
john2 has joined #nixos
<alphor> what's your nix expression?
<booglewoogle> umm, I haven't made one, wouldn't really know how to go about that yet either
<cocreature> infinisil: it looks like "postFixup = ''wrapPythonProgramsIn $out/libexec "$out $pythonPath"''" did the trick!
freeman42x]NixOS has joined #nixos
<cocreature> infinisil: thanks for your help!
<infinisil> Ah, yeah i think it only wraps stuff in $out/bin by default
<cocreature> it did claim that it wrapped the stuff in libexec, it just doesn’t seem to have added the pythonPath
<cocreature> no idea why
<alphor> booglewoogle: I'm not at all familiar with cmake but nix doesn't look in your $PATH to resolve dependencies. You need to explicitly say what your dependencies are in a nix expression, and nix will provide an environment where they're there when building.
jwynn6 has joined #nixos
john2 has quit [Ping timeout: 256 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
<booglewoogle> okay then, i'll try doing that. thanks!
CcxWrk has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
stepcut has joined #nixos
xy2_ has joined #nixos
roconnor has joined #nixos
stepcut has quit [Remote host closed the connection]
emmanuelrosa has joined #nixos
<Lisanna> OK, I think I understand why having the release.nix build logic be separate from the channel / nixpkgs build logic is useful. The release.nix build logic focuses on the build needs of the package maintainers, which will be different from the build needs of the users
<Lisanna> channel build logic will also usually be behind the release.nix build logic
<Lisanna> and to still get all the other benefits of the channel, in your release.nix file you can still depend on the channel, but with that package overridden
<{^_^}> [nixpkgs] @matthewbauer merged pull request #42837 → anonscm.debian.org_gcc6.patch-not-found - replace anonscm.debian.org … → https://git.io/fwlBy
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/frqM2
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
orivej has joined #nixos
mariatsji has quit [Remote host closed the connection]
sbdchd has joined #nixos
kalbasit_ has joined #nixos
emmanuelrosa has left #nixos [#nixos]
<kalbasit_> Hi there, I'm Nix/NixOS noob (migrating from Arch for the last two days). I need to install Bazel 0.14.1 but the stable channel comes with 0.10 and the unstable channel provides 0.13. What's the Nix-way of installing the custom version if Bazel in my case?
<samueldr> you could make an overlay which either overrides or uses a custom copy of the bazel instructions, but for 0.14.1
<kalbasit_> re overriding: I tried packageOverrides = with pkgs; { bazel = bazel.override { version = "0.14.1"; }; }
<kalbasit_> but got called with unexpected argument 'version'
<Lisanna> kalbasit_ you're on the right track, use overrideAttrs and you have to override the src
<Lisanna> src = pkgs.fetchgit {...} or whatever
<samueldr> .overrides overrides the parameters given to the derivation, if I understand correctly
<kalbasit_> nice, let me give this a try
<samueldr> (just now took time to learn the difference about all override types)
<samueldr> kalbasit_: when giving a new src, don't take the older hash as it will use the existing file with that hash even though the URL changes
<Lisanna> kalbasit_ in your case it would be fetchurl { url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-0.14.1-dist.zip"; sha256 = "<generate a new sha256>"; };
<samueldr> (I generally change a couple of the digits to zeroes, or !tofu)
<samueldr> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<Lisanna> to get the new sha256 use nix-prefetch-url --unpack https://github.com/bazelbuild/bazel/releases/download/0.14.1/bazel-0.14.1-dist.zip
<samueldr> FTR, haven't finished building locally, but this seems to work: https://gist.github.com/14e619d2ad4028f7a3c9cd5db8410779
<kalbasit_> oh nice, I did not know about nix-prefetch-url (even though I have it installed lol)
coot has joined #nixos
<Lisanna> kalbasit_ it's a standard nix tool - there's nix-prefetch-git as well, but it's a separate package not installd by default
<kalbasit_> @samueldr awesome!! let me test that
<samueldr> takes a while since it runs tests
<samueldr> but tested software is better than untested!
<samueldr> it's a bit weird how the count of ran test / total tests, both ran and total are increasing
<kalbasit_> nix-env -i looks promising so far!
* infinisil and many others don't use nix-env at all because they find it sucks so much
<samueldr> FTR I'm using nix-build since I don't intend to install it
<samueldr> oh, it wasn't tests, it's the build that's taking time
<samueldr> it probably will fail
<samueldr> (just failed here)
<kalbasit_> I'm loving Nix so far. I came to it because I was just sick and tired of pyenv rbenv asdf etc.. Vim/deoplete never works well with those shims and so far I'm wondering why I haven't came across it yet
<kalbasit_> it's going well so far on my end
<kalbasit_> let's see
<Lisanna> kalbasit_ really awesome to hear :)
<samueldr> it built fine, it's something after the build
* samueldr doesn't know much about bazel
<kalbasit_> I have ton to learn though but It'll be worth it
<samueldr> looks like it's either part of a test or install, it tried to download an external dependency
<samueldr> if you don't have sandboxing turned on it may build fully
arbxs has quit [Ping timeout: 240 seconds]
<kalbasit_> sandoxing for builds is not the default?
<Lisanna> kalbasit_ nope
<Lisanna> (but it probably should be!!!!!)
* samueldr agrees
* infinisil agrees
<Lisanna> oh man, the bazel expression is quite a nightmare
<booglewoogle> hey, now when nix-build
<booglewoogle> whoops
<samueldr> trying this right now
<samueldr> ah, I won't even burn the CPU cycles
<samueldr> ofborg has the same failure than on 0.14.1
<infinisil> #42735
<samueldr> https://logs.nix.ci/?key=nixos/nixpkgs.42735&attempt_id=444eee8e-66e3-457d-88f2-6dae64d78182
<{^_^}> https://github.com/NixOS/nixpkgs/pull/42735 (by mboes, open): bazel: 0.13.0 -> 0.15.0
<samueldr> infinisil: feature request: with a full link, print the same info (without the URL, but "nixpkgs#XXX" prefix instead)
<infinisil> Yeah just thought the same
<infinisil> Well not exactly the same
<booglewoogle> when nix-building i now get the error "error: cannot auto-call a function that has an argument without a default value ('stdenv')" -- this is my expression: https://pastebin.com/L7xaBvfA
<samueldr> I'm simply thinking that having two times the URLs next to eachother is a bit noisy, and it shows the alternative syntax :)
<infinisil> Hmm, what other info might be also useful for issues/prs?
<booglewoogle> what's wrong about the expression?
arbxs has joined #nixos
<samueldr> infinisil: don't think anything else really is useful, no need for dates, tags are noise here... to get more info, follow the white rabbit^W^W link
<samueldr> booglewoogle: expression is right, but it's a function (to be called usually with callPackage)
<samueldr> so it expects uh, those 27 arguments
<kalbasit_> specifically `error: packages '/nix/store/wkq4lm5jd8kgffj4dp1zrrd7lzqn7ixg-all/bin/bazel' and '/nix/store/4kgqsjhwywfw4yfqn5a44idck9f09c9s-bazel-0.10.1/bin/bazel' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)`
palo has quit [Ping timeout: 256 seconds]
<hyper_ch> nixos unstable is still broken - Unknown CMake command "qt5_use_modules". :(
<kalbasit_> never mind
<samueldr> ,callPackage booglewoogle
<{^_^}> booglewoogle: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<kalbasit_> nix-env -e bazel fixed it
<infinisil> kalbasit_: What do you think it means? The error is pretty self explanatory
<infinisil> Yeah or that
<kalbasit_> infinisil: yea but I was confused why bazel 0.10 was there in the first place, I think I installed it yesterday and forgot about it
<kalbasit_> thx
<infinisil> Heh, check out the amount of references this PR has: https://github.com/NixOS/nixpkgs/pull/1
<infinisil> Because every time somebody in nixpkgs uses #1, it interprets it as that PR :P
<samueldr> actually much less than I thought
<infinisil> 62 hidden items as well
<samueldr> even including those
<infinisil> It's almost always coming from "Linux thall 4.1.17 #1-NixOS SMP Sun Jan 31 19:23:48 UTC 2016 x86_64 GNU/Linux"
<samueldr> there are over 42k issues+prs after all
<infinisil> I wonder what that #1 there even means
<booglewoogle> okay, i see. thanks a lot!
<samueldr> nixos #1 linux distro obv.
<LnL> :)
<infinisil> That must be ti
<infinisil> it
john4 has joined #nixos
<samueldr> since I just wondered, but answered myself
<Lisanna> ugh, hydra-evaluator is stuck waiting on some kind of futex or something
<Lisanna> again
<samueldr> if I want to see the `nix log` of a depdency of whatever I just built (kernel's build log for a boot.img)
<samueldr> I can `nix show-derivation ./result` and get the store path in builtInput
philippD has joined #nixos
<{^_^}> [nixpkgs] @ivanbrennan opened pull request #42845 → nixos/security.sudo: Document ordering of extraRules → https://git.io/frzqB
Drakonis has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to master « python37: fix openssl detection »: https://git.io/frgJC
roconnor has quit [Ping timeout: 248 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
roconnor has joined #nixos
robstr has quit [Quit: WeeChat 1.9.1]
<kalbasit_> I tried doing the same thing with Minikube, but it does not seem to work: https://github.com/kalbasit/.nixpkgs/blob/e95160a9d391168fbfbb0cc6587a6df3109a167c/config.nix#L42-L50
<kalbasit_> it installs 0.26 anyway
<samueldr> 404 not found
<{^_^}> [nixpkgs] @ambrop72 opened pull request #42846 → nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME → https://git.io/frVZe
<{^_^}> [nixpkgs] @peti pushed 5 commits to master: https://git.io/frVCz
<kalbasit_> oh shoot forgot the repo private, one sec
<samueldr> :)
<samueldr> and how are you installing?
civodul has joined #nixos
<kalbasit_> I do `nix-env -i all`
<kalbasit_> samueldr: check the gist again, I updated to include the whole config.nx
<kalbasit_> s/nx/nix/
<Myrl-saki> samueldr: Whoops, my mistake in nomenclature. I meant the low storage. :P
<samueldr> ah righty then, yes it is a bother
<Myrl-saki> samueldr: Right now, the idea I'm thinking of is making stage 1 act a bit like a bootloader.
<samueldr> especially considering the default partitioning scheme *which generally can't be changed*
jwynn6 has quit [Ping timeout: 256 seconds]
<samueldr> while the question is about treble, I talk about making it a tertiary bootloader
igo95862 has quit [Quit: igo95862]
<kalbasit_> samueldr: should I override buildGoPackage.version and buildGoPackage.src instead of plain version/src?
jwynn6 has joined #nixos
<samueldr> kalbasit_: not entirely sure yet
aarvar has quit [Ping timeout: 248 seconds]
<samueldr> are you basing your assumptions on the name of the built package or does the package report being the newer version%?
<LnL> kalbasit_: no, that won't do anything
<LnL> you want name and src
<kalbasit_> @samueldr I did override both version and src but it seems to still use 0.26 instead of 0.25.2
<samueldr> yeah, just now confirmed
kp__ has quit [Ping timeout: 240 seconds]
moet has quit [Ping timeout: 240 seconds]
roconnor has quit [Quit: Konversation terminated!]
newhoggy has joined #nixos
<samueldr> yes, got it working on my nexus 7 2013 Myrl-saki
newhoggy has quit [Ping timeout: 260 seconds]
<infinisil> I've got something seriously weird with the xml docs
<samueldr> ?
<infinisil> Check out the option description on the website here: https://nixos.org/nixos/options.html#znapzend.zetup
<infinisil> The example value I mean
<infinisil> plan = "1d=&gt;1h,1m=>1d,1y=>1m";
<samueldr> neat
<samueldr> I fixed a bunch of those
<samueldr> sorry, a bunch of issues on that page
<samueldr> I'm sure there are a bunch of others
<infinisil> How does that make sense though..
<infinisil> The source uses => everywhere
<samueldr> escaping gone wrong somewhere
<infinisil> Yeah
<samueldr> give me a sec I'll know about where
<infinisil> Nice
<infinisil> Thanks
<samueldr> aww, foiled again by a bug in the chrome inspector
<infinisil> Building the options.html page via `nix-build nixos/release.nix -A manual.x86_64-linux` and opening `firefox result/share/doc/nixos/options.html` doesn't have that problem (not the same as the nixos.org page though)
<samueldr> nah, it doesn't even use the same data source
<infinisil> Oh
<samueldr> the nixos-homepage builds a json of all options
<samueldr> it'll take more than a sec, I have to build it :/
<infinisil> Ah that one
moet has joined #nixos
john4 has quit [Quit: WeeChat 2.1]
<infinisil> nix-build release.nix -A options
asymmetric_ has joined #nixos
aarvar has joined #nixos
<infinisil> Not sure why that needs replacement at all
<samueldr> the escaping must have been right at one moment, then changed to escape closer to the DOM
asymmetric has quit [Ping timeout: 248 seconds]
<samueldr> webdev is hard ;)
<infinisil> I mean, looking at the html, it contains the > without any xml confusion
<samueldr> (I'm also looking at the git history to see why it broke if it broke)
<samueldr> infinisil: if at one point it used innerHTML, then changed to innerText (or equivalent jquery) it could mean a big difference
* infinisil nods
<infinisil> Do you just know how to fix it or should I open an issue?
<samueldr> I'm fixing it
<samueldr> I already have the 5 more recent commits on that file, must keep the streak going on :)
<samueldr> infinisil: know any options with example values having < and >?
<samueldr> or as you're our resident jq expert, a good query for the options.json file?
<infinisil> Heh, I'll give it a quick go
kp__ has joined #nixos
andymandias has quit [Ping timeout: 265 seconds]
<samueldr> made my own, finally
moet has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
<{^_^}> [nixos-homepage] @samueldr opened pull request #229 → Removes useless escapes from `ppNix` in options page. → https://git.io/fovPq
<infinisil> samueldr: My jq skills have failed me
<Lisanna> Is there a better way to pin nixpkgs than importing from builtins.fetchTarball? hydra and builtins.fetchTarball don't seem to like eachother. It seems to be the source of my hydra evaluation hang problems.
<samueldr> infinisil: don't worry, got it verified by modifying the json file
<Lisanna> I want to have a single version of nixpkgs that is used across all my infrastructure
<Lisanna> nixops, channel, hydra evals
<infinisil> samueldr: Nice, thanks \o
<infinisil> /
<Mic92> Lisanna: does hydra use `restrict-eval`?
<samueldr> ¾ of the work being ensuring I wouldn't cause new issues :)
<booglewoogle> building of my nix-expression will now fail with this error: https://pastebin.com/tyBTDa4A -- someone got a sec to help me understand how to fix this? I've got xorg.libX11 installe
<booglewoogle> d
<infinisil> There's currently 666 commits in nixos-homepage, I'd almost feel hesitant to commit with that!
<Lisanna> Mic92 yes, I have to use "allowed-uris = https://" in my nix.conf for hydra to use the fetchtarball at all
<Lisanna> but a better way to do this that can be applied everywhere would be really nice.
<symphorien> ,library booglewoogle
<{^_^}> booglewoogle: Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}> [nixpkgs] @fragamus closed pull request #42745 → hmetis package → https://git.io/f4bXI
<infinisil> Mic92: Awesome!
<infinisil> Mic92++
<{^_^}> Mic92's karma got increased to 3
crmlt has quit [Ping timeout: 256 seconds]
<booglewoogle> looking into that. thanks a lot again, {^_^}
Jason_Grossman has quit [Remote host closed the connection]
Jason_Grossman has joined #nixos
bennofs1 has joined #nixos
<Mic92> samueldr: what data do you need for the search?
<samueldr> Mic92: depends how useful you want to make it, and how safe/unsafe it is to get it
<Mic92> samueldr: it runs on travis, so unsafe evaluation is not that unsafe.
<samueldr> as far as what you have done for the NUR, looks like you'd have a couple "indexes" to do
<samueldr> 1. meta info about nur repos
<samueldr> 2. packages listing
<samueldr> 3. modules listing
<samueldr> well, options
mahalel_ has joined #nixos
<Mic92> options within modules, mhm, this can come later
<samueldr> :)
<Mic92> we also have overlays
<samueldr> as for packages, if the objects are an extension of the basic format used on the nixos homepage already, it would be possible to share code
<Mic92> I thought about merging the results from NUR with nixpkgs.
bennofs has quit [Ping timeout: 276 seconds]
<Mic92> then users can use a unified search for both
<samueldr> I wouldn't directly, I would merge client-side the two indexes
<samueldr> (then it's easier to list with and without)
<Mic92> Maybe also enabling unfree packages in the search.
<samueldr> (and easier to manage both as two different build steps)
<sphalerite> Turion: did you get your boot working fully in the end?
<samueldr> Mic92: you do know I made this? https://nix.samueldr.com/explorer/?channel=nixos-18.03
<samueldr> (which I need to update)
<Mic92> samueldr: cool
<samueldr> so a good chunk of the work is already done
<infinisil> ,NUR = Nix User Repository: User contributed nix packages, https://github.com/nix-community/NUR
<{^_^}> NUR defined
<Turion> sphalerite: No, the issue with having to manually select it on boot persists
<Turion> I.e. it doesn.t write efi
<samueldr> Turion: manually select a boot option in the bios or in the bootloader (systemd-boot or grub)?
bennofs1 has quit [Quit: WeeChat 2.0]
<sphalerite> Turion: nixos-rebuild boot --install-bootloader after settting canTouchEfiVariables to true should hopefully do it
<srid> building /nix/store/m16cs9a00znx11mqfbkmk5f3i7gyn1ca-gcc-7.3.0.tar.xz ... not in cache?
knupfer has quit [Remote host closed the connection]
<infinisil> srid: It is for me..
jwynn6 has quit [Ping timeout: 245 seconds]
<samueldr> seems to be
<samueldr> same
igo95862 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #42847 → multimc: create compatibility symlink to fix desktop icon (18.03) → https://git.io/foOXf
tzemanovic has joined #nixos
<Turion> sphalerite: that sounds good!
<Turion> samueldr: EFI issues :/
igo95862 has quit [Quit: igo95862]
tzemanovic has quit [Ping timeout: 268 seconds]
myshoe has quit [Quit: Lost terminal]
kp__ has quit [Read error: Connection reset by peer]
goibhniu has joined #nixos
knupfer has joined #nixos
tzemanovic has joined #nixos
jwynn6 has joined #nixos
tzemanovic has quit [Ping timeout: 264 seconds]
joehh has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<gonz_> Does anyone have any tips on how to get `offlineimap` to see `libkeepass`?
patrl has joined #nixos
<gonz_> I'm not super thrilled about having to switch my mail fetcher just because of nixos
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
<worldofpeace> gonz_: You forgot to `enable = true;`
<gonz_> worldofpeace: It makes no difference
<gonz_> `offlineimap` still doesn't see `libkeepass`
<gonz_> It's not that the service isn't available or anything, it just doesn't have access to the lib for whatever reason.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patrl has quit [Ping timeout: 265 seconds]
blankhart has joined #nixos
<worldofpeace> Could you explain what "can't see libkeepass" means? I see that you have `pkgs.keepass` in the `path = [ ];`. But that's about all I know.
<gonz_> `offlineimap` fails to start, complaining that there is `no module named libkeepass`
<worldofpeace> Is there an error saying it can't find the lib when you run `nixos-rebuild`? Or is this output in the logs for the service?
<worldofpeace> So logs for the service.
<gonz_> For the service (or if I just start it manually)
<gonz_> Normally you'd just pip install it, I suppose
<gonz_> Ideally it would just be part of the build script
<gonz_> Which is what I thought I signed up for with nix
thc202 has quit [Ping timeout: 256 seconds]
simukis has quit [Ping timeout: 245 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<worldofpeace> Maybe something isn't right with keepass. I'm not familar with what this software would be doing aside from this configuration.
<{^_^}> [nixpkgs] @dotlambda opened pull request #42848 → python.pkgs.asyncssh: fix tests → https://git.io/foKsu
joehh has quit [Ping timeout: 240 seconds]
<worldofpeace> dotlambda: Thank you! I didn't have time to fix that :)
newhoggy has joined #nixos
ryanartecona has joined #nixos
blankhart has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
<worldofpeace> gonz_: I also don't know how this program would you untilize `keepass` which in nixpkgs is a gui application?
<gonz_> Fuck if I know
graphene has joined #nixos
<gonz_> there is a python module name libkeepass
<gonz_> But it doesn't seem to be in pythonPackages
<gonz_> My next guess was to put that module in the path to see if that'd work, but it seems to be just plain missing from the packages
Tobba_ has joined #nixos
Turion has quit [Remote host closed the connection]
<worldofpeace> Oh, is this python module a dep for offlineimap?
alex`` has quit [Quit: WeeChat 2.1]
Tobba has quit [Ping timeout: 255 seconds]
<worldofpeace> Never mind I said that. The software you need is not packaged in nixpkgs proper. This can be done though.
turion_macbook has quit [Ping timeout: 260 seconds]
<gonz_> I guess I'm going to try to create a derivation for it
blankhart has joined #nixos
moet has joined #nixos
newhoggy has quit [Ping timeout: 245 seconds]
newhoggy has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
hamishmack has joined #nixos
xy2_ has quit [Ping timeout: 260 seconds]
newhoggy_ has joined #nixos
newhoggy has quit [Ping timeout: 240 seconds]
tzemanovic has joined #nixos
newhoggy_ has quit [Remote host closed the connection]
asymmetric_ has quit [Ping timeout: 240 seconds]
Berra has quit [Remote host closed the connection]
Sonarpulse has joined #nixos
<infinisil> Lol what the hell: #42850
<{^_^}> https://github.com/NixOS/nixpkgs/issues/42850 (by Verus10, open): Server Attacked!!!
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/be1461fc0ab (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
freeman42x[nix] has joined #nixos
<worldofpeace> That's going in a `strange github issues` collection
<samueldr> wth indeed
<samueldr> Joined GitHub
<samueldr> on July 1, 2018
<worldofpeace> They must just be in such a state of distress. It just had to be nixos fault...
juhe has quit [Ping timeout: 276 seconds]
<infinisil> I'd like to think that that's no troller, but somebody who's *really* confused about something
<worldofpeace> Would it be rude close it and mark it as `Ridiculous`
<worldofpeace> They also seem to be confused about how to open issues too #42849
<{^_^}> https://github.com/NixOS/nixpkgs/issues/42849 (by Verus10, open): Server Attacked
<infinisil> Yeah :P
<infinisil> They might be from the secret developer friendliness evaluation association
<{^_^}> [nixpkgs] @jmitchell opened pull request #42851 → vmTools: update Debian minor version to 8.11 → https://git.io/foAp2
<worldofpeace> We should be really kind and possibly ask for steps to reproduce and if they've recieved any death threats prior from the 'leftists'. We're concered about the users safety.
newhoggy has joined #nixos
<infinisil> Totally, should I or do you want to respond? :P
newhoggy has quit [Remote host closed the connection]
<infinisil> worldofpeace: ^
<samueldr> ^ don't go for anything they could troll for, so a completely neutral response
<samueldr> asking how this relates to nixos, mostly
newhoggy has joined #nixos
<infinisil> Ah yeah, agreed
<worldofpeace> Totally.
<worldofpeace> perhaps we should get anotehr opinion also
<worldofpeace> Wait they edited it
<infinisil> Haha
buckley310 has quit [Quit: Bye]
<worldofpeace> steps to reproduce? Are they saying I should test this on someone else?
<worldofpeace> I'm worldofpeace so I should make a peaceful response.
<infinisil> Just asking what this has to do with NixOS would be good as samueldr mentioned
<samueldr> well, they obviously "landed in the wrong place"
buckley310 has joined #nixos
testuser has joined #nixos
<testuser> hi, what's the best way to enter an environment where I can build 32-bit applications with nix-shell?
<infinisil> testuser: I think `nix-shell -p stdenv_32bit` should work if you only need the basic stuff
<samueldr> testuser: for games, steam-run may be a good choice
<testuser> infinisil, I also need the gnu/stubs-32.h
<samueldr> glibc_multi has this
<infinisil> I think stdenv_32bit includes that by default though
<samueldr> (I was actually checking that)
<infinisil> The stubs-32.h thing is the most common error when you don't have the 32 bit stuff
<samueldr> yes
<samueldr> it fetched glibc-multi
coot has quit [Quit: coot]
jluttine has quit [Ping timeout: 268 seconds]
<infinisil> I see
<testuser> I'm getting this error:
<testuser> error: /nix/store/p85kjy91dfvs4in358zyfxlksvibw0zn-glibc-2.26-131-dev/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or director
<infinisil> testuser: Do you have a shell.nix file?
<testuser> compiling with "g++ temp.cpp -m32"
<testuser> infinisil, not in the current directory no
rprije has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
jluttine has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<infinisil> Hold on I'll test if it works first
<infinisil> testuser: Ahh I see the problem, yeah you just need a shell.nix with such contents: https://gist.github.com/f78f288a02676fd54e7d59b7cece651c
<infinisil> samueldr: testuser: The problem with `nix-shell -p stdenv_32bit` is that that's still just `stdenv.mkDerivation { buildInputs = [ stdenv_32bit ]; }`, which is a normal stdenv
andymandias has quit [Ping timeout: 240 seconds]
<testuser> infinisil, now I'm getting the following: http://dpaste.com/38APHTM
<infinisil> Is that a problem?
<worldofpeace> infinisil, samueldr, what do you think http://i.imgur.com/D01Z98Z.png
<infinisil> I like it :P
<worldofpeace> dotlambda: I had a response! :D
<testuser> infinisil, I guess not, since the binary is still there and works, thanks
<infinisil> worldofpeace: dotlambda: Hah
<worldofpeace> We can't close an issue without directing someone to the correct location. We just lost points from the developer friendliness evalution association
<infinisil> Oh no!
<worldofpeace> Re open it quick!
<worldofpeace> With a terse apology
andymandias has joined #nixos
<alphor> is terseness unfriendly? I think it does the other party the favor of not having to wade through noise.
<infinisil> alphor: We just wanted to have some fun with this probable troll #42850 :P
<{^_^}> https://github.com/NixOS/nixpkgs/issues/42850 (by Verus10, closed): Server Attacked!!!
<worldofpeace> alphor: Your right we should be completely co dependent :P
<alphor> o... oh.
<worldofpeace> Didn't someone file a nix issue in common lisp?
<worldofpeace> Yep #4952
<{^_^}> https://github.com/NixOS/nixpkgs/issues/4952 (by gabriel-laddel, closed): An experience with NixOS.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
moet has quit [Ping timeout: 245 seconds]
sbdchd has quit [Remote host closed the connection]
testuser has quit [Ping timeout: 256 seconds]
booglewoogle has quit [Remote host closed the connection]
joehh has joined #nixos
Sonarpulse has quit [Ping timeout: 265 seconds]
<Unode> hi all, when using nix-shell to install zlibStatic, no variable is set in the environment pointing to it other than buildInputs. Is there any reason why it doesn't also appear as part of NIX_TARGET_LDFLAGS or some other NIX specific variable?
tmaekawa has joined #nixos
<Unode> (correction) what is included in buildInputs, doesn't actually point to libz.a
tmaekawa has quit [Client Quit]
Forkk has joined #nixos
<gonz_> If I've successfully made a derivation for a python library, how would I go about making that visible to a program that executes python?
sbdchd has joined #nixos
<gonz_> I've no control over the program itself, but I'd just like to make sure that the scripts that it runs can import the library.
<Unode> gonz_: you have 2 options. Either you use nix-shell to create an environment where the library is present and run your program through nix-shell. Or you wrap the program itself with the correct dependencies.
<Unode> nix-shell --command "cd $HOME/projects/browse && python browse.py" $HOME/projects/browse/shell.nix
ericsagnes has quit [Ping timeout: 276 seconds]
<gonz_> Let's say I go with the second. That would mean making a new derivation for the program where I override the default python environment...?
<Unode> 2nd option is equivalent to packaging the program to be used with nix
<gonz_> It already has a main derivation, so I could potentially use this, is my impression.
<Unode> gonz_: have a look at any python application packaged in nix.
<Unode> dependencies should be part of propagatedBuildInputs
<worldofpeace> gonz_: I just use an overlay.
stepcut has joined #nixos
<worldofpeace> gonz_: https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-using-overlays <-- here's the docs on how to do that with python
newhoggy has quit [Ping timeout: 255 seconds]
<worldofpeace> actually.