pxc has joined #nixos
<Acou_Bass> connect to it on port 5000 :P
<infinisil> That sounds simple
<Acou_Bass> i have no idea why nix defaults to 5000,the normal znc port is 1025
<Acou_Bass> but eh, whatever
<Acou_Bass> oh youll also need to do services.znc.confOptions.userName = name (for the actual ZNC login)
<infinisil> Wait, so these 7 lines or so are big for you?
<Acou_Bass> and do the passblock thing
<Acou_Bass> well no, its just that im connected to 5 IRC servers eachw ith their own stanza hehe
<infinisil> I see
<infinisil> passblock?
<Acou_Bass> easier to link it :D https://nixos.org/nixos/options.html#services.znc.confoptions.passblock
<infinisil> Hmm alright
<Acou_Bass> do the nix-shell command it says in the description, make a password for your ZNC
<Acou_Bass> and itll spit out the value to put between the '' ''
<infinisil> Yeah
jb55 has quit [(Ping timeout: 255 seconds)]
<Acou_Bass> https://pastebin.com/G8PauwdR thats my full ZNC bit (passwords censored :D)
numbdewd has joined #nixos
pxc has quit [(Quit: WeeChat 1.9)]
infinisil has quit [(Ping timeout: 248 seconds)]
infinisil has joined #nixos
pxc has joined #nixos
Arcaelyx has quit [(Quit: Textual IRC Client: www.textualapp.com)]
Drakeson has quit [(Remote host closed the connection)]
erictapen has quit [(Remote host closed the connection)]
Arcaelyx has joined #nixos
slyfox has quit [(Ping timeout: 248 seconds)]
erictapen has joined #nixos
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 255 seconds)]
<infinisil> Um, the znc module seems kinda broken in my nixpkgs version
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30174: numix-gtk-theme: 2017-07-26 -> 2.6.7 (master...upd.numix-gtk-theme) https://git.io/vducC
NixOS_GitHub has left #nixos []
mbrgm has quit [(Ping timeout: 255 seconds)]
mbrgm has joined #nixos
<Acou_Bass> :O thats odd
<infinisil> the openFirewall option
sigmundv has quit [(Ping timeout: 240 seconds)]
sigmundv has joined #nixos
cpennington has joined #nixos
uwap has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
uwap has joined #nixos
<Acou_Bass> im not sure what to make of that to be honest
<Acou_Bass> maybe just set it to false and open the firewall port in your networking ={ bit?
<infinisil> Where did you set openFirewall?
<Acou_Bass> line 8 of my pastebin :P
<Acou_Bass> znc.openFirewall = true;
<infinisil> Oh right
<Acou_Bass> im not sure why thats actually a thing to be honest most other networking-related modules auto-do that bit
<infinisil> but when i go into `man configuration.nix` and search for this option, it says it's in znc.confOptions.openFirewall
koserge has joined #nixos
deepfire has joined #nixos
<Acou_Bass> yeah move it out of that hee
eacameron has joined #nixos
_ris has quit [(Ping timeout: 255 seconds)]
jensens has quit [(Ping timeout: 255 seconds)]
deepfire has quit [(Ping timeout: 240 seconds)]
koserge has quit [(Ping timeout: 248 seconds)]
<infinisil> But it's weird that it doesn't throw an error, because that option isn't actually defined
infinisil_ has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Quit: WeeChat 1.9.1)]
Guest79941 has quit [(Ping timeout: 255 seconds)]
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
hiratara has quit [(Quit: ZNC - http://znc.in)]
Acou_Bass has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30175: flat-plat: 20170917 -> 20171005 and renamed to materia-theme (master...upd.flat-plat) https://git.io/vduCF
NixOS_GitHub has left #nixos []
eacameron has quit [(Read error: Connection reset by peer)]
<gchristensen> crap, I just deleted like my entire ~/
eacameron has joined #nixos
hiratara has quit [(Client Quit)]
hiratara has joined #nixos
Arcaelyx_ has quit [(Remote host closed the connection)]
Arcaelyx has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30176: elementary-icon-theme: 4.2.0 -> 4.3.0 (master...upd.elementary-icon-theme) https://git.io/vduWC
NixOS_GitHub has left #nixos []
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 258 seconds)]
<infinisil> gchristensen: No snapshots or so??
<infinisil> backup??
<gchristensen> nope
ona has joined #nixos
<gchristensen> was just setting up a backup tool when I accidentally my data
<infinisil> Lol
<infinisil> Well.. that's not very good
<gchristensen> I would say it is very not good :)
<infinisil> well said
Supersonic112 has quit [(Disconnected by services)]
mudri has quit [(Ping timeout: 240 seconds)]
<infinisil> hmm, what filesystem?
<Dezgeg> shut down and try some undelete utilities?
<gchristensen> in particular my password db (I have an old backup) .gnupg/ and .ssh
Supersonic112_ has joined #nixos
<infinisil> Shutting down and trying to recover them is probably your best bet..
Supersonic112_ is now known as Supersonic112
<gchristensen> I'm trying to justify to myself I'm better off without them
<gchristensen> lol
infinisil_ has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<infinisil> I lost all my reminders (i had a lot) once, because i didn't do backups, ended up convincing me I don't need them too
<alp> yeah, fresh start and all that, sure, it's better =)
<infinisil> It's like a whole new computer!
infinisil_ has joined #nixos
mbrgm has quit [(Ping timeout: 258 seconds)]
moet has joined #nixos
<alp> gchristensen, thanks for your xps/nix post (unless I misremember the name), ended up being very useful to me just 2 weeks ago.
bennofs has quit [(Ping timeout: 248 seconds)]
<gchristensen> alp: that's me! you're welcome! you can find my first mistake there, not using ZFS :)
<gchristensen> ok, my password db is backed up somewhere, I think I should be able to recover from there
<gchristensen> in an odd turn of events it kept all my work in progress / unpushed changes
<gchristensen> to various projects
mbrgm has joined #nixos
python476 has quit [(Remote host closed the connection)]
<infinisil> huh
<infinisil> how did you delete your ~ exactly?
ertes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #30164: lnav: add platforms metadata so hydra builds on darwin (master...lnav-platforms) https://git.io/vdEDq
NixOS_GitHub has left #nixos []
darlan has joined #nixos
<infinisil> gchristensen: ^^
infinisil_ has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<grahamc> Sorry I just broke my server too 😅 apparently I shouldn’t be allowed on computers today.
darlan has quit [(Client Quit)]
<infinisil> lol
infinisil_ has joined #nixos
<infinisil> it happens
<infinisil> but only once
<grahamc> I have a tool called remaster which fetches origin/master and resets —hard to upstream I use it a lot on nixpkgs. Apparently my ~/ has a .git dir in it
<infinisil_> You do that without stashing??
<grahamc> Yeah it works pretty well every time but this time
<grahamc> But so here is the kicker. Where it gets exciting.
<grahamc> I’m an attempt to restore some of my most important ~ files I ran NixOS rebuild switch because I have a module which links files to my home.
<grahamc> Except I ran it on my server which is managed by NixOps meaning no config is on the server. Which means ...! I locked myself out of my server :)
infinisil_ has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<infinisil> lol^2
infinisil_ has joined #nixos
<grahamc> Infinisil_ could handle stupidity
<grahamc> Couldn’t handle my stupidity *
<infinisil> grahamc: Can you reboot the server into the previous config?
<grahamc> YeH probably
<grahamc> It’s a bit annoying with the console over IP
<infinisil> I once was stupid and disabled the grub selection screen, regretted it when it wouldn't boot for the first time
<infinisil> on the server that is
<grahamc> Oops
<infinisil> Now I set it to 1minute, because it often takes quite a while for the web console to come up
<gchristensen> phew!
<samueldr> hi!
<infinisil> welcome back
<samueldr> oh
<gchristensen> rolling back to the config on disk restored to the original provisioned config, which included my SSH key on the root account
<samueldr> don't need to bother anyone
<gchristensen> hi samueldr!
<samueldr> channels.nix.gsc.io wasn't loding
<gchristensen> samueldr: no worries :P I'm just griping about my own silliness :)
<samueldr> until I said hi
<gchristensen> LOL
<gchristensen> perfect timing!
<samueldr> I say so
<infinisil> Another satisfied customer, Next!
<gchristensen> sorry for the trouble :)
<samueldr> n/p
<gchristensen> I'm having a bit of an evening
<samueldr> so it wasn't me?
mizu_no_oto has joined #nixos
<infinisil> Fixing ones fuck-ups is always nice
<gchristensen> no, I'm just breaking every computer I touch
<infinisil> This happens quiet often, that once you do something horrible, you panick and make it even worse
<samueldr> I'm assuming the second field in the history is UTC timestamp, right?
<gchristensen> double checking, samueldr
<infinisil> if I wouldn't have acted stupidly when I fucked up with my reminder data, I could've still saved it
<samueldr> looks like it, comparing commit time
infinisil has quit [(Quit: brb)]
<gchristensen> samueldr: yeah the second field is the timestamp, %at in the `git show --format` docs
mbrgm has quit [(Ping timeout: 260 seconds)]
<gchristensen> UTC, yeah
infinisil_ has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<samueldr> thanks!
<gchristensen> you're welcome! what're you doing with the data? (just curious so I can make it more useful)
infinisil has joined #nixos
<samueldr> trying to figure out which commit to get to synch my armv7 board with Dezgeg's last builds
<gchristensen> cool
drakonis has joined #nixos
<samueldr> btw, aarch64 builds are awesome
<gchristensen> <3
mbrgm has joined #nixos
<infinisil> Alright I think my irc bouncer works :D
<samueldr> don't know if it's known, but modesetting with vc4 on mainline kernel works
<samueldr> with X11, slim and the graphical apps that are built
<samueldr> (on raspi 3)
<gchristensen> nice!
<Dezgeg> yes, also kmscube, glmark2 and weston-launch work with acceleration
<samueldr> good morning, I presume
moet has quit [(Quit: leaving)]
lambdamu_ has joined #nixos
<samueldr> or late night
jb55 has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
lambdamu has quit [(Ping timeout: 248 seconds)]
jb55 has quit [(Ping timeout: 258 seconds)]
<gchristensen> fingers crossed, I'm rebooting
<samueldr> good luck
<gchristensen> thanks
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vdu8h
<NixOS_GitHub> nixpkgs/master cb59378 Nikita Uvarov: trivial-builders.nix: fix writeShellScriptBin...
<NixOS_GitHub> nixpkgs/master 5e3376e Franz Pletz: Merge pull request #30153 from uvNikita/patch-2...
NixOS_GitHub has left #nixos []
<gchristensen> nice, fpletz
<fpletz> gchristensen: well, it wasn't used anywhere in nixpkgs %)
<fpletz> and was broken since it was added \o/
<samueldr> other than cloning nixpkgs locally, what ways are recommended to pin a specific commit for a channel?
<gchristensen> you can add the tar.gz link to github directly as your channel URL
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 5 new commits to master: https://git.io/vdu4L
<NixOS_GitHub> nixpkgs/master 241cb4e Franz Pletz: aespipe: 2.4d -> 2.5e
<NixOS_GitHub> nixpkgs/master 0a9825a Franz Pletz: apacheHttpd: 2.4.27 -> 2.4.28
<NixOS_GitHub> nixpkgs/master c559e96 Franz Pletz: btrfs-progs_4_4_1: remove, snapper works with latest
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 4 new commits to release-17.09: https://git.io/vdu4O
<NixOS_GitHub> nixpkgs/release-17.09 1a3beda Anthony Cowley: lnav: add platforms metadata so hydra builds on darwin...
<NixOS_GitHub> nixpkgs/release-17.09 a45cfdb Nikita Uvarov: trivial-builders.nix: fix writeShellScriptBin...
<NixOS_GitHub> nixpkgs/release-17.09 16cfb78 Franz Pletz: aespipe: 2.4d -> 2.5e...
NixOS_GitHub has left #nixos []
Wizek_ has quit [(Ping timeout: 248 seconds)]
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<samueldr> when using the tar.gz archive, as the channel URL, I'm getting "error: file ‘nixpkgs/nixos’ was not found in the Nix search path"
<samueldr> not sure if it's due to the way NIX_PATH is set, which is the default way afaik
<samueldr> the repo seems extracted directly where the the channel symlink for root points, instead of inside a subfolder named nixpkgs
dieggsy has joined #nixos
atorres has joined #nixos
<eqyiel[m]> how can I prevent a particular store path from being rewritten, like this: https://github.com/NixOS/nixpkgs/issues/29873#issuecomment-334618905
<eqyiel[m]> whatever does it, it happens after fixupPhase
sigmundv_ has quit [(Ping timeout: 255 seconds)]
dieggsy has quit [(Remote host closed the connection)]
<eqyiel[m]> the problem is that /etc/NetworkManager/VPN/nm-strongswan-service.name points to a path inside the networkmanager-strongswan plugin instead of the path to strongswan in the store
<atorres> Hello! Can someone tell me how to add LaTeX packages to Nixpkgs?
slack1256 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30177: qtcreator: 4.4.0 -> 4.4.1 (master...upd.qtcreator) https://git.io/vdu4A
NixOS_GitHub has left #nixos []
infinisil has joined #nixos
pingveno has quit [(Quit: Lost terminal)]
oida has joined #nixos
oida_ has quit [(Ping timeout: 240 seconds)]
nh2 has quit [(Ping timeout: 246 seconds)]
hamishmack has joined #nixos
drakonis has quit [(Remote host closed the connection)]
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined #nixos
pingveno has joined #nixos
drakonis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vduBb
<NixOS_GitHub> nixpkgs/master 4fdd225 Franz Pletz: twolame: fix evaluation, platforms list must be flattened
NixOS_GitHub has left #nixos []
Acou_Bass has joined #nixos
atorres has quit [(Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170927035336])]
ericsagnes has quit [(Quit: WeeChat 1.9)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #30178: thunderbird: 52.3.0 -> 52.4.0 (master...thunderbird-bin-52.4.0) https://git.io/vduRL
NixOS_GitHub has left #nixos []
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined #nixos
infinisil has quit [(Remote host closed the connection)]
infinisil has joined #nixos
infinisil has quit [(Client Quit)]
znc-user has joined #nixos
justan0theruser has quit [(Ping timeout: 255 seconds)]
ebzzry has joined #nixos
znc-user has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
znc-user has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
frankqux has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
infinisil has joined #nixos
frankqux_ has quit [(Ping timeout: 258 seconds)]
schoppenhauer has quit [(Ping timeout: 248 seconds)]
schoppenhauer has joined #nixos
eacameron has quit [(Remote host closed the connection)]
fragamus has joined #nixos
znc-user has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil_ has joined #nixos
infinisil_ has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil_ has joined #nixos
ertes has joined #nixos
infinisil has quit [(Quit: WeeChat 1.9)]
justan0theruser has joined #nixos
infinisil_ has quit [(Client Quit)]
infinisil has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #30178: thunderbird: 52.3.0 -> 52.4.0 (master...thunderbird-bin-52.4.0) https://git.io/vduRL
NixOS_GitHub has left #nixos []
acarrico has quit [(Ping timeout: 264 seconds)]
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined #nixos
ericsagnes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30180: Firefox bin updates (master...firefox-bin-updates) https://git.io/vdu09
NixOS_GitHub has left #nixos []
endformationage has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<TimePath> can I disable the cache.nixos.org binary cache? I'm trying to figure out why my local cache isn't being used for .narinfo files
<infinisil> TimePath: --option binary-caches ""
<TimePath> no luck
<infinisil> i mean that disables binary caches
<infinisil> oh
<TimePath> I know how to disable them entirely
<TimePath> --option build-use-substitutes false
<TimePath> I just want to remove the default
<infinisil> TimePath: Maybe try --option binary-caches-files ""
<TimePath> no good
ericsagnes has quit [(Quit: WeeChat 1.9)]
ericsagnes has joined #nixos
<TimePath> I'm testing with `nix-build '<nixpkgs>' -A hello --option binary-caches-files ""` in the nixos/nix docker container
<TimePath> then using `nix-push` to a local directory
<TimePath> I have a `file://` binary cache entry that points to that directory
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/af9034bb24 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
fiveht has quit [(Ping timeout: 264 seconds)]
<TimePath> set up a local http server, and I can see `"GET /nix-cache-info HTTP/1.1" 200`
<TimePath> still prefers cache.nixos.org though
Wizek has quit [(Quit: Connection closed for inactivity)]
moet has joined #nixos
<TimePath> I null routed cache.nixos.org, and now it's trying my cache
<TimePath> I now see `lacks a signature; ignoring` errors, which I can trace
xd1le has joined #nixos
moet has quit [(Client Quit)]
<infinisil> TimePath: Maybe you could also try setting it in /etc/nix.conf
<infinisil> or nix.binaryCaches in the nixos configuration
<infinisil> i know you want it for only 1 command, but maybe this somehow overrides
<infinisil> it
<TimePath> even with a single cache in /etc/nix/nix.conf, cache.nixos.org is still tried
Arcaelyx_ has quit [(Ping timeout: 240 seconds)]
Arcaelyx has joined #nixos
<TimePath> `signed-binary-caches` is apparently obsolete
<TimePath> aha
<TimePath> download-from-binary-cache.pl is gone from master, but still in use locally
<TimePath> setting `--option signed-binary-caches "0"` does what I want
<TimePath> however cache.nixos.org is still tried first
<TimePath> if I manually reduce the `Priority` of my `nix-cache-info`, it is tried first :)
<TimePath> the cache.nixos.org one is still being downloaded, but that's fine for my use
<hyper_ch> infinisil: back in the day, where ssds were small, I usually turned atime of to not write as much to the ssd :)
<hyper_ch> azdle: yes, /etc/nixos/.... won't be touched by rebuilds... so you need to make sure that you have backups of that.... I track mine with git
drakonis has quit [(Read error: Connection reset by peer)]
mizu_no_oto has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
nslqqq has quit [(Ping timeout: 240 seconds)]
<TimePath> hm, one last thing to work out now. nix-env installs all outputs for a derivation, I just want the binaries in some cases
csingley has quit [(Ping timeout: 255 seconds)]
moet has joined #nixos
justanotheruser has joined #nixos
justan0theruser has quit [(Ping timeout: 248 seconds)]
jb55 has quit [(Ping timeout: 248 seconds)]
jacob has joined #nixos
jacob is now known as Guest80446
<hyper_ch> infinisil: since there's no trim on zfs, how good does it behave with nearly full fs?
<srhb> hyper_ch: I think the fragmenting will be a problem before trim on a full fs.
<hyper_ch> actually, zfs now freed in total like 50 gb on my tb ssd
<hyper_ch> or more like 70gb
<hyper_ch> 5% ext4 reservation (I think) and compression
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
pie_ has quit [(Ping timeout: 240 seconds)]
Jackneilll has joined #nixos
mbrgm has quit [(Ping timeout: 248 seconds)]
moet has quit [(Quit: leaving)]
mbrgm has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
<srhb> Can I make fetchFromGitHub preserve .git?
hamishmack has joined #nixos
<TimePath> there's also fetchGit
<srhb> That's probably easier, yeah...
<TimePath> I don't see .git being removed
<TimePath> fetchFromGitHub pulls the zip gh provides
<TimePath> but if fetchSubmodules is set, it will actually use fetchGit instead
<TimePath> wouldn't want to rely on that though
<srhb> Right, and with rev = "refs/tags/v${version}" that seems to actually pull, but still no .git
<srhb> Indeed.
<TimePath> how are you confirming the existence of .git?
<srhb> nix-shell, unpackPhase, ls -l .git
numbdewd has quit [(Quit:  ☺ )]
<srhb> Er, cd thesources in there somewhere too :-)
<srhb> Oh, maybe I actually messed that up.
<TimePath> I haven't had to go this way yet, because my release script lives in the same repo as my project
<TimePath> so to release, the git repo is already there, fully intact
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yrashk opened pull request #30181: urbit: 0.4 -> 0.4.5 (master...urbit-0.4.5) https://git.io/vduaB
NixOS_GitHub has left #nixos []
<srhb> It's an annoying build script that does some magic with .git to extract the checked out revision for including in the binaries etc.
<srhb> I might be able to fake it instead.
<srhb> I don't really want to use the release zips anyway, since part of the reason for my repackaging is to make it easy to build arbitrary revisions of this package.
<TimePath> yeah
orivej has joined #nixos
erictapen has quit [(Ping timeout: 258 seconds)]
endformationage has quit [(Quit: WeeChat 1.9)]
Jackneilll has quit [(Remote host closed the connection)]
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
vandenoever has quit [(Ping timeout: 264 seconds)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo opened pull request #30182: Fix ssh config in nova image (master...pr/nova-config) https://git.io/vduVq
NixOS_GitHub has left #nixos []
xdelv has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
<otwieracz> Hm. How does stuff from nixos-master get to nixos-unstable
<otwieracz> ?
<hyper_ch> otwieracz: https://howoldis.herokuapp.com/ 3. Channel update
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<srhb> Specifically, nixos/trunk-combined/tested needs to pass.
<srhb> otwieracz: You should.
<srhb> otwieracz: How did you update your channel?
Jackneilll has joined #nixos
<otwieracz> I've just done nix-channel --add https://nixos.org/channels/nixos-unstable nixos
<otwieracz> Like 15 minutes ago.
<srhb> otwieracz: Show us your user channels?
erictapen has quit [(Ping timeout: 260 seconds)]
<otwieracz> (and then # nixos-rebuild switch --upgrade)
<srhb> Did you alter the channels as root?
<otwieracz> as root.
<otwieracz> [root@odyssey:~]# nix-channel --list
Jackneilll has quit [(Remote host closed the connection)]
<Isorkin> Hi. Help me to fix build package nftables-snapshot - http://pastebin.ru/M17GBxJC Error - ./configure: line 4774: syntax error near unexpected token `LIBMNL,'
Jackneilll has joined #nixos
<hyper_ch> when running rebuild with --upgrade it should update the channel.... hmmmm, srhb knows this stuff better :)
<srhb> otwieracz: What does nixos-version say?
eacameron has joined #nixos
<otwieracz> 18.03pre117327.3fe7cddc30 (Impala)
<srhb> otwieracz: Exact same commit as me...
<srhb> otwieracz: Hang on, what did you add to systemPackages?
<hyper_ch> Isorkin: there's nftables already in nixos... had a look at the current .nix ?
<otwieracz> srhb: Nothing.
<srhb> otwieracz: Oh, and you ran nix-env -qaP | grep vivaldi as root as well?
<hyper_ch> or is nftables-snapshot something different?
Jackneilll has quit [(Remote host closed the connection)]
<srhb> otwieracz: I see: nixpkgs.vivaldi vivaldi-1.12.955.36-1 (ignore nixpkgs, I use a checkout instead of channels)
<otwieracz> # nix-env -qaP | grep vivaldi
<otwieracz> #
Jackneilll has joined #nixos
<hyper_ch> Isorkin: well, can't help you... but maybe still having a look at the nftables nix could help
<srhb> otwieracz: No output?
Jackneilll has quit [(Max SendQ exceeded)]
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
Jackneilll has joined #nixos
<otwieracz> srhb: No.
<hyper_ch> Isorkin: sorry, wrong link... here's the right noe: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/nftables/default.nix
<Isorkin> hyper_ch: I took it from there
<Isorkin> not work
<hyper_ch> can't help you
<srhb> otwieracz: Bizarre. I just added the same channel as you and I see the entry from it just fine. Does it work if you add it as your user instead of root and run nix-env as your user?
eacameron has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
Jackneilll has quit [(Remote host closed the connection)]
<srhb> otwieracz: Perhaps you have an override lying around mucking things up?
<otwieracz> No, no override.
pxc has quit [(Ping timeout: 248 seconds)]
<srhb> Oh, that would explain.
<otwieracz> But that's first action I've tried to do as user.
<srhb> Ah, yeah. Try using a different name than nixos for the channel
<otwieracz> I was doing everything as root and I had no warning messages previously.
* srhb nods
<otwieracz> Why?
<srhb> Because of the conflict between roots channel and your users
<otwieracz> But I don't want any user channels!
<srhb> I know, we'll remove it afterwards. :)
<srhb> Just want to check it.
<otwieracz> OK
<srhb> Weird. It does output something if you don't grep, right?
<srhb> I guess you can get rid of the extra channels, we'll need to dig into your config.
<otwieracz> It's more or less brand new install.
JosW has joined #nixos
<otwieracz> And I've got many nixos-unstable.foo packages.
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<srhb> Not after you removed the user channels, right?
<srhb> You should only have the nixos ones from root then.
<otwieracz> Wait, I will remove nixos-unstable from user.
<srhb> Yeah :)
<otwieracz> OK, what channels I should have as a root?
<otwieracz> I've got:
<otwieracz> [root@odyssey:/etc/nixos]# nix-channel --list
<srhb> The prefix should be nixos then
vandenoever has joined #nixos
<otwieracz> Right now the only prefix is nixos.
nslqqq has joined #nixos
<srhb> Okay, that sounds correct.
<srhb> Hmm.
<otwieracz> No vivaldi, still.
erictapen has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vduww
<NixOS_GitHub> nixpkgs/staging 35b4c8b Vladimír Čunát: xorg-server: fixup build after #29039...
NixOS_GitHub has left #nixos []
<srhb> otwieracz: And when you nix-channel --update, you get 3fe7cddc30, right?
<otwieracz> As root?
<srhb> otwieracz: Yeah.
<srhb> OK.
<srhb> Short of a configuration problem, I have no idea what's going on there.
<srhb> Regardless of the version you should see *some* version of vivaldi.
<otwieracz> Where are channels downloaded?
<otwieracz> I will review my configuration to make sure that nothing's weird there.
<srhb> otwieracz: /nix/profile/per-user/root/channels
<otwieracz> I've got no /nix/profile
<srhb> Uhhhh
<srhb> Sorry
<srhb> /nix/var/profile :P
<srhb> profiles
Jackneilll has joined #nixos
<otwieracz> It does exist: /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/applications/networking/browsers/vivaldi
Jackneilll has quit [(Ping timeout: 260 seconds)]
Jackneilll has joined #nixos
Jackneilll has quit [(Read error: Connection reset by peer)]
Jackneilll has joined #nixos
Jackneilll has quit [(Remote host closed the connection)]
<otwieracz> I have no idea what's going on.
<srhb> cat /nix/var/nix/profiles/per-user/root/channels/nixos/.version-suffix ?
<srhb> Me neither, but that channel appears to be corrupted somehow
<srhb> I've never seen that before.
<otwieracz> [root@odyssey:~]# cat /nix/var/nix/profiles/per-user/root/channels/nixos-unstable/.version-suffix
<otwieracz> pre117327.3fe7cddc30
<srhb> I suppose you can try removing the channel entirely, confirming that the new channels directory is now empty, then re-adding it
<otwieracz> I've tried.
<otwieracz> I've removed, added, updated - and again.
<srhb> And channels was indeed empty after removing it?
<srhb> Note that it's a "fresh" symlink each time you alter the channels
<otwieracz> Which directory exacly should be empty?
<srhb> /nix/var/nix/profiles/per-user/root/channels
<srhb> It might contain something else, but it should not contain a directory named the same as your channel (nixos)
<otwieracz> [root@odyssey:~]# ls -la /nix/var/nix/profiles/per-user/root/channels
<otwieracz> lrwxrwxrwx 1 root root 15 Oct 7 09:58 /nix/var/nix/profiles/per-user/root/channels -> channels-8-link
<otwieracz> And that's sall.
<srhb> Please add a slash at the end
<otwieracz> only manifest.nix
<srhb> :/
<srhb> OK
<otwieracz> I've tried doing nix-rebuild switch --upgrade
<otwieracz> error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)
<srhb> Try rm -rf all channels* in per-user/root
<otwieracz> And tat's fine.
<otwieracz> *** Downloading ‘https://cache.nixos.org/nar/0g3ckj7qbmr7wy85nbzbdwgdjywdgnf697c8sfd54a1ivv9xzk5c.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/smnfi5zlnjh75n0iny4am65m0vkgkwn2-glibc-2.25-49’...
<srhb> Then readding and updating
<otwieracz> BUt it's trying to download something!
<otwieracz> *how*?
<otwieracz> Nope, still nothing.
<srhb> OK, I'm officially out of ideas.
<otwieracz> This has to be totally my dumbest fault ever.
<srhb> I'd expect something like this with a broken nixPath or something, but with a fresh install, I don't see how that could happen...
k2s has joined #nixos
<otwieracz> I will review my config again.
hellrazo1 has joined #nixos
<srhb> It feels like it's reusing a wrong channel download, since the file keeps missing even though it claims to be the right revision.
<srhb> Perhaps you could remove the channel and collect garbage, then try again. But I'm grasping at straws.
<srhb> Actually...
<srhb> Here's an idea
<srhb> When you update the channel, it shows you a cloudfront url
<srhb> If you fetch that url manually and unpack it
<srhb> Is the file there?
<otwieracz> But I've told you that /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/applications/networking/browsers/vivaldi was there after I've downloaded it.
<srhb> Oh, sorry, I misread you then.
hellrazor has quit [(Ping timeout: 260 seconds)]
<otwieracz> But the nix-env is just doing something weird.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vdurD
<NixOS_GitHub> nixpkgs/master e86b783 Tuomas Tynkkynen: nixos/filesystems/ext: Don't try to load ext3 module...
<NixOS_GitHub> nixpkgs/master a06d64e Tuomas Tynkkynen: kernel config: Explicitly enable device mapper...
NixOS_GitHub has left #nixos []
Jackneilll has joined #nixos
cfricke has joined #nixos
<otwieracz> srhb: I have no idea. I've added vivaldi to systemPackages and it's just downloading
<srhb> Oh well...
<otwieracz> However, still not listed in nix-env
mortum5 has joined #nixos
schoppenhauer has quit [(Read error: Connection timed out)]
<otwieracz> Cold anyone, please, take a look at https://github.com/NixOS/nixpkgs/pull/30180 ? :)
oida_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vduoz
<NixOS_GitHub> nixpkgs/staging 656a008 Vladimír Čunát: texlive.bin.core-big: fixup build after #29039
<NixOS_GitHub> nixpkgs/staging ef41fc7 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
jensens has joined #nixos
oida has quit [(Ping timeout: 255 seconds)]
proteusguy has joined #nixos
k2s has quit [(Ping timeout: 248 seconds)]
schoppenhauer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30174: numix-gtk-theme: 2017-07-26 -> 2.6.7 (master...upd.numix-gtk-theme) https://git.io/vducC
NixOS_GitHub has left #nixos []
k2s has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vduoP
<NixOS_GitHub> nixpkgs/master 4bb1d9f Pascal Bach: gitlab-runner: 10.0.0 -> 10.0.2
<NixOS_GitHub> nixpkgs/master d6123d3 Joachim F: Merge pull request #30136 from bachp/gitlab-runner-10.0.2...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30176: elementary-icon-theme: 4.2.0 -> 4.3.0 (master...upd.elementary-icon-theme) https://git.io/vduWC
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30181: urbit: 0.4 -> 0.4.5 (master...urbit-0.4.5) https://git.io/vduaB
NixOS_GitHub has left #nixos []
hamishmack has quit [(Quit: hamishmack)]
proteusguy has quit [(Ping timeout: 246 seconds)]
MichaelRaskin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30170: postgresql: add version 10.0 (master...postgresql-10) https://git.io/vduLz
NixOS_GitHub has left #nixos []
leat has quit [(Quit: WeeChat 1.9)]
<MichaelRaskin> Hm. Rowhammer opcode bitflip creates a situation where frequent updates to all the binaries on the system create a security benefit per se, in addition to any bugs actually fixed.
mudri has joined #nixos
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vduKZ
<NixOS_GitHub> nixpkgs/master 58906f3 Vincent Laporte: ocamlPackages.lablgtk-extras: 1.5 -> 1.6
<NixOS_GitHub> nixpkgs/master aa3535c Vincent Laporte: ocamlPackages.xmlm: 1.2.0 -> 1.3.0
NixOS_GitHub has left #nixos []
k2s has quit [(Ping timeout: 260 seconds)]
NightTrain has quit [(Quit: Lost terminal)]
simukis has joined #nixos
hamishmack has joined #nixos
fragamus has joined #nixos
orbekk1 has quit [(Remote host closed the connection)]
orbekk1 has joined #nixos
Jackneilll has quit [(Remote host closed the connection)]
<hyper_ch> otwieracz: also on unstable here but no vivaldi can be found with nox
<srhb> hyper_ch: How about nix-env -qaP | grep vivaldi ?
<srhb> hyper_ch: And are you using channels or a git clone?
<MichaelRaskin> Isn't it unfree?
<srhb> OOOOOOOOOH
<hyper_ch> nixos unstable channel
<srhb> Damn it!
<srhb> :D
<srhb> MichaelRaskin: Thank you!
<hyper_ch> I do have unfree enabled
<srhb> Oh..
<hyper_ch> nix-env didn't find anything either
<MichaelRaskin> Where do you have it enabled?
<MichaelRaskin> I mean, user and system have independent settings for that
<hyper_ch> root@subi:~# cat /etc/nixos/configuration.nix | grep free
<hyper_ch> # This info is in a different file, so that the config can bit tracked by git without revealing sensitive infos. Feel free to expand
<hyper_ch> nixpkgs.config.allowUnfree = true;
<MichaelRaskin> So it is enabled for system configuration, but per-user commands use per-user nixpkgs config.
<hyper_ch> I only use system configuration... won't nox check that?
<srhb> otwieracz: ^--- you will need allowUnfree = true; in the ~/.config/nixpkgs/config.nix of the user using nix-env to see it
<srhb> otwieracz: Sorry, that didn't remotely cross my mind.
<MichaelRaskin> Nope, nox and nix-env think in terms of per-user.
<hyper_ch> oh, never knew :)
<otwieracz> srhb: I've got allow unstable.
<otwieracz> srhb: erm, allow unfree
bigvalen has joined #nixos
<srhb> otwieracz: In the user config of the user running nix-env ?
<otwieracz> In the system wide config.
<hyper_ch> so would I need to creat the config.nix for the user myself?
<srhb> otwieracz: That's the issue.
<srhb> otwieracz: nix-env only works on user level.
<srhb> hyper_ch: Yeah.
<otwieracz> What should be the exact syntax?
<srhb> otwieracz: pkgs : { allowUnfree = true; }
<otwieracz> That helped.
<otwieracz> Thank you.
<hyper_ch> or just add vivaldi to the package list in the global configuration - that should work as well I think
<srhb> otwieracz: Fantastic. I always forget that darn parameter. It was MichaelRaskin that pointed it out. :)
<xd1le> > "A browser that is fast, but also a browser that is rich in functionality, highly flexible and *puts the user first*."
<xd1le> > nonfree
<MichaelRaskin> We need a bot with sentiment analysis and a list of unfree packages. If someone is frustrated about an unfree package, ask about unfree. If reply has «enabled» and «unfree» — ask «system-wide or per-user»
<hyper_ch> :)
<srhb> MichaelRaskin: That's actually a great idea.
<srhb> It probably needn't be very smart.
<hyper_ch> irc bot?
<srhb> Yeah.
<MichaelRaskin> I guess you could train it in the style of bayesian spam-filter. But that requires some manual training. And maybe proper bot design, too.
<srhb> pish-posh ;-)
<MichaelRaskin> All the pesky details like «what is an incident»
Wizek_ has joined #nixos
Wizek has joined #nixos
<otwieracz> Is this possible to fetch one package from master somehow?
<MichaelRaskin> Yes, in multiple ways!
<otwieracz> (firefox-57)
<srhb> otwieracz: You can fetch any number of packages from any number of repositories.
<xd1le> otwieracz: yeah overlay it
<MichaelRaskin> Simplest: git checkout + nix-env -f (or import)
<MichaelRaskin> True maniacs look up the path on Hydra, then nix-store -r it (this will fetch from binary cache)
<otwieracz> And what's the *best* way? :)
<srhb> I think I can sort of guess what kind of setup you want, perhaps
<srhb> You could fetch a certain revision of nixpkgs from github in your configuration.nix and choose just that package from there.
<hyper_ch> srhb: what kind of setup does he want?
<srhb> One that doesn't involve any user or ad-hoc config was my parameters ;-P
<srhb> Of course, I'm only a fake mind reader, not a true one.
proteusguy has joined #nixos
<hyper_ch> you can't read minds over the internet yet?
<srhb> I'm still practising..
<hyper_ch> you need to step up
<srhb> Trying!
<MichaelRaskin> Reading minds is simple. Doing it correctly, though…
<srhb> :-)
<hyper_ch> "Do or don't do. There is no try!"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vduic
<NixOS_GitHub> nixpkgs/staging b174f42 Vladimír Čunát: dmtx: fixup build after #29039
NixOS_GitHub has left #nixos []
<hyper_ch> some old little green guy said soemthing like that
<MichaelRaskin> Notice there is nothing about doing correctly.
<hyper_ch> :)
<MichaelRaskin> «We need to do something, this is something, so we will do it.» — most of human collective decision-making ever.
cfricke has quit [(Quit: WeeChat 1.9.1)]
pxc has joined #nixos
<hyper_ch> hmmm, no acme.sh... only other client implementations... hmmm
<MichaelRaskin> Packaging a shell script shouldn't be complicated. I guess neither it is hard to run it directly, which exlains the lack of packaging.
<hyper_ch> :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vduir
<NixOS_GitHub> nixpkgs/staging 55ed948 Vladimír Čunát: gnome3.vte-ng: fixup build after #29039
NixOS_GitHub has left #nixos []
<srhb> otwieracz: This is what I was suggesting: http://nixpaste.lbr.uno/JGA-CBzM?nix
pxc has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vduio
<NixOS_GitHub> nixpkgs/master 360a5ef Frederik Rietdijk: python.pkgs.pyopenssl: use fetchPypi
<NixOS_GitHub> nixpkgs/master ef52c95 Kamil Chmielewski: mitmproxy: fix transitive cryptography dependency...
NixOS_GitHub has left #nixos []
<hyper_ch> srhb: one needs to activate JS from 3rd parties to see that not as 1 string
<srhb> hyper_ch: Feel free to do so. ;-)
<hyper_ch> my mom told me never to turn on JS from 3rd party sites
<srhb> Then I suppose it will remain a mystery!
slyfox has joined #nixos
<MichaelRaskin> hyper_ch: it is not that dangerous… if you perform it under a single-use UID with empty home…
<TimePath> stealing that; much better than a git submodule
<hyper_ch> maybe I should setup a vm
<srhb> TimePath: Thief!
<srhb> :)
<TimePath> srhb: it's okay; you get to keep your copy ;)
<srhb> TimePath: Oh, the digital world is amazing!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to release-17.09: https://git.io/vduiM
<NixOS_GitHub> nixpkgs/release-17.09 2680907 Frederik Rietdijk: python.pkgs.pyopenssl: use fetchPypi...
<NixOS_GitHub> nixpkgs/release-17.09 9867ebc Kamil Chmielewski: mitmproxy: fix transitive cryptography dependency...
NixOS_GitHub has left #nixos []
<srhb> I don't do this myself, by the way, I keep a local checkout of nixpkgs as the base of my system and simply cherry pick onto that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #30080: mitmproxy: fix transitive cryptography dependency (master...mitmproxy) https://git.io/vd80H
NixOS_GitHub has left #nixos []
<TimePath> as do I, but @work this would be handy
* srhb nods
<TimePath> get to upgrade my system, but keep prod the same
<srhb> Right :)
<srhb> Uuugh, I want a build server.
<srhb> Once more into the "repackage ceph for nixpkgs" breach, and it's horrible.
mudri has quit [(Ping timeout: 240 seconds)]
<TimePath> funny, that's what I'm dealing with right now
<srhb> ceph?
<TimePath> build server
<srhb> Oh... I was about to be very excited :-P
<TimePath> not as specific as the third line
<srhb> What are you doing for a build server then?
<TimePath> well, the build works
<TimePath> I'm stuffing around with caching to make it incremental
<TimePath> using bitbucket
<srhb> With Nix as well?
<TimePath> the build runs in a nixos/nix docker container
<srhb> The pain here is the massive c++ base that has to start all over every time I make a change to the nix derivation
<srhb> 3 hours of trying to keep my spirits up.
<srhb> :-P
<TimePath> my build is about 30 minutes and that's too long :P
<srhb> No kidding...
<MichaelRaskin> And I guess splitting into libraries should have been done earlier and now is too late.
jensens has quit [(Ping timeout: 255 seconds)]
<srhb> MichaelRaskin: I'm starting afresh, so it's... possible, I suppose. I'm afraid I'd have to rip out all of the ceph build toolchain though.
<bigvalen> Hmm. What provides /usr/bin/mail on nixos ? I'd postfix installed, but...
<srhb> I don't think I'm capable enough to do that.
<TimePath> most of the time is spent downloading things like bash, git, curl, and npm modules
<TimePath> I almost want to throw out the nix build system, and just use what's supported natively
<srhb> :/
<TimePath> but it is so much better at building docker images
<TimePath> which is good enough reason to continue
<srhb> Yeah, it is..
<MichaelRaskin> Downloading from a Nix binary cache?
<TimePath> not that I like docker much, but nixops wasn't suited
FRidh has joined #nixos
<TimePath> yeah, I push everything to a local cache after building
<MichaelRaskin> Maybe you should just setup a local binary cache which will be way faster (because local)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 2 new commits to master: https://git.io/vduPJ
<NixOS_GitHub> nixpkgs/master a0aeb37 Bjørn Forsman: plantuml: 1.2017.16 -> 1.2017.18
<NixOS_GitHub> nixpkgs/master 84a8f25 José Romildo Malaquias: qtcreator: 4.4.0 -> 4.4.1
NixOS_GitHub has left #nixos []
<TimePath> or at least I'm attempting to
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #30177: qtcreator: 4.4.0 -> 4.4.1 (master...upd.qtcreator) https://git.io/vdu4A
NixOS_GitHub has left #nixos []
<TimePath> can't beat `file:///cache` :)
<TimePath> as part of bitbucket, that dir is restored and persisted between builds
<srhb> bigvalen: Installed or services.postfix.enable = true ?
<MichaelRaskin> Yes you can! file:///dev/shm/cache !
<TimePath> don't have the RAM for that
Olgierd has quit [(Quit: WeeChat 1.5)]
<TimePath> should get builds down to 5mins or so
<TimePath> closer to what I can do locally, but without straining my own machine
hellrazo1 has quit [(Ping timeout: 248 seconds)]
<bigvalen> msrhb: services.postfix.enable = true
hellrazo1 has joined #nixos
<bigvalen> There is some mention of a 'mailutils' package, but nix-env -iA can't find it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30180: Firefox bin updates (master...firefox-bin-updates) https://git.io/vdu09
NixOS_GitHub has left #nixos []
<srhb> bigvalen: nix-env -qaP | grep mailutils says what?
<bigvalen> That sounds like the setup for a joke.
<bigvalen> (checking..)
<srhb> :-)
<TimePath> the punchline:
<TimePath> mailutils mailutils-3.2
<TimePath> I don't get it
<srhb> It's OK, most people don't get my jokes. Perhaps I'm unfunny.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #30183: openafs-client: don't remove kernel module on stop (master...openafs) https://git.io/vduP0
NixOS_GitHub has left #nixos []
<TimePath> ceph looks useful
<srhb> Extremely.
<TimePath> currently have no use for it though
<srhb> And it is -- I'm just very, very tired of my ansible deployment.
<srhb> Because Ansible.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 4 new commits to master: https://git.io/vduPz
<NixOS_GitHub> nixpkgs/master 62f4ded Tom Hunger: bokeh: 0.12.7 -> 0.12.9
<NixOS_GitHub> nixpkgs/master 8cc240a Tom Hunger: flake8-future-import: Add patch to fix tests.
<NixOS_GitHub> nixpkgs/master 83e48f7 Tom Hunger: xarray: Add upstream patch to fix tests. (#28643)
NixOS_GitHub has left #nixos []
<srhb> It's a perfect fit for a nixos module (which I haven't tried making yet) but I need to make the thing *build* first :-)
<TimePath> and you can't start with a binary release?
* bigvalen has been very much a 'nixos on his home NAS, learn it properly later' person but has recently decided that it's probably the way to go for lean container deployments.
<srhb> TimePath: Possibly, but one of my main use cases is actually altering the commits slightly to get upstream fixes. Perhaps I'm just being too ambitious.
<bigvalen> Heh. I specified 'mailutils' in environment.systemPackages and it's building it from source for me.
<srhb> bigvalen: Huh, wonder if it's broken in your channel.
<bigvalen> I'm on stable - it was broken back in July..
<srhb> 17.09 stable or 17.03?
<bigvalen> 17.03
<bigvalen> I didn't realise there was a 17.09
Olgierd has joined #nixos
<srhb> Just released this.. monday?
<TimePath> srhb: well, if you're lucky, someone else will do the hard work for you :)
* bigvalen just realised that 17 probably means 2017 and 03 probably means march
<hyper_ch> bigvalen: yeup
<TimePath> once there's a module and people can actually use it on nixos
<srhb> TimePath: Afraid not. And honestly I'd like to do it. :)
<srhb> Oh, I understand what you mean now.
<bigvalen> Haven't had an easy-to-understand release numbering since I loved Solaris 2.5.1 11/97
<hyper_ch> bigvalen: any reason you stick to stable?
<srhb> This is a good point, I had not considered it.
<bigvalen> hyper_ch No reason to run fast, to be honest. Until last week I was on unstable, chasing plex, before giving up and just running the offical docker container
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to release-17.09: https://git.io/vduXY
<NixOS_GitHub> nixpkgs/release-17.09 649d04e Frederik Rietdijk: Merge pull request #29741 from teh/zhf-17.09...
<NixOS_GitHub> nixpkgs/release-17.09 407b824 Frederik Rietdijk: python.pkgs.xarray: fixed by 649d04e8519c2cf2b06d4d7d56f87ac3b0f7fed8
NixOS_GitHub has left #nixos []
<bigvalen> Anyway. Before the wife drags me out for breakfast - is there a good docker/nixos tutorial ?
<srhb> I think lethalman had some blog posts on creating very lean docker images.
<srhb> Not sure how up-to-date that is.
<srhb> The manual might have more information.
<makefu> srhb: you are quite optimistic ;)
<TimePath> it's up-to-date enough
<srhb> makefu: "might" :-)
<TimePath> the short of it is dockerTools.buildImage
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #29524: pythonPackages.{hsjon-to-gantt, hjson, fuzzyfinder} (master...add-hjson-to-gantt) https://git.io/v5FhM
NixOS_GitHub has left #nixos []
<TimePath> anything in contents (it can be a list or a single item) appears in the root of the image
<TimePath> any /nix/store reference gets included into /nix transitively
<makefu> there is a reference in the manual and some examples
* TimePath sent a long message: TimePath_2017-10-07_09:46:13.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/PirUfPIszvcuDgWLnHlXbSMF>
cfricke has joined #nixos
<srhb> bigvalen: Looks like mailutils started succeeding on 17.03 three days ago, but the channel hasn't updated yet.
<bigvalen> TimePath, srhb: thanks.
<bigvalen> I installed it via source, but it's bitching about no 'mailer'
<bigvalen> Later.
<srhb> bigvalen: It looks good on 17.09 :)
thc202 has joined #nixos
<srhb> I've asked this before, but just in case: Is there any way to use ccache to speed up nix builds? I'm guessing "not obviously" because of hash issues...
<MichaelRaskin> I think there is ccacheStdenv, actually.
<TimePath> pkgs/top-level/all-packages.nix: ccacheStdenv = lowPrio (overrideCC stdenv ccacheWrapper);
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vduX6
<NixOS_GitHub> nixpkgs/master 6f1f1a5 Frederik Rietdijk: Revert "Resurrect pandas 0.17.1"...
NixOS_GitHub has left #nixos []
proteusguy has quit [(Ping timeout: 240 seconds)]
hellrazo1 has quit [(Ping timeout: 240 seconds)]
hellrazo1 has joined #nixos
cyberwolf[m] has left #nixos ["User left"]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vyp opened pull request #30184: sxhkd: 0.5.6 -> 0.5.8 (master...upd/sxhkd) https://git.io/vduX9
NixOS_GitHub has left #nixos []
<TimePath> managed to cut my build times down to 9mins
<hyper_ch> cool :)
<hyper_ch> vbox builds on my notebook for more than 2h usually :)
<TimePath> I'm on a beefy i5
<hyper_ch> also on i5 :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 3 new commits to release-17.09: https://git.io/vduXj
<NixOS_GitHub> nixpkgs/release-17.09 5bcecf8 Svend Sorensen: plantuml: 8047 -> 1.2017.16...
<NixOS_GitHub> nixpkgs/release-17.09 77863fc Bjørn Forsman: plantuml: 1.2017.16 -> 1.2017.18...
<NixOS_GitHub> nixpkgs/release-17.09 e582efb José Romildo Malaquias: qtcreator: 4.4.0 -> 4.4.1...
NixOS_GitHub has left #nixos []
<TimePath> the laptop/desktop i5s are totally different
<TimePath> mine is an i5-6600 @ 3.30GHz
<hyper_ch> not a big different :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 3 new commits to master: https://git.io/vdu1U
<NixOS_GitHub> nixpkgs/master 6db9b65 Spencer Baugh: maintainers: add catern
<NixOS_GitHub> nixpkgs/master 8f362a1 Spencer Baugh: tools/system/supervise: init at 1.0.0
<NixOS_GitHub> nixpkgs/master a9e090f Spencer Baugh: pythonPackages.supervise_api: init at 0.1.5
NixOS_GitHub has left #nixos []
<TimePath> double the clock rate, 4 cores
<hyper_ch> I got 2 cores and hyperthreading :)
* TimePath doesn't believe in hyperthreading
<hyper_ch> but still, 6m is really nice
<srhb> Ooooh, very interesting.
<srhb> I'll give that a go next time around.
<hyper_ch> but I guess you don't build virtualbox
<hyper_ch> srhb: give what a try?
<srhb> ccacheStdenv
<srhb> I was away for a few minutes, hence the non-sequitur.
<hyper_ch> it's ok
<srhb> I hear i7 for laptops is mostly a waste of money
<srhb> I need to consider what I should get next...
<hyper_ch> good notebooks aren't easy to find
<hyper_ch> there's always usually a gazillion of drawbacks
<MichaelRaskin> Good notebooks seem to be impossible to find.
<sphalerite> I'm pretty happy with my XPS 15
<hyper_ch> even trying to get a notebook that supports 16gb ram isn't an easy task
<CrazedProgrammer> hyperthreading gives a ~40% boost to the total processing speed. if all virtual cores are at 100% then you get 70% the performance on a single core
<sphalerite> its has 16GB RAM :p
<hyper_ch> sphalerite: can you lend it to me for like.... 1-2 years?
<sphalerite> hyper_ch: hmmmm no
<TimePath> CrazedProgrammer: for the same processor, with HT on vs off. I'd rather just have double the cores though
<srhb> CrazedProgrammer: How does that even work?
<hyper_ch> no idea how hyperthreading works... I assume it's not just marketing things and that it actually does benefit
<CrazedProgrammer> TimePath: yeah, of course. the selection on mobile chips is really poor though
vandenoever has quit [(Ping timeout: 255 seconds)]
* TimePath is a desktop guy
<hyper_ch> I don't believe in desktops
<MichaelRaskin> I bought a slightly used ThinkPad W530, which I upgraded to 32GiB. W540 was available but had unusable touchpad (why do they parrot Apple so much). W530 BIOS is a parody of software, and Optimus is done wrong.
<TimePath> to go from my i5 to an i7 was like 50% more cost
cfricke has quit [(Quit: WeeChat 1.9.1)]
<TimePath> same amount of cores, lower clock rate, but had hyperthreading
<TimePath> didn't seem worth it
<MichaelRaskin> Why cannot Asus put their ZenBook motherboards into their N metal bodies and fill the huge amount of space available with battery.
<TimePath> hyper_ch: think "concurrency", but not "parallel"
<TimePath> kinda like nodejs vs apache
<TimePath> if you do something stupid with node, everything in that process suffers
<MichaelRaskin> Thinkpad has an almost desktop-grade i7 though.
<CrazedProgrammer> srhb: the internal scheduler schedules the instructions of the virtual cores so they are more tightly packed together and can use different stages of the fetch/decode/execute stages at different times
<hyper_ch> are thinkpads still that clunky?
mortum5 has quit [(Ping timeout: 258 seconds)]
<srhb> CrazedProgrammer: Magic!
<MichaelRaskin> I want clunky, because clunky = space for battery
<hyper_ch> few hours of operation is fine for me
<srhb> I have a t530, it's aging a bit now...
<CrazedProgrammer> TimePath: me too. my ryzen 5 1600 crushes my i5 6200U
<hyper_ch> don't want a too heavy notebook
<srhb> And the battery is mostly a 3 second UPS.
<hyper_ch> so max 15"
<hyper_ch> dvd not reauired, at least 16GB ram
rct has joined #nixos
<hyper_ch> no need for interl video card is fine...
<hyper_ch> geez, can't type
<MichaelRaskin> ZenBook pro seems to allow 16GiB
rct has quit [(Client Quit)]
<TimePath> the high-end graphics card I got in 2007 is equivalent to the integrated intel graphics I got last year...
<srhb> I would love a beefy lightning thing with 32GiB ram, excellent monitor, excellent keyboard, excellent touchpad, no discrete GPU _but_ the ability to use an eGPU with impunity.
<srhb> It doesn't seem to exist.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vdu1c
<NixOS_GitHub> nixpkgs/staging acfec16 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
<hyper_ch> notebooks are a pain to buy
<MichaelRaskin> For some reason, people cannot even do a proper keyboard layout.
<hyper_ch> yeah, why would anyone want a different keyboard layout and swiss german anyway...
<hyper_ch> s/and/than/
<MichaelRaskin> That's not a problem, I am OK with whatever labels they drunkenly put on keys as long as I can remap
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from 177f8dc to af6c775: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable 5483a63 Will Dietz: pyqt: 5.8.1 -> 5.9
<NixOS_GitHub> nixpkgs/python-unstable af6c775 Will Dietz: sip: 4.19.1 -> 4.19.3
NixOS_GitHub has left #nixos []
<hyper_ch> remap as taking out keys and put them in the right spot?
<MichaelRaskin> But ThinkPad manages to put a crammed-14'' style _physical_ layout in a 15.6'' notebook.
<hyper_ch> or remap as use different layout in the software?
<MichaelRaskin> I am OK with up to 50% of my keys having wrong labels
<hyper_ch> I'm not
<hyper_ch> it just feels wrong
<MichaelRaskin> I have typed Russian on Danish-only external keyboard, I don't care anymore.
sigmundv__ has joined #nixos
<srhb> MichaelRaskin: ow. :D
<MichaelRaskin> The problem is that they mess up the physical layout first, then also mess logical layout on top of it.
<hyper_ch> or why don't have notebooks LED keys where you can just change the layout as you want
<MichaelRaskin> srhb: it is actually simpler than blank keycaps, because you have _some_ kind of visual homing.
<srhb> True enough.
<srhb> (I'm used to Danish, but I'd have trouble with russian regardless of the keyboard ;-))
<srhb> Russian*
<MichaelRaskin> I pretend I can read Danish.
<srhb> Det er nemt. :-)
<srhb> Anyway, laptops.. I give up. Can we get thin, portable terminals instead or something.
<hyper_ch> MichaelRaskin: reading danish is simple... understanding is the problem :)
<TimePath> knowing nothing about danish, I got "that is ..."
<srhb> TimePath: "easy" :)
<MichaelRaskin> hyper_ch: I understood enough to shop for food while being a postdoc in Denmark.
<hyper_ch> postdoc?
<hyper_ch> that sounds like a lot of work
<srhb> Presumably, "doc" is the hard part.
<TimePath> srhb: well, like I said, I know nothing about danish :P
<srhb> :)
<hyper_ch> after getting your "doc" you'll need to reintegrated yourself into society.... tht sounds hard
<MichaelRaskin> Frankly, CPU/RAM part is almost offloadable nowadays.
<srhb> I have been considering doing the building in the cloud, but it's non-cheap.
erictapen has joined #nixos
<srhb> Perhaps I'd be better off setting up a beefy home machine and just doing everything over ssh.
<MichaelRaskin> Gigabyte BRIX are actually backpackable _if_ you want to carry something fast and heavy.
<MichaelRaskin> hyper_ch: integrating? for a one-two year position?
<TimePath> srhb: that's my plan if I ever get a laptop
<MichaelRaskin> I mean, it is infeasible to learn oral Danish that fast anyway, but everyone speaks English if asked.
<hyper_ch> while writing your thesis, don't you seclude yourself from society for a year or so....?
<TimePath> also I love the NUC form
<MichaelRaskin> Now, here in France broken French can be useful on top of fluent English.
hellrazo1 has quit [(Ping timeout: 248 seconds)]
<MichaelRaskin> It's only if you want to finish it in a reasonable time.
musteresel has joined #nixos
<sphalerite> yes. The French don't like speaking English.
<hyper_ch> tu parles français?
<MichaelRaskin> Un peu.
<srhb> TimePath: It's probably not too bad with nix, because the daemon can offload, I guess...
<MichaelRaskin> What is more important, they _do_ understand bad French.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #30184: sxhkd: 0.5.6 -> 0.5.8 (master...upd/sxhkd) https://git.io/vduX9
NixOS_GitHub has left #nixos []
<sphalerite> moi oui, j'ai été obligé de l'apprendre pour passer le bac :)
<Rembane> Speaking in a loud voice in Swedish does wonders too.
<srhb> Rembane: Scary.
<MichaelRaskin> In Denmark, you need to speak Danish actually well to be understood.
<TimePath> j'ai ne pas parle francais
hellrazo1 has joined #nixos
<TimePath> except for that
<Rembane> srhb: Indeed. :)
<musteresel> Is the binary cache down / under heavy load? I always get "download-from-binary-cache.pl: still waiting for ‘https://cache.nixos.org/48c453577604n359ik4gxzl0qpliwj2i.narinfo’ after 5 seconds..."
<MichaelRaskin> In France, you can speak in something remotely similar to French and people will understand and try to use simpler phrases so you don't run out of your vocabulary.
<TimePath> and it's probably wrong, because I haven't studied french in ages
<MichaelRaskin> TimePath: I think NUCs marketed as NUCs are weak.
<hyper_ch> je n'étais jamais bien en français à l'école... mais pendant mon service militaire en Romandie tout à changer - malheureusement j'ai oublié le pluspart
ebzzry has quit [(Ping timeout: 255 seconds)]
<makefu> musteresel: the binary cache is amazon s3, so maybe you are very far from the region it is currently configured for (europe afair)
<MichaelRaskin> A few years ago BRIX was the only fast and still cariiable option.
<sphalerite> I think French speakers might be more likely to end up using guix than nix?
<musteresel> makefu: I'm in germany ... near Frankfurt (large network node) .. so shouldn't be a problem?
<TimePath> MichaelRaskin: that's not what I look for in a NUC though, it's the portability factor for streaming
griff_ has joined #nixos
<TimePath> put your noisy computer in a room, plug your NUC in somewhere else
<makefu> musteresel: then you should have no issues, unfortunately s3 is sometimes a bit flakey.
<xd1le> sphalerite: why?
<musteresel> makefu: ok, I'll probably try again in an hour or so. Thanks for the info!
<makefu> just try again right now, you might be lucky :)
<hyper_ch> so, testing now autosnap shot with zfs
<hyper_ch> sphalerite: what's guix?
rct has joined #nixos
<TimePath> it's nix, but with GNU guile
<TimePath> which is a lisp
<MichaelRaskin> Which they use both for packages and for builders.
<sphalerite> hyper_ch: it's like GNU nix. It's based on nix, but has a much stronger free software focus, is a GNU project, and uses guile scheme rather than its own language
<sphalerite> xd1le: because (I have the impression) French people seem to associate with the GNU philosophy quite a bit, I think it's a cultural thing, plus the original author is French
<MichaelRaskin> Much stronger free software focus than Nix should be called «only package free software».
<hyper_ch> LIberté, égalité, fraternité :)
<TimePath> I've not looked into it, but how does it work in practice? nix being lazy is quite helpful
<sphalerite> that I don't know
<MichaelRaskin> Implementing laziness on top of any good Lisp is _easy_.
<TimePath> I can implement laziness on top of C too if I want
<MichaelRaskin> That will not be as easy.
<xd1le> sphalerite: oh i didn't know ludo is french
<xd1le> nice
<hyper_ch> hmmm, another day, another data hack: disqus
<sphalerite> well I'm actually just assuming based on the evidence - he does have a French-sounding name and works in France
<sphalerite> I don't know for sure
<xd1le> sphalerite: cool about the cultural thing though, thanks
<sphalerite> xd1le: I'm not French myself but it seems to align well with the experience I had while living in France, and the values of the French republic as they are perceived by the French
<sphalerite> again just IME. Not sure how generalisable that is
<xd1le> he does have a french name, just realised
ison111 has quit [(Ping timeout: 240 seconds)]
<xd1le> sphalerite: i know that for example, free software is also a bit of a thing in south america and spain because rms is fluent in spanish. but didn't know about the french connection™
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/66f8512e4f (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<xd1le> i switch from guixsd to nixos sadly
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> why is that? Need for non-free software?
_ris has joined #nixos
rct has quit [(Quit: leaving)]
rct has joined #nixos
<makefu> sphalerite: drivers, mostly
<makefu> this is at least for me why all-free is no option
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] selaux opened pull request #30186: selenium-server-standalone: 2.53.0 -> 3.6.0 (master...selenium-3.6) https://git.io/vduDc
NixOS_GitHub has left #nixos []
rct has quit [(Client Quit)]
<sphalerite> yeah, I think I could do without nonfree kernel modules but I do need firmware :/
<hyper_ch> hmmm, autosnap shot is working form what I can see
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vduDu
<NixOS_GitHub> nixpkgs/master 23ad2b2 Frederik Rietdijk: python.pkgs.bootstrapped-pip: fix hash...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vduDz
<NixOS_GitHub> nixpkgs/staging 2c9c04f Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
<xd1le> makefu: not even
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vduDa
<NixOS_GitHub> nixpkgs/release-17.09 2231575 Frederik Rietdijk: python.pkgs.bootstrapped-pip: fix hash...
NixOS_GitHub has left #nixos []
<xd1le> a program i would like to use no work on guixsd because it seems to need systemd
<xd1le> and guixsd uses shephard (previously named dmd), an init system written in guile
rct has joined #nixos
<xd1le> makefu: oh i initally read your response as "drivers, likely", my bad
<TimePath> I am so glad passthru exists right now
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
MarcWebe1 has joined #nixos
MarcWebe1 has quit [(Client Quit)]
<cocreature> Hey, I have “{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/45ffca6ff84ca5e00842900802af577dcfb3e84f.tar.gz") {} }:” in my "default.nix" to pin nixpkgs but that redownloads the tarball occasionally (despite me not having gc’d). is there a way to avoid this?
<gchristensen> cocreature: there is, let me make an example
<cocreature> I’m also not sure what exactly causes it to redownload it. it doesn’t always happen.
pxc has joined #nixos
<gchristensen> it is because Nix doesn't know if that URL will ever change, so it assumes it ill because it doesn't knowwhat is on the other side
<LnL> because fetchTarball doesn't take a hash
<cocreature> sure I get why it needs to redownload it. I don’t get why it doesn’t always do so
<gchristensen> oh it has a 5min cache or so :)
<cocreature> ah makes sense :)
<gchristensen> oh hmm LnL is there a fetcher in nixpkgs which you can import?
<LnL> what do you mean?
<gchristensen> like this: { pkgs' ? ((import <nixpkgs> {}).fetchurl { url = "..."; sha256 = "..."}) }:
<gchristensen> like this: { pkgs' ? import ((import <nixpkgs> {}).fetchurl { url = "..."; sha256 = "..."}) }:
<LnL> that should work, not sure what your question was
<TimePath> huzzah, 4minute incremental builds
<LnL> you need to import nixpkgs twice unless you use nix 1.12
csingley has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
<cocreature> using nixpkgs to pin nixpkgs seems a bit fishy ;)
<cocreature> but I guess fetchurl is unlikely to change very often
<gchristensen> cocreature: In The Future, nix's fetchtarball cantake a hash, IIRC
<LnL> indeed, you can pass a hash to builtins.fetchurl with nix 1.12
<cocreature> ah great
<TimePath> The future is already here — it's just not very evenly distributed
<LnL> but until then using the fetchurl from nixpkgs is the best solution
<LnL> unless you pull it out of the nix expression
<srhb> Hmm, I don't think I'm using the ccache thing right.. Do I need to do something more clever than just replace stdenv with ccacheStdenv?
<MichaelRaskin> Probably you need to configure something about cache location. And add that cache location to the list of paths allowed inside sandbox.
<TimePath> I don't think it magically stores the cache outside the build environment
<srhb> Sadface.
<srhb> But, okay, if I keep the build environment around, I should be okay?
<srhb> Is there a directory I could look for?
bennofs has joined #nixos
<mgdelacroix> Hi!! I want to deploy an application in the form of a nix package and to run it using a systemd service. I'm able to create the .service file from the derivation, but how should I integrate it with the rest of the system?
<TimePath> are you using nix-build or nix-shell to try and build ceph?
<srhb> mgdelacroix: just enable it :)
<srhb> TimePath: nix-shell so far.
<srhb> nix-build will probably be more tricky.
<TimePath> nix-shell is far nicer for iterating on why things won't build
<srhb> Indeed, I'll only switch once I have things working.
<srhb> Probably never, at this rate :-)
<TimePath> what problems are you running into mostly?
<sphalerite> cocreature: why it doesn't always redownload: it caches for a couple of hours iirc
<sphalerite> heh, matrix says the room has 999 members :D
<TimePath> I see 939
<sphalerite> huh.
<sphalerite> Well the IRC bridge isn't the best at keeping track of things
<srhb> mgdelacroix: For instance, I have a service like systemd.services.myserver = { serviceConfig = { ExecStart = "${mypackage}/bin/start"; }; wantedBy = ["multi-user.target"]; };
<mgdelacroix> srhb: the file ends up in my ~/.nix-profile/lib/systemd/system, and doesn't appear in the list-units output
FRidh[m] has joined #nixos
<TimePath> Consistency, Availability, Partition tolerance: choose two
<srhb> mgdelacroix: Oh, you're not on NixOS?
<mgdelacroix> srhb: I see, that would be ok for nixos (AFAIK) but not if I want to deploy it on a (for example) debian&nix
<mgdelacroix> I am, but my prod system is not, sadly :(
<srhb> mgdelacroix: No, indeed. Then you're on your own for copying things to their right places etc.
<srhb> mgdelacroix: This is, basically, the justification for NixOS.
<mgdelacroix> I see, so maybe linking the file to one of the systemd paths would do, right?
<srhb> mgdelacroix: Yeah. :)
<mgdelacroix> srhb: I'll try right away, thanks!!! :)
sigmundv__ has quit [(Quit: Leaving)]
<sphalerite> TimePath: is partition tolerance really useful if you don't have availability with it?
<MichaelRaskin> sphalerite: it's a trick question.
<TimePath> sphalerite: some systems have a master node, and the whole thing falls apart without it. Matrix isn't like that
<MichaelRaskin> If you don't have partition tolerance, and a partition does happen, now what do you expect to happen?
<sphalerite> aah right fair enough
<TimePath> everyone can lose internet connectivity to a bunch of everyone, but so long as there's at least one bond between everyone, it all still works
<TimePath> just not consistently, because there's no authoritative ordering of events that a master node would provide
<sphalerite> and why does #nixos show up as #nixos:pierrebeaucamp.com for me?
<TimePath> that one I can't answer
<sphalerite> it used to be #freenode_#matrix:matrix.org
<TimePath> it still is
<TimePath> it has three aliases
<hyper_ch> sphalerite: you also use zfs, right?
<sphalerite> hyper_ch: yes
<hyper_ch> sphalerite: I assume you use auto snapshotting but do you also use auto scrubbing?
<TimePath> sphalerite: I don't know if the canonical alias has been set here
<MichaelRaskin> It has three aliases that all assume that FreeNode is source of truth. And FreeNode can have an own internal partition.
<TimePath> right; matrix being bridged here is subject to IRC's network handling
<sphalerite> hyper_ch: I use autosnapshot on my server (yes yes I get it you use debian on servers no need to mention it every time someone talks about a server running nixos) but not autoScrub, although I probably should
<TimePath> which has netsplits and no merges
<sphalerite> distributed systems are complicated.
<TimePath> you could netsplit matrix too, but a server would have to lose connectivity to all others
<TimePath> and yet still be accessible to its users
sigmundv_ has joined #nixos
<MichaelRaskin> Well, you could have a true partition. Which is easy — just cut the only two underwater cables into some country.
<sphalerite> and they'd catch up when the server gets connected again, right?
<sphalerite> pretty neat stuff
<TimePath> yup
sigmundv has quit [(Disconnected by services)]
sigmundv_ is now known as sigmundv
<MichaelRaskin> In a complicated barely-connected situation I think that ordering of messages will become annoying
<TimePath> though people in each partition would see things in different orders
<srhb> Oh, something works.
<srhb> Now to figure out how to reconfigure without nuking the ccache
<Rembane> "Somebody reconnected the atlantic cables, now you have a backlog of over nine thousand messages. Congratulations."
<hyper_ch> sphalerite: hmmm, I think I'll try auto scrubbing
<TimePath> I get that every day from this channel :P
sigmundv_ has joined #nixos
<Rembane> :D
b has joined #nixos
<MichaelRaskin> Well, so far matrix protocol seems to solve a somewhat simpler problem tha a full DVCS. And you know, unlike Git some DVCSes created a lot of useful writing about these problems.
<TimePath> simpler.. how?
<MichaelRaskin> Because matrix is add-only and gives up on ordering in some cases.
<TimePath> ordering doesn't actually have anything to do with the federation protocol as far as I know
erictapen has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> It does have something to do with simultaneous-addition merges in DVCSes.
<TimePath> unlike a DVCS, no human decides what to do in a merge conflict
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdu9k
<NixOS_GitHub> nixpkgs/master a982b20 Vladimír Čunát: Merge branch 'staging'...
NixOS_GitHub has left #nixos []
<MichaelRaskin> Also, a DVCS can have three branches that sometimes do two-branch merges. These merges can also be unidirectional. In matrix, all forks should be merged at the first opportunity.
<MichaelRaskin> Unlike a DVCS, all merge conflicts are defined away.
<MichaelRaskin> If you have two additions in the same place? well, order of arrival, doesn't need to be globally identical.
<TimePath> the first opportunity might be an octopus merge
oida has joined #nixos
<hyper_ch> still pondering if I should turn off atime on zfs
<MichaelRaskin> And chaging an entry doesn't happen in DVCS sense.
<MichaelRaskin> And creation of a new channel on two different servers is not a problem, because namespacing.
<sphalerite> hyper_ch: do you ever use atime?
<adisbladis> hyper_ch: Not useful very often imo
<hyper_ch> no
<sphalerite> well then turn it off :)
<TimePath> MichaelRaskin: point made :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdu9G
<NixOS_GitHub> nixpkgs/master 7525a3c Kamil Chmielewski: sonic-pi: 2.9.0 -> 3.0.1
<NixOS_GitHub> nixpkgs/master 2a0264e Jörg Thalheim: Merge pull request #30131 from kamilchm/sonic-pi...
NixOS_GitHub has left #nixos []
<hyper_ch> ok, atime turned off
oida_ has quit [(Ping timeout: 264 seconds)]
<MichaelRaskin> TimePath: basically, the underlying event synchronisation is the same, and DVCS design has created a lot of texts on synchronisation protocols.
MoreTea has joined #nixos
hellrazo1 has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sternenseemann opened pull request #30187: jackline: 2017-05-24 -> 2017-08-17 (master...master) https://git.io/vdu9R
NixOS_GitHub has left #nixos []
hellrazo1 has joined #nixos
vandenoever has quit [(Ping timeout: 248 seconds)]
hotfuzz_ has quit [(Ping timeout: 255 seconds)]
hotfuzz_ has joined #nixos
<srhb> Is Matrix really dying, as the funding crisis seems to imply?
<TimePath> It'll live on as open source either way
<srhb> I *almost* managed to sell it as a Slack replacement to my coworkers the other day...
<TimePath> why almost? couldn't overcome the cost of switching?
<TimePath> whee, 42m35.128s for a clean build
<TimePath> this is a javascript project, and that's with the nixos binary cache
<srhb> Almost because of the funding crisis, I think.
<srhb> It didn't look enterprise-safe.
<srhb> Might still manage though.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdu9X
<NixOS_GitHub> nixpkgs/master 4afb28a José Romildo Malaquias: flat-plat: 20170917 -> 20171005 and renamed to materia-theme
<NixOS_GitHub> nixpkgs/master 29ba913 Jörg Thalheim: Merge pull request #30175 from romildo/upd.flat-plat...
NixOS_GitHub has left #nixos []
<adisbladis> srhb: My company switched over from slack about a month ago :)
<MichaelRaskin> Well, when Slack folds, Slack chats are actually belly-up.
<TimePath> 0m45.216s for a no-op build
<MichaelRaskin> A local Matrix installation gives you a better window of opportunity whatever happens upstream.
<srhb> Agreed.
<TimePath> I like owning my data
<srhb> Also agreed, of course.
<MichaelRaskin> Is your Slack setup vulnerable to «support@» trick?
<srhb> uh...
<srhb> I don't know :P
<TimePath> ah, another gitlab fail
koserge has joined #nixos
<TimePath> tl;dr: gets a unique @gitlab.com email address people can email issues to, uses it to sign up, grabs activation link from issue in gitlab
deepfire has joined #nixos
<MichaelRaskin> Well, it is a nice cross-infrastructure fail.
<TimePath> it's then accepted by slack because the domain checks out
<TimePath> you can disable signups on your matrix homeserver
<TimePath> then you either need an access code, or the administrator to make you an account
eacameron has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<TimePath> woo, 4m31.787s rebuild
<TimePath> my work here is done
bennofs has joined #nixos
nh2 has joined #nixos
orivej has quit [(Ping timeout: 248 seconds)]
prietoj has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30105: radiotray-ng: init at 0.1.7 (master...feature/radiotray-ng) https://git.io/vd4x9
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vduHn
<NixOS_GitHub> nixpkgs/master 7837cfe sternenseemann: jackline: 2017-05-24 -> 2017-08-17
<NixOS_GitHub> nixpkgs/master c25eb2d Jörg Thalheim: Merge pull request #30187 from sternenseemann/master...
NixOS_GitHub has left #nixos []
deepfire has quit [(Ping timeout: 255 seconds)]
koserge has quit [(Ping timeout: 260 seconds)]
sigmundv has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30120: ntk: 2017-04-22 -> 1.3.1000 (master...master) https://git.io/vdBR6
NixOS_GitHub has left #nixos []
<hyper_ch> hmmm, when I build a custom iso with nix... then alter my iso.nix file and rebuild again, the previously created iso and stuff is still there until I do run garbage collection, right?
<TimePath> yeah
<TimePath> I filled up my SSD on friday because I hadn't GC'd in a while
<TimePath> 120GB of cached builds+dependencies
<hyper_ch> wasn't sure about iso building... trying to build iso with kde, my keyboard layout, zfs, and a few programs :)
<TimePath> ISO building will use more space than normal builds
<TimePath> since it copies all the dependencies into it
<hyper_ch> it's about 800mb now
<hyper_ch> but haven't actually tried to run the iso ;)
<hyper_ch> well, adding cryptsetup, htop, kate and tmux and running kde with my keyboard layout - that's what I have this far
<hyper_ch> https://paste.simplylinux.ch/view/raw/f5a0cadc looks like this currently
<hyper_ch> not sure if it works though
<TimePath> `# [It does not] contain any graphical stuff.` :)
<hyper_ch> well, that's from the default
<hyper_ch> didn't remove that comment :)
<prietoj> Hello! I just bought an intel nuc and tried to install the latest nixos via USB. I created a boot partition (vfat16) and a regular partition (ext4) with full disk encryption. Then I just generated the default configuration.nix and installed nixos. After removing the USB and rebooting I was able to start the NixOS Stage 1 but it failed: "waiting for device /dev/disk/by-uuid/..." and then "mount: mounting /dev/disk/by-uuid/... failed: No
<prietoj> May it have something to do with the fulldisk encryption?
<TimePath> I've seen that error before when the initrd didn't have modules for the physical disk
<TimePath> though I wasn't using encryption
<hyper_ch> prietoj: with full disk encryption you'll need to adjust the uuid
<hyper_ch> there should be two entries in the hardware configuration nix.... one is for the actual partition and one is for the mapper device
<hyper_ch> IIRC
<mgdelacroix> srhb: working perfectly, btw, more or less like: ln -s ~/.nix-profile/lib/systemd/system/my.service ~/.config/systemd/user/ && systemctl --user daemon-reload && systemctl --user status my.service
<hyper_ch> the boot.initrd.luks.devices need to have the uuid of /dev/sdaX
<mgdelacroix> srhb: thanks again :)
<hyper_ch> prietoj: and fileSystems."/" = will need to uuid of the actual mapper device/uncrypted filesystem
sary has quit [(Ping timeout: 240 seconds)]
<prietoj> I thought I was not supposed to modify the hardware configuration file
<hyper_ch> (another option which I'm testing curretnly is to use encrypted zfs.... there, the hardware-cofniguration.nix gets generated correctly)
<hyper_ch> prietoj: usually you don't need to modify it... with luks/dm-crypt root encryption you will have to
<srhb> mgdelacroix: Good :)
<prietoj> hyper_ch: Ok, I'll give it a try. Thanks!
<srhb> mgdelacroix: I think personally I'd manually copy the service into place, because I think using the user profiles for this is a bit funky, but yeah.
<srhb> mgdelacroix: It's probably okay :)
<hyper_ch> prietoj: https://github.com/sjau/nixos/blob/bedbc66a17be04921ee65fbe455f4992bbb7a0e3/hardware-configuration.nix --> line 21 --> the initrd.luks need to point to the correct "sda" device as shown in line 23-27
<mgdelacroix> srhb: was going to say exactly that, just discovered that, if linked, a systemctl --user disable my.service will delete the link from ~/.config/systemd/user, so better to copy
sary has joined #nixos
<hyper_ch> the uuid of the luks device is different from the uncrypted filesytem one :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #30189: Rely on XML_CATALOG_FILES variable for DocBook (staging...docbook-xml-catalogs-hook) https://git.io/vduHj
NixOS_GitHub has left #nixos []
<srhb> mgdelacroix: Right. :)
<prietoj> hyper_ch: I see. How can I get that uuid?
<hyper_ch> prietoj: ls -al /dev/disk/by-uuid
ShalokShalom_ has joined #nixos
<hyper_ch> ok, kde didn't start from that iso..... where did I go wrong? :)
ShalokShalom has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1594: release-common: Fix busybox builtins (busybox >= 1.27) (master...fix/busybox-builtins) https://git.io/vduQx
NixOS_GitHub has left #nixos []
<hyper_ch> where's the nix expression for the actual nixos iso?
<MichaelRaskin> nixos/modules/installer/cd-dvd I guess
<hyper_ch> the graphical live cd
<MichaelRaskin> (well, there is also release.nix that calls that)
arjen-jonathan has joined #nixos
<hyper_ch> MichaelRaskin: thx :) next try for my custom iso :)
[0x4A6F] has joined #nixos
Vincenzo[m] has joined #nixos
<flokli> In case sb is still searching a bed for nixcon, I booked a 'two single bed room' at the k which costed the same as a single bed room. Wouldn't mind to share ;-)
<MichaelRaskin> I am not fully sure: read graphical.nix, it enables kde4
<hyper_ch> then tht's not the current nix... when I download the graphical iso is uses kde5
<MichaelRaskin> Hm
<MichaelRaskin> module = ./modules/installer/cd-dvd/installation-cd-graphical-kde.nix;
<MichaelRaskin> That's from release.nix
<hyper_ch> let me recheck... I am pretty sure it's kde5
<MichaelRaskin> I mean, you are reading wrong module
<hyper_ch> what do I need to read then?
<MichaelRaskin> release.nix !
Mateon1 has quit [(Ping timeout: 248 seconds)]
<MichaelRaskin> in top-level nixos/ directory
<MichaelRaskin> And follow links from there
Mateon1 has joined #nixos
<hyper_ch> MichaelRaskin: which points to where I was
<MichaelRaskin> No
<hyper_ch> it does point there.....
<MichaelRaskin> No
<MichaelRaskin> installation-cd-graphical.nix
<MichaelRaskin> installation-cd-graphical-kde.nix
<hyper_ch> ?
<MichaelRaskin> You posted a link to the first one. release.nix mentions the second one.
<hyper_ch> https://github.com/NixOS/nixos/blob/master/release.nix#L154 -> module = ./modules/installer/cd-dvd/installation-cd-graphical.nix;
<hyper_ch> release nix does not have and -kde.nix
<MichaelRaskin> Ah wait
<MichaelRaskin> You are reading NixOS/nixos
<hyper_ch> yes
<MichaelRaskin> Read its README.md
<hyper_ch> wrong repo?
<hyper_ch> ah
<hyper_ch> ok, that looks different
tmaekawa has joined #nixos
<MoreTea> is dockerTools.pullImage stable? It appears that the output sha256 jumps all the time
<MoreTea> e.g. nix-shell, :l <nixpkgs>, then :b dockerTools.pullImage { imageName = "kubernetes/pause"; sha256 = "1vzijd714zgwhw5a6q7fqldwz16idsq8vfpa82khvlpzqnw6pydy"; } twice
<MoreTea> (i'm on unstable)
pxc has joined #nixos
<hyper_ch> autosnap shotting service is sweet :)
<hyper_ch> MichaelRaskin: pretty much copied over everything from the -kde.nix but it complained about mkForce
<hyper_ch> undefined varaible... well, removed that now
<MichaelRaskin> I think it is from lib
<MichaelRaskin> mkForce is about the NixOS module system
<hyper_ch> services.xserver.autorun = mkForce false; --> I set it to true anyway
sirkha has quit [(Ping timeout: 240 seconds)]
<hyper_ch> and networking.wireless.enable = mkForce false; --> I just set to false
serhart has quit [(Quit: serhart)]
<hyper_ch> I'll see how it goes
serhart has joined #nixos
xd1le has quit [(Quit: Toodaloo padawans! 👣)]
<hyper_ch> making custom is seems fun :)
<hyper_ch> s/is/iso
<MichaelRaskin> Usually not. No fun. You write the package list, you wait half an hour, it works. No fun involved.
serhart has quit [(Client Quit)]
<hyper_ch> wait half an hour? oO
<MoreTea> hm, `docker save` is including a timestamp...
serhart has joined #nixos
<MichaelRaskin> Well, it depends on how much you need to download.
<hyper_ch> you sound like you have already created 3-4 isos
griff_ has quit [(Quit: griff_)]
<MichaelRaskin> adisbladis: well, making Ceph build seems to be fun, judging from feedback.
griff_ has joined #nixos
atorres has joined #nixos
griff_ has quit [(Client Quit)]
<MichaelRaskin> hyper_ch: like seven years ago I was probably burning a NixOS build-self-sufficient DVD once in a couple of months.
griff_ has joined #nixos
<MichaelRaskin> Maybe not seven, maybe six.
<hyper_ch> :)
<hodapp> hmmm. seven years ago I was probably still running Ubuntu.
* hodapp shudders
griff_ has quit [(Client Quit)]
<hyper_ch> I was using kubuntu 7 years ago
<hyper_ch> even 6 years ago
<adisbladis> Seven years ago I was on Gentoo..
* adisbladis shudders more
griff_ has joined #nixos
<hodapp> I switched to Arch in 2013.
<hodapp> it was...... educational?
griff_ has quit [(Client Quit)]
<hodapp> part of why I switched away from Arch is because Nix was perpetually borked there and I just wanted to try it
<rct> Hi - I'm quite new to NixOS and I wanted to install a package with 'nix-env -i' command, but it failed because of a hash mismatch. What can I do in this case? Could anybody help me, please?
griff_ has joined #nixos
<MichaelRaskin> My first NixPkgs commit is actually more than ten years ago.
griff_ has quit [(Client Quit)]
<hodapp> MichaelRaskin: SHOWOFFFFFFFFFFFFFFFF
<adisbladis> hodapp: I've never had a distro breaking as much as arch
griff_ has joined #nixos
<TimePath> my first commit of all time was probably ten years ago >.>
<hodapp> adisbladis: bleh. it was normally really stable for me, but when stuff broke, it was nasty.
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<hodapp> adisbladis: I remember Arch's violation of certain conventions preventing certain Python packages from ever working right, for instance.
<adisbladis> Even Gentoo 12-13 years ago was more pleasant than Arch..
griff_ has quit [(Client Quit)]
<adisbladis> hodapp: Hmm what was that
<hodapp> I tried to run Gentoo 12-13 years ago. I didn't have an Ethernet connection in that room to the Internet, just wireless, and for some awful reason, it was completely impossible to work around this.
griff_ has joined #nixos
<MichaelRaskin> I dunno, after A/B LFS Gentoo didn't impress me and didn't seem an interesting thing to explore.
griff_ has quit [(Client Quit)]
hellrazo1 has quit [(Quit: WeeChat 1.9.1)]
<hodapp> eventually I tried to build madwifi (remember that, folks?) from source and it failed because it needed uuencode/uudecode and no one could tell me what package contained this.
griff_ has joined #nixos
hellrazor has joined #nixos
<hodapp> MichaelRaskin: hm, I have never tried LFS
<srhb> NixOS has always reminded me of Gentoo a lot, in a good way. I like the easy access to source builds.
<srhb> Well, I guess NixOS reminds me of ports (in a good way)
griff_ has quit [(Client Quit)]
<MichaelRaskin> I remember using ndiswrapper for Broadcom WiFi card.
orivej has joined #nixos
griff_ has joined #nixos
<MichaelRaskin> After LFS, Gentoo seemed quite intransparent about how to build from source some core parts.
<hodapp> srhb: I've made ready use of the sort of seamless access to source builds
griff_ has quit [(Client Quit)]
nix-gsc-io`bot has joined #nixos
<hodapp> adisbladis: TensorFlow is one thing that never ever worked right if I wanted CUDA support.
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/22ff01f651 (from 4 days ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
griff_ has joined #nixos
<hodapp> MichaelRaskin: interesting, one can't build certain core parts in Gentoo (or can't do so effectively)?
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
<MichaelRaskin> It was somewhat unclear.
<MichaelRaskin> Note that I was comparing it with LFS, where this is the first thing you are shown.
griff_ has joined #nixos
<MichaelRaskin> (Nix is also nice in this respect, though)
<hyper_ch> custom iso works - yey :)
<hodapp> I've never tried to do any sort of core part of Nix from source
<TimePath> I've watched gcc rebuild itself 3 times
<hodapp> o_O
AndersonTorres[m has joined #nixos
<TimePath> because I set something which made the binary cache not viable
<TimePath> it builds in stages, up to the full thing
<TimePath> starting out with a blessed statically linked gcc
tmaekawa has quit [(Quit: tmaekawa)]
sirkha has joined #nixos
<MichaelRaskin> Would be more impressed if I didn't use dynamic UIDs for my browsers for last few years.
civodul has joined #nixos
sirkha_ has joined #nixos
tmaekawa has joined #nixos
<gchristensen> <3 I think the cool part isn't the dynamic users as an idea, but bringing it to the masses as a standard way of operating
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/af9034bb24 (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<MichaelRaskin> Yeah, maybe making them a new default over a few years would be nice.
<gchristensen> exactly :)
<MichaelRaskin> (My point was that they are _trivial_ to implement, so anyone who actively wants them, has them)
sirkha has quit [(Remote host closed the connection)]
sir_kha has joined #nixos
<gchristensen> I know
atorres has quit [(Quit: ChatZilla 0.9.93 [Firefox 55.0.3/20170927035336])]
<adisbladis> gchristensen: Just like most of systemd :) It's not really novel stuff but packaging it up nicely for easy use
<gchristensen> right
<MichaelRaskin> «nicely»
<gchristensen> ;)
<hyper_ch> MichaelRaskin: in the iso.nix - how can I make it so that it writes some file onto the "live image"? Like I'd provide a default .tmux.conf in /root/
<hodapp> or packaging it up, at least.
<gchristensen> this is weird: cat some-file.txt | systemd-run ---pipe --property=DynamicUser=1 sort -u | grep -i foobar > some-other-file.txt
<MichaelRaskin> I think the problem is discussed on GitHub in some NixPkgs issue
<ij> With UEFI, should /boot be the partition or a bind-mount from /boot/EFI/nixos?
<MichaelRaskin> That it cannot have TTY with separate in and out
sirkha_ has quit [(Ping timeout: 255 seconds)]
<gchristensen> /boot should be the partitionb
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo closed pull request #30182: Fix ssh config in nova image (master...pr/nova-config) https://git.io/vduVq
NixOS_GitHub has left #nixos []
eacamero_ has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
arjen-jonathan has quit [(Quit: WeeChat 1.9.1)]
<ij> gchristensen, nixos-install tries to put a symlink in it, which it can't candle(the fs).
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #30171: keybase/kbfs: Fix modules (master...keybase_modules) https://git.io/vduYO
NixOS_GitHub has left #nixos []
<ij> gchristensen, Shows up as "vfat" in "mount".
<gchristensen> you ran nixos-generate-config --root /mnt ?
<gchristensen> and did you mount the partition to /mnt/boot or /boot ?
eacamero_ has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
eacameron has quit [(Read error: Connection reset by peer)]
<ij> /mnt/b/boot and --root /mnt/b
<MichaelRaskin> And does the configuration include anything about copyKernels
* ij has to leave now
<gchristensen> why are you using /mnt/b ?
<ij> because /mnt has other mounts there already, I'm on arch and I've installed nixos-install.
<ij> It doesn't handle --root well?
<gchristensen> oh man
<gchristensen> I have no idea :)
<gchristensen> I didn't know you could install nixos-install
<gchristensen> are you running nixos-install with --root?
<MichaelRaskin> gchristensen: that part is actually easy.
<ij> gchristensen, yes
eacameron has joined #nixos
<gchristensen> huh
<gchristensen> not sure, we don't _really_ test that flow much
<ij> myeah, I had such a suspicion
pxc has quit [(Ping timeout: 240 seconds)]
<gchristensen> I'll make a test about installing to /mnt/b, but it won't resemble your arch env
<wilornel> home-manager tells me "Suggested commands:
<wilornel> systemctl --user start gpg-agent.service", but then when I try it, I get "Failed to start gpg-agent.service: Operation refused, unit gpg-agent.service may be requested by dependency only."
<adisbladis> wilornel: Home-managers gpg-agent is socket activated only
<wilornel> also, my home.nix says `enable = true;`, but when I check `systemctl --user status gpg-agent.service`, I get "● gpg-agent.service - GnuPG cryptographic agent and passphrase cache Loaded: loaded (/nix/store/1g08w0521ai656xkkx0qj8rs2jp6jvym-home-manager-files/.config/systemd/user/gpg-agent.service; linked; ven Active: inactive (dead)
rct has quit [(Quit: leaving)]
<wilornel> "
<adisbladis> wilornel: If you actually try to use gpg-agent it will start up :)
<wilornel> how do I do that? I don't have the `gpg-connect-agent` command
<MoreTea> btw, does any of you know how to GC just one derivation?
<LnL> nix-store --delete
<MoreTea> that deletes all dead paths from the store.
<MoreTea> Ah, it accepts a list of paths
<LnL> oh, didn't even know that worked without a path
<ocharles> any idea why `nix-instantiate --eval --json -E 'true'` prints nothing to stdout?
<adisbladis> wilornel: Quite a lot of operations will do that, gpg --sign for one
<ocharles> `--xml` works fine
<MoreTea> lnl, yes, it started deleting paths :P
<adisbladis> Using the ssh-agent mode of gpg-agent will start it too
rct has joined #nixos
<wilornel> seems like installing gpg-agent does not install gpg
<adisbladis> wilornel: It does.
rct has quit [(Client Quit)]
<adisbladis> wilornel: If you have a look at ~/.config/systemd/user/gpg-agent.service you will see which derivation it references.
<adisbladis> wilornel: That does not imply installing it in your env though.
<wilornel> hmmmm
orivej has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] moretea opened pull request #30191: Fix dockerTools.pullImage (master...fix-dockertools-pull) https://git.io/vdubk
NixOS_GitHub has left #nixos []
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/a88c45ebb5 (from 28 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
<adisbladis> wilornel: Just do a "nix-shell -p gnupg" for now to test things out :)
<wilornel> oh, that's installing stuff
<wilornel> bash, busybox, bootstrap tools
<wilornel> alright, not installing gpg yet when running nix-shell -p gnupg
<wilornel> alright, I have the command gpg2 in there
tmaekawa has quit [(Quit: tmaekawa)]
xdelv has joined #nixos
<wilornel> after running `gpg2`, and the n`systemctl --user status gpg-agent.service`, it's still inactive
<wilornel> gpg-connect-agent seems to have started something
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to release-17.09: https://git.io/vdubC
<NixOS_GitHub> nixpkgs/release-17.09 3c0ea4f Tim Steinbach: keybase: Fix modules...
NixOS_GitHub has left #nixos []
<adisbladis> wilornel: Yes, just running gpg2 wont do any operation that actually connects to the socket. gpg-connect-agent will connect to the socket and trigger the startup.
<wilornel> so gpg-connect-agent started the gpg-agent, but checking gpg-agent.service's status still shows inactive
<adisbladis> wilornel: Are you checking with "systemctl --user" ?
<wilornel> yes
<wilornel> I also have "[nix-shell:~]$ which gpg-connect-agent
<wilornel> /nix/store/b3fgv02rxczxp5r4fcqnpnyv8svaxj41-gnupg-2.1.21/bin/gpg-connect-agent"
<wilornel> and, "[nix-shell:~]$ which systemctl
<wilornel> /home/demo/.nix-profile/bin/systemctl"
tmaekawa has joined #nixos
<wilornel> `whoami` says "demo"
<wilornel> (which is what I logged in with)
<srhb> How come home-manager isn't in nixpkgs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jokogr opened pull request #30192: grub2: set zfsSupport false by default (master...f/grub2-zfs) https://git.io/vdubu
NixOS_GitHub has left #nixos []
<wilornel> it looked like home-manager was telling me to try to start gpg-agent.service using systemctl. Maybe something else was telling me that?
fragamus has joined #nixos
<wilornel> I picked "openjre-8u141b15" from `nix-env -qa` and put that as `programs.openjre-8u141b15 = {};` in home-manager. I also tried with `programs.openjre = {};` . sounds like home-manager does not know about those options. It's unclear how to define what packages I want installed
hellrazor has quit [(Ping timeout: 255 seconds)]
<wilornel> Does not work with tmux either
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
superherointj has joined #nixos
<wilornel> Is there a way for me to declare the packages I want installed but without all the options that would come with it?
<hyper_ch> hmmm, system.activationScripts.installerDesktop --> that can only do .desktop files? how would I create other files?
<wilornel> Alright, found `home.packages = [pkgs.tmux]` should do the trick
<wilornel> adisbladis: I don't know where we were going with nix-shell and gpg-agnet . Still was not able to get it running
jensens has joined #nixos
<ocharles> weird, that nix-instantiate thing works in bash, but not zsh
<ocharles> though `strace` shows it printing correctly
<ocharles> maybe it needs to flush?
<hyper_ch> and where can I find info about nix stuff like writeScriptBin ?
<hyper_ch> the nix manual doesn't mention writeScriptBin at all
<MichaelRaskin> I would look in _Nixpkgs_ manual. Then fail to find it there. Then try to look up the commit message.
yarny has joined #nixos
<hyper_ch> MichaelRaskin: can't find "writeScriptBin" in Nixos manual, nixpkgs manual, nixops manual, nix manual
griff__ has joined #nixos
<hyper_ch> so, how can I find out what all the options/tools actually are at my disposal?
griff_ has quit [(Ping timeout: 248 seconds)]
griff__ is now known as griff_
<hyper_ch> I only know about writeScriptBin because of makefu
<hyper_ch> but I can't find any reference to it where it's actually explained etc
<MoreTea> check $GIT_REPO/lib
<srhb> Oh my god, it built.
* srhb wipes sweat off brow
<MoreTea> there you can find some "standard libary" of useful functions
pie_ has joined #nixos
<wilornel> is home-manager not giving nixpkgs to pkgs for home.nix? I am trying to get pkgs.openjre but pkgs does not have openjre, even though I can find openjre-8u141b15 in `nix-env -qa`
pxc has joined #nixos
nix-gsc-io`bot has joined #nixos
markus1189 has quit [(Ping timeout: 248 seconds)]
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/1fdca25ee8 (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
markus1189 has joined #nixos
<hyper_ch> so, where can I find information about writeBinScript and other such function/tools at my disposal?
<yarny> Hi, as of today (CEST), I'm having a bad time connecting to *.nixos.org. Usual symptom is "download-from-binary-cache.pl: still waiting for ‘https://cache.nixos.org/123...abc.narinfo’ after 5 seconds..." and the nixos.org website is also mostly unreachable (server is not responding). As everything else is working fine, I'm wondering if anybode else is experiencing this?
<MichaelRaskin> It was reported earlier
<yarny> A, OK, didn't see this. Thanks!
superherointj has quit [(Quit: Leaving)]
<MichaelRaskin> But I think someone said it was better later today
Eisfreak7 has quit [(Quit: WeeChat 1.9.1)]
<wilornel> does the nix language have debugging capabilities? I'd like to inspect `pkgs` that's passed into home.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vduAX
<NixOS_GitHub> nixpkgs/master 9c5ef04 lassulus: bitcoin-classic: build with qt5...
NixOS_GitHub has left #nixos []
jensens has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] woffs opened pull request #30193: biboumi: init at 6.1 (master...biboumi) https://git.io/vduA1
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30075: bitcoin-classic: build with qt5 (master...bitcoin-classic) https://git.io/vd8LQ
NixOS_GitHub has left #nixos []
<MichaelRaskin> builtins.trace, which is better used as lib.traceVal
<MichaelRaskin> (lib.traceVal passes the argument through and does its best to print a textual representation to trace
<MichaelRaskin> I think you need --show-trace to see the output
<wilornel> `Unknown command: build --show-trace` and /home/demo/.nix-profile/bin/home-manager: illegal option -- -`, when I try `home-manager build --show-trace` and `home-manager --show-trace build` respectively
<yarny> It's quite flaky .. from time to time, I can download a few packages, but I didn't manage to do a complete nixos-rebuild today (retrying since 6h).
<rycee> wilornel: The method Home Manager uses when it gives the suggested "systemctl restart" text is extremely simplistic so take what it says with a grain of salt. Hopefully this will improve in the future if we're able to use the NixOS systemd machinery.
<MichaelRaskin> Well, you can actually just build everything locally without binary cache at all…
hotfuzz_ has quit [(Ping timeout: 248 seconds)]
<srhb> rycee: Is there a reason home-manager isn't in nixpkgs? :)
csingley has quit [(Ping timeout: 248 seconds)]
<wilornel> rycee: thanks for the answer
<wilornel> I'm still trying to figure home-manager out
<MichaelRaskin> I think there are multiple solutions, and nobody knows which one is better to merge
<rycee> wilornel: Home Manager typically sets `pkgs` to the result of `import <nixpkgs> {}` so any package in there should be available.
<wilornel> If I run `nix-env -qa` and find `openjre-8u141b15`, I should be able to use `pkgs.openjre` or `pkgs.openjre-8u141b15`, or `pkgs.openjre-8`? I'm not sure which one.
<wilornel> yeah, all of them are missing from pkgs
<olejorgenb[m]> is anyone using dropbox sucessfully on nixos? It by far the program I have most problems with. Wont start, hangs, etc. Sometimes it's because dropbox demands you run a very recent version but not always.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #30194: quaternion: 2017-06-29 -> 2017-10-07 (master...update-quaternion) https://git.io/vduAj
NixOS_GitHub has left #nixos []
<rycee> wilornel: Try simply `pkgs.jre`.
superherointj has joined #nixos
<olejorgenb[m]> now it starts, hangs with ~100% cpu for a couple of minues (while blocking dbus or someting - can't open new gnome-terminals for instance)
<olejorgenb[m]> then crashes
<wilornel> Alright, that's working, but I would like to get a specific jre. Can I do that with home-manager?
<srhb> olejorgenb[m]: Works fine for me.
<rycee> srhb: The tricky part with getting HM into Nixpkgs is how to handle the home-manager command and the Home Manager modules.
<olejorgenb[m]> srhb: do you mind checking the version?
<srhb> rycee: Ah, okay. So there is a technical issue. I didn't find anything on nixpkgs.
<tilpner> hyper_ch - There's no single, centralised, list of them AFAIK. If you already know about writeScriptBin and need more information about its implementation, searching for "writeScriptBin =" in nixpkgs is the best solution, as writeScriptBin has an usual import path via top-level/stage.nix
<rycee> wilornel: pkgs.jre7, pkgs.jre8, … should work
<tilpner> *unusual
<wilornel> open vs. oracle?
<srhb> olejorgenb[m]: I can make an educated guess, it's on my work PC. It should be around 36.4.22 as that's my current available version on unstable
<rycee> wilornel: You also have pkgs.jdk8 and pkgs.jre8_headless.
<hyper_ch> tilpner: the problem is I don't know what other possiblities Ih ve....
<olejorgenb[m]> yeah, that's the one I use too
<hyper_ch> tilpner: right now: for the iso creation - how can I puth a file into a folder in the iso? - I want to provide a default .tmux.conf file for root....
<hyper_ch> tilpner: but since there's no documentation where all possible options are, I have no idea what I even need to look for
<wilornel> is jdk8 and jre8 the same thing but open vs oracle? I'm not sure. I'm confused about how I map from a package listed in `nix-env -qa` to what I should list in home.nix
<tilpner> hyper_ch - As was already mentioned, pkgs/build-support and lib are locations to look at if you know what you want, but not how it's called
<hyper_ch> writeScriptBin was only an example... if makefu hadn't told me about it, I'd still wouldn't know it existed
sary has quit [(Ping timeout: 240 seconds)]
<hyper_ch> tilpner: and how am I supposed to know to even look in pkgs/build-support?
<symphori1> wilornel: use nix-env -qaP
<tilpner> hyper_ch - I don't know, curiously grepping the whole repo might have you stumble at it, or you'll be pointed to it after asking :/
yarny has quit [(Quit: Page closed)]
<wilornel> symphori1: thanks, that clears _some_ things up! However, I was able to list `pkgs.jre8` in home.nix and that does not show up in `nix-env -qaP` not in https://nixos.org/nixos/packages.html . Only jre8_headless shows up there
<hyper_ch> no idea where to find system.activationScripts.installerDesktop as well
<tilpner> hyper_ch - Look at isoImage.contents for your tmux config
<rycee> srhb: Yeah, I'd really like to make it easier to get HM started by installing directly from Nixpkgs but haven't had time to figure out a really nice way to do it. In principle one could simply make a `home-manager` package in Nixpkgs that installs both the home-manager command and the modules. But then you'd have to bump the version of this package quite frequently to have the latest modules available. I guess that would be OK,
<rycee> at least as a start. But, I'd like to wait a while to see what will happen with NixUP and the possibility of integrating NixUP/Home Manager closer to NixOS. The best solution would depend on the degree of integration we're aiming for.
<symphori1> the website does not list unfree packages and is for the latest stable, so if you use unstable some this may have changed since
<tilpner> hyper_ch - It's hidden in trivial-builders.nix
<hyper_ch> and where to find isoImage.contents?
<rycee> srhb: It should be noted, though, that a goal of mine is to keep Home Manager usable even for people who don't use NixOS…
<wilornel> symphori1: I see. How can I list unfree with nix-env -qaP and/or show unstable packages?
<hyper_ch> tilpner: find /nix -iname "*isoImage.contents*" --> no result
<srhb> rycee: OK, thank you for the response :) I await eagerly.
<tilpner> hyper_ch - find is not the right tool for that
<tilpner> hyper_ch - -iname will match filenames, but isoImage.contents should never appear in a filename
<hyper_ch> tilpner: no idea what isoImage.contents is supposed to do
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vduxa
<NixOS_GitHub> nixpkgs/master 4db70fe Jörg Thalheim: bitcoind-abc/bitcoind-classic: fix evaluation
NixOS_GitHub has left #nixos []
<hyper_ch> tilpner: how am I to know what isoImage.contents even is?
<wilornel> symphori1: I did allow unfree packages, but how do I show them in nix-env -qaP? I'll read that in a sec
<symphori1> pay attention, system wide config (configuration.nix) and user-specific config are totally independent
<hyper_ch> tilpner: my problem is that there isn't any coherent information at all and if you don't even know what you need to look for, you can't find it
superherointj has quit [(Remote host closed the connection)]
silver_hook has quit [(Quit: Konversation terminated!)]
<tilpner> hyper_ch - Oh, I absolutely agree, it can be hard to find what you're looking for, and you don't get far without looking at the source
silver_hook has joined #nixos
<wilornel> symphori1: Ah, so if I want nix-env -qaP to show me unfree /unstable packages as well, I would want to set the unfree thing in home.nix?
<hyper_ch> so isoImage.contents takes list of files and stores them in iso... but how do I even provide the file?
<symphori1> hum I don't know how that interacts with home-manager
<rycee> wilornel: Unfortunately, Home Manager is not able to configure Nix for you … yet.
<symphori1> normally in /.config/nixpkgs/config.nix as per https://nixos.org/nixpkgs/manual/#chap-packageconfig
<rycee> wilornel: At least there is no module that makes it convenient.
<hyper_ch> tilpner: yes, but the file that I want to write doesn't even exist yet
<symphori1> sorry again ~/.config/nixpkgs/config.nix
<hyper_ch> tilpner: so how can I supply in the iso.nix the contents of a file that shall then be written?
<tilpner> hyper_ch - Not all source files in that example usage already exist
<tilpner> (E.g. version.txt)
<hyper_ch> tilpner: I don't understand what that does or how to use it
<tilpner> hyper_ch - Have you already managed to build a vanilla/unmodified ISO?
<hyper_ch> tilpner: yes
<hyper_ch> that's how I stumbled accross system.activationScripts.installerDesktop but that seems only to work for .desktop files
<tilpner> hyper_ch - And you know how to set e.g. isoImage.isoName for your to-be-built ISO?
<hyper_ch> no
<rycee> wilornel: You could try putting `home.file.".config/nixpkgs/config.nix".text = "{ allowUnfree = true; }";` in your home.nix :-)
hotfuzz has joined #nixos
<hyper_ch> tilpner: nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix
<tilpner> hyper_ch - How does your iso.nix look like?
acarrico has joined #nixos
<hyper_ch> nixos-18-03pre................x86_61-linux.iso
<wilornel> (rycee, symphori1, looking into these in a second)
tmaekawa has quit [(Quit: tmaekawa)]
<tilpner> hyper_ch - Huh? Is that supposed to be the content of iso.nix?
symphori1 is now known as symphorien
<musteresel> This is becoming increasingly strange: I'm trying to do an nixos-rebuild to the current channels/nixos-17.09 ... but basically timeout after some warnings "download-from-binary-cache.pl: still waiting for [path-to-cache] after 5 seconds". So I did a wget on some of those paths ... all of which result in a 404. Ideas?
<tilpner> (I expected, well, Nix)
<LnL> rycee: how did you implement cleanup for that files module?
moet has joined #nixos
<rycee> LnL: By cleanup you mean figuring out which files were removed between generations?
<LnL> yeah
grumble2 has joined #nixos
grumble has quit [(Quit: the)]
<wilornel> yes, but, how can I get `nix-env -qaP` to show me unfree / unstable packages?
<hyper_ch> tilpner: so, how can I make a file in the iso.nix and then have it stored on the iso at a given location?
<symphorien> for me it lists unfree packages
<moet> hello nixos! when i `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors` i only see "ondemand performance" .. i'm sure this computer supported also "powersave" in a different linux distro; any idea how to get "powersave" in nixos?
<LnL> rycee: for etc it's easy since you can just look for broken symlinks, but doing that in ~ or / would be pretty slow
<wilornel> rycee: Almost!! So it tried to write config.nix, but I already had config.nix with `{ allowUnfree = true; };`. I removed that file, and ran `home-manager switch`, but then home-manager could not continue because flashplayer is not free :)
<rycee> LnL: It's pretty basic. It'll look at each file path in the old generation and see if the corresponding path exists in the new generation, if it doesn't then it removes the link from the users home directory.
<wilornel> rycee: I disabled flash, and it worked!
<wilornel> then I can re-enable flash
<tilpner> hyper_ch - First you need to be able to set options for your new ISO. But you didn't answer my last question... I have to be away for an hour or so, we can try again later :)
<hyper_ch> tilpner: what question?
<wilornel> alright, but still, how can I get `nix-env -qaP` to show `jre8`, which does not show up in https://nixos.org/nixos/packages.html
<hyper_ch> tilpner: ah, I missunderstood
oida_ has joined #nixos
<hyper_ch> you were about the iso name and then I thought you wanted the iso name
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdupG
<NixOS_GitHub> nixpkgs/master 7067d30 Matthias Beyer: quaternion: 2017-06-29 -> 2017-10-07
<NixOS_GitHub> nixpkgs/master 9afa0a7 Jörg Thalheim: Merge pull request #30194 from matthiasbeyer/update-quaternion...
NixOS_GitHub has left #nixos []
<gchristensen> anyone using Enpass with firefox on nixos? I'm not able to convince FF to connect to Enpass
<LnL> rycee: hmm, that works correctly with --switch-generation?
<wilornel> symphorien: Hmmm it lists flashplayer, which is unfree for me
<wilornel> symphorien: so I guess I am looking to list unstable packages
<symphorien> what is the prefix of the attribute ?
<symphorien> nixos ?
<symphorien> nixpkgs ?
<rycee> LnL: What does `--switch-generation` do? I guess just switching from one generation to a new?
pie_ has quit [(Read error: Connection reset by peer)]
oida has quit [(Ping timeout: 255 seconds)]
pie_ has joined #nixos
<rycee> LnL: If so then it should work correctly (at least I have had very little issues with it).
<LnL> like rollback but potentially skipping a few generations
<wilornel> symphorien: pkgs.jre8 is what I was able to install using home-manager, but jre8 does not show up in https://nixos.org/nixos/packages.html nor in `nix-env -qaP`
<wilornel> and `pkgs = import <nixpkgs> {} ;`, as per rycee
<symphorien> yes but I mean in the output of nix-env -qaP
<symphorien> are you on nixOS or just using bare nix ?
grumble has joined #nixos
<rycee> wilornel: Not sure why it doesn't. Maybe these commands avoid writing the same thing multiple times and `all-packages.nix` contains `jre = jre8;`…
moet has quit [(Quit: brb)]
_ris has quit [(Read error: Connection reset by peer)]
<wilornel> symphorien: on nixos
<wilornel> rycee: Hmmm maybe that's why..
<wilornel> Is it possible to print out the attributes of pkgs from inside home.nix ? I'd just like _a_ way to see jre8 somewhere
grumble2 has left #nixos []
sary has joined #nixos
<rycee> LnL: Right, I don't think it will have any problems with that. The only thing it does is to look at the two directories and figures out which files are in one but not the other. So there is nothing special about it w.r.t. the directories being part of consecutive generations.
moet has joined #nixos
<rycee> LnL: Any particular problem you would expect?
<LnL> hmm, thought I ran into an issue like that wen trying to generalise the etc activation
_ris has joined #nixos
<LnL> maybe it was something else
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] peti opened pull request #1595: docker: ensure that the installation works for users other than 'root' (master...master) https://git.io/vdupd
NixOS_GitHub has left #nixos []
acarrico has quit [(Ping timeout: 240 seconds)]
<wilornel> how did you know about jre8 ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vduhe
<NixOS_GitHub> nixpkgs/master a8f2ad6 Benjamin Staffin: kubecfg: init at 0.5.0
<NixOS_GitHub> nixpkgs/master 04ce72e Jörg Thalheim: Merge pull request #30044 from benley/benley/kubecfg...
NixOS_GitHub has left #nixos []
<srhb> This is odd. I added leaveDotGit to fetchgit and it didn't seem to change the input hash.
<rycee> wilornel: If you want all attributes then you could put a `traceShowVal (attrNames pkgs)` somewhere?
<rycee> nix-repl> pkgs = import <nixpkgs> {}
<rycee> nix-repl> pkgs.lib.filter (n: n == "jre8") (pkgs.lib.attrNames pkgs)
<rycee> [ "jre8" ]
<srhb> Oh, I suppose it has to be non-deterministic.
<srhb> Yikes.
<rycee> LnL: Alright. Yeah, it is certainly a bit fiddly. And the code should be able to determine whether a users has switched out the link with their own file.
musteres` has joined #nixos
musteresel has quit [(Read error: Connection reset by peer)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edef1c opened pull request #30195: ecryptfs module: init (master...ecryptfs-module) https://git.io/vduhI
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vduhL
<NixOS_GitHub> nixpkgs/master 15b7e10 Guillaume Maudoux: Safer defaults for immutable znc config (#30155)...
NixOS_GitHub has left #nixos []
<LnL> yeah, could have just been a bug :)
musteres` has quit [(Read error: Connection reset by peer)]
<wilornel> I can't --show-trace when using HM
<rycee> LnL: The Home Manager code does it slightly differently as well. From my understanding of the setup-etc.pl script it will keep the /etc/.clean file between invocations and I can imagine that it makes it a bit trickier. Home Manager will look directly at the files in the generation we're switching away from.
<rycee> LnL: (of course, if that generation were to be GCd then we're screwed :-) )
<rycee> wilornel: If you use `home-manager -v` then `--show-trace` will be added to the nix-env command.
<hyper_ch> tilpner: still here?
<wilornel> alright, so I was able to do `home.file.".config/nixpkgs/foo.log".text = pkgs.lib.attrNamesToStr pkgs;`
<wilornel> and find jre8 in there!
<rycee> LnL: Actually, I don't know if managing /etc/.clean makes it trickier. Seems about the same. I should have said that it makes it different from Home Manager's method :-)
jb55 has joined #nixos
GiGa has joined #nixos
GiGa has quit [(Changing host)]
GiGa has joined #nixos
sary has quit [(Ping timeout: 255 seconds)]
<rycee> wilornel: Good job! :-)
jedai has joined #nixos
<LnL> rycee: I might have another go at it then, I would like to add support for using a custom prefix for activation so I can test activation in a nix build
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 9 new commits to master: https://git.io/vduh5
<NixOS_GitHub> nixpkgs/master 5ae1757 taku0: nspr: 4.15 -> 4.16
<NixOS_GitHub> nixpkgs/master 6e2744a taku0: nss: 3.31 -> 3.32.1
<NixOS_GitHub> nixpkgs/master a9d2c56 taku0: icu4c: 58.2 -> 59.1
NixOS_GitHub has left #nixos []
MoreTea has quit [(Ping timeout: 255 seconds)]
ison111 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #30143: firefox: 55.0.3 -> 56.0.1, firefox-esr: 52.3.0esr -> 52.4.0esr [Critical security fixes] (master...firefox-56.0) https://git.io/vd0vb
NixOS_GitHub has left #nixos []
<rycee> LnL: Sounds cool. Feel free to ping me if you want feedback :-)
<rycee> Now have to cook dinner.
ona has quit [(Quit: ...)]
erictapen has joined #nixos
pie___ has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
endformationage has joined #nixos
<wilornel> can I get home-manager to git clone a project to a certain directory? :o
<srhb> wilornel: Presumably you have access to fetchgit and friends?
<srhb> As in regular nix.
Yarny has joined #nixos
<wilornel> hmmm I guess I do! I'm on NixOs. You think I could use fetchgit in home.nix ?
pie___ has quit [(Read error: Connection reset by peer)]
<srhb> wilornel: Why not? It's just a nix function. :)
<srhb> wilornel: It puts whatever you cloned in the nix store, and then presumably you can use home manager to put it where you like.
pie_ has joined #nixos
<srhb> I may be mistaken about home manager though, since I don't know it, but I would be surprised if it were arbitrarily restricted like that.
rct has joined #nixos
<Yarny> Building without binary cache seems hard, I'm using the use-binary-caches=false option, but it still tries to connect to cache.nixos.org.
jb55 has quit [(Ping timeout: 240 seconds)]
<Yarny> musteresel: you're suffering from the same problem? where are you located? I'm in south germany (provider=Vodafone).
erictapen has quit [(Ping timeout: 240 seconds)]
<srhb> Yarny: I think you want --option build-use-substitutes false
hoodoo_ has joined #nixos
<hoodoo_> Hi, anyone has experience with packaging python libs?
<srhb> Yarny: from man nix.conf: If set to true (default), Nix will use binary substitutes if available. This option can be disabled to force building from source.
<hoodoo_> The following expression https://pastebin.com/erVQ60wn
<hoodoo_> Gives the following error: https://pastebin.com/exnL4BKT
<hoodoo_> Maybe someone met it before and know how to fix
<GiGa> In derivations for packages, I thought there was a github fetch option?
<GiGa> Found it
<srhb> GiGa: fetchFromGitHub, yes
<hoodoo_> Oh was there?
<hoodoo_> Wow.
<GiGa> Sorry, being blind
<hoodoo_> Figure if I fetch a tag it might work.
<srhb> You can fetch release tars from github as well.
nix-gsc-io`bot has joined #nixos
<srhb> v1.2.3 as rev will enable that
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e582efb284 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<GiGa> srhb, I'm possibly going to try and update the GRAMPS package, as it's really quite old in the repo
<hoodoo_> I fetch the release tar as it is and it throws exception.
<srhb> GiGa: Cool :)
<srhb> hoodoo_: I don't think that's the issue.
<srhb> GiGa: v4.2.6 as rev should fetch that.
<GiGa> srhb, so I'm hoping I can set rev= v${version}
<srhb> GiGa: You can.
<GiGa> srhb, ah good, I'm on the right track then :)
<GiGa> Might give that a go later then
sary has joined #nixos
<GiGa> The current derivation pulls from Sourceforge, hopefully I can just change src to look at Github
<srhb> Good place to start :)
<GiGa> I've only worked on the JetBrains updates before, so I'm sure I'll be back later to ask questions :)
<wilornel> Docker has dockerfiles that do some setting up
<wilornel> It seems like nix and home-manager can achieve the same thing
<srhb> Since Nix can build docker images corresponding to dockerfiles and more, it can achieve the same and more at least. ;-)
<wilornel> I just feel like dockerfiles are not needed when you have nix and home-manager
<wilornel> nix and home-manager are more general and more flexible than dockerfiles, it seems to me
<srhb> I agree.
frankqux_ has joined #nixos
sary has quit [(Ping timeout: 240 seconds)]
fragamus has joined #nixos
<wilornel> I'll have to look into how that can be done. Let your dockerfile basically set up nix and home-manager, and let them handle the rest. (Then that could become a pattern and be better implemented inside docker? )
<srhb> I don't know why you'd use Docker for any of that...
<srhb> Then again, I don't understand why people use Docker ever. :-P
<wilornel> Say you have a docker container and also some virtual machines and some physical machines. They can all be configured using the same tools: nix and home-manager
<srhb> Sure, okay.
<wilornel> yes, I don't use Docker but I might have to for work later.
<wilornel> Do you see why people use VMs?
<srhb> More or less. :-)
<hoodoo_> shrb: I tried to unpack a tarball and run setup.py and it failed; I then cloned the repo and checked out a tag and it worked fine. I think I'll try to figure out the fetchfromgithub option.
frankqux has quit [(Ping timeout: 240 seconds)]
<srhb> hoodoo_: How curious.
<wilornel> Alright, then with Docker I think you get VM functionality at a smaller cost on your RAM and CPU usage, because your containers all use the same kernel
<srhb> wilornel: Yeah, I manage about 40 unique vms and some 200 docker containers at work.
<wilornel> Ah, so you see what the point is, right? How are the vms set up? Is it using Vagrant?
<srhb> The reason that I'm disagreeing is that often, Docker is just a silly wrapper over some essentially static binary.
<srhb> I'd much rather systemdify them in NixOS.
<srhb> Alas, I'm not free to do so.
<srhb> As in, the VM vs Docker is a false dichotomy.
<srhb> Or even use nixos containers.
<srhb> Much nicer.
<wilornel> nixos containers? like nix-shell, you mean?
<srhb> No, NixOS containers are something different entirely. Check them out in the manual. :-)
<srhb> They're nice!
<gchristensen> they're linux containers similar to what docker uses
<srhb> Only you get much better Nix integration.
<hoodoo_> Still doesn't build though.
<wilornel> wow, so that's like home-manager! no?
<srhb> wilornel: Not at all.
<infinisil> and i think nixos-containers are as fast as a normal nixos
<wilornel> I mean practically
<infinisil> not sure about that though
<srhb> wilornel: I'm not quite sure how you use home manager, but I think of it as "declaratively provisioning my homedir"
<wilornel> "NixOS allows you to easily run other NixOS instances as containers. Containers are a light-weight approach to virtualisation that runs software in the container at the same speed as in the host system. NixOS containers share the Nix store of the host, making container creation very efficient"
<samueldr> nixos containers are systemd nspawn based
<wilornel> srhb: and declaratively provisioning my packages
<srhb> wilornel: So as gchristensen implied, it's more like docker containers, only without the docker cruft... :)
GiGa has quit [(Quit: moving to laptop)]
<srhb> wilornel: Ah, yes, okay, I do that on the NixOS level mostly.
<srhb> wilornel: So the more apt comparison would be "it's like NixOS"
<wilornel> hahah!
<srhb> wilornel: Because it's a NixOS running inside your NixOS (sort of!)
<infinisil> not only sort of, it is!
<wilornel> Alright, there are many ways to solve the same problem right now
<Yarny> build-use-substitutes=false helped a lot (it's now building lots of packages, some are apparently failing, but it's still running). Strangely, it still downloaded some stuff from cache.nixos.org when "building Nix...", but that went fast.
<srhb> wilornel: So in a nixos-container, you get to use things like services.postfix.enable = true; etc.
<srhb> infinisil: Well, sort of, it's not running its own kernel ;-P
<LnL> "containers" is an overloaded term, it's used for both the images and runtime
<infinisil> hmm right
<LnL> and the image part is useless with nix
<wilornel> can I declare the services that I want running in home-manager?
<srhb> i don't know.
<wilornel> ah, gotta ask rycee
<srhb> Perhaps it can do user level systemd stuff, not sure.
<wilornel> that's something I was looking to do
<srhb> But there's always NixOS. :-)
<infinisil> yes you can do that
<infinisil> i have a few services declared
<srhb> The schism between user and system level has always been there in NixOS, and I'm not sure to what extent home-manager remedies it.
<srhb> I wish it was all the same thing..
<symphorien> wilornel: I believe that man home-configuration.nix contains the list of all existing options
<wilornel> infinisil: Do you declare that they should be running and what ports they should be listening to?
<infinisil> srhb: home-manager does this super well, it's pretty much a user-level nixos module system
<srhb> infinisil: That's great to hear. project for tomorrow.
<srhb> Or when i get too tired of trying to make this build work...
<infinisil> wilornel: what ports they listen on depends on the program, and yes i declare what should be running
<wilornel> ah! there is `systemd.user.services`
<wilornel> infinisil: do you use systemd.user.services?
<infinisil> srhb: What are you building?
<infinisil> wilornel: Yes
<srhb> infinisil: ceph. or failing to.
<srhb> infinisil: I had it building in a nix-shell, but there's an impurity that I can't locate that's preventing nix-build from doing the same.
<srhb> Also it wasn't complete, lots of wrapping of python cruft I haven't managed yet.
<infinisil> i gotta go for now, bbl, here is my home-manager config if you wanna have a look: https://github.com/Infinisil/home
<wilornel> very awesome omg
<wilornel> thanks infinisil !
<wilornel> thanks srhb , symphorien and rycee also
<srhb> wilornel: Are you new to NixOS? Just curious :)
mudri has joined #nixos
<wilornel> Yes!!
<wilornel> it makes so much sense though!
<srhb> OK, welcome then. :) Hope you enjoy it.
<wilornel> I remember doing weird things in bash scripts to try to get things set up on my machines. Trying to get services running, trying to install pacages, trying to set up dotfiles. I've many times thought "I should not be reinventing the wheel here, because I think this issue is solved by something"
<wilornel> but I was never able to find something proper
<wilornel> It would be cool if you could also declaratively manage what files are present on multiple machines, and have them sync those together. I _think_ it might be possible using nixops, but I'm not sure
<srhb> Can I reconstruct the output of git rev-parse HEAD and git describe from the output of fetchgit or fetchFromGitHub?
<srhb> wilornel: You can do something like that with nixops for sure.
<srhb> wilornel: the "syncing" is a bit iffy, but distributing is no problem.
mortum5 has joined #nixos
<srhb> wilornel: I provision some google cloud thingies with nixops.
GiGa|Laptop has joined #nixos
<srhb> I think it's a little flaky, but it still puts a NixOS config on the host, which is more or less all I need.
sary has joined #nixos
jb55 has joined #nixos
hellrazor has joined #nixos
Acou_Bass has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
rct has left #nixos []
<tilpner> hyper_ch - Still having that problem?
<wilornel> awesome!! I'll have to look into this when I have time. Thanks srhb . I'll get back to my game dev assignment, for which I made a VM with NixOS and installed Java 8 on with nix :)
<srhb> wilornel: Have fun :)
<hyper_ch> tilpner: posted you the iso.nix but didn't hear from you
Acou_Bass has joined #nixos
<srhb> Can I fetch only meta information from git?
<srhb> I suppose I could make a separate input...
<srhb> Though, hm, that could change as well..
<srhb> Oh, can I run ls-remote as a sort of input?
<fearlessKim[m]> how do you do to have a configuration.nix slightly different depending on the machine ? do you do "nixos-rebuild --arg macbook=true" for instance ? or can nix detect it based on some hardware characteristic ?
Acou_Bass has quit [(Client Quit)]
<hyper_ch> tilpner: and no, not solved
<srhb> fearlessKim[m]: I use multiple configuration.nix-subfiles and import based on hostname of the main one
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2231575a7d (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<fearlessKim[m]> shrb hostname is good criteria :) will do that
<samueldr> srhb: I'm guessing that this means that your configuration.nix file would be ignored under git
<srhb> samueldr: No?
<GiGa|Laptop> Hmm, "nix-build -A keybase" gets me "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)"
<samueldr> where is your hostname set then?
<srhb> samueldr: Oh, you mean the outer one.
sary has quit [(Remote host closed the connection)]
<tilpner> hyper_ch - Try putting the contents of tx0.co/juCu into your iso.nix
<samueldr> yeah, probably
<srhb> samueldr: Yes, I symlink that in place.
<GiGa|Laptop> ah, I was too far down the directory tree
<tilpner> (Oops, missed a '=' after target)
<samueldr> right
<srhb> samueldr: Basically I have one per hostname, symlink eg. configuration-foohost.nix to configuration.nix, they all import common.nix, and some others.
nh2 has quit [(Quit: Leaving.)]
<samueldr> I'll need to that, right now I'm not even tracking configuration.nix, which sets hostname, then includes common files and hardware specific files
<hyper_ch> tilpner: that complains but le me see if I can fix that
<srhb> samueldr: I'm sure there are many ways to do it, like so much in Nix. ^^;
sir_kha is now known as sirkha
<ocharles> *!* n e w t h i n g k l a x o n *: https://github.com/ocharles/micro-ci
<srhb> This seems OK to me.
<samueldr> exactly
<srhb> ocharles: OMG
<gchristensen> ocharles: weee-ooo-wee-oo-wee-oo
<srhb> I NEED THIS
<ocharles> Tiny little CI service that runs nix-build on a ci.nix expression github pull requests
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to release-17.09: https://git.io/vdzvY
<NixOS_GitHub> nixpkgs/release-17.09 b2f3785 Vladimír Čunát: Merge #30143: firefox-*: critical security updates...
<NixOS_GitHub> nixpkgs/release-17.09 260da8a Vladimír Čunát: icu: keep default version on 58...
NixOS_GitHub has left #nixos []
<samueldr> I like your first commit ocharles
<gchristensen> holy shit ocharles
<tilpner> hyper_ch - Add the = after target. I commented out your plasma stuff and it's still building
<srhb> ocharles: That's fantastic!
<ocharles> samueldr: urgh, more things to maintain
<ocharles> ^_^
<hyper_ch> tilpner: that was it
<hyper_ch> thx
<gchristensen> ocharles: "Evaluation successful" does it just eval, or build?
<ocharles> it builds
<ocharles> so that message isn't great
<gchristensen> nice
<ocharles> oh crap, there's a missing file that will stop anyone using this. better sort that
<gchristensen> ocharles: shared to #nixos-dev, nice!
<hyper_ch> tilpner: is there also a way to make the file executable? I'd also like to add a few shell scripts
<ocharles> but basically, it runs a "jobs.nix" function against your ci.nix to identify the paths to derivations, then it does nix-build -A ... one by one on each attr path
sary has joined #nixos
<hyper_ch> (prefer having them in /root/ so that I can see them directly)
<tilpner> hyper_ch - I don't think this worked...
<gchristensen> ocharles: can you license it?
<ocharles> that would be a great idea
<ocharles> one sec
<tilpner> hyper_ch - Currently it's put in /iso/root/.tmux.conf
<wilornel> In micro-ci, `haskellPackages.callPackage ./default.nix {};` would take care of running the build cabal build? default.nix is a file which declares what commands the build need to run?
<srhb> wilornel: Yes, default.nix is conventionally your main build definition.
<srhb> wilornel: and yes, haskellPackages.callPackage is the haskell build helper.
<hyper_ch> tilpner: it did build it :) didn't check where it was actually put
<ocharles> gchristensen: it's BSD3 but I must have dropped the license file somewhere (you can see from default.nix/micro-ci.cabal)
<gchristensen> cool :)
<hyper_ch> ah, target should be /root/.tmux.conf
<srhb> Oh, it uses dhall
<srhb> I've been meaning to try that.
<tilpner> hyper_ch - Oh, good, I was still building for /root/.tmux.conf
<hyper_ch> tilpner: changed target to /root/.tmux.conf
<hyper_ch> already built, testing it now
<tilpner> Are you sure?
<tilpner> It's still not there
<hyper_ch> how do you know so quickly?
<tilpner> I started building/booting before you said that, had the same idea to try it
<tilpner> But it doesn't help, so...
jb55 has quit [(Ping timeout: 260 seconds)]
<Yarny> There seems to be a problem with my (and musteresel's) ISP -- I just tried with the internet of my neighbor (O2) and nixos-rebuild works fast there, no timeouts etc. My internet (Vodafone) it still hardly connects to cache.nixos.org.
<srhb> Yarny: Try tracerouting it?
prietoj has quit [(Ping timeout: 260 seconds)]
<srhb> It would be glorious if they'd blocked cloudfront or something :-P
<Yarny> Oh, I'll see how to do that (I'm not a network expert -- rarely used traceroute before)
nix-gsc-io`bot has joined #nixos
<srhb> It won't tell you much except how far out on the web you can get.
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3c0ea4fa4b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<srhb> So it might not be that interesting.
nix-gsc-io`bot has quit [(Client Quit)]
<GiGa|Laptop> Can anyone remind me how to get the sha256 for a fetchFromGitHub please?
<tilpner> hyper_ch - Is it acceptable to sync your custom files to /root from boot.postBootCommands, or any required systemd service?
<srhb> GiGa|Laptop: I usually just let it fail once and grab the sha from the error message, but there's nix-prefetch-git too
<Yarny> Well, they're probably not blocking it, from time to time a connection goes through. and https://nixos.org loads nice now (had problems 6h ago, but not any problems since then)
<srhb> Ah..
<gchristensen> Yarny: ipv6?
<Yarny> No, it's pure ip4 internet connection.
<tilpner> hyper_ch - That would be safer than an activation script. isoImage.contents really seemed like the proper way to do this, but if you only want a few files in a specific location... there are unsafe ways to do that c.c
<Yarny> Oh no! traceroute is not installed ... let's see if I can get it without cache.nixos.org...
bonk`` has joined #nixos
<GiGa|Laptop> srhb, that's what I did. I'm now being stopped by "Gramps requires Python 3.2 or later"
<hyper_ch> tilpner: if the can be auto-synced... without user having to do so.... becuase with the iso build system I already have a few uses in mind also for other people
<hyper_ch> but I fail to see why I can't create a file in a given folder with a given content and given permissions
<srhb> Yarny: tracepath is in iputils, should be a fast build
<hyper_ch> with that activation things for the desktop files it also works creating /root/Desktop and put files there
<srhb> Yarny: But since you can occasionally reach it, it might not be that interesting.
<GiGa|Laptop> srhb, surely python is already on the system given nixos uses it?
<srhb> GiGa|Laptop: There are many pythonses on NixOS, often :)
<GiGa|Laptop> oh
<hyper_ch> tilpner: I also just noticed, that in KDE it didn't use the locale I've given
<GiGa|Laptop> I can set it to use python 3.6
<lluchs> When building an application that uses pkg-config, do I have to set PKG_CONFIG_PATH manually for all dependencies?
<srhb> GiGa|Laptop: I think you should prefer python3 (it will be an alias for the newest 3-version)
<tilpner> hyper_ch - NixOS won't let you directly manage files outside of /etc because /etc is almost completely under NixOS control. Your home directory (/root) is not. It's a free-for-all and that makes it quite hard to manage
<GiGa|Laptop> ok
<GiGa|Laptop> so add specify python3Packages ?
* GiGa|Laptop is new to this, sorry
<srhb> GiGa|Laptop: Don't worry about it!
<hyper_ch> tilpner: it can do this however: https://paste.simplylinux.ch/view/raw/ce3b4959
<tilpner> hyper_ch - The updater would need to handle a few important edge-cases involving deletion of userfiles. What happens if the file we want to write already exists? What do we do when it's no longer declared by the config (do we delete it?)?
<srhb> GiGa|Laptop: Usually you would alter top-level/all-packages.nix like you see in the definition of eg mwic
proteusguy has joined #nixos
<srhb> GiGa|Laptop: Open the file and search for "mwic = callPackage"
<srhb> GiGa|Laptop: In there, it feeds the argument pythonPackages to the mwic derivation, but overrides it with the value of python3Packages
<srhb> GiGa|Laptop: So simply find "gramps = callPackage" and do the same thing :)
<GiGa|Laptop> srhb, I'm starting to feel out of my depth
<tilpner> hyper_ch - Okay, do you still have questions with the activation script?
<srhb> GiGa|Laptop: I'll walk you through it. :)
<srhb> At least, as far as I can.
<GiGa|Laptop> shall we fork off to a separate chat?
<srhb> Can do.
<Yarny> Well, while traceroute might not be interesting, I just tried to installed it and ended up with a url that it still downloading ... While it does so, I opened the url also with aria2c, and (after 30 seconds, which is still too long), it successfully downloaded it. On the other hand, nix-build is still waiting for the url. I don't unterstand this at all. Why is cache.nixos.org taking so long to respond, and why does it seem to not resond
<Yarny> Oh, in the meanwhile, it installed traceroute
<srhb> It all screams networking issues, and I'm sadly not very strong at those. Can you consistently ping cache.nixos.org at least?
steveeJ_webchat has joined #nixos
<Yarny> Yes, ping cache.nixos.org is reliable with times around 20--40 ms
<steveeJ_webchat> how can one chroot into an offline nixos rootfs? stuff in /run isn't available
<gchristensen> Yarny: try running this script: https://gist.github.com/grahamc/df1bb806eb3552650d03eef7036a72ba
<hyper_ch> tilpner: that doesn't work for non-desktop files.... so still need .tmux.conf to have in /root and also put some other scripts there.... question is still the same :(
<Yarny> I just traceoute'd cache.nixos.org .. and trying to get some info on how to read the output. What was remarkable is the the command itself (traceroute cache.nixos.org) took about 10 or 20 seconds to complete.
<Yarny> gchirstensen: one moment, looking into it
<tilpner> hyper_ch - Activation scripts do work for any file. They can run anything, which makes them so dangerous. It's also easy to end up with an un-bootable with them
<tilpner> (PM)
<hoodoo_> OK I've built testinfra. Fetching from github didn't do so I made that damn sdist file and linked to it from the expression. Not purely functional and all but I have the library.
jtojnar has quit [(Ping timeout: 255 seconds)]
jtojnar has joined #nixos
<Yarny> I'm not sure if I can get the script running, as it also wants to download some packages from cache.nixos.org ... with some luck, it will do so sooner or later
jtojnar has quit [(Client Quit)]
jtojnar has joined #nixos
<gchristensen> ocharles: I'm compiling it now
<gchristensen> well, github first :P
<ocharles> cool, I think with the last few commits it should work in places other than my $HOME :)
<ocharles> i'm going to be running out soon, but would be good to know if it works for others
proteusguy has quit [(Ping timeout: 246 seconds)]
<gchristensen> it at least starts
jb55 has joined #nixos
<ocharles> promising
<ocharles> I mean it's haskell, it's type checked so you should be all set, right?
<Yarny> gchristensen: OK, I executed the script. It did two things: 1) "ping -c1 d3m36hgdyp4koz.cloudfront.net" yielded "1 packets transmitted, 0 received" ; 2) "dig -4 identity.cloudfront.net" returned a html error page, error code 411, more text "A request of the requested method POST requires a valid Content-length."
<Yarny> Should I be able to ping d3m36hgdyp4koz.cloudfront.net ?
<gchristensen> yes
_ris has quit [(Ping timeout: 264 seconds)]
<Yarny> Does the script somehow interfere with network traffic? If I just do "ping d3m36hgdyp4koz.cloudfront.net" without the script around it, it works perfectly.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #29899: yabause: Qt4 -> Qt5, disable emu-compatibility.com in About menu (master...yabause/0.9.15) https://git.io/vdOZn
NixOS_GitHub has left #nixos []
<gchristensen> it shouldn't, Yarny
<Yarny> I have build-use-sandbox = true in my nix.conf, but it was my impression that nix-shell is not subject to the restrictions imposed by this setting...
<gchristensen> ocharles: just making a service for it to try it out
<Yarny> I can consistently reproduce it: If I call the script: 100% packet loss, if I invoke the same command by hand (copy-paste from terminal): 0% packet loss
aristid has quit [(Quit: WeeChat 1.9)]
<bonk``> is nixos more of a desktop distro or aimed more for servers?
<gchristensen> both :)
<gchristensen> Yarny: can you try running it again? it should paste to ix.io
<Yarny> Yes, and I'm currently running it. I didn't see your message earlier. I just removed the nix-shell she-bang and replaced it with a /bin/sh, and installed all the binaries with nix-env. Now the script seems to do more...
<bonk``> cool. now if only i could manage to get my laptops screen working again then i could try nixos. i upgraded the ram and now the screen doesnt work. im not good with hardware :p
<Yarny> (so nix-shell is really blocking network?)
aristid has joined #nixos
<gchristensen> it shouldn't no
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<Yarny> Pasted at: http://ix.io/AUY
erictapen has joined #nixos
<ocharles> gchristensen: would love a module.nix, however simple it is
Itkovian has joined #nixos
Acou_Bass has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner opened pull request #30196: mesa: 17.1.10 -> 17.2.2 (staging...mesa172) https://git.io/vdzU3
NixOS_GitHub has left #nixos []
reinzelmann has joined #nixos
<Acou_Bass> ok guys an odd error here... not sure f nixos or the Pi its running on... but on every reboot it somehow makes a new mac address, which is making it impossible to set a static IP on my router for it 0,o
<hodapp> you're running NixOS on a Pi?
<Acou_Bass> imi using ethernet, and have set networking.interfaces.eth0.macAddress = "**"; and its still doing it Xd
<Acou_Bass> hodapp: yeh a Pi 3
sary has quit [(Ping timeout: 258 seconds)]
bennofs has quit [(Ping timeout: 255 seconds)]
<ocharles> gchristensen: I have to run now, but if you hit any snags, please don't hesitate to ping me or (ideally) open an issue
<hodapp> Acou_Bass: working well besides this?
<gchristensen> MicroCI.hs:30:1: error:
<gchristensen> Failed to load interface for ‘GitHub.Endpoints.Repos.Status’
<gchristensen> ok ocharles :)
<Acou_Bass> yes actually :D im only running it headless though so no opinions on gfx performance or anything
<gchristensen> hmm my fault on that
hotfuzz_ has joined #nixos
sigmundv__ has joined #nixos
<Acou_Bass> oh and the other snag ive hit is, wifi card doesnt work - but that maybe because im running kernel 4.9
<hodapp> I have a Pi 2 that I run somethingbian on now but I wonder if it'll do NixOS well
<Acou_Bass> but y'know nothing of value was lost, servers should get ethernet anyway :D
<hodapp> sometimes servers need stuff to do when they're bored
<hodapp> like sniff WiFi
<samueldr> for the pi 3, I modesetting + vc4 works with linuxPackages_latest
<Acou_Bass> linuxPackages_latest doesnt have a hydra binary though and i cant be arsed waiting all week for it to compile :P
<samueldr> yeh, it had one
<samueldr> then lost it
hotfuzz has quit [(Ping timeout: 260 seconds)]
<Acou_Bass> ill live without wifi for now
<samueldr> you might be able to make it work
<samueldr> my interface is showing with that
<samueldr> but, I did not try anything wireless yet
<Yarny> Apparently curl establishes an SSL connection, so bytes seem to be able to travel in both directions, then the connection stalls, but i can't figure out from the result of the script what might be the cause.
<Acou_Bass> well my interface doesnt even show so youre a step ahead of me :P
<samueldr> Acou_Bass: journalctl -b0 | grep -i 43430
<samueldr> if it shows Direct firmware load for brcm/brcmfmac43430-sdio.txt failed with error -2
<samueldr> or same thing with .bin
<samueldr> this should make it work
<Acou_Bass> hmm
<Acou_Bass> doesnt show anything
<Acou_Bass> but ill try it anyway :D worth a go
<Acou_Bass> thanks!
<samueldr> hmm, then it might be related to linuxPackages_latest
<samueldr> with commit 116c34a748599334555896c32ace86056607d6c4, linuxPackages_latest is built
<samueldr> (commit of nixpkgs)
<Acou_Bass> ooh thats good
<Acou_Bass> so if i just do rebuild switch --upgrade with linuxPackages_latest enabled?
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined #nixos
bennofs has joined #nixos
<samueldr> with that nixpkgs commit, you'll benifit from the built package
<samueldr> without it, unless it built since yesterday, you would have to build it, and it possibly will fail
<Acou_Bass> ahh right
<Acou_Bass> i sort of just assumed the commit you gave was just 'the latest one' hehe, nevermind
<samueldr> 16 days ago
<Acou_Bass> like i said i can live without wifi for now - if your hardware.stuff works then thats awesome but im far too lazy to build the kernel just for the wifi hehe :D
<samueldr> the two properties will at leat populate the firmwares appropriately
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<samueldr> if your kernel version has support for it, the interface should show up after a reboot
<eacameron> What is the absolute easiest way to get Nix CI (presumably with Hydra)?
<samueldr> gchristensen: sorry to single you out, but it looks like linuxPackages_latest.kernel.aarch64 fails with timeouts, lately, any way to report this properly?
<wilornel> Alright, looking into fetchgit now
<Acou_Bass> ill give it a try later :D appreciate the help!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30197: subversion18: 1.8.18 -> 1.8.19 (master...update-subversion) https://git.io/vdzTC
NixOS_GitHub has left #nixos []
<infinisil> Am back btw, could help with home-manager
<samueldr> not only latest, but default one too (4.9), often comes close to timing out it seems
<bigvalen> $ nix-build -E 'with import <nixpkgs> {}; dockerImage { drv = bashInteractive; drvCommand = "${bashInteractive}
<bigvalen> error: undefined variable ‘dockerImage’ at (string):1:27
<bigvalen> What might I be doing wrong there ?
<bigvalen> Is that just I don't have dockerTools installed ?
steveeJ_webchat has quit [(Ping timeout: 260 seconds)]
<wilornel> infinisil: I am looking at your home repository and don't see anywhere where you set up dotfiles
<wilornel> using nix
<infinisil> mostly i try to write modules instead
<wilornel> hmmm I see. I was looking to git clone some dotfiles
<infinisil> but you can also link dotfiles directly
<wilornel> apparently fetchgit is a thing but it does not have lots of documentation on it
<Acou_Bass> dotfiles using nix sounds mental :D (in a good way), doubt i could ever use it as a desktop but on a server thats invaluable
<wilornel> how would you do that?
csingley has joined #nixos
<infinisil> home.file.".mydotfile".source = ./relative/path/to/dotfile;
<wilornel> yes, but you want nix to clone the repository, right?
<eacameron> are there any third party CI services (like Circle or Travis) that support Hydra?
<infinisil> wilornel: something like `home.file.".foo".source = pkgs.fetchgit { url="https://some.url/"; rev="some.revision"; sha256="its hash"; }
<wilornel> hmmm pkgs.fetchgit {} returns a derivation, right? (sorry, trying to wrap my head aruond how nix works)
<wilornel> and then when it is evaluated, it creates a directory in the nix store, and the outPath of the derivation is the path to that clone?
<infinisil> wilornel: in certain cases it can be automatically converted to a string (its output path), but if that doesn't work you need to use (pkgs.fetchgit { ... }).outPath to do it explicitly
<infinisil> wilornel: I did that here for example: https://github.com/Infinisil/home/blob/master/console.nix#L72-L83
<Yarny> I produced another paste, where curl downloaded the file promptly: http://ix.io/AV0 , however, it's still not stable, it fails most of the times
<gchristensen> Yarny: that paste looks just fine :/
<wilornel> And that will take care of creating a directory in the nix store with that repository clone in there, right?
<wilornel> infinisil: that's awesome!
<Yarny> Yes, but the paste above shows the failure
<infinisil> wilornel: yup, outPath returns /nix/store/<some-hash>-revision-name
<Yarny> ... this one [19:38] <Yarny> Pasted at: http://ix.io/AUY
<gchristensen> Yarny: ouch :/
<gchristensen> Yarny: I have ... no idea ... :/
<infinisil> ah, it's /nix/store/<hash>-<name>-<rev>-src to be exact
<Yarny> As I said, bytes seem to flow until ssl is established, then it suddenly stops
<eacameron> gchristensen: Nice. :D Does forceSSL = true have a way to do HTTPS redirects from other hosts? Like https://site.com -> https://www.site.com.
<gchristensen> eacameron: not sure!
<eacameron> gchristensen: Obviously you'd need a way to specify which hosts those are.
<wilornel> "fatal: could not read Password for 'https://kovek@bitbucket.org': No such device or address" because I have a password for bitbucket. can I have it request the password from my tty? Or I could copy my public key to bitbucket..
<infinisil> hmmm, i'm not sure if that's possible
<infinisil> i think there's privategit though, hold on
<gchristensen> wilornel: it is tricky to have nix use authentication when fetching repos, usually I'd recommend either use a public repo or fetch it outside of nix
<gchristensen> the privategit option is a bit worrisome to me
<infinisil> fetchgitPrivate it's called
<wilornel> why is it worrisome? What about if I put my publickey in my bitbucket account settings?
<Yarny> Is there are way to "generalize" the problem? At the moment, it fails downloading a specific nix archive. If it also fails to download some non-nix-specific test-file, it would mean that cloudfront (or amazon? I don't really know how they are connected) is failing in general. OTOH, if only nix archives fail from cache.nixos.org, then cache.nixos.org seems to be broken in some way.
<infinisil> not sure if it works though
<gchristensen> wilornel: because fetchgitprivate effectively requires your ssh private keys to be world-readable
<infinisil> ahh it should work yes, apparently it uses ssh-config-file in the NIX_PATH to determine what keys to use
<wilornel> ah....
<infinisil> support for private stuff is horrible in nix tbh
<wilornel> hmmmm is it possible to have the ssh-agent somehow allow nix to solve the ssl challenge?
<wilornel> user's ssh-agent
<gchristensen> yes, but you have to make the ssh agent socket file readable by nixbld which means effectively world readable :(
<wilornel> darn. Did I read about ssh keys that work only once in the past?
<adisbladis> Just put the key on a usb smart card where you have to authorize the signature
<wilornel> like a yubikey
<adisbladis> For example :)
<infinisil> There is this ancient issue regarding private nix: https://github.com/NixOS/nix/issues/8
<wilornel> Oh! I think I have one. I'll have to find it. However, yubikeys work weirdly with VMs
<eacameron> Is it possible for a module option's default to depend on the value of another module option?
<adisbladis> wilornel: What do you mean? Why would a vm be any different?
<infinisil> eacameron: sure
<wilornel> adisbladis: because the guest machine needs access to the USB device, and you don't want the the host machine to be hijacking it
<wilornel> and then you need to install the drivers for the yubikey
<eacameron> infinisil: Do I need to do anything tricky? I have cfg = config.mymodule; and I just use default = cfg.othervalue?
<adisbladis> wilornel: You could just use agent forwarding
<adisbladis> And let your actual host worry about the signing ;)
<wilornel> Yes, that's what I ended up doing last time
<infinisil> eacameron: this should work yeah
<wilornel> but then would nix be able to work with a forwarded agent?
<adisbladis> wilornel: Why not? It's completely standard ssh agent stuff
<wilornel> alright, cool!
drakonis has joined #nixos
<gchristensen> this seems janky
<gchristensen> why not just fetch it outside of nix?
<wilornel> I want to declaratively manage my installed packages, dotfiles, configurations and running services
griff_ has quit [(Ping timeout: 240 seconds)]
<wilornel> and maybe in the future, my stored files as well
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<wilornel> and I think those are all possible with nix and home-manager and nixops
<gchristensen> I think you'd have a better time if you cloned manually once as part of the setup, but by all means :)
<wilornel> yeah I was thinking of that but I'm already discovering nix and home-manager and it's part of something I'd like to do in the future so
<adisbladis> gchristensen: That's what I'm doing :) Far less trouble and setup
<wilornel> alright, I'll try to figure out what user is doing the cloning, then `su - that_user`, then `ssh-keygen` and post that publickey to my bitbucket account settings.
<wilornel> how can I know what user is dong doing the cloning?
<wilornel> since this is in a VM which onyl I use, it should be fine for now
<gchristensen> it'll be a user in the group nixbld
<wilornel> ah there are many
fragamus has quit [(Ping timeout: 246 seconds)]
<eacameron> infinisil: Cool thanks.
<wilornel> so I need to make some ssh files readable by a group
<gchristensen> or just clone it by hand :)
<wilornel> That should work, no? it's fine with me because nix is not malicious. I might be missing something in terms of security, right?
<wilornel> yeah but then I'll have to clone it by hand every time I use a new machine
griff_ has joined #nixos
<gchristensen> aye
<gchristensen> another option is you could make the repo public
<gchristensen> but as it goes, you're looking at needing to setup a complicated SSH key thing every time you use a new machine
<adisbladis> We have a pretty interesting solution at work where we use the phone as an internet connected smart card. That would be pretty handy for this kind of scenario.
proteusguy has joined #nixos
<ocharles> gchristensen: ah, nice! I'll do a bit more work on this then announce it
<gchristensen> cool
<gchristensen> running it myself freaks me out, since anyone could submit a PR & build stuff :) but it looks awesome for private things
miscellany has joined #nixos
<gchristensen> such is the nature of CI of course
<infinisil> that should be configurable right?
<gchristensen> probably not for a 'micro'-ci :)
acarrico has joined #nixos
<eacameron> In writing a module, is it possible for the "config" portion to import another module?
<gchristensen> what do you mean import? why would you? are you just trying to reference their values?
<eacameron> I have a "module" of sorts that I want to *optionally* add depending on a config
<eacameron> so I had imports = [ if cfg.thisthing then extramodule else {} ];
<gchristensen> ah
<gchristensen> sure that should work
<eacameron> gchristensen: It says "imports" doesn't exist
<infinisil> eacameron: Can you show your nix file?
<gchristensen> hrm :/
<eacameron> It's in a module with { options.myModule = {}; config = { imports = [...]; }; }
iqubic has joined #nixos
<gchristensen> I'd turn it in to a proper module and enable itbased on your module's config :)
<iqubic> How do I change the size and look of my mouse cursor?
<eacameron> gchristensen: Another way would be to *optionally* set some attrs in the config
<eacameron> But I don't know how to do that.
<iqubic> I wish I could make my cursor bigger and chose a different theme too.
acowley_away has quit [(Ping timeout: 248 seconds)]
<eacameron> gchristensen: ^
<eacameron> Line 126
acowley_away has joined #nixos
mortum5 has quit [(Ping timeout: 255 seconds)]
<eacameron> It says "imports" is not an option
<eacameron> If I try to use `// httpsModule` at the end of that set I get infinite recursion
<eacameron> If I just embed it unconditionally, it works
<gchristensen> eacameron: security.acme.certs = (if cfg.enableHttps then httpsModule else {})
<infinisil> eacameron: Maybe try adding imports before the option declaration
<infinisil> imports = ...; options = ...; config = ...
<gchristensen> security.dhparams.params = if cfg.enableHttps then { nginx = 3072; } else {};
<iqubic> So no one knows how to change the look and size of my mouse cursor?
<eacameron> infinisil: Heh...doing that gives infinite recursion again
<miscellany> Hi, I installed bazel-0.6.1 (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/build-managers/bazel/default.nix) but when I try to use it, it fails on the `customBash` in the derivation not being in the /nix/store -- do I need to do something to make the customBash available? ie. /nix/store/m9rjk4vkhyf3f3ajdl21501p1sgdx4b4-bash/bin/bash is not present
hoodoo_ has quit [(Remote host closed the connection)]
<eacameron> infinisil: gchristensen: I think gchristensen's idea worked
hoodoo_ has joined #nixos
jtojnar has quit [(Quit: jtojnar)]
<eacameron> gchristensen: I use my own nginx config because I need to redirect https hosts. But I'd rather not use my own eventually.
<infinisil> can't you do that with the normal module?
<eacameron> infinisil: Maybe you can; I've never seen the config for it. It would need to get ACME certs for multiple hosts and then set up redirects for all of them.
<eacameron> infinisil: my config, as you can see in that gist, uses extraDomains for all redirectHosts: https://gist.github.com/3noch/6120e99c2bfb6849eb615f3d9471f9c2#file-server-module-nix-L118
<infinisil> eacameron: virtualHosts."www.example.com".globalRedirect = "example.com"
<infinisil> is what i have in my nginx config
<eacameron> infinisil: Does it work for HTTPS?
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
jtojnar has joined #nixos
<eacameron> You'd need forceSSL on that too
<eacameron> That might work
Itkovian has joined #nixos
<infinisil> I only have forceSSL on infinisil.io (my actual domain), but having it on www.infinisil.io too might work yeah
<iqubic> I really want to change the size and look of my cursor. Anyone able to help me with that?
<eacameron> infinisil: Without it your redirects aren't nearly as helpful.
VLetrmx has quit [(Quit: leaving)]
<eacameron> They only work for http/unqualified urls.
vandenoever has joined #nixos
<infinisil> eacameron: they do? what if i use https://www.infinisil.io instead?
Arcaelyx_ has joined #nixos
<eacameron> infinisil: If that's your primary host then it works fine, but if you want that to redirect to without www, then you need a cert and redirect set up for it too
<eacameron> I.e you need a server block that listens to 433 on that host too
Arcaelyx has quit [(Read error: Connection reset by peer)]
<infinisil> have you tried the nginx module for that and it didn't work?
<eacameron> infinisil: I've looked at the source a couple times and was convinced it wasn't set up
<eacameron> But I could be wrong
<infinisil> maybe, oh well, as long as it works for you :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fread2281 opened pull request #30199: ffmpegthumbnailer: build with jpeg support (master...ffmpeg-jpeg) https://git.io/vdzLl
NixOS_GitHub has left #nixos []
<infinisil> you could also contribute to the nixpkgs nginx module and edit it so it can do your usecase :D
<eacameron> infinisil: Yeah yeah...I know. lol
<eacameron> I get lost in that code tho
<infinisil> maybe it needs some refactoring, some modules are rather big
<infinisil> Oh my god, the ip of my digitalocean droplet apparently caused some youtube abuse before, because i can't use it to download stuff with youtube-dl
<eacameron> oh dear
<infinisil> I'm getting HTTP Error 429: Too Many Requests
toppler has quit [(Remote host closed the connection)]
<iqubic> infinisil: They just recycle the IPs when on person is done?
<infinisil> i mean there aren't all that many ipv4 addresses.
<infinisil> i also have an ipv6 address, which doesn't work either
<iqubic> I see. So is that an issue then?
<iqubic> infinisil: Why do you use xmobar over something like dzen or LemonBar or something else?
<infinisil> iqubic: Dunno, haven't tried others, i might in the future though. xmobar works totally fine
<iqubic> Can I see your config? I need to get a status bar that I actually like.
<iqubic> infinisil: How does that work?
<infinisil> how does what work?
<iqubic> How does that get spawned.
<gchristensen> infinisil: they may just blacklist all of DO :)
<iqubic> When is xmobar started?
<infinisil> gchristensen: The last ip i had (before i had to get a new one because i trashed it), worked with youtube-dl (although only over ipv6)
<iqubic> Also, what are those pipereaders? Just things you wrote yourself or what?
<eacameron> infinisil: Does DO give you an IPv6 addy?
<clever> infinisil: ive got other weird problems, netflix only works over v4, v6 complains loudly
<infinisil> eacameron: yes
<clever> infinisil: and android gives no way to turn v6 off
<iqubic> infinisil: when do you call the code in the .nix file?
<eacameron> infinisil: Oh I didn't realize that
<infinisil> iqubic: the pipes get written to here:https://github.com/Infinisil/home/blob/master/audio/mpdinfo.nix
<iqubic> Cool.
<infinisil> clever: Well, I'm just glad ipv6 support is coming, will take a while for everything to work though
<iqubic> infinisil: When is that config actually written to file? How does that nix file integrate with the rest of configuration.nix? Or are you using home-manager?
<infinisil> Hmm, now how do i unblock this ip, i could just write youtube support or something
<infinisil> or change server ip somehow
<clever> infinisil: the reason its broken, is because my isp doesnt offer v6
<clever> infinisil: so i'm using a tunnel
<infinisil> iqubic: This config is using home-manager
<clever> infinisil: v4 says i'm in canada, v6 says i'm in america
<clever> netflix knows one of them is a lie, and blocks everything
<iqubic> Oh, I see.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joncojonathan opened pull request #30200: Update gramps426 (master...update-gramps426) https://git.io/vdztv
NixOS_GitHub has left #nixos []
<infinisil> clever: Ah, my isp also doesn't offer v6 sadly
<iqubic> I'd like to start using home manager, but I'm not sure how to do that.
<infinisil> iqubic: but you can just write the files like normal, e.g. putting it in ~/.xmobar manually
<iqubic> I'd also like to try using the xmonad module from your fork too.
<iqubic> but I have no idea how to get that installed.
<iqubic> Do I just clone your fork and go from there, infinisil?
<infinisil> iqubic: a slight variation of my xmonad module got merged here: https://github.com/rycee/home-manager/pull/80
<iqubic> What branch do I clone to get that?
<infinisil> iqubic: I'd write a config yourself from scratch and copy only the stuff you need from other users configs
<infinisil> iqubic: it's in home-manager's master
<iqubic> I will.
<iqubic> I just realized that.
<iqubic> So what I hear you telling me is that I just need to clone home-manager's master branch, and that should get me set-up and ready to go with home-manager?
<infinisil> iqubic: Read home-manager's README
<iqubic> Nope, looks a bit more involved than that.
<iqubic> infinisil: I just did read the README
<iqubic> I can't seem to make the symlink properly. ln: failed to create symbolic link '/home/avi/.config/nixpkgs/overlays/home-manager.nix': No such file or directory
<infinisil> iqubic: mkdir ~/.config/nixpkgs/overlays
<iqubic> I had to make the nixpkgs dir as well. I hope that's fine.
<sphalerite> GiGa|Laptop: there's also https://github.com/lheckemann/nix-prefetch now, which I aim to make useful for stuff other than github repos
<sphalerite> (for getting the hash for a github repo)
<sphalerite> (well actually just getting the whole expression for fetching it)
<iqubic> Trying to run the nix-env command and I get this: error: getting status of ‘/home/avi/.config/nixpkgs/home-manager/overlay.nix’: No such file or directory (use ‘--show-trace’ to show detailed location information)
<iqubic> Gosh Darn
<iqubic> So home-manager is being a pain in the bum
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<GiGa|Laptop> sphalerite, I've used that for URL fetches before
<GiGa|Laptop> Thanks srhb, I've learnt a lot and submitted a PR :)
<srhb> :-) Good job!
GiGa|Laptop has left #nixos ["Leaving"]
<sphalerite> GiGa|Laptop: no, it's not nix-prefetch-url, it's a tool I wrote last week that (currently) just emits fetchFromGitHub expressions
GiGa|Laptop has joined #nixos
<sphalerite> aw bummer they left
<GiGa|Laptop> didn't mean to
<Yarny> sphalerite: Yes, that inspired my nickname!
<sphalerite> oh great haha
<sphalerite> so I'll just repeat haha
<sphalerite> GiGa|Laptop: no, it's not nix-prefetch-url, it's a tool I wrote last week that (currently) just emits fetchFromGitHub expressions
<infinisil> iqubic: can you gist the output of `tree ~/.config/nixpkgs -L 2`?
<sphalerite> Yarny: yay! :D
<sphalerite> I approve
<Yarny> :-) Thanks, you're the first to notice after ~ 10 years
<sphalerite> wow
jonathan_ has joined #nixos
<jonathan_> right, now I'm off
<Yarny> I sent a mail about my problems with cache.nixos.org to the nix-devel mailing list (or google group ... I hope that works, I never used Google Groups before). I hope that's the right channel for this kind of thing.
<iqubic> I hope that works. I have no idea how to use github's gist feauture
<jonathan_> Stargate SG1 to watch
<iqubic> *feature.
Yarny has left #nixos []
<infinisil> iqubic: you didn't put the home-manager repo there
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 2 new commits to release-17.03: https://git.io/vdztb
<NixOS_GitHub> nixpkgs/release-17.03 65aed1d romildo: locate: fix creation of the parent directory of of locate database...
<NixOS_GitHub> nixpkgs/release-17.03 0065ae2 romildo: locate: does not use localuser for mlocate...
NixOS_GitHub has left #nixos []
<iqubic> No, I made a symlink.
<infinisil> iqubic: Step 2 of the readme..
jonathan_ has quit [(Client Quit)]
<iqubic> Yeah. I cloned it to my home directory instead. I feel stupid.
GiGa|Laptop has quit [(Ping timeout: 255 seconds)]
<infinisil> you can also just symlink it to ~/.config/nixpkgs/home-manager, that's what i did
<iqubic> Well, that works.
<iqubic> And there is no manual entry for home-manager on my syste,
<iqubic> s/syste,/system/
<infinisil> iqubic: have you installed home-manager?
<iqubic> I have indeed.
<infinisil> you may need to build your config once
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdzqU
<NixOS_GitHub> nixpkgs/master 5dc3b2f Vladimír Čunát: xf86-video-amdgpu: 1.3.0 -> 1.4.0
NixOS_GitHub has left #nixos []
<sphalerite> iqubic: spamming your question isn't helpful
<sphalerite> often people won't read it until several hours later
<iqubic> nix-env -f '<nixpkgs>' -iA home-manager worked just fine.
<infinisil> iqubic: Ah yeah, you need to enable the manual option
<iqubic> How do I do that?
<eacameron> I'm trying to set up mattermost and proxy it through nginx; apparently it sets up websockets as well and I'm probably not proxying them
<iqubic> sphalerite: Thanks for the advice.
<eacameron> Is it possible to proxy both http and ws to the same upstream?
<infinisil> iqubic: manual.manpages.enable = true; in home.nix
<iqubic> Where should home.nix live?
<iqubic> In ~?
<infinisil> iqubic: read the readme
<sphalerite> iqubic: in any case, for the cursor setting — set the Xcursor.theme and Xcursor.size X resources to adjust it
<srhb> Can I make a fetchgit checkout pure by doing some things to its .git repository and _then_ deleting it?
<sphalerite> By putting them in ~/.Xresources for instancec
<iqubic> sphalerite: Thank you.
<srhb> Or can I get access to git directly and at some point "promise" that the remainder is pure?
<srhb> I need unsafeUnutterableAccursedPerformGitMagic.
<sphalerite> for instance mine looks like "Xcursor.theme: Breeze_Snow\nXcursor.size: 48" (where \n is an actual newline)
<gchristensen> srhb: what do you want to do?
atorres_ has joined #nixos
<iqubic> How do I get more themes to chose from?
<infinisil> srhb: You could just use a normal fetchgit and modify it with some command, creating a new derivation from it
<srhb> gchristensen: I want to extract the output og git rev-parse HEAD and git describe
<sphalerite> srhb: or you can make a fixed-output derivation of your own
<infinisil> srhb: runCommand should work
<srhb> infinisil: Hm, yes..
<srhb> sphalerite: Oh, I've never tried that. That should be interesting.
<atorres_> Hello again! Can someone tell me how to add LaTeX packages to Nixpkgs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #30201: atom-beta: 1.21.0-beta0 -> 1.22.0-beta0 (master...atom_beta_1_22_0) https://git.io/vdzqY
NixOS_GitHub has left #nixos []
<iqubic> infinisil: can I just put my home.nix in ~ and have a symlink in ~/.config/nixpkgs/home-manager?
<srhb> Where are fixed output derivations described? nixpkgs manual?
<sphalerite> atorres_: are they in texlive? It looks to me like nixpkgs has autogenerated expressions for texlive
<infinisil> iqubic: yeah, but it would need to be ~/.config/nixpkgs/home.nix
<sphalerite> srhb: nix manual
<srhb> sphalerite: Thanks.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdzqC
<NixOS_GitHub> nixpkgs/master 351b1ad Piotr Bogdan: subversion18: 1.8.18 -> 1.8.19...
<NixOS_GitHub> nixpkgs/master f46b30e Tim Steinbach: Merge pull request #30197 from pbogdan/update-subversion...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30202: ruby_2_2: 2.2.7 -> 2.2.8 (master...update-ruby) https://git.io/vdzqW
NixOS_GitHub has left #nixos []
<atorres_> sphalerite: well, I can find it in latex page: https://ctan.org/pkg/xsim
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vdzq0
<NixOS_GitHub> nixpkgs/master 56ca2a5 Tim Steinbach: atom-beta: 1.21.0-beta0 -> 1.22.0-beta0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdzq2
<NixOS_GitHub> nixpkgs/release-17.09 7b7310e Piotr Bogdan: subversion18: 1.8.18 -> 1.8.19...
NixOS_GitHub has left #nixos []
<sphalerite> atorres_: it indeed doesn't seem to be in nixpkgs. I'm curious how it works though, I'll take a look
<iqubic> How the hell do symlinks work?
<iqubic> Which file goes first?
miscellany has quit [(Quit: Page closed)]
<symphorien> ln is like cp
<symphorien> ln -s exists created
<infinisil> it's a bit weird until you get it tbh
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdzqM
<NixOS_GitHub> nixpkgs/release-17.09 5ac36ed Tim Steinbach: atom-beta: 1.21.0-beta0 -> 1.22.0-beta0...
NixOS_GitHub has left #nixos []
<infinisil> ln -s <target> <symlink>
Arcaelyx has joined #nixos
<infinisil> while target is relative to the symlink
<moet> hi nixos, what determines your available cpufreq governors?
<the-kenny> "just like cp" is the answer that stuck with me :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdzqS
<NixOS_GitHub> nixpkgs/master f192ce9 Tim Steinbach: rkt: 1.28.1 -> 1.29.0
<NixOS_GitHub> nixpkgs/master 7fa69c4 Tim Steinbach: Merge pull request #30126 from NeQuissimus/rkt_1_29_0...
NixOS_GitHub has left #nixos []
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
<infinisil> But it isn't like cp
<sphalerite> the-kenny: except it's not like cp with relative paths if the symlink you're creating isn't in the cwd :/
<the-kenny> sphalerite: oh yeah, right. I forgot :/
<clever> cp, ls, and ln behave wildly different depending on if the destination exists or not, and what the type of the destination is
<infinisil> Example: `mkdir foo; echo bar > bar; ln -s bar foo/baz;`
<clever> and also if you give it multiple sources or not
<sphalerite> mkdir a b; touch a/foo; ln -s ../a/foo b/foo-1 ; ln -s a/foo b/foo-2
<infinisil> this does not link foo/baz to ./bar as the cp equivalent would be
<sphalerite> b/foo-2 will be a broken symlink
Arcaelyx_ has joined #nixos
<sphalerite> b/foo1- will be fine
<atorres_> sphalerite: many thanks :)
<clever> infinisil: yeah, the symlink points to a bar inside foo
<infinisil> sometimes a hardlink is better i find
<clever> infinisil: give cp -vs a try
Arcaelyx has quit [(Ping timeout: 255 seconds)]
<infinisil> cp: foo/baz: can make relative symbolic links only in current directory
<sphalerite> atorres_: it seems that the texlive in nixpkgs is still texlive 2016, which doesn't include xsim because it didn't exist at the time :/
<iqubic> Do I want a symlink for my home.nix file.
<infinisil> iqubic: ln -s ../../home.nix ~/.config/nixpkgs
<iqubic> I want to edit the home.nix file in ~ and have the changes read by home-manager
<infinisil> will link ~/home.nix to ~/.config/nixpkgs/home.nix
mizu_no_oto has joined #nixos
<atorres_> sphalerite: maybe updating it would be OK?
<sphalerite> atorres_: yeah, going to try and see if that's not too complicated
<infinisil> iqubic: but tbh, you could use google for this question
<iqubic> infinisil: I ran "ln -s home.nix .config/nixpkgs/home.nix
<iqubic> from my home dir. And that worked well.
<infinisil> iqubic: um, are you sure? I don't think that should work
<infinisil> that should create a recursive symlink from .config/nixpkgs/home.nix to itself
hoodoo_ has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Ping timeout: 240 seconds)]
iqubic has quit [(Ping timeout: 260 seconds)]
yegortimoshenko has joined #nixos
<sphalerite> atorres_: no luck so far, I don't know what my chances of getting this working are. I'll let you know if I do get anywhere, but I wouldn't count on it
yegortimoshenko has quit [(Ping timeout: 248 seconds)]
<moet> hi nixos, i am having the issue described here <https://github.com/NixOS/nixpkgs/issues/5424
<moet> including the 1) msr module is not loaded and 2) the "unknown op" error
b has quit [(Quit: leaving)]
MarkusBarthlen has joined #nixos
<moet> nix channel shows i'm on 17.09 ..
<moet> i think, from that thread, that the fix was merged?
b has joined #nixos
<moet> does anyone have familiarity with the fixes for these issues?
<tokudan[m]> I'm trying to figure out a decent way to setup a debian chroot or container on nixos. has someone done something similar?
Acou_Bass has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to release-17.03: https://git.io/vdzmi
<NixOS_GitHub> nixpkgs/release-17.03 b27d55b Vladimír Čunát: Merge #30143: firefox-*: critical security updates...
<NixOS_GitHub> nixpkgs/release-17.03 111c132 Vladimír Čunát: icu: keep default version on 58...
<NixOS_GitHub> nixpkgs/release-17.03 373119b Vladimír Čunát: firefox: revert the upgrade for now...
NixOS_GitHub has left #nixos []
betaboon has joined #nixos
<MichaelRaskin> debootstrap
<betaboon> hello #nixos. is the nixos-cache available? I'm experiencin problems
<tokudan[m]> MichaelRaskin: to create the chroot yes, but how do i get that e.g. into a container?
<sphalerite> moet: did you enable the module?
<sphalerite> betaboon: idk myself, but some other people were having issues too
jensens has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
ixxie has joined #nixos
<moet> sphalerite: i tried `modprobe msr` and no longer have the first issue (described in the link above); now i'm reearching about the "unknown op" error
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdzmj
<NixOS_GitHub> nixpkgs/master 547fba5 Piotr Bogdan: ruby_2_2: 2.2.7 -> 2.2.8...
<NixOS_GitHub> nixpkgs/master 7a566fc Jörg Thalheim: Merge pull request #30202 from pbogdan/update-ruby...
NixOS_GitHub has left #nixos []
<moet> sphalerite: though, at boot, the module is not loaded.. i guess i should configure it to be loaded by configuration.nix or something
<sphalerite> moet: I mean the nixos module
Guest80446 has quit [(Quit: Lost terminal)]
<sphalerite> although it doesn't look liek the nixos module loads any kernel modules
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #30203: dnstracer: init at 1.9 (master...add-dnstracer) https://git.io/vdzYJ
NixOS_GitHub has left #nixos []
<betaboon> sphalerite: do you know who is in charge of it ?
<sphalerite> moet: I'd probably add a systemd oneshot service to load the module on every boot. Not sure how correct that is though
<moet> sphalerite: evidently the powertop program itself attempts to `modprobe msr` if it is not present
<moet> but that doesn't work (as detailed in the thread) because the location of modprobe is hardcoded inside powertop
<moet> i believe this was already fixed in 15.09, but i'm unsure how how to check
<sphalerite> oh
<betaboon> moet: you could deactivate the service, and run the binary that is supposed to load the kernel-module with strace
<moet> and to answer your question, yes i have powerManagement.powertop.enable set to true in my configuration.nix
<sphalerite> yeah no, the fix should definitely be in 17.09!
<moet> betaboon: the binary (powertop) isn't in my path.. it's somewhere in the nix store.. how would i find it?
<betaboon> moet: nix-shell -p powertop
<sphalerite> moet: nix-shell -p powertop
<sphalerite> aaah I was too slow
<sphalerite> lol
<betaboon> xD
<moet> :)) nix-shell ftw
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdzYW
<NixOS_GitHub> nixpkgs/release-17.09 b639cc6 Piotr Bogdan: ruby_2_2: 2.2.7 -> 2.2.8...
NixOS_GitHub has left #nixos []
<moet> ok, when i run powertop from nix-shell, it succeeds in loading the msr module itself
<sphalerite> How do we deal with upstreams that don't host fixed snapshots of their software, instead updating the stuff which still lives at the same URL, but with mirror-friendly licencing? Do we have some sort of nixos snapshot mirror?
<betaboon> moet: can you send the link describing your problem again? i don't have it in my history
<sphalerite> moet: aah, in that case try adding systemd.services.powertop.path = [pkgs.util-linux];
<sphalerite> err, kmod, not util-linux
<betaboon> sphalerite: i think that shouldnt be required, i don't have that anywhere in my configs
<sphalerite> betaboon: yours might not need to load msr?
<sphalerite> or does it succeed at loading msr?
<betaboon> sphalerite: that is correct. i need the applesmc module (dunno if that is required for powertop to work on my mbp2010).
<moet> sphalerite: betaboon: i'm seeing some inconsistent behavior; previously `modprobe -r msr` followed by `systemctl restart powertop` would result in a one-shot `powertop --auto-tune` which would fail because `msr` wasn't loaded ..
<moet> now that's "working"
<moet> i'm going to reboot, test, and report here in a minute
<betaboon> and i load with boot.kernelModules = [ "applesmc" ];
moet has quit [(Quit: brb)]
<sphalerite> huh, you need to explicitly load it?
vandenoever has quit [(Ping timeout: 255 seconds)]
<sphalerite> on my old macbook it would load it automatically
<betaboon> sphalerite: I'm not sure if i have to. don't remember if i ever tried without
<sphalerite> I don't know what was causing it to be loaded, but it was loaded
Itkovian has joined #nixos
mudri has joined #nixos
moet has joined #nixos
Acou_Bass has joined #nixos
<moet> ok, i'm back. the problem returned when i rebooted. see paste: http://lpaste.net/359015
justan0theruser has joined #nixos
<sphalerite> Does what I wrote earlier help?
<sphalerite> systemd.services.powertop.path = [pkgs.kmod];
justanotheruser has quit [(Ping timeout: 258 seconds)]
<moet> i'll try that next
<sphalerite> if so that should probably be added to the module
<betaboon> can anyone link to information on how the machine-interconnect in nixops is realized ?
<moet> just so i understand correctly, sphalerite, that snippet causes the powertop service to depend on the kmod package?
reinzelmann has quit [(Quit: Leaving)]
<sphalerite> moet: yes — more specifically it ensures that the bin and sbin directories in kmod are added to the PATH env var for the systemd service
<moet> ah, thanks for explaining.
<moet> applying now and rebooting..
betaboon_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to release-17.03: https://git.io/vdzOq
<NixOS_GitHub> nixpkgs/release-17.03 b101829 Tim Steinbach: ruby: 2.2.5 -> 2.2.7...
<NixOS_GitHub> nixpkgs/release-17.03 3824456 Piotr Bogdan: ruby_2_2: 2.2.7 -> 2.2.8...
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 264 seconds)]
betaboon has quit [(Ping timeout: 260 seconds)]
moet has quit [(Quit: rebooting... my comuter is slow)]
moet has joined #nixos
<moet> sphalerite: yes, that fixed the kernel module issue! thank you http://lpaste.net/359016
<moet> incidentally, it also gave me a clue as to how to run `rfkill unblock all` correctly (using systemd.services.wpa_supplicant preStart and path)
<moet> thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #30204: powertop module: add kmod to path (master...powertop-fix) https://git.io/vdzOi
NixOS_GitHub has left #nixos []
<sphalerite> moet ^
<moet> wow, so fast.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zraexy opened pull request #30205: kmplayer: 0.11.3d -> 0.12.0b (master...kmplayer) https://git.io/vdz3c
NixOS_GitHub has left #nixos []
<ixxie> how bleeding edge is NixOS compared to - say - Fedora?
<ixxie> unstable ofc.
MarkusBarthlen has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30204: powertop module: add kmod to path (master...powertop-fix) https://git.io/vdzOi
NixOS_GitHub has left #nixos []
<sphalerite> moet: ^ also fast :D (thanks Mic92 )
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdz3V
<NixOS_GitHub> nixpkgs/release-17.09 088a434 Linus Heckemann: powertop module: add kmod to path...
NixOS_GitHub has left #nixos []
<sphalerite> moet: and he backported it to 17.09 so you shouldn't need the extra line in your config soon
hellrazor has quit [(Ping timeout: 260 seconds)]
<Mic92> you are welcome
hiberno has quit [(Quit: WeeChat 1.6)]
<moet> Mic92: woah. you guys are very fast
<moet> i know it's saturday, but is this at all related to your jobs? heh.
<moet> because you're on top of it lol
griff_ has quit [(Quit: griff_)]
59NAA4PS3 has joined #nixos
<59NAA4PS3> [nixpkgs] Mic92 closed pull request #30203: dnstracer: init at 1.9 (master...add-dnstracer) https://git.io/vdzYJ
59NAA4PS3 has left #nixos []
07IABDZSZ has joined #nixos
<07IABDZSZ> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vdz3S
<07IABDZSZ> nixpkgs/master c113560 Andreas Rammhold: maintainers: add andir
<07IABDZSZ> nixpkgs/master 8e9acc8 Andreas Rammhold: dnstracer: init at 1.9
<07IABDZSZ> nixpkgs/master a088376 Jörg Thalheim: Merge pull request #30203 from andir/add-dnstracer...
07IABDZSZ has left #nixos []
<sphalerite> moet: I'm a student :p
<sphalerite> moet: but I love nix and nixpkgs and take any opportunity to make it better, especially if it's an easy one :p
<moet> is nix part of your school stuff?
<sphalerite> (and I'm hoping to work with nix once I graduate)
<sphalerite> no
<moet> where do you think you'll work with it? i work in software in america.. and the companies are fairly backward w.r.t. fp technologies
<sphalerite> I'm currently in the UK (Glasgow) but planning to leave and go somewhere that's staying in the EU. Or maybe Switzerland. I gather there's a fair bit of nix stuff going on in Germany
<Mic92> moet: phd student, not directly related to my research, but I use nix quite often there.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #30206: Upd.mkvtoolnix (master...upd.mkvtoolnix) https://git.io/vdzsq
NixOS_GitHub has left #nixos []
<gchristensen> moet: I've found it easy to sell Nix if you can show the business value and avoid "its functional" as a selling point
<moet> gchristensen: yeah, i'm learning that "functional" is a dirty word is us software
<moet> *in usa software companies
<gchristensen> focusing on the value it brings is a better approach anyway
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<betaboon_> moet: i can support gchristensens statement about the business-value argument
<moet> true, i'm not versed in making arguments about what's valuable to a business. i studied engineering, heh
<gchristensen> that'll come with practice, probably :P
<betaboon_> a recent employer followed that advice. a previous one, due to its "enterprise"-character, didnt tho
<betaboon_> moet: if you're an engineer you might be well practiced in the argument of "why this design decision is more reasonable than the other"
kuznero has joined #nixos
<betaboon_> gchristensen: do you know if the binary-cache is live and well ?
endformationage has quit [(Quit: WeeChat 1.9)]
<gchristensen> seems it to me, betaboon_
<betaboon_> is there a publically available status page for it anywhere ?
<gchristensen> S3 (us-east-1) and CloudFront's status pages would do the trick :)
<LnL> it's just s3 + cloudfront
moet has quit [(Ping timeout: 248 seconds)]
isidore has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
moet has joined #nixos
isidore has quit [(Client Quit)]
<ixxie> gchristensen: I mentioned Nix on the work Linux channel, and since I am a mathematician by training some guy immediatly cornered is a "mathematician's dream distro"
<ixxie> so yeah, I dig your point xD
<ixxie> but I wasn't even selling it as functional
<ixxie> the guy just googled it
<gchristensen> oh hehe
<ixxie> I have just been taking a hard look at NixOS marketing
<gchristensen> well, gotta push on and ignore the accusations :)
<ixxie> yeah
<gchristensen> "accusations"
<ixxie> I wanna learn some NixOps and show him better (his the Delivery lead so.... I wanna shock him with magic)
<gchristensen> at first, at work I had to sell it as a build tool only, not a package managere
<gchristensen> look at the business value of this build tool
<ixxie> yeah
NixOS_GitHub has joined #nixos
<MichaelRaskin> The industry that has a megabug a year says that looking towards an industry with a megabug in a few dozens years is a bad idea? Hm…
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdzsX
<NixOS_GitHub> nixpkgs/master 58b6d3f Joerg Thalheim: python.pkgs.spambayes: 1.1b1 -> 1.1b2
NixOS_GitHub has left #nixos []
moet has quit [(Ping timeout: 260 seconds)]
<ixxie> I think we can improve reception by giving NixOS marketing a bit of a rethink
<gchristensen> MichaelRaskin: they're scared of what they don't know, I think
<gchristensen> ixxie: yes :) go on
<ixxie> along the lines of gchristensen's ideas
<ixxie> its a matter of emphasizing different aspects
<MichaelRaskin> Have a few forks of Nix with completely different targeting. The code is actually the same.
<gchristensen> one where the name focuses on puppetteering, one with a focus on baking / cooking, one with a focus on beer making
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vdzs9
<NixOS_GitHub> nixpkgs/master 3ca090d joncojonathan: gramps: 4.1.1 -> 4.2.6...
<NixOS_GitHub> nixpkgs/master f0667f8 joncojonathan: bsddb3 Refactored to disable tests....
<NixOS_GitHub> nixpkgs/master 8f8a7f3 Jörg Thalheim: Merge pull request #30200 from joncojonathan/update-gramps426...
NixOS_GitHub has left #nixos []
<MichaelRaskin> No no no.
<MichaelRaskin> Coffee making.
<ixxie> I also think we need maybe to refresh the logo *a bit*; the more I look at the logo and branding the more I love the ideas, but they are also emphasize the purity of Nix so much
<sphalerite> roast?
<sphalerite> ixxie: No! We can't touch the lambda snowflake, it's too pretty!
<sphalerite> (the new version that is)
<MichaelRaskin> Beer brewing is marketing targeted towards the actual hands-on users, but they should be targeted by «undo your mistakes with less stress»
<ixxie> sphalerite: I agree! the flake stays a flake, but it can be 'refreshed' with minor changes
<gchristensen> Ventriloquist, Cuisinier, Steep
<MichaelRaskin> Barista.
<gchristensen> ooh good one
<sphalerite> ixxie: like what?
<ixxie> the flake is *brilliant* as a representation of Nix, but there are aspects of the overall design which make the whole of Nix feel a bit too clinical
<gchristensen> ixxie: might be a good push to have that around for the Nix 1.12 release
dustmote has joined #nixos
<gchristensen> IMO the website needs to focus on solved problems instead of what it does now
<sphalerite> espress
<ixxie> if you go to our site its all white or light grey, and blue; the shade of blue is quite 90s in a way, and feels a bit cold (its a snowflake so yeah, it should be a bit cold, but the color could be a bit more fresh)
<sphalerite> (coffee-related and it espresses the concept that packages are built from espressions!)
<ixxie> you can also go a long way by, for example, tilting the flake - say - 5 degrees
<MichaelRaskin> gif it!
<ixxie> the whole design is so clean and straight it could use something to break it up a little
<gchristensen> ixxie: someone was just in here asking why the nix logo was rotated between revisions, lol
<ixxie> lol
isidore has joined #nixos
<ixxie> tomorrow I will start playing around with the logo and show you folks what I mean
<MichaelRaskin> Hm. An SVG animation that rotates really slowly.
<ixxie> but in marketing speak, we need to start looking less Academicy and more Startupy
<MichaelRaskin> Now _that_ will play some mind tricks.
<ixxie> xD
<MichaelRaskin> We need a fork that does that.
<sphalerite> I do like the way the that mog put a hummingbird in the snowflake for the t-shirts
<gchristensen> #nixos-marketing :)
moet has joined #nixos
<ixxie> and gchristensen - your shift of the copywriting towards more problem solving is inline with that
<MichaelRaskin> Because «Academicy» also means «Plans to stay around for next ten years or so»
<sphalerite> http://www.nixcon2017.org/ this is also very nice (mouseover the logo!)
<gchristensen> sphalerite: me too! and I like the 3d effect of it being in front / behind the flake
<ixxie> MichaelRaskin: I don't mean to say we should lose all the character and completely reinvent the image, I am just saying a little shift
<sphalerite> mokapot. Colour scheme is brown obviously. Packages are written as espressions.
<ixxie> lol
<gchristensen> omg sphalerite what are you doing
<sphalerite> Although... the thing with the whole coffee stuff is… java
<ixxie> sphalerite: so you would port Nix into the JVM?
<sphalerite> yes for all the enterpriseyness
<MichaelRaskin> Rare case where Java mention doesn't make me shudder.
<MichaelRaskin> I mean, Nix has a similarity in goals.
<MichaelRaskin> Java is about making sure a huge pain doesn't become an actual disaster.
<ixxie> wouldn't it be more Scala compatible?
<MichaelRaskin> Yeah, not too expressive.
<dustmote> Why would nix want to look more startuppy?
<dustmote> What's wrong with looking academiccy?
moet has quit [(Client Quit)]
<ixxie> dustmote: I don't mean to make Nix itself look like a startup; I mean make it appeal more to industry
<gchristensen> it doesn't sell itself well
betaboon has joined #nixos
<ixxie> yeah
betaboon_ has quit [(Ping timeout: 260 seconds)]
<ixxie> because something as good as Nix should have much wider recognition
<dustmote> Why is selling oneself something to strive for?
<MichaelRaskin> Erm, are you new in the industry? There is a wide range of parameters where recognition is inversely correlated with quality…
jon_ has joined #nixos
<ixxie> Its true, that happens, but it doesn't have to happen
jon_ has left #nixos ["Leaving"]
<MichaelRaskin> Given that it happens approximately always, apparently yes it has to happen.
<ixxie> MichaelRaskin: why does that happen?
<ixxie> what is the parameter range where it happens?
<dustmote> So the idea is that we should try to make nixos' level of recognition rise to the level of its quality? (For some arguably dubious comparison of "recognition" and "quality"?)
moet has joined #nixos
<ixxie> No, the idea is to get NixOS used in a wider range of circumstances so we can get more diverse input into the project
<gchristensen> 1) I think dustmote is trolling, 2) disregard MichaelRaskin telling you it is impossible :)
<dustmote> No, I'm not trolling
<ixxie> and also more resources - because if some companies donate a juicy grant to the NixOS foundation could allow some people to work fulltime on Nix for a while
<ixxie> I think MichaelRaskin has a point though; many communties get their values corrupted as they grow
<dustmote> I just don't like what dale carnegie has done to culture
<ixxie> they lose focus and shift to other interest
<moet> ^^ this
<moet> i don't want nixos to experience a corruption of its values as it seeks to "sell itself better"
<ixxie> thats the last thing I am advocating
<ixxie> I am here because of the values of this community
<moet> ixxie: i don't think you're advocating it
<gchristensen> I didn't realize "doomed to obscurity forever" is a value of nixos
hiratara has quit [(Ping timeout: 258 seconds)]
<ixxie> ^^ that
<moet> i'm not saying "doomed to obscurity for ever" should be a value
<ixxie> there is something between "being a corporate sellout" and "being an artsy obscure hipster"
<gchristensen> I didn't realize the current website and marketing materials were carefully engineered to keep out undesirables or push away growth
<moet> but "selling yourself for the purpose of growth" has ... coopted ... the value system of my country
<moet> so i'm a little skeptical is all
hiratara has joined #nixos
<MichaelRaskin> Well, if you want to name conflicting values, I would say that current Nix culture is «grok these three simple obvious concepts — simultaneously — then you will get rid of these problems»
<ixxie> I don't follow MichaelRaskin
<gchristensen> moet: I don't know what you mean by selling ourselves
dustmote has quit [(Quit: bye)]
<MichaelRaskin> We still assume people make an initial effort to understand some of the stuff.
<drakonis> moet, i don't get it
<drakonis> massive advances have been made in the computer industry through money
<moet> uhh, i was on my phone (as dustmote) so i don't have the scrollback necessary to quote..
<gchristensen> moet: explaining what pain nix makes go away in an attempt to have more people use it isn't selling ourselves
<gchristensen> MichaelRaskin: oh got it
<MichaelRaskin> Having smoother learning curve will require changing how we do complicated things, too, to avoid weird disconnects.
<sphalerite> moet: also public logs are available, see topic :)
<MichaelRaskin> And that means that hard parts will become somewhat harder for core developers.
<drakonis> MichaelRaskin, no it wouldn't
<ixxie> Let me put it this way - lets say the dark side of marketing is misrepresenting your values, in a way which deceives the end user and corrupts your community by shifting its values; the good side of marketing is accurately communicating your values - all of your values in a balanced way - in a way that maintains and even bolsters your community
<moet> ixxie: i can get behind that
<ixxie> and in terms of this framing, I think the issue gchristensen and I are having is that the values emphasized in the current marketing are more on the theoretical side, and not so much the practical side
<ixxie> practical doesn't have to mean just business
<ixxie> it can be also for normal home users or whatever
<MichaelRaskin> As for me, I do have a feeling that sometimes a search for a compromise decision in Nix community ends up with an outcome that makes little sense (at least when considered on its own, and not in the context of history).
lordpipe has joined #nixos
<ixxie> for example?
<gchristensen> that seems probably true
<MichaelRaskin> Well, nowadays I try not to keep track not to get disappointed too often.
<MichaelRaskin> But look at our parallel builds.
<gchristensen> oh?
<MichaelRaskin> Let us do a quick summary of configuration of enableParallelBuilding. We have a list of known-good, but not really a list of known-bad
<MichaelRaskin> To have parallel builds you need them enabled both per-package and per-build-setup.
<MichaelRaskin> And there is no sensible way to try to build everything not-known-bad with parallel building.
<MichaelRaskin> You know, to find out where there are problems and where everything is fine.
<MichaelRaskin> I guess I can stop at that for a brief introduction.
<gchristensen> right, though something about it being difficult to know if it is truly known-good, and easy to be known-bad
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<Drakonis[m]> to make nix popular, you have to fix the bad
abrar has quit [(Ping timeout: 264 seconds)]
<MichaelRaskin> Yes, so we do not have any incentive to store known-bad (as opposed to not committing switch to known good)
<gchristensen> that hasn't stopped docker from being successful
<moet> docker is a for-profit company.. i'm not sure it's comparable to nix
<MichaelRaskin> Drakonis: known-bad is known-bad for parallel building, they can be just left alone in single-threaded build mode most of the time.
<infinisil> Nixops question: how well does it work to manage my local machine and a server together with one nixops deployment? I sometimes change e.g. a port for a server, which i want to apply to server and my machine at the same time, nixops sounds like it could do that
JosW has quit [(Quit: Konversation terminated!)]
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] layus opened pull request #30207: Warn about default ZNC mutability change (master...patch-2) https://git.io/vdzZL
NixOS_GitHub has left #nixos []
<Drakonis[m]> docker just built a better mouse trap
Sonarpulse has joined #nixos
<Drakonis[m]> it isnt the best container tool now
<gchristensen> infinisil: I ... would not manage my laptop with nixops if i were you :)
<ixxie> Can Nix replace Docker in most usecases?
abrar has joined #nixos
<Drakonis[m]> no
<infinisil> gchristensen: Got any better solution to what i want?
<MichaelRaskin> The only use case for Docker is «I downloaded this stupid docker thing, how do I launch it»
<Drakonis[m]> that would need some repositioning
<MichaelRaskin> Nix doesn't replace that use case.
<Drakonis[m]> those aren't quote symbols
<ixxie> Drakonis[m]: ah yes, because NixOS has containers but Nix doesn't right?
<Drakonis[m]> does nixos have containers?
<Drakonis[m]> a system to handle it or does something else do it
<moet> nix also solves different uses cases which docker doesn't address: nix solves system configuration (where puppet and chef are frequently used), and some deployment issues with nixops (where docker or puppet might be used), as well as some other issues..
<sphalerite> infinisil: I'd just keep the settings that are shared between them in a separate nix expression that's imported both by your laptop config/home-manager config/whatever and by your server system config/nixops deployment stuff
<ixxie> Never really tried them
<moet> * err, terraform not puppet in the deployment statement
<infinisil> sphalerite: That's what im doing now, but then i always need to sync the configs manually and run nixos-rebuild twice
<gchristensen> IMO docker's power comes from the ecosystem of "schedulers" and, other tooling, and now the weakest part of docker is docker itself and the build process
<infinisil> i could write a script for that, but that wouldn't be very nice
<ixxie> gchristensen: you used docker in conjuction with Nix right?
<sphalerite> infinisil: do you change the port that often? :p
<gchristensen> ixxie: I have not
<infinisil> sphalerite: Heh, nope, but there's also other stuff
<Drakonis[m]> nixos doesn't know where it should go
<ixxie> but I guess Nix doesn't have that kind of scheduling then? I mean the focus is clearly different
<infinisil> I'm just thinking of it because I might need to change my servers ip
<infinisil> and i want to change the domain too soon
<infinisil> it would be more of a nice-to-have thing
<Drakonis[m]> the focus remains on being a package manager
<gchristensen> ixxie: the scheduling like "I have nginx:latest, now run like 50 of them" and it "just does it"
<MichaelRaskin> speaking of growing the community: any ideas how to fix the Pull Request backlog handling without burning out everyone? I mean, any active recruiting would make the problem worse. Maybe unless you recruit some company that donates so much computing power to Hydra to build all PRs on top of all master commits quickly…
<sphalerite> infinisil: well for the IP part... That's what DNS is for :p
<infinisil> And with nixops it would be trivial to add a third machine, which i will do in the future
<infinisil> sphalerite: NixOS is my DNS :P
<sphalerite> infinisil: I see the "single source of truth" and the "keep config consistent" problems as orthogonal
<infinisil> the server runs its own dns server
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
mizu_no_oto has joined #nixos
<ixxie> MichaelRaskin: make a buddy system when you can train new contributers from the existing pool of users
<infinisil> sphalerite: Not sure i understand that
<ixxie> MichaelRaskin: I would join, I wanna contribute but I am not quite good enough yet, or at least on the verge of being useful
<MichaelRaskin> I wouldn't say that is The Problem.
<sphalerite> If you're only working with 2 boxes I'd say "just do it manually", or " write an ad-hoc script for it", is the easiest way of keeping them consistent
<ixxie> MichaelRaskin: I guess I misunderstood
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<infinisil> meh..
<MichaelRaskin> We do have quite a few people who already know their corner of interest, but don't have commit rights.
<ixxie> ah right
<infinisil> i what does nixops do when it can't connect to a machine?
<MichaelRaskin> Then we have areas where it is unclear what to do about review because every change is large-impact and we need buy-in from the core-core-core people who don't have time to make any decision.
<sphalerite> infinisil: a solution that works well for a large n is rarely what you want if you have a small n :p
<ixxie> gchristensen: so you mean there is less finegrained control of the scheduling algorithms in Nix compared to Docker?
<gchristensen> ixxie: docker's scheduling being multi-host and distributed and fault tolerant and magical
<Drakonis[m]> hmm, a question, how do you make nix more valuable for enterprises seeing as money coming from them
<Drakonis[m]> nix the entirety of the project
<gchristensen> ixxie: and a "defined" interface where you can plug-and-play different schedulers to scale out and stay resilient
<gchristensen> ixxie: like look at kubernetes and swarm and coreos' thing and ... and ... and ...
<ixxie> gchristensen: I guess maybe Disnix is the closest thing we have to that sort of thing?
<infinisil> sphalerite: as long as there aren't any problems, it would be a small improvement, and it would be really cool tbh, and i get to learn some nixops which might come in handy :D
<gchristensen> ixxie: yeah, but if we focused on making good docker container citizens we'd make a lot of wins
<gchristensen> ixxie: it makes choosing Nix low risk because the only thing changing is the build step, not anything after
isidore has quit [(Quit: WeeChat 1.9.1)]
<ixxie> gchristensen: right, I see what you mean; that makes sense
dustmote has joined #nixos
moet has quit [(Quit: cpupower calibration)]
<ixxie> gchristensen: although wouldn't it be cool to be able to write complex scheduling and deployment schemas in Nix natively (say, 5-10 years down the line, since its tons of work)?
<gchristensen> yeah, and that is a lot of what disnix is
<Drakonis[m]> 5 years is too long
* ixxie has to finally get around to trying Disnix out
<gchristensen> we're not ready to tackle that
<infinisil> is disnix alive?
<gchristensen> that is too big a project
<gchristensen> infinisil: yeah, but very small user base
<Drakonis[m]> too much can change. we might not even be there anymore
<infinisil> As long as the earth keeps spinning I'm pretty sure nix will still exist in 5 years time
<Drakonis[m]> nukes my man
<ixxie> gchristensen: what do we need to do to be ready?
<gchristensen> I don't think we should focus on solving that right now :P
<gchristensen> focusing on what nix is already good at (building stuff) would be good
<Drakonis[m]> solve usability first
<ixxie> yeah makes sense
<gchristensen> ^
<gchristensen> also the good project name is already taken (Hydra)
<Drakonis[m]> borg vOv
<Drakonis[m]> (google uses it)
dustmote has quit [(Quit: bye)]
dustmote has joined #nixos
<dustmote> borg is a really cool scheduler
<dustmote> Is that what you meant when you were talking about disnix and docker "schedulers" ?
<gchristensen> yeah
hiratara has quit [(Quit: ZNC - http://znc.in)]
<dustmote> The ambition is for nix
<dustmote> ..to address that space?
<MichaelRaskin> If you keep the snowflake logo, you can call it Avalanche, I guess.
<gchristensen> MichaelRaskin: no
<dustmote> gchristensen:
<gchristensen> dustmote: I was saying that was the biggest value in docker's ecosystem
<gchristensen> erm, s/ MichaelRaskin / dustmote
<dustmote> Ah..
hiratara has joined #nixos
<Drakonis[m]> kubernetes is the do over
<ixxie> dustmote: it was just my musing that it might one day do so
<ixxie> dustmote: but gchristensen just argued pretty well that it shouldn't really be a goal in the near future
<dustmote> Ah.. given the foundation of nix/nixos i can see how it would be feasible a few years off
<gchristensen> then we can
<gchristensen> if we focus on being good at building stuff existing schedulers can run, we can leap-frog other tools and kick butt at what we're good at and not have to sell a whole k8s replacement at the same time
<infinisil> !m gchristensen
<[0__0]> You're doing good work, gchristensen!
<dustmote> Yeah, makes sense
<ixxie> but I like gchristensen's idea of integrating Nix with an existing container systems
<drakonis> other things you have to solve
<drakonis> make yourself better than ansible
<drakonis> better than the deployment tools
<grahamc> Ouch
<drakonis> and don't tell me that writing the system on a file is enough
<drakonis> it is limited to what's available in the repos
jensens has quit [(Ping timeout: 255 seconds)]
<betaboon> just an update on my cache.nixos.org issues from earlier. they seem to be resolved
<infinisil> drakonis: what do you mean by writing the system on a file is not enough?
<drakonis> i said on the following message
<drakonis> you only have access to what's in the repos
<drakonis> you can't do something off the beaten path
<betaboon> might be related to cloudflare, as they currently list "PHL - Philadelphia, PA, United States -> Re-rerouted"
<infinisil> drakonis: Wait you're talking about nixos? Because if so, you can override pretty much any nixos option
<infinisil> And import any file from outside the nixpkgs repo
<MichaelRaskin> Actually, NixOS is not too spin-offable in that sense.
<drakonis> its not that simple
<drakonis> because its a complex web of hot shit stacked up for almost a decade
<drakonis> for half a decade
jensens has joined #nixos
<infinisil> well that's just what people want, it doesn't make sense to package stuff almost nobody uses, and nobody wouldn't do it in the first place
<drakonis> see, now that's the problem
<drakonis> doing things off the beaten path
<betaboon> i easily maintain custom services and packages in seperate repos. i now do all my regular work with nixos. including my production server deployments. its a breeze
<infinisil> drakonis: That's how everything works though? That's not nixos specific
<dustmote> Every distro is a complex web of stuff, nixos has the advantage of being configured entirely using largely one paradigm
<dustmote> betaboon: send me a link to your blogpost explaining how that works for you :P pls
<MichaelRaskin> Actually, packaging for Nixpkgs is easy enough that in case we fix the workflow suddenly packaging stuff without many users makes sense.
<drakonis> i found his git repo
<drakonis> the magic of using your irc name as your github name
<dustmote> Yey
<infinisil> MichaelRaskin: Another problem with having only very few users is also that it probably doesn't get maintained
<drakonis> erlang spent almost a year unmaintained
<drakonis> which sucks
ixxie has quit [(Quit: Lost terminal)]
kuznero has quit [(Remote host closed the connection)]
<infinisil> there should be some "updating taskforce" of a few people that go through all of nixpkgs to update lesser-used packages
betaboon has quit [(Ping timeout: 260 seconds)]
<drakonis> there's a thing that does package update scouting
<drakonis> uhhh
<drakonis> fedora uses it
betaboon has joined #nixos
<MichaelRaskin> We have multiple such things applied to Nixpkgs…
<betaboon> argh my network interface died
<drakonis> do ya
<drakonis> there's one hooked into nixpkgs
<MichaelRaskin> As I said, code is there, workflow is often suboptimal.
<drakonis> so it is
<betaboon> drakonis: i don't have a blog, but a somewhat old state of my expressions is on github: https://github.com/betaboon/nixcfg
<drakonis> i'm looking at it
<MichaelRaskin> I mean, there is no sustainable way to merge updates when they are brought and proposed as PRs
<drakonis> taskotron or openQA i dunno
<betaboon> when i have my local setups (currently in an iteration of refactorings) cleaned up. i will put it up to github. dunno when i have that done tho
<MichaelRaskin> Sustainable for Nixpkgs in terms of not burning out and not causing drama
simukis has quit [(Ping timeout: 258 seconds)]
<drakonis> i'm looking at them and they can mostly do ansible style deployments, but they're way more complex than necessary
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<betaboon> drakonis: I am at no means an experienced nixos user. i took it up around 10 month ago. and just recently (as i ditched my old job) got more into it
<betaboon> therefore i have to do a round of refactoring after i have achieved a new goal i set for myself
<betaboon> but i do admit, that the user exposed interface packaging and enabling-as-a-service could eventually be reduced to a minimum. when all those pyp2nix, node2nix and the like become more mature and generic.
<drakonis> that's a thing guix managed to improve
<drakonis> the extra tooling to deal with third party got integrated
<drakonis> that's the part that sucks the most, as third party packages go unmaintained for long spans of time
<betaboon> i have no experience with guix. but back when i did my research on guix vs nixos i decided on nixos as it seemed to bring me to production faster due to the bigger userbase (which is an assumption which i don't have any hard data on ;) )
<drakonis> ha
<drakonis> guix is also gnu nix i guess
<drakonis> which comes with all the downsides of a gnu variant (like GNU ALL THE TIME)
<infinisil> what are these downsides?
<betaboon> let's see how it plays out on the nixos guix from. i am fully prepared to migrate to whatever comes along. it has always been like that with OS and it will always be like that
<drakonis> basically, they don't have packages considered insufficiently free
<drakonis> they offer libre linux instead of vanilla
<tilpner> I heard someone say guix can use nixpkgs too
<drakonis> which means extremely limited hardware support unless you write a expression for vanilla
<infinisil> so e.g. no steam, no jdk?
<drakonis> yes
<drakonis> ^
<tilpner> If that is true, they would have all our unfree stuff too
<drakonis> you can use it, but the devs absolutely dislike that notion
<betaboon> I'm not much for dogma. free as in freedom implies the right to disobey. any system that tries to prevent that, is not a place i feel at home.
<drakonis> ^ that's pretty much how i feel
<infinisil> well said
<drakonis> its horribly ironic, all this talk about freedom, but it has to be the way they want
moet has joined #nixos
<drakonis> if you ask on irc, the devs will refuse to help
<infinisil> huhh?
<infinisil> because..?
<betaboon> to each their own. all these things are tools. you don't fight about a hammer do you? no use for flamewars.
<drakonis> because uhhh... freedom?
<drakonis> aye
<drakonis> flame wars aren't helping
<drakonis> now back to the topic about setting things up
justanotheruser has joined #nixos
<drakonis> the other pain point is dealing with software that sets things up on root
<dustmote> :)
<infinisil> ayye to home-manager
<drakonis> boy, these are common.
<drakonis> at least have something like overlayfs for this kind of situation
<drakonis> when you need to rapidly modify something that's in root
<infinisil> wait you mean software that doesn't accept not being groot?
<drakonis> i am root
<drakonis> yes
<drakonis> puns for days
<infinisil> :P
justan0theruser has quit [(Ping timeout: 240 seconds)]
<infinisil> I've never heard of software requiring root
<drakonis> i mean
<drakonis> root as in /
<infinisil> ah
<drakonis> not root user, damn terminology
<betaboon> we should sponsor both home-manager and nixup for eg summer-of-code. speed up evolution of those. to see how it plays out and integrate the best combination of those results
<drakonis> yes
<drakonis> http://0pointer.net/blog/dynamic-users-with-systemd.html also this is important to look at
<drakonis> you have to eventually update systemd again
<infinisil> betaboon: I mean, is there anything going on at the nixup side? I haven't heard of anyone doing anything
<gchristensen> we regularly update systemd
<betaboon> i would love to get rid of systemd-eventually. but currently it is just to tempting to use it
<drakonis> systemd hate is kinda funny
<drakonis> i have been told that this is basically the same thing as solaris SMF
<gchristensen> oh well
<gchristensen> anyone have PRs they'd like merged?
<infinisil> the only thing that annoys me with systemd as of recently is how you can't let it manage X11
<MichaelRaskin> Sorry? Can you allow it _not_ manage X11?
<gchristensen> infinisil: finally someone frustrated by what it can't do :P
<drakonis> hmm
<drakonis> what...
<gchristensen> betaboon: is that to me?
<infinisil> I mean, why do i still need to put xbindkeys& into .xsession to have it run
<infinisil> why can't i do that with a systemd service
<drakonis> wait what
<betaboon> gchristensen: no. it is the nixup PR. just to link to recent events, as asked for by infinisil
<gchristensen> ah
<gchristensen> I thought that was a cheeky reply to " anyone have PRs they'd like merged? "
<infinisil> And i can't run xmonad with systemd
<betaboon> bad timing xD
<drakonis> ^ wot
<drakonis> other things that could be explored on nixos
<drakonis> set up VMs
<infinisil> at least i don't think it's possible. I haven't ever seen window/desktop managers being run by systemd
<moet> does anyone know where powertop stores its calibrations?
<betaboon> drakonis: have you looked at nixops yet ?
<infinisil> betaboon: I know of that PR, but there isn't anything going on there
<drakonis> not exactly
<symphorien> drakonis: there is https://github.com/NixOS/rfcs/pull/12
<drakonis> it doesn't look like a core piece
<drakonis> it doesn't look like the rfc got pulled in yet
<moet> because when I run powertop, it fails to load anything *and fails to save anything*
<betaboon> infinisil: there is chatter during the last 2 month and some talk about financing. don't remember the whole history, and to lazy to read up
thc202 has quit [(Ping timeout: 240 seconds)]
<drakonis> i honestly expected more RFCs since it launched
<symphorien> then put a postitive comment to get it merged
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zraexy opened pull request #30208: massif-visualizer: 0.4.0 -> 0.7.0 (master...massif-visualizer) https://git.io/vdzCu
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdzCz
<NixOS_GitHub> nixpkgs/master bd38765 Carter Charbonneau: ffmpegthumbnailer: build with jpeg support
<NixOS_GitHub> nixpkgs/master da55ff2 Jörg Thalheim: Merge pull request #30199 from fread2281/ffmpeg-jpeg...
NixOS_GitHub has left #nixos []
<symphorien> I know the author -- he just doesn't know what is exepected more to get it merged
<infinisil> if i ever get into C++ I'll make sure to do whatever i can to help #8
<infinisil> this one i mean: https://github.com/NixOS/nix/issues/8
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sigma opened pull request #30209: zile: 2.4.13 -> 2.4.14 (master...pr/zile-2.4.14) https://git.io/vdzCw
NixOS_GitHub has left #nixos []
<betaboon> does anyone know of any work on automatic updating of packages. as in updating the expressions for upstream releases ?
<drakonis> no cgroups support hm
<moet> it looks like powertop is configured to save things to /var/cache (which doesn't exist)
<drakonis> betaboon, that'd be pretty good
<moet> as confirmed by its source code and this issue https://github.com/NixOS/nixpkgs/issues/5424#issuecomment-67788703
eacamero_ has joined #nixos
<drakonis> yes
<drakonis> that's a problem with nix
<moet> is a system-level directory something that i can configure powertop to have in its environment?
<betaboon> i wonder if something like SmPL/coccinelle (works with C only) is applicable to nix. but I'm not into that language-kinda-stuff
<drakonis> nixos actually, since nix doesn't freeze root dir
<ekleog> drakonis: please to put a positive comment on RFC 12 (like “when is this landing” or something similar), I don't really know how to push it forward more :) (I have a working implementation of almost-the-text-of-the-RFC -- actually, of the text of the RFC before it underwent some slight modifications --, so implementation shouldn't be too slow to come :))
<drakonis> haha, i'll look at it
proteusguy has quit [(Ping timeout: 255 seconds)]
<ekleog> <gchristensen> anyone have PRs they'd like merged? <-- Yes :D https://github.com/NixOS/rfcs/pull/12 (I don't really know what's been holding it up, if you do please tell me so I can fix it!)
<gchristensen> lol
<moet> drakonis: i could add an appropriate "substituteInPlace" to https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/powertop/default.nix to fix the problem..
<gchristensen> I can't :)
<drakonis> hmm
<betaboon> someone should setup a tshirt-print store for nix-rfcs "Your RFC wants YOU. RFC#12 4prez"
<moet> but i don't know what directory would be appropriate for powertop's calibration data
<drakonis> that's nice.
<gchristensen> moet: /var/lib/powertop?
eacameron has quit [(Ping timeout: 255 seconds)]
<ekleog> gchristensen: Yeah I guess you can't, but I don't know who really thinks he can, as things like the encryption RFC is just as stuck as the VM one :/
<ekleog> (still, hope was a great thing ^^)
<tokudan[m]> looks like ocamlPackages.csv is broken, the source tarball disappeared :(
<neonfuz> so I got a new wifi usb for my computer
<gchristensen> ekleog: I mean I literally can't, I don't have permissions on that repo
<moet> gchristensen: how do i tell nix to take care of the directory as part of that package? `postInstall="mkdir /var/lib/powertop"` seems like it would leave loose ends around
<ekleog> oh, I thought the nixos team was allowed to merge on this repo ^^ well, thanks anyway :)
jensens has quit [(Ping timeout: 255 seconds)]
<gchristensen> moet: you can't, but you could do it as part of the powertop service: https://github.com/NixOS/nixpkgs/blob/release-17.09/nixos/modules/tasks/powertop.nix
Wizek_ has quit [(Ping timeout: 240 seconds)]
_ris has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
dustmote has quit [(Quit: bye)]
justanotheruser has joined #nixos
dustmote has joined #nixos
<gchristensen> lol
Wizek_ has joined #nixos
dustmote has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdzWn
<NixOS_GitHub> nixpkgs/master 20b48cb Unknown: kmplayer: 0.11.3d -> 0.12.0b
<NixOS_GitHub> nixpkgs/master 7908dcc Jörg Thalheim: Merge pull request #30205 from zraexy/kmplayer...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdzW8
<NixOS_GitHub> nixpkgs/release-17.09 c227c98 Unknown: kmplayer: 0.11.3d -> 0.12.0b...
NixOS_GitHub has left #nixos []
taktoa has quit [(Remote host closed the connection)]
<moet> gchristensen: is there a reference somewhere for the nix-interface-to-systemd? or is it just defined in nixpkgs somewhere?
silver_hook has quit [(Ping timeout: 246 seconds)]
<gchristensen> moet: I usually go to https://nixos.org/nixos/options.html#systemd. and click "Next" twice
<ekleog> it's defined in nixpkgs, services.systemd :)
<ekleog> sorry, services.*
<ekleog> I'll manage it: systemd.services.*
tmaekawa has joined #nixos
<gchristensen> <3 ekleog
<ekleog> :°
<moet> heh, i was thinking it would be a good entry point for learning to contribute
tmaekawa has quit [(Client Quit)]
<infinisil> moet: You mean a module that declares a service or to improve the systemd module?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdzWH
<NixOS_GitHub> nixpkgs/master 10dcf58 Guillaume Maudoux: 18.03 release notes: mention ZNC mutability change
NixOS_GitHub has left #nixos []
<moet> infinisil: just the module declaring powertop
<moet> after i clone and commit changes, i don't even know how to test them locally..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 8 new commits to staging: https://git.io/vdzW5
<NixOS_GitHub> nixpkgs/staging 99af040 Jan Tojnar: docbook_{xml,xsl}*: propagate findXMLCatalogs
<NixOS_GitHub> nixpkgs/staging 407db7b Jan Tojnar: gtk_doc: replace catalog lookup hack...
<NixOS_GitHub> nixpkgs/staging 7c690ae Jan Tojnar: conky: Rely on XML_CATALOG_FILES variable
NixOS_GitHub has left #nixos []
<moet> though i haven't gotten even that far yet :)
endformationage has joined #nixos
<ekleog> testing locally can be done through nixos-rebuild build-vm, it usually works pretty well for non-automated tests :)
<infinisil> moet: nixos-rebuild switch -I nixpkgs=path/to/local/nixpkgs
<infinisil> or via a vm yeah, but i mostly just test it with my system
<moet> i have 1gb of ram XO
<moet> no vm for me
<ekleog> true, for such a low-breakage-probability change testing with the system works
<infinisil> 1billion bytes of RAM? That ought to be enough for everyone!
<moet> yeah, but not enough for firefox and a simululation of, you know, another machine
markus1199 has joined #nixos
<ekleog> hmm, the vm doesn't have to include all of x11 for testing, so could very well be really low-ram :) then, for something like what you're trying, switching to your local nixpkgs is enough :)
markus1189 has quit [(Ping timeout: 248 seconds)]
<infinisil> ah, but development is usually done on master
<infinisil> oh but that shouldn't matter since you're just adding a service
<moet> so https://nixos.org/nixos/options.html#systemd.services.<name>. are all of the options
<moet> i shouldn't develop on release-17.09?
<moet> it should be master?
<infinisil> Yeah, PR's get merged in master
<ekleog> well, not really master, on a branch forked from a not-too-old unstable
<ekleog> otherwise you get to rebuild the world
<infinisil> yeah
<ekleog> I personally develop from the unstable I'm running :)
gandreani has joined #nixos
<moet> ah, that sounds like an important detail
<moet> and given the name, it sounds like i'd be better off testing in a low-memory vm
<infinisil> moet: you mean "unstable"?
<disasm> moet: usually shortly after a release, there isn't a whole lot of changes and you can get away with PR'ing to master from branching off of the latest release, but the further you get from the release, the higher the chance of merge conflicts to master.