<iqubic> Thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] acowley opened pull request #1586: install-darwin-multi-user: relax assumption check (master...patch-2) https://git.io/vdC2F
NixOS_GitHub has left #nixos []
fragamus has joined #nixos
acarrico has quit [(Ping timeout: 240 seconds)]
justanotheruser has joined #nixos
justanotheruser has quit [(Ping timeout: 260 seconds)]
nh2 has quit [(Quit: Leaving.)]
gm152 has joined #nixos
jsgrant has quit [(Read error: Connection reset by peer)]
dieggsy has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #30043: vala: add 0.38.0 (master...vala-0.38) https://git.io/vdCVC
NixOS_GitHub has left #nixos []
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
justanotheruser has joined #nixos
taaperotassu has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 5 new commits to master: https://git.io/vdCwk
<NixOS_GitHub> nixpkgs/master ae4c8e0 Joachim Fasting: tor-browser-bundle: bump https-everywhere to 2017.9.12
<NixOS_GitHub> nixpkgs/master ba689a2 Joachim Fasting: tor-browser-bundle: support transports obfs2,obfs3
<NixOS_GitHub> nixpkgs/master f4f594e Joachim Fasting: tor-browser-bundle: geoip support
NixOS_GitHub has left #nixos []
MP2E has joined #nixos
<iqubic> Command-Not-Found is behaving strangely.
<iqubic> DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13.
<iqubic> cannot open database `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at /run/current-system/sw/bin/command-not-found line 13.
<iqubic> What the heck???
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdCwW
<NixOS_GitHub> nixpkgs/master c93c775 Yegor Timoshenko: darcnes: use web.archive.org links, clean up
<NixOS_GitHub> nixpkgs/master 0a3dae8 Joachim F: Merge pull request #29854 from yegortimoshenko/darcnes/cleanup...
NixOS_GitHub has left #nixos []
<iqubic> I think I need to enable programs.command-not-found, but I'm really not sure.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #29452: nixos/pfix-srsd: add module (master...pfix-srsd-1709) https://git.io/v55wV
NixOS_GitHub has left #nixos []
<iqubic> Is that the right course of action to take here?
acarrico has joined #nixos
<pingveno> iqubic: Worked for me on 17.09
<iqubic> What did?
mudri has quit [(Ping timeout: 248 seconds)]
Arcaelyx has joined #nixos
fragamus has joined #nixos
Arcaelyx_ has quit [(Ping timeout: 260 seconds)]
<iqubic> Also, when I install the ripgrep package, I don't get access to the ripgrep command.
callmecabman has quit [(Ping timeout: 255 seconds)]
<iqubic> Also, I'm getting this error when doing a "nixos-rebuild test": error: The option `programs.command-not-found' defined in `/etc/nixos/configuration.nix' does not exist.
<iqubic> All I did was add this to my configuration.nix: programs.command-not-found.enable = true;
<iqubic> This is why I need to update to the latest channel (17.09)
mbrgm has quit [(Ping timeout: 240 seconds)]
jophish has quit [(Ping timeout: 260 seconds)]
jophish has joined #nixos
mbrgm has joined #nixos
acarrico has quit [(Ping timeout: 260 seconds)]
jellowj has quit [(Ping timeout: 240 seconds)]
thc202 has quit [(Ping timeout: 240 seconds)]
jellowj has joined #nixos
<iqubic> Anyone know how to fix my issues?
Supersonic112 has quit [(Disconnected by services)]
Arcaelyx has quit [(Read error: Connection reset by peer)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
Arcaelyx has joined #nixos
dbmikus has joined #nixos
taaperotassu has joined #nixos
<tilpner> iqubic - If you installed ripgrep via systemPackages, what does "which rg" output?
<tilpner> And we told you how to upgrade the channel. Was the a problem with that?
<tilpner> *was there
<iqubic> I haven't tried upgrading my channel yet.
<iqubic> Also, tilpner, I thought the command was "ripgrep", and not "rg".
<iqubic> That works alright.
<iqubic> tilpner: Do you know why I'm getting an option doesn't exist error?
<tilpner> It's plausible that the option didn't exist in 17.03
justanotheruser has quit [(Ping timeout: 258 seconds)]
<iqubic> Well, I'm going to update my channel.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] benley opened pull request #30044: kubecfg: init at 0.5.0 (master...benley/kubecfg) https://git.io/vdCoX
NixOS_GitHub has left #nixos []
pie_ has quit [(Ping timeout: 240 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d0f0657ca0 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
jcarr has quit [(Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)]
jcarr has joined #nixos
Wizek has quit [(Quit: Connection closed for inactivity)]
justanotheruser has joined #nixos
lambdamu_ has joined #nixos
<iqubic> Switching to channel 17.09 was a piece of cake
<iqubic> Just have to fetch all the latest binaries now.
<iqubic> Is there a way to make my laptop track pad move my mouse faster?
lambdamu has quit [(Ping timeout: 258 seconds)]
iqubic has quit [(Ping timeout: 260 seconds)]
takle_ has quit [(Remote host closed the connection)]
mbrgm has quit [(Ping timeout: 248 seconds)]
jcarr has quit [(Ping timeout: 248 seconds)]
iqubic has joined #nixos
<iqubic> Well, the emacs server isn't being run at all. Using this emacs config: http://dpaste.com/2WEECW9
<iqubic> Is there something else I'm missing?
<tilpner> How do you tell it's not running?
<iqubic> emacsclient -c returns: Can't find socket.
<iqubic> I literally can't connect to the server.
<disasm> if you're using libinput, there's accelProfile and accelSpeed
mbrgm has joined #nixos
<iqubic> disasm: I'm using services.xserver.synaptics.<thingHere>
test348784 has joined #nixos
jellowj has quit [(Ping timeout: 240 seconds)]
<tilpner> iqubic - systemctl --user status emacs.service -ln50
<iqubic> tilpner: Here's the output: Failed to connect to bus: No such file or directory
<tilpner> Uhh... any errors during nixos-rebuild?
<iqubic> None at all.
<iqubic> I can paste my configuration.nix if you want it.
<iqubic> This is it: http://termbin.com/urcw
<iqubic> From doing some research, I think that this issue is cause by dbus not being installed and running.
<iqubic> Actually dbus is running, but I don't think it's running.
Arcaelyx has quit [(Ping timeout: 260 seconds)]
jcarr has joined #nixos
Arcaelyx has joined #nixos
<tilpner> iqubic - Just a suspicion, maybe a reboot would help
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30045: go-ethereum: Fix libusb segmentation faults on Darwin (master...geth-osx-libusb) https://git.io/vdCin
NixOS_GitHub has left #nixos []
<tilpner> (If you didn't reboot after the channel upgrade and missed an error)
<adisbladis> mbrock: I had another look at the geth segfault on darwin :) https://github.com/NixOS/nixpkgs/pull/30045
<iqubic> Do I have to reboot after a channel update? Is that usually a good idea?
<tilpner> I always do
<iqubic> I'll try that.
<iqubic> BRB
garbas has quit [(Quit: WeeChat 1.9.1)]
iyzsong has joined #nixos
<AllanDaemon[m]> Noob here. After spending more than 2 weeks reading nix/nixos/nixpsg documentation, I couldn't figure out a few basic stuff.
<AllanDaemon[m]> If there is a package but it uses an outdated version for instance, and I just need the same package with a different version. Or the package was installed without an optional part and I want to install with it enabled. How do I install it without creating a new package.nix file.
<AllanDaemon[m]> I suppose something like adding the package name in `/etc/nixos/configuration.nix` with some set like `{featureX=true}` or `{version='the.version')`.
iqubic_ has joined #nixos
iqubic has quit [(Ping timeout: 260 seconds)]
<iqubic_> Well, a reboot made emacsclient -c work the way it should.
hamishmack has joined #nixos
iqubic_ is now known as iqubic
athan has quit [(Remote host closed the connection)]
<iqubic> Next task... add the unstable overlay to my system.
<tilpner> AllanDaemon[m] - nixpkgs tries hard not to keep multiple versions of the same thing. Sometimes it's unavoidable, but for most packages nixpkgs will only contain one version
<tilpner> AllanDaemon[m] - To get a different version of the package, you would pick the package from the version of nixpkgs that has what you want
<tilpner> AllanDaemon[m] - What package do you want to use with different features? It's easier to explain with a concrete example
<AllanDaemon[m]> The gnome installed by default lacks some features that are default in Arch package for example, like the blue light filter.
<AllanDaemon[m]> I also had problem with outdated package of TOR, and official linux binaries didn't worked on nix.
dontloseyourhead has joined #nixos
<tilpner> Hmm, gnome isn't just one package, and tor doesn't have the feature arguments you mentioned earlier
<tilpner> For a newer tor package, pick one from 17.09 or unstable, but for gnome I would suggest upgrading your complete system
<tilpner> (If the filter was absent because Gnome was too old)
<dontloseyourhead> I recently restarted X. I've lost multihead support in xmonad. I understand from google that this is because the haskell packages X11 and X11-extras are not installed. However, installing these tries to build from source and fails with "Setup: Encountered missing dependencies: X11 >=1.2.1 && <1.5". Nix has installed X version: X.Org X Server 1.19.3
<dontloseyourhead> . What can I do?
<AllanDaemon[m]> yeah. that's bring another question. I didn't understand pretty well how the Stable + unstable together thing works.
<AllanDaemon[m]> Or If changing completely to unstable is an option
<AllanDaemon[m]> (I'm used to use debian unstable (sid), and then arch)
yegortimoshenko has joined #nixos
yegortimoshenko has quit [(Changing host)]
yegortimoshenko has joined #nixos
yegortimoshenko has quit [(Changing host)]
yegortimoshenko has joined #nixos
<yegortimoshenko> how does that work? there is no config.pulseaudio. debugging why xfce4-volumed on my machine doesn't work with pulseaudio
<tilpner> AllanDaemon[m] - Many people run their whole system on unstable, and it's working fine. In my experience, it's less breakage than Arch, but that might've just been careful updating (because we can rollback, Arch doesn't really)
<tilpner> AllanDaemon[m] - I run my base system on 17.09, with most of my tools and other applications taken from unstable
<benley> I've taken to running nixos unstable on my laptop and it has been going pretty well.
<iqubic> yegortimoshenko: Try hardware.pulseaudio.enable = true
<yegortimoshenko> iqubic: doesn't work
<iqubic> tilpner: How do I remove old generations from my bootloader list?
<benley> I ran 16.09 stable for a while and accumulated a ton of cherry-picks and patches, then 17.03 for a month or two and similarly accumulated custom patches, then I just went for unstable and haven't looked back
<tilpner> yegortimoshenko - I think that's referring to nixpkgs config, not NixOS config
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #30040: dnsmasq: 2.77->2.78 (master...dnsmasq-2.78) https://git.io/vdC4w
NixOS_GitHub has left #nixos []
<yegortimoshenko> tilpner: i'd never guess that, it worked! thank you a lot!
<tilpner> iqubic - I think nixos-rebuild is supposed to remove them, but only if the corresponding generations are collected
<iqubic> How the hell does one remove old generations from their bootloader?
<yegortimoshenko> iqubic: sudo nix-collect-garbage -d
<iqubic> How do I collect the old generations?
<AllanDaemon[m]> whats the difference of adding to channel`nixpkgs https://nixos.org/channels/nixpkgs-unstable` beyond `nixos https://nixos.org/channels/nixos-unstable`?
<tilpner> iqubic - Look at nix-collect-garbage, but make sure to run it as root, or it won't collect system generations
<iqubic> I am looking at that now.
<tilpner> iqubic - "-d" will collect all old generations, but you can also collect generations older than n days
cpennington has quit [(Remote host closed the connection)]
<iqubic> How does nix decide on the date of generation?
<tilpner> AllanDaemon[m] - You should never run a NixOS system from nixpkgs-unstable
<tilpner> AllanDaemon[m] - nixpkgs-unstable can advance even if NixOS-specific tests fail, so it's always fresher but may be completely broken if you try to run NixOS form it
<tilpner> *from it
dontloseyourhead has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
test348784 has quit [(Ping timeout: 260 seconds)]
yegortimoshenko has quit [(Quit: Page closed)]
dbmikus has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] copumpkin opened pull request #1587: Fix tests (master...fix-tests) https://git.io/vdCXy
NixOS_GitHub has left #nixos []
jcarr has quit [(Ping timeout: 248 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
<sirkha> (what are those called, as well?)
gm152 has quit [(Quit: Lost terminal)]
jsgrant has joined #nixos
<iqubic> So I've been getting this message from a number of different programs: ** (-emacs-wrapped:8546): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/cb3d443787 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<iqubic> Not with the emacs part. Just the including and after WARNING
<iqubic> Should I be worried?
<sirkha> iqubic, I am also getting those, saw something in here recently mentioning it isn't important
<iqubic> I see.
Khetzal has quit [(Remote host closed the connection)]
Khetzal has joined #nixos
sivteck has joined #nixos
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack_ has joined #nixos
<clever> iqubic: if generation 1 has date X, and generation 2 has date Y, nix-collect-garbage will use Y as the date #1 was last-used
<clever> iqubic: because #1 ceased being used when #2 was created
<iqubic> I see
<clever> [root@amd-nixos:~]# nix-env --list-generations -p /nix/var/nix/profiles/system 330 2017-09-27 11:53:06 331 2017-09-29 19:23:08
<iqubic> I see.
<iqubic> Question, why does root source different shell initialization code than my machine's sole user.
<clever> what differences have you noticed?
<iqubic> The prompt is different.
<clever> thats normal for a lot of systems
<clever> just so you know when your on root
<iqubic> I'm using fish and the prompt changes as soon as enter root.
<MichaelRaskin> ls
<iqubic> clever: I get that.
<clever> is root also fish, or bash?
<clever> (run ps)
<iqubic> root is also fish
<clever> dont know then
<iqubic> When running fish as my single user I have a powerline prompt.
<iqubic> Switching to root removes the powerline prompt
<iqubic> This happened with zsh too.
<clever> it might be something you installed into $HOME
<iqubic> Like what?
<clever> ~/.fishrc
<iqubic> Yeah, I believe that is sourcing the init files in $HOME.
<iqubic> I'm sure if I moved those files to /etc, or where ever, I could have the same prompt as root too.
hamishmack_ has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]> has the graphical ISO a graphical installer ?
<clever> fearlessKim[m]: no, it only has the CLI nixos-install
<fearlessKim[m]> clever: ok i stick with the minimal version then ty
<clever> fearlessKim[m]: the only benefit to the graphical cd is a graphical web-browser for the docs, and a graphical way to configure the wifi
<clever> and easyer copy/paste
fragamus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] copumpkin opened pull request #1588: More elegant test output (master...elegant-tests) https://git.io/vdCDs
NixOS_GitHub has left #nixos []
<fearlessKim[m]> clever: and also to prepare the partitions
<fearlessKim[m]> always a pain IMO
<sirkha> i for one like gdisk/fdisk
<clever> yeah, i either use gparted (graphical) or fdisk
<fearlessKim[m]> there is this "EFI system partition" I wonder if I should nuke it ?
<sirkha> do you have a uefi bios?
<fearlessKim[m]> (looking where to create my /boot partion)
<sirkha> or uefi system
<fearlessKim[m]> yes
<sirkha> or is it an older computer
<fearlessKim[m]> brand new
<sirkha> take a look at the uefi section of the installation instructions
<fearlessKim[m]> with windows preinstalled, I made a recovery usb key to be able to reinstall it afterwards
<sirkha> if you nuke it, you will end up making a new one. The way I am setting mine up, though, is with a separate uefi system partion for windows and nixos
<fearlessKim[m]> sirkha can the "EFI partition" act as the /boot partition ?
<sirkha> i think so
<sirkha> though nixos uses the systemd boot loader
<fearlessKim[m]> seems to work
<fearlessKim[m]> 17.09 installed :D
<fearlessKim[m]> thanks sirkha
joelpet has quit [(Ping timeout: 240 seconds)]
<sirkha> cool
moet has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cyraxjoe opened pull request #30046: Version upgrade of enpass, from 5.4 to 5.6. (master...enpass-version-update) https://git.io/vdCDb
NixOS_GitHub has left #nixos []
<fearlessKim[m]> now trying to restore windows 10 but the recovery process "will restore its default partitions" for godsake :/
numerobis has joined #nixos
<iqubic> Why do environment variables change when I run commands as root?
<iqubic> Even running "sudo su" the environment variable change.
<sirkha> sudo puts you in a different environment
<fearlessKim[m]> iqubic sudo -E to keep your env
<iqubic> Is there any way to do this without the -E flag?
<sirkha> export the environment, and reimport it in the new one?
<sirkha> what is your reason for not being able to use -E?
<fearlessKim[m]> iqubic maybe that can be added in the sudoers file not sure though
JosW has joined #nixos
<iqubic> fearlessKim[m]: You don't want to edit the sudoers file in NixOS
<fearlessKim[m]> alias it ?
moet has quit [(Ping timeout: 255 seconds)]
<iqubic> When running "nixos-rebuild" I get this: "install-info: warning: no info dir entry in `/nix/store/f5b9yxlpk84z8rvyvqmmns9jby9qmfra-system-path/share/info/time.info'" is that an error?
<iqubic> Should I be concerned
<clever> id ignore it
<iqubic> What package provides the "infocmp" command?
<clever> ncurses.dev 63,752 x /nix/store/d329049jlh4z31rr0i9cw0qnad2w4qbs-ncurses-6.0-dev/bin/infocmp
<clever> [clever@amd-nixos:~/apps/cc]$ nix-locate bin/infocmp
rauno has joined #nixos
<iqubic> and regular ncurses doesn't contain that command?
<clever> correct
mk-fg has quit [(Ping timeout: 255 seconds)]
jsgrant_ has quit [(Remote host closed the connection)]
proteusguy has quit [(Remote host closed the connection)]
<sirkha> nix-env -iA nixos.qt4 --arg gtkstyle true does not appear to make qpdfviewer use my gtk theme
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
<sirkha> would that install a plugin somewhere?
<clever> sirkha: that wont call .override
<clever> and also, installing an overriden qt4 may not make programs use it
<sirkha> is there a way to do it imperitavely?
<clever> because of how nix works
<clever> nix-env -i -E 'with import <nixpkgs>{}; qt4.override { gtkstyle = true; }'
<sirkha> i only have qt on my user profile
Arcaelyx_ has joined #nixos
<sirkha> clever, error: anonymous function at /nix/store/8srqr8pl3chldk4g31rww7ki2hwm4lkn-nixos-17.03.1840.88604ee33a/nixos/pkgs/development/libraries/qt-4.x/4.8/default.nix:1:1 called with unexpected argument ‘gtkstyle’, at /nix/store/8srqr8pl3chldk4g31rww7ki2hwm4lkn-nixos-17.03.1840.88604ee33a/nixos/lib/customisation.nix:56:12
<clever> 10 , gtkStyle ? true, gtk2
<clever> because its called gtkStyle, not gtkstyle
<sirkha> ah
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<sirkha> i looked at that 4 times and didn't notice, thanks
mkoenig has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
<sirkha> error: attempt to call something which is not a function but a set, at undefined position
<sirkha> is there documentation for the -E option? (didn't see it in the nix-env man)
<clever> sirkha: all it does is eval a chunk of nix expression, which must return a derivation
<clever> sirkha: what command did you run
numerobis has quit [(Ping timeout: 248 seconds)]
<sirkha> nix-env -iA -E 'with import <nixpkgs>{}; qt4.override { gtkStyle = true; }'
<clever> ah, nix-env is probably expecting a set/function
<clever> wait no
<clever> take -A out
<sirkha> sorry, same error
<clever> your trying to index the "-E" attribute of the string
<sirkha> (i tried it without the A first)
<clever> ah
sivteck has quit [(Quit: user missing.)]
<clever> sirkha: at this point, its simpler to just make a packageOverride in ~/.config/nixpkgs/config.nix
<clever> and just do qt4 = pkgs.qt4.override { gtkStyle = true; };
<sirkha> nix-repl> :t with import <nixpkgs>{}; qt4.override { gtkStyle = true; }
<sirkha> a set
<clever> nix-env expects certain things about the value it loads
proteusguy has joined #nixos
jushur has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<sirkha> first time i have forced nixos to configure something
<sirkha> compile*
isHavvy has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
Havvy has quit [(Ping timeout: 264 seconds)]
sivteck has joined #nixos
somlor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #30045: go-ethereum: Fix libusb segmentation faults on Darwin (master...geth-osx-libusb) https://git.io/vdCin
NixOS_GitHub has left #nixos []
<hyper_ch> clever: still alive?
<clever> hyper_ch: yes
somlor has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<hyper_ch> clever: so, assuming I have a nice zfs setup and I replace my ssd in my notebook with a bigger one... basically do first a dd backup of /dev/sda to another drive.... switch ssds.... restore the dd backup back to the new bigger drive... how would I expand zfs to use all the disk now?
<hyper_ch> but I guess you'd rather boot up a live system, create the pool on new drive and then use zfs send / receive?
<clever> hyper_ch: resize the partition to be bigger, and then mess with the expand setting in zpool (check its man page)
<clever> hyper_ch: again, you can also test this with the truncate command
<clever> [root@amd-nixos:~]# truncate image-1.img -s 512m
<clever> this creates a 512mb file
<hyper_ch> well, I just thought with using dd you wouldn't need to worry about partition uuids and stuff dd if=/dev/sda of=/dev/sdb
<clever> [root@amd-nixos:~]# zpool create pool1 /root/image-1.img
<clever> this creates a pool out of that image
leat has quit [(Quit: WeeChat 1.9)]
jeaye has quit [(Quit: WeeChat 1.7.1)]
<hyper_ch> with zfs send / receive you'll just need to adjust the hardware-configuration nix for /boot I assume
<clever> yeah, dd is the simplest, as long as the old drive is never present when the new is booting
<clever> zfs wont know which one to use
somlor has joined #nixos
infinisil has joined #nixos
<clever> neither will a lot of other tools
<clever> [root@amd-nixos:~]# zpool list
<clever> NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
<clever> pool1 496M 105K 496M - 0% 0% 1.00x ONLINE -
<clever> [root@amd-nixos:~]# zpool export pool1
somlor has quit [(Client Quit)]
<clever> (the zfs name for umount)
<hyper_ch> cool :)
<clever> [root@amd-nixos:~]# truncate image-1.img -s 1g
<clever> double the size of the disk image
ebzzry has quit [(Ping timeout: 258 seconds)]
<clever> [root@amd-nixos:~]# zpool import pool1 -d /root/
<clever> re-import the pool (the zfs name for mount)
<clever> i had to give -d, because the "device node" isnt in /dev/
<clever> NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
<clever> pool1 496M 126K 496M 512M 0% 0% 1.00x ONLINE -
<clever> it now has an expand size of 512mb
proteusguy has quit [(Read error: Connection reset by peer)]
<clever> cp: error writing './jdk-8u131-linux-x64.tar.gz': No space left on device
<clever> and it did not auto-resize with defaults
<clever> [root@amd-nixos:/pool1]# zpool get autoexpand
<clever> NAME PROPERTY VALUE SOURCE
<clever> pool1 autoexpand off default
<clever> hyper_ch: aha, because autoexpand was off
<clever> zpool online [-e] pool device...
<clever> -e Expand the device to use all available space. If the device is part of a mirror or raidz then all devices must be expanded before the new space will become available to the pool.
<clever> [root@amd-nixos:/pool1]# zpool online -e pool1 /root/image-1.img
<clever> hyper_ch: and there it is, thats the command to make zfs fully utilize the size of the partition/device its already on
<clever> after that, df -h reported it as being bigger
<hyper_ch> cool :)
proteusguy has joined #nixos
<clever> [root@amd-nixos:~]# zpool export pool1
<clever> [root@amd-nixos:~]# rm image-1.img
<hyper_ch> so basically yu can just dd it and then expand... nice
<clever> and its all gone
<infinisil> can't stop clever when you ask him about zfs :P
<clever> hyper_ch: using the above, you can then experiment, and make a 10 drive array of 512mb images, and play around to see what it does
proteusguy has quit [(Excess Flood)]
proteusguy has joined #nixos
jeaye has joined #nixos
<infinisil> I personally use znapzend (https://github.com/oetiker/znapzend/) for that
<infinisil> can recommend
proteusguy has quit [(Excess Flood)]
<hyper_ch> but that's perl and everybody hates perl
<hyper_ch> the zincrsend is good bash :)
Arcaelyx_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil> -.-
<hyper_ch> good bash vs. evil perl ;)
* hyper_ch is totally unbiased
<infinisil> Malbolge is more beautiful than bash
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #30049: Backport gogs fixes to NixOS 17.09 (release-17.09...backport-gogs-fixes) https://git.io/vdCHA
NixOS_GitHub has left #nixos []
<hyper_ch> well, I'm still positive about zfs
<hyper_ch> pondering to use it on my notebook for the time being
<hyper_ch> also wondering how much lz4 compression could save disk space
<hyper_ch> only 60gig free and I updated the ssd in may from 512 to 1 tb
<hyper_ch> back in may I also had like 60gig free
<hyper_ch> no matter how much diskspace I get, I'll run out of it again :(
<clever> zfs-test1 compression lz4 local
<clever> zfs-test2 compressratio 4.49x -
<clever> zfs-test2 compression gzip-9 local
<clever> zfs-test1 compressratio 2.86x -
<iqubic> Does NixOS support TERM being set to `xterm-termite`?
<clever> zfs-test1 106G 23G 84G 21% /zfs-test1
<clever> zfs-test2 97G 14G 83G 15% /zfs-test2
<hyper_ch> clever: a lot of data is binary here
<hyper_ch> so I assume lz4 won't do too much
<clever> hyper_ch: the above is for a crap-ton of compiled haskell packages
<infinisil> I have a 1.4x compressratio here
<hyper_ch> still, 1.4x on 1 TB is a lot of new free space to fill up again ;)
<infinisil> indeed
<iqubic> Do you use auto login?
<hyper_ch> doesn't everyone?
<iqubic> infinisil: Do you use autologin?
<clever> i dont
<clever> i restart so little that its not a bother
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<hyper_ch> I restart twice every workday usually
koserge has joined #nixos
<iqubic> clever: I am in the same boat
<infinisil> ever since i messed up my xmonad that forkes processes into oblivion i stopped using autologin, because you can't stop it once you're logged in
<iqubic> infinisil: Can I see your xmonad config, I might be able to help.
<infinisil> i fixed it already
<iqubic> Also, have you tried asking in #xmonad
<infinisil> you were even here when i said i fixed it
<clever> heh
<clever> but out of fear of future forkbombs, you keep autologin off
<infinisil> yup
<iqubic> Oh, right. I do recall that. Something about your xmobar config being wrong.
<iqubic> infinisil: what Display Manager do you use?
<infinisil> sddm, but i don't care really, i just use whatever
deepfire has joined #nixos
<iqubic> Neither do I. What options for display manager are you given when you click on the drop down menu?
<iqubic> I have three: "none + xmonad", "xterm + none" and "xterm + xmonad"
<infinisil> i never clicked there
<infinisil> and that's the session selection
<iqubic> selecting "none + xmonad" drops me into this weird state where I have a white rectangle that covers the top left quarter of my scree, with the rest being black.
<iqubic> In that state I can't use my cursor, and the xmonad key bindings don
<iqubic> t work
<infinisil> are you using home-manager for your xsession?
<iqubic> No.
<iqubic> I have not started using home-manager yet.
<infinisil> what's your xserver config
<iqubic> It's that.
sivteck has quit [(Quit: user missing.)]
<iqubic> I also have pkgs.xterm listed in my systemPackages.
sivteck has joined #nixos
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #30050: pykms: init at 20170719 and corresponding NixOS module (master...p/pykms) https://git.io/vdCQz
NixOS_GitHub has left #nixos []
<infinisil> do you have something in ~/.xsession and/or ~/.xmonad/xmonad-x86_64-linux ?
<iqubic> No.
leat has joined #nixos
<iqubic> See because I selected "xterm + xmonad" I have this one special xterm that is tied to my session. If I close that xterm, then my session terminates.
<iqubic> Which is odd.
<infinisil> i think you can just remove the desktopManager.xterm.enable = true
<infinisil> well it's enabled by default i just noticed
<infinisil> not sure what could be the problem
mudri has joined #nixos
zzamboni has joined #nixos
Itkovian has joined #nixos
zzamboni1 has joined #nixos
iqubic has quit [(Ping timeout: 260 seconds)]
sivteck has quit [(Quit: user missing.)]
zzamboni2 has joined #nixos
sivteck has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
zzamboni2 has quit [(Remote host closed the connection)]
zzamboni1 has quit [(Ping timeout: 264 seconds)]
<sphalerite> iqubic_: with something like xmonad the easier option is probably to write a .xsession script to start it
<sphalerite> If you do that, the session selection won't affect your session startup at all anymore
sivteck has quit [(Ping timeout: 255 seconds)]
sivteck has joined #nixos
zzamboni has quit [(Ping timeout: 264 seconds)]
hamishmack has quit [(Read error: Connection reset by peer)]
<sphalerite> So I'd like to have libpng as a macOS Framework. Is there a convenient way of doing that with nix?
proteusguy has joined #nixos
zzamboni has joined #nixos
silver_hook has joined #nixos
proteusguy has quit [(Excess Flood)]
zzamboni1 has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
proteusguy has joined #nixos
koserge has quit [(Ping timeout: 240 seconds)]
deepfire has quit [(Ping timeout: 260 seconds)]
zzamboni has joined #nixos
zzamboni1 has quit [(Remote host closed the connection)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
proteusguy has quit [(Read error: Connection reset by peer)]
<sphalerite> (a framework that's usable independent of nix, that is)
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
Wizek__ has joined #nixos
Wizek has joined #nixos
deepfire has joined #nixos
koserge has joined #nixos
infinisil has quit [(Ping timeout: 246 seconds)]
zzamboni has quit [(Quit: Leaving.)]
iqubic has joined #nixos
katyucha has joined #nixos
sivteck has quit [(Quit: user missing.)]
<iqubic> Well, I solved my session issue when I added xterm to systemPackages. I just never checked to see if that would work after I did that.
numerobis has joined #nixos
proteusguy has joined #nixos
MP2E has quit [(Quit: sleep)]
taaperotassu has quit [(Ping timeout: 240 seconds)]
proteusguy has quit [(Excess Flood)]
zzamboni has joined #nixos
infinisil has joined #nixos
katyucha has quit [(Ping timeout: 246 seconds)]
<sphalerite> weird solution
apeyroux has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<iqubic> infinisil: I had fixed my xsession errors just by adding xterm to my systemPackages
<iqubic> I then never tested to see if that fixed my issue, and went on to complain that I hadn't solved my issue.
zzamboni has quit [(Ping timeout: 240 seconds)]
freusque has joined #nixos
katyucha has joined #nixos
zzamboni has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
pie_ has quit [(Ping timeout: 260 seconds)]
zzamboni has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
apeyroux has joined #nixos
<sphalerite> meh. Does macOS not even have basic window tiling functionality?
zzamboni has quit [(Ping timeout: 248 seconds)]
<hyper_ch> Mic92: howdy :)
numerobis has quit [(Ping timeout: 246 seconds)]
<Mic92> hyper_ch: hi
zzamboni has joined #nixos
<hyper_ch> Mic92: you made a PR for ZFS unstable with encryption and also added wiki entry regarding it... it says it should be included in 18.03 - does that mean nixos unstable will already have it?
<Mic92> hyper_ch: it is available in unstable
<hyper_ch> why didn't you tell me so sooner :)
<hyper_ch> but you can't encrypt a pool itself, only datasets?
<Mic92> hyper_ch: it should be possible to set this property on the root dataset so all childs inherit it
<hyper_ch> yeah, that's what I read
zzamboni has quit [(Ping timeout: 248 seconds)]
<hyper_ch> what encryption ciphers can be used? in the wiki you use aes-256-gcm
<Mic92> I can't say from my head. look in the man page
<hyper_ch> man pages are scary
<Mic92> they put a lot of effort to make zfs man page easy to understand. I saw this in the pullrequest for encryption
zzamboni has joined #nixos
mattcode has joined #nixos
<hyper_ch> :) no worries
<Mic92> config.boot.zfs.enableUnstable = true;
<Mic92> as it is only available in zfs master
<hyper_ch> if you want to encrypt everything, you'd crate an encrypted data set and make then children there
<hyper_ch> so in nixos unstable channel it's not there yet and I need to add that line :)
deepfire has quit [(Ping timeout: 240 seconds)]
<Mic92> in configuration.nix
koserge has quit [(Ping timeout: 248 seconds)]
<hyper_ch> # Add more filesystems
<hyper_ch> boot.supportedFilesystems = [ "zfs" ];
<hyper_ch> boot.zfs.enableUnstable = true;
<hyper_ch> that seems to work... rebuild hasn't complained and pulls stuff
<hyper_ch> I might just give that a try on my external usb
<hyper_ch> need ot check what encryption is available
infinisil has quit [(Ping timeout: 246 seconds)]
Itkovian has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<hyper_ch> ok, there's aes-256-gcm and aes-256-ccm .... now iI need to figure out what the differens ice ;)
<hyper_ch> difference is
infinisil has joined #nixos
<Mic92> it is how the key is stretched across different blocks
zzamboni has joined #nixos
nschoe has joined #nixos
<hyper_ch> pool names cannot contain underscores :(
taaperotassu has joined #nixos
<Mic92> I wonder why they have added CCM at all.
<hyper_ch> Mic92: what's wrong here:
<hyper_ch> zpool create -o ashift=12 -O compression=lz4 CRASHTESTDUMMY /dev/sdc
<hyper_ch> cannot create 'CRASHTESTDUMMY': invalid argument for this pool operation
<Mic92> hyper_ch: did you reboot?
<hyper_ch> no
<Mic92> then you still have the old zfs kernel module
<hyper_ch> but that's not anything with encryption yet
<hyper_ch> it should create a pool
<hyper_ch> doesn't it like that the disk is alrady partitioned?
<Mic92> zpool create -o ashift=12 -o compression=lz4 CRASHTESTDUMMY /dev/sdc
aloiscochard has joined #nixos
<Mic92> no this is incorrect
<hyper_ch> -o --> not a valid pool property
<hyper_ch> anyway, I reboot now
<infinisil> -o for pool properties, -O for top-level dataset
fendor has joined #nixos
<infinisil> properties
<Mic92> I rarely create new datasets, but import them from the old pool
<Mic92> ashift=12 should be not necessary in general if your disk block size is detected correctly
<infinisil> i read that's often not the case though
<infinisil> I'd like to check the disk block size myself, but don't know how to do that
<Mic92> cat /sys/class/block/sda/size
mattcode has quit [(Remote host closed the connection)]
<infinisil> :O
<Mic92> no this is the number of blocks
mattcode has joined #nixos
<hyper_ch> rebooting worked
<infinisil> hmm
mattcode has quit [(Remote host closed the connection)]
mattcode has joined #nixos
<Mic92> here we go: sudo blockdev --getbsz /dev/sda
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<infinisil> Ohh nice!
<infinisil> 4096 for me, seems like it should be detected automatically by zfs
<hyper_ch> Mic92: sweet :) my ssd has 4096
<hyper_ch> sdc also
<Mic92> Most devices have these days.
zzamboni has quit [(Quit: Leaving.)]
anderslundstedt has quit [(Quit: leaving)]
eacameron has joined #nixos
zzamboni has joined #nixos
thc202 has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
sivteck has joined #nixos
<ocharles> Was there any discussion to have GHC 8.2.1 be the main compiler in NixOS 17.09?
takle has quit [(Remote host closed the connection)]
deepfire has joined #nixos
koserge has joined #nixos
infinisil has quit [(Quit: WeeChat 1.9)]
orbekk1 has quit [(Remote host closed the connection)]
orbekk1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] lheckemann closed pull request #1579: nix-channel: remind user to update after adding (1.11-maintenance...channel-update-remind) https://git.io/vdk3y
NixOS_GitHub has left #nixos []
jacob has joined #nixos
sivteck has quit [(Quit: user missing.)]
goibhniu has joined #nixos
jacob is now known as Guest32605
sivteck has joined #nixos
Phillemann has joined #nixos
<Phillemann> I'm on nixos-unstable, and spotify fails (404). nixpkgs/master seems to have the latest version that should work. Can I use unstable, but choose this one package from whatever master is? :)
mudri has quit [(Ping timeout: 248 seconds)]
<Phillemann> How is "nixos-unstable" defined in terms of the nixpkgs repository, anyway?
fre has joined #nixos
freusque has quit [(Ping timeout: 240 seconds)]
<makefu> Phillemann: nixos-unstable is the revision on github which succeeded a number of pre-defined tests
<ocharles> Phillemann: sure, just add the unstable channel with the "unstable" name, and then `nix-env -iA unstable.spotify`
<ocharles> `nix-channel --add http://url-for-unstable-channel unstable`
<makefu> what a lot of people are doing is to clone nixpkgs into a folder, do a git reset onto the nixos-unstable revision and cherry-pick the commits from master
<Phillemann> Ah, so the fix will be in unstable as soon as some other package doesn't fail anymore. ;)
<ocharles> Yes, but spotify won't make it into the binary cache because it's proprietary, afaik
goibhniu has quit [(Ping timeout: 248 seconds)]
<ocharles> but the updating nix expression will be in the channel
ThatDocsLady has joined #nixos
<Phillemann> Okay, I see.
sivteck has quit [(Quit: user missing.)]
<Phillemann> So a solution would be to add...the latest master as a special channel and then install from that.
<Phillemann> ocharles: The command line you gave me isn't sufficient because I'm already on unstable. I'd need a channel for "even more unstable" :D
garbas has joined #nixos
sigmundv__ has joined #nixos
<makefu> makefu: as i said, you can clone nixpkgs, reset onto unstable, cherry-pick the commits from master and do a NIX_PATH=nixpkgs=/path/to/clone nix-build -A spotify
<Phillemann> That's a lot of overhead though. I'd like a solution in which I don't have to cherry-pick, clone, pull and so on. If possible
sivteck has joined #nixos
<makefu> the problem with the master branch is, that there is no binary cache to back you up
sivteck has quit [(Client Quit)]
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vdChK
<NixOS_GitHub> nix/master 3139cad Dan Peebles: Fix tests...
<NixOS_GitHub> nix/master fce24b7 Eelco Dolstra: Merge pull request #1587 from copumpkin/fix-tests...
NixOS_GitHub has left #nixos []
sivteck has joined #nixos
<ocharles> Phillemann: ok. You don't need to clone nixpkgs as makefu suggests, you can just use NIXPKGS=http://path-to-master-archive.tar.gz
<makefu> problem with this is that your computer will probably start building the world and its dependencies
ShalokShalom has quit [(Ping timeout: 246 seconds)]
iyzsong has joined #nixos
sivteck has quit [(Quit: user missing.)]
<Phillemann> I see.
<TimePath> If I use the nixos/nix docker image as a build environment for CI, can I cache /nix/store, or do I need a bit more?
<Phillemann> TimePath: Just curious, what docker image do you use? I was thinking of using docker/nix for CI as well.
<TimePath> there's one literally called 'nixos/nix' :)
sivteck has joined #nixos
Tucky has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vdCjd
<NixOS_GitHub> nix/master 60ecbd7 Dan Peebles: More elegant test output...
<NixOS_GitHub> nix/master c6676ea Eelco Dolstra: Merge branch 'elegant-tests' of https://github.com/copumpkin/nix
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1588: More elegant test output (master...elegant-tests) https://git.io/vdCDs
NixOS_GitHub has left #nixos []
jensens has joined #nixos
oida_ has joined #nixos
__Sander__ has joined #nixos
oida has quit [(Ping timeout: 260 seconds)]
puckipedia has quit [(Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] steveeJ opened pull request #30052: wtftfw: 20161001 -> 20170921 (master...wtftw) https://git.io/vdWeU
NixOS_GitHub has left #nixos []
puckipedia has joined #nixos
civodul has joined #nixos
anderslundstedt has joined #nixos
nh2 has joined #nixos
sivteck has quit [(Quit: user missing.)]
proteusguy has joined #nixos
sivteck has joined #nixos
vandenoever has quit [(Ping timeout: 240 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<sphalerite> TimePath: cache it in what sense?
<TimePath> sphalerite: have the CI env copy it off somewhere on-site to avoid the slower network
<TimePath> eg: travis CI, gitlab, and bitbucket all offer to cache a directory of your choice
<TimePath> usually intended for node_modules and the like
mortum5 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30014: nixos/krb5: complete rewrite (master...krb5-fixes) https://git.io/vdni4
NixOS_GitHub has left #nixos []
sivteck has quit [(Quit: user missing.)]
m0rphism has quit [(Quit: WeeChat 1.9)]
simukis has joined #nixos
sivteck has joined #nixos
simukis has quit [(Read error: Connection reset by peer)]
<Mic92> TimePath: it might be possible to store the nix store in a volume
<Mic92> this should be even save with multiple containers, since nix uses file locks
simukis has joined #nixos
<TimePath> volume isn't really an option here, since it's cloud (aka someone else's computer)
jellowj has joined #nixos
<Mic92> TimePath: well if you cannot persist data, then you have no choice in any option
pie_ has joined #nixos
<LnL> also that doesn't really work since you'd loose the store that's inside the container
<TimePath> I can persist the data, but I don't know how it is persisted
<TimePath> and whether that will retain any special metadata nix may or may not need from /nix/store
<LnL> your best bet is probably to setup a local binary cache
<TimePath> at the moment I run all the builds off my own workstation
<TimePath> naturally they are cached
Phillemann has left #nixos ["WeeChat 1.9.1"]
<Mic92> you can export your builds from your containers nix store
zzamboni has quit [(Quit: Leaving.)]
<Mic92> nix-store --export
zzamboni has joined #nixos
sivteck has quit [(Quit: user missing.)]
zzamboni has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #30054: exa: 0.7.0 -> 0.8.0, rustRegistry: 2017-09-10 -> 2017-10-03 (master...exa) https://git.io/vdWtT
NixOS_GitHub has left #nixos []
<lejonet> For sources fetched form git, what sha256 has is it that src expect? Is it of the repo?
<lejonet> from*
sivteck has joined #nixos
<TimePath> Mic92: thanks, I'll give that a try
<pstn> Just to be clear the radicale update path for 17.03 -> 17.09 is:
<pstn> 1. Upgrade nixos
<pstn> 2. Do radicale export
<pstn> 3. Change radicale version
<pstn> 4. Import again
<pstn> (?)
python476 has joined #nixos
<Mic92> *for reference radicale -> http://radicale.org/
zzamboni has quit [(Ping timeout: 258 seconds)]
silver_hook has quit [(Quit: Konversation terminated!)]
silver_hook has joined #nixos
<pstn> radicale.org says you need to run radicale-1.x.x with --export-storage but that option isn't included in radicale from nixos-17.03. This is why I'm asking.
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #29865: nixos/traefik create service (master...traefik-module) https://git.io/vdmRG
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 reopened pull request #29865: nixos/traefik create service (master...traefik-module) https://git.io/vdmRG
NixOS_GitHub has left #nixos []
proteusguy has quit [(Remote host closed the connection)]
zzamboni has quit [(Ping timeout: 258 seconds)]
zzamboni has joined #nixos
MoreTea has joined #nixos
iyzsong has quit [(Ping timeout: 248 seconds)]
jellowj has quit [(Ping timeout: 246 seconds)]
tmaekawa has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
iyzsong has joined #nixos
sivteck has quit [(Quit: user missing.)]
sivteck has joined #nixos
Guest171 has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
sigmundv__ has quit [(Ping timeout: 258 seconds)]
<hyper_ch> hmmm, 290 GB transferred, compression ratio 1.04
eacameron has joined #nixos
oida has joined #nixos
sigmundv_ has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vdWmz
<NixOS_GitHub> nixpkgs/master 88f197f Robert Helgesson: josm: 12712 -> 12914
NixOS_GitHub has left #nixos []
ivanovs-4 has joined #nixos
jensens has quit [(Ping timeout: 248 seconds)]
oida_ has quit [(Ping timeout: 258 seconds)]
eacameron has quit [(Ping timeout: 248 seconds)]
<jushur> any irc channels besides the ones listed on the homepage for nixos?
<pstn> There is #nixos-dev for development.
<fearlessKim[m]> I am trying to install nixos on a laptop 13inches but hidpi screen but the resolution is so high that the text appears too small for me to read. Any tip to make the text bigger ?
Guest171 has quit [(Ping timeout: 240 seconds)]
<jushur> fearlessKim[m]: setfont ter-132n (if you have terminus fonts)
<jushur> assuming terminal
<fearlessKim[m]> jushur: I am on the minimal nixos iso, kernel vty i think so might be more a kernel switch I think
<fearlessKim[m]> I tried your command but to no avail
<jushur> fearlessKim[m]: you need to use a font that is available on the iso.
Guest171 has joined #nixos
<jushur> fearlessKim[m]: try setfont -N 32
<fearlessKim[m]> in fact I can manage the small screen (I installed nixos on a workstation previously so I know the commands by heart xD)
<fearlessKim[m]> (btw the XPS 13inches looks damn good, just got it)
<jushur> fearlessKim[m]: just ssh in to it from a usable computer :)
iqubic has quit [(Ping timeout: 260 seconds)]
<ivanovs-4> Is there any way with nixops to declare two boxes such that one depends on the other ?
silver_hook has quit [(Quit: Konversation terminated!)]
zraexy has quit [(Ping timeout: 248 seconds)]
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
mmts has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
Guest171 has quit [(Ping timeout: 248 seconds)]
<mmts> Hi, I'm new to NixOS, I've got a XEN dom0 host running under NixOS 17.09. I can start a virtual Debian 9 guest on it. I've seen there is a "virtualisation/xen-domU.nix", but don't know how to use it to install a NixOS virtual guest with it? Any hints ?
<gchristensen> ivanovs-4: https://nixos.org/nixops/manual/#ex-logical-multi.nix check out { config, pkgs, nodes, ... }:, `nodes` will contain your other systems
<fearlessKim[m]> jushur it's one of those tiny laptops which don't have ethernet, I am currently trying to configure wpa_supplicqnt (never used, mostly used network mqnqger)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30055: Terraform 0 10 7 (master...terraform-0_10_7) https://git.io/vdWOx
NixOS_GitHub has left #nixos []
<gchristensen> fearlessKim[m]: wpa_supplicant -D nl80211,ext -i wlp2s0 -c <(wpa_passphrase YourWififNetwork "YourWifiPassword")
<gchristensen> replace `wlp2s0` with your wifi card
<tommyangelo[m]> Is there some documentation on migrating the ipfs repo format in nixos?
<fearlessKim[m]> gchristensen: that's a lifesaver, once I got this installed, I 'll send a PR to add that to the manual if you don't mind
<gchristensen> fearlessKim[m]: don't mind? I'll merge it myself!
<gchristensen> that'd be wonderful!
* etu haven't used wpa_supplicant manually ever since networkmanager implemented nmtui
<gchristensen> same,, but our installer comes with wpa instead of nm
<fearlessKim[m]> I felt stupid with this laptop whose output I can't read then realized I would have no network xD that's why I asked for a heavier laptops with ethernet + usb ports but hey we don't always get what we want. Plus it's a superb machine so I should not complain (I 've never seen such a fancy bios, looked like surface)
zraexy has joined #nixos
<tommyangelo[m]> I'm running "ipfs daemon --update" but getting "Error: no fs-repo-migration binary found for version 6: failed to check migrations version: fork/exec /tmp/go-ipfs-migrate183727228/fs-repo-migrations: no such file or directory"
dieggsy has joined #nixos
<fearlessKim[m]> wpa_supplicant adds a p2p-dev- prefix in front of my interface
peacememories has joined #nixos
<fearlessKim[m]> which makes the connection fail
<fearlessKim[m]> or maybe it's just a warning, it says "wrong key"
<hyper_ch> clever: seems zfs compression doesn't really help a lot
<hyper_ch> for my data
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<fearlessKim[m]> key was good but I had a background wpa_supplicant that fucked up the whole thing. It's good now \o/
peacememories has joined #nixos
<tommyangelo[m]> ok figured out that the ipfs upgrade command is downloading a 32-bit version of the upgrade tool, which doesn't work
<srhb> Speaking of nm, what's the package for the system tray applet again?
<tommyangelo[m]> is there any way to solve this with nix?
<etu> srhb: networkmanagerapplet I think
<srhb> etu: Perfect, thanks :)
sivteck has quit [(Quit: user missing.)]
<fearlessKim[m]> nixos correctly installed and reboot but now I have no wpa_supplicant available or networkmqnqger available ?!!
<ivanovs-4> gchristensen: `nodes` is quite what i need. So how to make the one node wait the other to boot. Precisely, there are two systemd services on the different nodes
sivteck has joined #nixos
<gchristensen> oh nixops can't help with that, you'll have to implement that yourself somehow
<ivanovs-4> ok, thank you
<srhb> fearlessKim[m]: Which networking option did you enable?
sivteck has quit [(Client Quit)]
<srhb> Does anyone know how to "expand" the gummiboot "text window" at startup? The NixOS boot entries recently got a lot more detailed (at least on unstable) but they're cut off for me, because the "window" is only in the very center of the screen.
<srhb> Er, systemd-boot, I guess it's called nowadays.
<fearlessKim[m]> srhb: none, I let the default generated configuration.nix
<srhb> fearlessKim[m]: You'll want to enable one of them to get wifi.
<fearlessKim[m]> which comments networking.wireless :/
<fearlessKim[m]> I found a usb2ethernet adapterr I am saved
Jackneill has quit [(Read error: Connection reset by peer)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Jackneill has joined #nixos
<srhb> fearlessKim[m]: Otherwise it's easy to rerun the installer, skipping everything but mounting and reconfiguring :)
<fearlessKim[m]> srhb: I would have done it but still a pain since it also required rerunning the wpa_supplicant
iyzsong has quit [(Ping timeout: 248 seconds)]
<srhb> Ah, yeah.
<srhb> Praise be upon the usb2ethernet :)
callmecabman has joined #nixos
ShalokShalom has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
<fearlessKim[m]> + the 3 computers I use have different keyboards (French macbook which is not a real French keyboard/ japanese 64keys/ qwerty), 2 of which I discover today so indeed praise the usb2ethernet
sivteck has joined #nixos
<srhb> Challenging :P
<fearlessKim[m]> yep that was a hell of a day notwithstanding colleagues mocking nixos (well I might have started that saying arch was for noobs)
<etu> fearlessKim[m]: You have colleagues that actually run linux? :D
<etu> (I wish I had that)
pie_ has quit [(Ping timeout: 248 seconds)]
callmecabman has quit [(Quit: leaving)]
<toogley> hm. after the upgrade to nixos 17.09 (with changing the channel and nixos-rebuild switch --upgrade), i still have my old binaries around, although 17.09 has newer versions. what can i do to fix that?
<hyper_ch> tried to reboot?
<fearlessKim[m]> toogley: nix-garbage-collect ?
<hyper_ch> and after that you could remove old generations etc.... if you want them gone
zzamboni has quit [(Quit: Leaving.)]
pstn_matrix_kill has joined #nixos
<toogley> aah no. although i have specified the 17.09 channel and such via configuration.nix, it still downloads from https://d3g5gsiof5omrk.cloudfront.net/nixos/17.03/nixos-17.03.1904.09b9f7e7c4/nixexprs.tar.xz
<pstn_matrix_kill> Has the postgres data dir been moved for nixos 17.09?
<gchristensen> toogley: you can't set the channel in the configuration.nix. what did you change whichy ou thought was the channel?
<srhb> pstn_matrix_kill: Yes, if you change stateVersion
<toogley> https://nixos.org/nixos/manual/index.html#idm140737316793648 aah, that was the autoUpgrade channel
<pstn_matrix_kill> Didn't change stateVersion. Had it moved. Please check.
<toogley> i just forgot that
<srhb> pstn_matrix_kill: Please check what?
<pstn_matrix_kill> If that is really the behaviour. My data dir moved despite me having the systmState at 17.03.
<srhb> Alright, I'll have a gander.
<gchristensen> pstn_matrix_kill: where was it, and where is it now?
<srhb> pstn_matrix_kill: services.postgresql.dataDir = mkDefault (if versionAtLeast config.system.stateVersion "17.09" then "/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}" else "/var/db/postgresql");
zzamboni has joined #nixos
<pstn_matrix_kill> That is really strange.
<pstn_matrix_kill> Wait a second: Does the system state get propagated to containers?
<srhb> No.
<LnL> pstn_matrix_kill: nix-instantiate --eval -E 'with import <nixos/nixos> {}; config.system.stateVersion'
<LnL> what does that show?
zzamboni has quit [(Remote host closed the connection)]
<pstn_matrix_kill> Then that is my issue.
zzamboni has joined #nixos
<srhb> At least, I don't see why it would (but I've never actually checked)
<gchristensen> pstn_matrix_kill: can you open a bug report with a description of what happened?
<gchristensen> and details about using containers etc
<pstn_matrix_kill> Will do as soon as I confirmed that this is indeed the problem.
<gchristensen> thank you
iyzsong has joined #nixos
<mbrock> adisbladis: re: geth, that's great, thanks!
sivteck has quit [(Quit: user missing.)]
sivteck has joined #nixos
rauno has quit [(Ping timeout: 240 seconds)]
<ij> Do containers run some init script to create things like /run and /tmp?
pstn_matrix_kill has quit [(Quit: Page closed)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/88f197fb97 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
numerobis has joined #nixos
mortum5 has quit [(Ping timeout: 246 seconds)]
<ij> Yeah, I found it in nixpkgs.
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
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #30054: exa: 0.7.0 -> 0.8.0, rustRegistry: 2017-09-10 -> 2017-10-03 (master...exa) https://git.io/vdWtT
NixOS_GitHub has left #nixos []
bkchr has joined #nixos
ShalokShalom has quit [(Ping timeout: 248 seconds)]
ShalokShalom_ has joined #nixos
erictapen has quit [(Ping timeout: 264 seconds)]
acowley_away has quit [(Ping timeout: 255 seconds)]
acowley_away has joined #nixos
griff_ has joined #nixos
jensens has joined #nixos
acarrico has joined #nixos
BFrank has quit [(Remote host closed the connection)]
fragamus has joined #nixos
fritz09 has joined #nixos
mmts has left #nixos []
eacameron has joined #nixos
athan has joined #nixos
sivteck has quit [(Quit: user missing.)]
eacameron has quit [(Ping timeout: 255 seconds)]
ShalokShalom_ is now known as ShalokShalom
sivteck has joined #nixos
sivteck has quit [(Client Quit)]
bkchr has quit [(Ping timeout: 260 seconds)]
phreedom has joined #nixos
Guest171 has joined #nixos
samae has quit [(Quit: #okthxbye)]
samae_ has joined #nixos
samae_ has quit [(Remote host closed the connection)]
takle has quit [(Remote host closed the connection)]
samae has joined #nixos
Guest171 has quit [(Ping timeout: 248 seconds)]
Guest171 has joined #nixos
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
samae has quit [(Remote host closed the connection)]
samae has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
zzamboni1 has joined #nixos
hc has quit [(Ping timeout: 264 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #30057: webos: init novacom, novacomd, cmake-modules; add nixos service (master...feature/webos-novacomd) https://git.io/vdWuX
NixOS_GitHub has left #nixos []
zzamboni1 has quit [(Ping timeout: 240 seconds)]
infinisil has joined #nixos
sivteck has joined #nixos
fendor has quit [(Ping timeout: 240 seconds)]
infinisil has quit [(Ping timeout: 258 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/d0f0657ca0 (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
hc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jyp opened pull request #30058: pythonPackages.tensorflow: repair cuda-dependent variant (master...tensorflow-cudasplit-workaround) https://git.io/vdWga
NixOS_GitHub has left #nixos []
Leo` has quit [(Quit: WeeChat 1.7.1)]
proteusguy has joined #nixos
infinisil has joined #nixos
argo has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
fendor has joined #nixos
hc has quit [(Read error: Connection reset by peer)]
Leo` has joined #nixos
<Leo`> The postfix module adds systemPackages = [ pkgs.postfix ]; but as far as I understand it the postfix module does not compiles with LDAP by default. How can I make the module add the package with like postfix { withLDAP = true; } or something?
<Leo`> The option exists in the package, it's just disabled by default: https://github.com/NixOS/nixpkgs/blob/release-17.09/pkgs/servers/mail/postfix/default.nix#L6.
<infinisil> Leo`: systemPackages = [ (pkgs.postfix.override { withLDAP = true; }) ]
<Leo`> Will that override the package specified by the postfix module?
taaperotassu has quit [(Ping timeout: 248 seconds)]
hc has joined #nixos
dbmikus has joined #nixos
<Leo`> Ha, now my Postfix package is too old to have this option...
<Leo`> Great.
sivteck has quit [(Quit: user missing.)]
sivteck has joined #nixos
fendor has quit [(Remote host closed the connection)]
cement has joined #nixos
ericsagnes has quit [(Ping timeout: 258 seconds)]
sivteck has quit [(Quit: user missing.)]
ericsagnes has joined #nixos
fragamus has joined #nixos
erasmas has joined #nixos
takle has joined #nixos
fre has quit [(Quit: WeeChat 1.7.1)]
sivteck has joined #nixos
Arcaelyx has joined #nixos
freusque has joined #nixos
jensens has quit [(Ping timeout: 248 seconds)]
<tilpner> Leo` - That should not change the packages used by the postfix module
<infinisil> Leo`: You can just get it from unstable
<infinisil> Oh or what tilpner said, i know nothing about postscript
<tilpner> Leo` - If you want to do that, use packgeOverride or overlays
<tilpner> infinisil - I know very little too, but enough to say that Postfix and Postscript are different things :P
<infinisil> ohh whoops, postfix* :P
infinisil has quit [(Quit: Be back later)]
iyzsong has quit [(Ping timeout: 248 seconds)]
Arcaelyx has quit [(Ping timeout: 248 seconds)]
<gchristensen> ok to add to the yaks of the morning, I need to resurrect ruby 1.8.7 :P
dbmikus has quit [(Quit: WeeChat 1.9.1)]
dbmikus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #30039: mariadb: 10.1.26 -> 10.1.28 (master...mariadb-10.1.28) https://git.io/vdC8k
NixOS_GitHub has left #nixos []
jsgrant has quit [(Quit: jsgrant)]
jsgrant has joined #nixos
<lejonet> What is the proper way of configuring pam stuff? security.pam.<option> seems to be the wrong way according to nixops, says it cannot find like security.pam.logFailures or security.pam.enableAppArmor, is it system something or?
<lejonet> I can very clearly find those options in my nixpkgs/nixos/modules/security/pam.nix file
<clever> hyper_ch: also be aware, compression doesnt take effect on the data when enabled, it takes effect at write time
Arcaelyx has joined #nixos
jsgrant has quit [(Client Quit)]
jsgrant has joined #nixos
Itkovian has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdW6x
<NixOS_GitHub> nixpkgs/master 89e451f Tim Steinbach: gradle: 4.2 -> 4.2.1
NixOS_GitHub has left #nixos []
taaperotassu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vdWig
<NixOS_GitHub> nixpkgs/master 9b3aa19 Eelco Dolstra: Add NixOS 17.09 AMIs...
NixOS_GitHub has left #nixos []
<Leo`> tilpner: Ha, yes, I *do* want to change the package used by the module.
<tilpner> "Leo` - If you want to do that, use packgeOverrides or overlays"
Arcaelyx has quit [(Read error: Connection reset by peer)]
<Leo`> What's packageOverrides?
<Leo`> Can't find it in the list of options.
sivteck has quit [(Quit: user missing.)]
pie_ has joined #nixos
Arcaelyx_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to release-17.09: https://git.io/vdWPO
<NixOS_GitHub> nixpkgs/release-17.09 2980db5 Eelco Dolstra: Add NixOS 17.09 AMIs...
NixOS_GitHub has left #nixos []
pie_ has quit [(Remote host closed the connection)]
orivej has quit [(Ping timeout: 240 seconds)]
pie_ has joined #nixos
* tilpner forgot which manpage documents nixpkgs :/
zzamboni1 has joined #nixos
SuprDewd has quit [(Read error: Connection reset by peer)]
orivej has joined #nixos
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
Arcaelyx has joined #nixos
markus1199 has quit [(Ping timeout: 258 seconds)]
zzamboni1 has quit [(Client Quit)]
zzamboni has joined #nixos
markus1189 has joined #nixos
SuprDewd has joined #nixos
<schoppenhauer> hi. I've installed (emacsWithPackages [emacsPackages.proofgeneral emacsPackages.tuaregMode]), but I cannot load tuareg mode. it seems like it is not linked into the emacs-with-packages-directory
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 7 new commits to master: https://git.io/vdWPb
<NixOS_GitHub> nixpkgs/master ccdccf1 mingchuan: opencc: build shared library and programs
<NixOS_GitHub> nixpkgs/master 2ab2b88 mingchuan: marisa: init at 0.2.4
<NixOS_GitHub> nixpkgs/master 7a23eff mingchuan: librime: init at 1.2.9
NixOS_GitHub has left #nixos []
jcarr has joined #nixos
<schoppenhauer> somehow, emacsWithPackages does not seem to really work …
zzamboni has quit [(Ping timeout: 240 seconds)]
<schoppenhauer> does anyone have a clue on how to get tuareg to work?
markus1189 has quit [(Ping timeout: 255 seconds)]
pie_ has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
<schoppenhauer> at least I never get anything to work with it, at least inside nix-shells
afics has quit [(Quit: afics)]
MoreTea has quit [(Ping timeout: 240 seconds)]
markus1189 has joined #nixos
afics has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30061: go-ethereum: Fix libusb segmentation faults on Darwin (release-17.09...geth-osx-libusb-backport) https://git.io/vdWXK
NixOS_GitHub has left #nixos []
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
zzamboni has quit [(Ping timeout: 248 seconds)]
leat has quit [(Quit: WeeChat 1.9)]
jcarr has quit [(Ping timeout: 255 seconds)]
zzamboni has joined #nixos
Cale has joined #nixos
hotfuzz has quit [(Quit: WeeChat 1.9)]
<Cale> Is there a good way to check the status of all the configured binary caches? (i.e. whether each one is up and whether we have the correct public key for it)
orivej has quit [(Ping timeout: 264 seconds)]
<clever> Cale: the only way to check the key is to download something from it, and you need to know the hash of something it has to do so
<Cale> clever: hmm, all right
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
peacememories has joined #nixos
AluisioASG has quit [(Read error: Connection reset by peer)]
AluisioASG has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
fragamus has joined #nixos
Itkovian has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
zzamboni1 has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
Sonarpulse has quit [(Ping timeout: 240 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
leat has joined #nixos
<copumpkin> whoa, Cale in #nixos
zzamboni1 has quit [(Ping timeout: 248 seconds)]
digitus has joined #nixos
hotfuzz has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
orivej has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
simendsjo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] disassembler opened pull request #30062: goklp: init at 1.6 (master...goklp) https://git.io/vdWH8
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to release-17.09: https://git.io/vdWH0
<NixOS_GitHub> nixpkgs/release-17.09 5cb864a adisbladis: go-ethereum: Fix libusb segmentation faults on Darwin
<NixOS_GitHub> nixpkgs/release-17.09 aabda49 Orivej Desh: Merge pull request #30061 from adisbladis/geth-osx-libusb-backport...
NixOS_GitHub has left #nixos []
<cocreature> Hey, https://github.com/NixOS/nixpkgs/issues/25045#issuecomment-298437677 suggests that I should be able to use "extend" to override the version of containers in my Haskell package set. However that still seems to leave me with an infinite recursion http://nixpaste.lbr.uno/G_MlQHa1?nix. what’s the proper way to do this?
Sonarpulse has joined #nixos
<cocreature> I’m also not sure how to interpret the error message. I don’t see any reecursion in the trace
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
Itkovian has joined #nixos
<frankqux> is there any way when searching with nix-env to show any additional info, like a description, for each package?
eacamero_ has joined #nixos
<niksnut> --description
jtojnar has joined #nixos
eacameron has quit [(Ping timeout: 264 seconds)]
<frankqux> derp. thanks
eacamero_ has quit [(Ping timeout: 248 seconds)]
jtojnar has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #28007: cloud-utils: fix build recipe (master...fix-cloud-utils) https://git.io/v7Kv3
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2980db5b7d (from 78 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
Itkovian_ has joined #nixos
jtojnar has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
Itkovian has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 13 new commits to release-17.09: https://git.io/vdW5r
<NixOS_GitHub> nixpkgs/release-17.09 5c93b1b Dan Peebles: terraform: noop 0.10 plugins mechanism when unused...
<NixOS_GitHub> nixpkgs/release-17.09 33a6d82 Dan Peebles: terraform: build all known 0.10 plugins in Hydra...
<NixOS_GitHub> nixpkgs/release-17.09 bf3d5b3 Dan Peebles: terraform: add template plugin for 0.10...
NixOS_GitHub has left #nixos []
<copumpkin> fpletz: ooh
fritz09 has quit [(Quit: fritz09)]
jcarr has joined #nixos
<fpletz> copumpkin: what's up? ;) had to fix some weird merge conflicts because not all terraform commits were picked
<copumpkin> oh, why not all of them?
dieggsy has quit [(Ping timeout: 246 seconds)]
<copumpkin> nothing much up, just saw the notice above about you cherry-picking some of my commits
sigmundv_ has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
jcarr has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Ping timeout: 248 seconds)]
MinceR has quit [(Ping timeout: 252 seconds)]
dieggsy has joined #nixos
MinceR has joined #nixos
aloiscochard has quit [(Quit: Connection closed for inactivity)]
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
dieggsy has joined #nixos
<tokudan[m]> hmm... is there any reason firefox-bin was updated to 56 but firefox is still at 55.0.3?
<tokudan[m]> (in 17.09)
Wizek__ has quit [(Ping timeout: 248 seconds)]
<gleber_> Ankhers: haha, I also started looking into the same problem :)
<gchristensen> tokudan[m]: profably not :/
<gchristensen> probably not :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin opened pull request #30063: fetchpatch: allow callers to specify postFetch sensibly (master...fetchpatch-fix) https://git.io/vdWAT
NixOS_GitHub has left #nixos []
bennofs has joined #nixos
<tokudan[m]> ok, I'll try and see if it builds
roni has joined #nixos
<roni> is it ~/.nixpkgs/config.nix, or ~/.config/nixpkgs/config.nix?
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<bennofs> roni: the later
<bennofs> roni: it used to be that only the former was supported
<bennofs> roni: now, both variants are supported but i think the XDG compliant one is preferred for new installations?
<roni> bennofs: thanks, that's kind of what i thought
<roni> i put an option to enable flash for chromium in that latter file and it didn't seem to work
<roni> but i have the former file as well
<roni> i wonder if it's masking or something
<bennofs> well i am not sure of the precendence in that case
<bennofs> one will override the other, but i am not sure which one takes priority :D
<bennofs> you should only have one
<roni> there was nothing of import in the former, so i blew it away
Wizek__ has joined #nixos
<roni> trying again now...
<bennofs> ok, the list seems to be:
<bennofs> configFile = getEnv "NIXPKGS_CONFIG";
<bennofs> configFile2 = homeDir + "/.config/nixpkgs/config.nix";
<bennofs> configFile3 = homeDir + "/.nixpkgs/config.nix"; # obsolete
<bennofs> with configFile taking priority over configFile2 taking priority over configFile3
<roni> ah that is nice and sane
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gleber opened pull request #30064: elixir: Fix locale problem on NixOS (master...patch-2) https://git.io/vdWpf
NixOS_GitHub has left #nixos []
<roni> bennofs: if i change an option in that file, how do i get a new package that reflects the change?
<tokudan[m]> does anybody have an idea how to solve this issue with the firefox build?
<tokudan[m]> ERROR: Could not find the clang shared library in the path /nix/store/i6srh22283wdhiphyahqw3kskrwp89rc-llvm-4.0.1-lib/lib returned by `llvm-config --libdir` (searched for files [u'libclang.so.1', u'libclang.so']).
<roni> when i do nix-env -iA nixpkgs.chromium, it just says "replacing" etc. and i don't seem to get flash support in the browser after restarting it
<bennofs> roni: if a package has changed then nix should reinstall it
<roni> bennofs: but this is just an *option* ... not sure of the relation between these options and the package
<bennofs> roni: an option influences the package. if you change an option, the package changes and nix detects that and reinstalls
<roni> bennofs: cool, so if i wanted to test visibility of my config file, i could put a garbage option in there and see if the build chokes, right?
<roni> tokudan[m]: is that file present in that path?
<tokudan[m]> roni: apparently not
hc_ has joined #nixos
<roni> tokudan[m]: what is there instead?
<tokudan[m]> roni: libLLVM-4.0.so and two symlinks pointing to it
<roni> bennofs: ok if i put a syntax error in the config, then it chokes on nix-env, so i know it's visible... next question is, why i'm not getting flash enabled in chromium
acarrico has quit [(Ping timeout: 248 seconds)]
hc has quit [(Ping timeout: 248 seconds)]
hc has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/aabda49455 (from 69 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
hc_ has quit [(Ping timeout: 260 seconds)]
<disasm> so... I guess people don't use AuthorizedKeysCommand on nixos with a binary in the nix store :( error: Unsafe AuthorizedKeysCommand "/nix/store/p9q8acqqhbfaqlk50013xrka682r622j-goklp-1.6-bin/bin/goklp": bad ownership or modes for directory /nix/store
<roni> bennofs: it's working! i had the wrong flash option in my config (s/adobe/pepper/g)
<gchristensen> disasm: huh ...
<roni> bennofs: so how do i find out which options are available to a package?
<gchristensen> oh! I've done this disasm
<fpletz> copumpkin: ah, fine! looked like disapproval to me :)
<disasm> gchristensen: that makes me happy :) how do I fix it?
<Judson> To resolve system level package collisions, I still want to use priority?
<copumpkin> fpletz: oh no, nothing but approval :)
<tokudan[m]> does anybody have an idea how to solve this issue with the firefox build?
<tokudan[m]> ERROR: Could not find the clang shared library in the path /nix/store/i6srh22283wdhiphyahqw3kskrwp89rc-llvm-4.0.1-lib/lib returned by `llvm-config --libdir` (searched for files [u'libclang.so.1', u'libclang.so']).
Guest171 has quit [(Ping timeout: 260 seconds)]
<schoppenhauer> meh.
<roni> tokudan[m]: i wonder what you get if you `find` in /nix/store looking for libclang.so*
<roni> tokudan[m]: i assume the clang lib files are supposed to be somewhere and maybe your build environment just didn't ask for that location or something
<tokudan[m]> roni: the file is somewhere in /nix/store/xyz-clang-1.2.3
infinisil has joined #nixos
<tokudan[m]> roni: firefox's build scripts only seem to check the directory returned by llvm-config --libdir. and that seems to be the problem
<cransom> hrm. i have a machine with vlan interfaces that, on the last reboot, vlans didn't get created
<roni> tokudan[m]: i poked around the firefox stuff in nixpkgs a bit... i can sort of see where the c compiler comes into things but i can't find the actual reference to llvm
<roni> sorry :( hopefully someone more knowledgeable than me can help you
MichaelRaskin has joined #nixos
<tokudan[m]> roni: I've simply tried to add llvm and clang to the build inputs, but that didn't work
M1k3y has joined #nixos
<cransom> disasm: re: authorizedkeyscommand, no. i ran into that a while ago and openssh complains that the binary is other+rw, but doesn't notice the filesystem is readonly. my improper fix was to drop a script into /etc/ssh via activationscript :\
<tokudan[m]> disasm: that's untested, but shouldn't you be able to write a setuid-wrapper that does not setuid and just exec's the correct binary?
voiceftp has quit [(Ping timeout: 258 seconds)]
<hyper_ch> clever: rsyncing everything to an encrypted, compressed zfs usb drive...
eacameron has joined #nixos
<Judson> So, I'd like to be using mlocate, but its locate colides with findutils. I can't find where findutils is installed (and I would probably like to keep find and xargs regardless). Do I need to override meta.priority in /etc/nixos?
<M1k3y> Hello, I have a question regarding the different nixos channels. Am I understanding correctly, that the "nixos-unstable" channel refers to the current master branch on github?
<clever> Judson: how did you enable mlocate?
<clever> Judson: and have you seen this? https://nixos.org/nixos/options.html#locate.locate
<Ralith> How would I override a package to use a debug build of libdl?
<Judson> clever, that's what I did
voiceftp has joined #nixos
<Judson> locate = {
<Judson> enable = true;
<Judson> localuser = "root";
<Judson> # the default findutils is torturous
<Judson> locate = pkgs.mlocate;
<Judson> };
<clever> Judson: there is no way to override this list
<Judson> Okay, so I gots to have findutils - I'm not superbly distressed by that - I'd still want find and xargs anyway
eacameron has quit [(Remote host closed the connection)]
<Judson> clever, it seems like I want mlocate to be meta.priority = 10; or something.
<Judson> yes? and better to use overlays for that?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to staging: https://git.io/vdlJc
<NixOS_GitHub> nixpkgs/staging f137004 Orivej Desh: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
<clever> Judson: for system-path, such a collision is just a warning and you can just ignore it
<clever> Judson: and the order of the items in systemPackages is the main control
eacameron has joined #nixos
<disasm> cransom: that's what I just did, seems to be working now.
sivteck has joined #nixos
<pmade> Anyone know why NixOps can't SSH to a brand new libvirt VM? After successfully starting the VM it tries to SSH into it and fails due to "too many authentication failures".
<MichaelRaskin> Maybe you user has a lot of SSH keys?
<Judson> clever, I think, though, I now have a system that is using the mlocate updatedb and the findutils locate
<pmade> MichaelRaskin: I do, but the first key sent is the correct one.
<Judson> I didn't think that was compatible
<Judson> ExecStart=/nix/store/ifqivx0r1kgk0r0xgwgk8ca2z2mwn235-unit-script/bin/update-locatedb-start
<Judson> exec /nix/store/0fshag8qyxcqv5mzrajfhxbxq4lm80dm-mlocate-0.26/bin/updatedb
reinzelmann has joined #nixos
<pmade> In the NixOps code it's hard to tell which SSH added to the base libvirt image though.
<Judson> which locate => /nix/store/hmp3dkkwjgrxzijir41nn3lliyr34l67-findutils-4.6.0/bin/locate
<clever> Judson: ah, then the ordering in systemPackages isnt quiet right
<clever> Judson: one sec
<clever> Judson: try instead doing locate.location = lib.hiPrio pkgs.mlocate;
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/519fd37e1f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> that will apply an override to the mlocate put into the module
sivteck_ has joined #nixos
sivteck has quit [(Ping timeout: 258 seconds)]
<Judson> clever - perfect, thanks
phreedom has quit [(Ping timeout: 240 seconds)]
<pmade> MichaelRaskin: Thanks for pointing me in the right direction. I had to add `IdentitiesOnly yes' to my SSH config file.
hellrazor has joined #nixos
<M1k3y> Hi. Am I understanding correctly, that the "nixos-unstable" channel refers to the current master branch on github?
<clever> M1k3y: the latest version of master to pass a range of testing
fritz09 has joined #nixos
<M1k3y> clever: thanks. That explains the odd behavior I got in my system. How long does it usually take for a fix to move to the unstable channel after being merged on github? And is there a way I can see when it's done?
tmaekawa has joined #nixos
fritz09 has quit [(Client Quit)]
fragamus has joined #nixos
<clever> M1k3y: click on the hydra job for a give channel
<M1k3y> clever: awesome, thank you.
<clever> given*
tmaekawa has quit [(Client Quit)]
takle has quit [(Remote host closed the connection)]
hellrazor has quit [(Quit: WeeChat 1.9.1)]
pie_ has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<hyper_ch> clever: hmmm, issue with zfs :) I attached external usb 3.0 with a ZFS pool... shouldn't that be automounted?
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> hyper_ch: you have to run zpool import on the pool name
<hyper_ch> how do I find out the pool name?
<clever> run blkid on the partition
fragamus has joined #nixos
<hyper_ch> clever: cool
<roni> tokudan[m]: to really hack it, you could experiment with using nix-shell to drop into a build environment, then look at LD_LIBRARY_PATH or something
<hyper_ch> Mic92: how to mount an encrypted dataset?
<roni> tokudan[m]: that's not the right solution but it's just a starting point - i don't know who invokes llvm-config but you could try to track that by running the build phases manually or something
<infinisil> hyper_ch: `zpool import` should also show you the available pools to import
<hyper_ch> infinisil: thx :)
jensbin has joined #nixos
<hyper_ch> problem right now is, how to mount that encrypted dataset
<hyper_ch> zfs mount -a was supposed to ask for the key
<infinisil> you have it in /dev/mapper?
<infinisil> ah you're using zfs encryption
<hyper_ch> infinisil: zfs encryption
<hyper_ch> Mic92 for me to update to zfs unstable from master
<infinisil> the mountpoint property of zfs should be legacy
<hyper_ch> s/for/forced/
<hyper_ch> infinisil: property: encryption
jensbin has quit [(Client Quit)]
<infinisil> does the usual way with `mount -t zfs` not work with encryption`
<infinisil> ?*
<hyper_ch> didn't know that was the usual way and no, didn't work
<infinisil> mountpoint of the dataset needs to be 'legacy', then `sudo mount -t zfs pool/dataset /mountpoint`
<infinisil> what's the error?
<hyper_ch> mountpoint?
<infinisil> mountpoint is where you want to mount it
<infinisil> /root/whatever or /mnt or /home/foobar
<hyper_ch> mount -t zfs testbed/encfs /testbed/encfs
<hyper_ch> filesystem 'testbed/encfs' cannot be mounted using 'mount'.
<hyper_ch> Use 'zfs set mountpoint=legacy' or 'zfs mount testbed/encfs'.
<hyper_ch> See zfs(8) for more information.
<infinisil> it doesn't look like you set it to legacy
<infinisil> zfs set mountpoint=legacy testbed/encfs
sivteck_ has quit [(Quit: user missing.)]
<hyper_ch> infinisil: it's encrypted and I think that now just killed it
<infinisil> what do you mean by killed it? what happened?
<hyper_ch> root@subi:~# zfs set mountpoint=legacy testbed/encfs
<hyper_ch> root@subi:~# mount -t zfs testbed/encfs /testbed/encfs
<hyper_ch> filesystem 'testbed/encfs' cannot be mounted at '/testbed/encfs' due to canonicalization error 2.
<infinisil> mkdir /testbed/encfs
<infinisil> the directory needs to exist
<hyper_ch> root@subi:~# mkdir /testbed/encfs
<infinisil> (as with normal mounting)
<hyper_ch> root@subi:~# mount -t zfs testbed/encfs /testbed/encfs
<hyper_ch> filesystem 'testbed/encfs' can not be mounted: Permission denied
<infinisil> sudo
<hyper_ch> I am root
sivteck has joined #nixos
<infinisil> I Am Groot
<infinisil> Hmm
<infinisil> that's weird
<hyper_ch> it's encrypted
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 4z3 opened pull request #30065: brscan4: 0.4.4-2 -> 0.4.4-4 (master...brscan4) https://git.io/vdltp
NixOS_GitHub has left #nixos []
<hyper_ch> but I can't figure out how to unlock it
<hyper_ch> http://docs.oracle.com/cd/E23824_01/html/821-1448/gkkih.html#gkkra --> but zfs mount -a doesn't do anything
contrapumpkin has joined #nixos
<clever> hyper_ch: luks or zfs encryption?
eacameron has quit [(Remote host closed the connection)]
<hyper_ch> fzs encryption
<hyper_ch> luks is simple
<clever> what do the zfs and zpool man pages say about load-keys?
<hyper_ch> zfs mount testbed/encfs
<hyper_ch> cannot mount 'testbed/encfs': legacy mountpoint
<hyper_ch> use mount(1M) to mount this filesystem
numerobis has quit [(Ping timeout: 264 seconds)]
<clever> ah
<hyper_ch> infinisil said before to change to legacy
<clever> for legacy, you must "mount -t zfs pool/name /foo"
<hyper_ch> clever: that didn't work
<clever> did you loadkeys first?
<hyper_ch> how?
<infinisil> read the man page
<hyper_ch> google can't find anything about loadkeys
<infinisil> i just read it and you need load-keys
<hyper_ch> according to this I should just be prompted
<infinisil> that's oracle, not ZoL
<hyper_ch> it's zfs
<infinisil> Use. The. Man. Page.
sivteck_ has joined #nixos
sirkha has quit [(Quit: Page closed)]
sivteck has quit [(Ping timeout: 240 seconds)]
<infinisil> i know, manpages are intimidating, but they're really helpful
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vdlqP
<NixOS_GitHub> nixpkgs/master 8bc5f04 tv: brscan4: 0.4.4-2 -> 0.4.4-4
<NixOS_GitHub> nixpkgs/master 05ab1e0 Orivej Desh: Merge pull request #30065 from 4z3/brscan4...
NixOS_GitHub has left #nixos []
<hyper_ch> infinisil: it worked
<hyper_ch> google > man pages (usually)
<hyper_ch> clever: thx
<hyper_ch> compress ratio 1.02 after 600 GB written
<hyper_ch> doesn't look like there's much to gain
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil> how often do you read man pages
<infinisil> because i do a lot and they're usually a so much better source of information than google/DDG
* hyper_ch heard that reading man pages causes brain cancer :)
<gchristensen> hyper_ch: ...
jushur has joined #nixos
<gchristensen> hyper_ch: if you'd like help with ZFS on Linux, I'd suggest using #zfsonlinux as a channel of support
<hyper_ch> the man page I probably read the most is rsync and then followed by find
acarrico has joined #nixos
<MichaelRaskin> Not reading man pages is linked to a risk of becoming a cancer!
MoreTea has joined #nixos
fragamus has joined #nixos
<infinisil> i find being able to read man pages an essential skill on linux
mortum5 has joined #nixos
mortum5 has quit [(Max SendQ exceeded)]
mortum5 has joined #nixos
mortum5 has quit [(Max SendQ exceeded)]
mortum5 has joined #nixos
jcarr has joined #nixos
ivanovs-4 has quit [(Quit: Page closed)]
<clever> infinisil: when i was new to linux, i spent hours just reading every man page i could find :P
<infinisil> i am in that phase, more or less, it's really nice to spend some time learning the tool and understanding it
<schoppenhauer> it seems like nobody who uses nix-shells is also using emacs /o\
<hyper_ch> clever: infinisil: some people just have too much time ;)
<rycee> schoppenhauer: I run emacs from inside a nix-shell when coding in Haskell…
<catern> hey #nixos
<MichaelRaskin> Some people just know that reading man pages spends time today to save time tomorrow.
<catern> is there a Right Way to deploy Nix onto a large number of hosts running some other distribution?
phreedom has joined #nixos
<schoppenhauer> rycee: hm.
<schoppenhauer> rycee: do you use anything else than emacsWithPackages?
<catern> the kind of tricky problem is, obviously I want to use Nix to manage Nix. so, the question is, how do I bootstrap Nix on to the hosts in the first place?
<schoppenhauer> MichaelRaskin: if that was @me: no idea where emacsWithPackages is documented :\
<hyper_ch> MichaelRaskin: some people just know that reading man pages spends time today and is forgotten by tomorrow ;)
<clever> catern: you need a tarball that contains the full /nix/store/ that can just be unpacked to /nix/ and used
cfricke has joined #nixos
<clever> catern: which is what https://nixos.org/nix/install does
<rycee> schoppenhauer: Not really. I use emacsWithPackages with a long list of extra packages.
<catern> right, but, is there an elegant way to approach that? like, one nice way would be if nix-copy-closure didn't actually require Nix tools on the remote host
<catern> then I could just nix-copy-closure nix itself over
<MichaelRaskin> hyper_ch: some people have good memory. Mystery solved
<rycee> schoppenhauer: It doesn't work for you?
<hyper_ch> MichaelRaskin: :)
<catern> clever: I mean, that is exactly what I am using now, it's just that I want something cleaner and more reproducible and nicer than, copy a tarball over and run a script
jcarr has quit [(Ping timeout: 240 seconds)]
<infinisil> even if i don't know the whole man page by memory, i still have a deeper understanding for it and i know where i can find specific info
<MichaelRaskin> schoppenhauer: not to you, but I think the only documentation for it is in nixpkgs/pkgs/top-level/emacs-packages.nix
<MichaelRaskin> (I am a Vim user myself)
<clever> catern: you could make your own tarball, ive done something similar in my kexec tool
<rycee> schoppenhauer: Ah, you're the one with the proofgeneral issue?
<clever> catern: this creates a tarball containing the full closure of a bash script (which includes kexec tools, the linux kernel, and an initrd)
<MichaelRaskin> catern: you need to create build users on target, though
<rycee> (from the mailing list)
jcarr has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
<clever> catern: in my case, it lacks nix, and there is no management for that /nix/store/
<MichaelRaskin> So some files have to appear and some script has to be run…
<catern> clever: I definitely can make my own tarball
<clever> catern: but you could just include nix in there as well, and have a script to setup the profiles
<MichaelRaskin> I think there are rpms/debs
<catern> MichaelRaskin: hmm, the build users are already created
<catern> MichaelRaskin: (specifically I'm deploying without build users, as non-root, for now... unfortunately)
<MichaelRaskin> But then you need a script to install Nix via Nix and deinstall rpm/deb version
<catern> (so there is just one "nix" user which I have direct access to, and the /nix directory already exists through external intervention, but I don't have any root access in general)
<schoppenhauer> rycee: yes. but proofgeneral at least works *somehow*. tuareg doesn't work at all.
<catern> wow
<catern> lol
<catern> I google "nix-copy-closure" and the first result, no other keywords, is https://github.com/NixOS/nix/issues/1078
<rycee> schoppenhauer: Hmm, yeah. Maybe it's the load paths and stuff that aren't hooked up. You may want to have a look at the Emacs package `use-package`.
<catern> oh, but it's not exactly what I want :) I want nix-copy-closure to support machines which don't have Nix at all
takle has joined #nixos
<clever> yeah, thats just an issue with PATH
<catern> clever: I mean, I can definitely make my own tarball, and I already am kind of doing that
numerobis has joined #nixos
roni has quit [(Quit: leaving)]
<catern> it's just that I would kind of like some higher level concept which looks like: "do nix-copy-closure over to the remote host, setting up the appropriate state files if the remote host doesn't yet have a store database set up"
<schoppenhauer> rycee: hm. not sure I understand what use-package does; at least I don't see a connection.
<clever> catern: the most i can think of, is to detect the failure of nix-store --serve, and then run the install script over ssh automatically
<clever> catern: which requires either sudo perms or ownership of /nix/
<catern> I have ownership of /nix/
<clever> so you own an empty /nix dir?
<catern> Yep
<clever> such an automatic install would only work if the admin had already given you ownership of /nix
<clever> and at that point, why doesnt the admin just finish the install for you?
<schoppenhauer> rycee: this seems handy, but it hasn't really anything to do with the question. I mean, I don't even know how to properly find out where the stuff has been installed at all, and I wonder why it is not linked in the specific emacs-with-packages-directory.
<catern> hmm, to put it another way: I would like "updating the Nix version on a host" to be identical to "installing Nix for the first time on that host"
<catern> clever: well, even if the admin did the install, the admin would still like to have this property of "update == first install" :)
<schoppenhauer> I really wonder what the purpose of emacsWithPackages actually *is*
<catern> giving ownership of /nix is nice because a simple configuration management tool like Ansible can set that up
<catern> but Ansible (or whatever) can't do the entire Nix setup
<clever> catern: ansible cant just run a bash script?
<catern> clever: in a fully idempotent way I mean
<catern> so that upgrade == install
<clever> ah
<rycee> schoppenhauer: If you do `cat $(which emacs)` it should show you that it sets up a EMACSLOADPATH variable that indicates the directory that holds all the Emacs packages you set.
<clever> catern: yeah, you would need to check for the existance of nix-env, then either nix-chanenl --update && nix-env -iA nixpkgs.nix or install
<clever> catern: and to make it extra idempotent, always update the channel and nix-env after an install
<catern> now that I think about it more, I don't think I would want to have nix-channels necessarily be set up at all
<clever> catern: then you would want to realize a specific nix from the cache
<catern> or have nixpkgs necessarily be deployed on the hosts
<catern> clever: right
<clever> catern: nix-env -i /nix/store/hash-nix/
<catern> like with nix-copy-closure
<clever> which means you want to run this even after a fresh install
<cement> anyone have recommendations for configuring vim with nix?
<schoppenhauer> rycee: you are a genius \o/
<rycee> schoppenhauer: And inside that dir you'll have a `site-start.el` file.
<schoppenhauer> rycee: I need to do M-x load-library before I can load the thingy
<cement> will that also do all the pathogen bundles that I've got?
civodul has joined #nixos
<schoppenhauer> rycee: probably that is what you ment by use-package.
<rycee> schoppenhauer: Yeah, I imagine that use-package does that internally.
<schoppenhauer> rycee: use-package can load libraries if they are installed, but is silent otherwise.
<cement> also, does that file go into the package overrides section of configuration.nix?
<clever> cement: that file goes into the imports list
<schoppenhauer> rycee: thank you!!!1!
<rycee> schoppenhauer: I think use-package will complain when it tries to load the library, but generally that doesn't happen until you actually need the library.
<rycee> schoppenhauer: Glad it worked out for you :-)
<schoppenhauer> yes, just read the docu, that is what it is supposed to do
<clever> cement: and pathogen is a supported plugin, just add it on ;ome 20
eacameron has joined #nixos
<clever> cement: then you can put pathogen config into the string near 24, the same as vundle
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
MP2E has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
jcarr has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<schoppenhauer> rycee: how did you install use-package?
<schoppenhauer> rycee: can't find it in the emacsPackages
jcarr has joined #nixos
<rycee> schoppenhauer: Hmm, I installed it through emacsWithPackages so it should be there…
<infinisil> i know nothing about emacs, but i thought use-package is native functionality
katyucha has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Remote host closed the connection)]
<rycee> infinisil: No, I don't believe it is a builtin package.
eacameron has joined #nixos
<rycee> At least I've always installed it from melpa.
<infinisil> i see
* infinisil wants and needs to learn emacs
mortum5 has quit [(Ping timeout: 240 seconds)]
mortum5 has joined #nixos
<rycee> And `epkgs.use-package` is there :-)
katyucha has joined #nixos
acarrico has quit [(Ping timeout: 248 seconds)]
hamishmack has joined #nixos
<catern> infinisil: the package manager is built-in functionality
<catern> use-package is an additional helper that some people (not I, personally) use
<infinisil> So many people here using emacs, motivates me to learn it
schoppenhauer has quit [(Ping timeout: 248 seconds)]
<infinisil> but I'm having a hard time with the standard built in tutorial, it doesn't really motivate me to dig through it
<catern> deploying my deployment tools with my deployment tools is tricky :)
<rycee> infinisil: I used to be a Vim only kind of guy then I had to start writing a lot of LaTeX and realized I would lose my mind if I didn't use AUCTeX so I had to switch to Emacs. It took some time but eventually I learned it well enough to become dangerous. So I would suggest to wait with Emacs until you really need it :-)
<rycee> infinisil: It has some killer features though that I believe motivate it, with org-mode and magit being the main ones for me since I don't write much LaTeX any more. And everybody needs org-mode and magit in their lives ;-)
schoppenhauer has joined #nixos
<infinisil> rycee: I kinda really need it is the thing. I need something to write my notes with (want to use org-mode), i need some IDE-like thing to learn Rust, the same for Idris (whose emacs support is great, and I've used that before)
<catern> infinisil: you should also start with the better-defaults package. also you might try out learning magit like rycee said :)
hamishmack has quit [(Quit: hamishmack)]
<infinisil> yeah will definitely check out magit, am kinda sick of `git ...` commands
<MichaelRaskin> rycee: I write LaTeX and XeLaTeX in Vim, I write Common Lisp in Vim… nobody actually needs Emacs.
<catern> the words of a masochist :)
<MichaelRaskin> Well, in Vimscript default scoping rules are younger than lexical scoping.
<rycee> MichaelRaskin: Yeah, my impression is that the Vim ecosystem has improved a lot since I was using it.
<catern> Emacs Lisp has had lexical scoping for a while too you know :)
<MichaelRaskin> I know it has it optionally…
<catern> MichaelRaskin: well, most packages use it, and most of the core...
<catern> MichaelRaskin: btw, what was your "Lisp in the middle" talk about?
<schoppenhauer> hm. nox doesn't find use-package, neither does nix-env -f "<nixpkgs>" -qaP -A emacsPackages
<MichaelRaskin> Ah, that's actually better than I was afraid of.
<MichaelRaskin> catern: the slides should be online…
<MichaelRaskin> Let me see
<catern> oh, I see them now
<MichaelRaskin> It was a lightning, so didn't have time to say anything not in the slides.
sivteck_ has quit [(Quit: user missing.)]
<rycee> schoppenhauer: You'll want `emacsPackagesNg`, not `emacsPackages` :-)
katyucha has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin> catern: there is already a part that is obsolete: my current setup uses Firefox Marionette instead of SlimerJS.
<schoppenhauer> rycee: ah thx
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<schoppenhauer> what is Ng?
<rycee> schoppenhauer: Instead of `emacsWithPackages [ emacsPackages.a emacsPackages.b ]` try `emacsWithPackages (e: [ e.a e.b ])` and it should work out better.
sivteck has joined #nixos
Guest32605 has quit [(Quit: Lost terminal)]
<schoppenhauer> rycee: "attribute ‘proofgeneral’ missing,"
<schoppenhauer> rycee: when I do this
<rycee> schoppenhauer: I guess it stands for "next generation" :-) Basically, there was a big cleanup of the emacs infrastructure in Nixpkgs at some point and it ended up under the emacsPackagesNg namespace. It should include much of Melpa and is automatically updated.
sigmundv_ has joined #nixos
<schoppenhauer> rycee: well, aparently it does not include proofgenerl
<rycee> schoppenhauer: proofgeneral is probably a bit special. So for that I guess you'll need the old emacsPackages. Shouldn't be a problem to mix.
<rycee> In general though I believe it is best to prefer the packages in the emacsPackagesNg namespace.
<schoppenhauer> ok works!
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<catern> MichaelRaskin: plus you could use Guix if you like Lisp
<catern> it's good :)
<MichaelRaskin> I also like shell where shell makes sense.
<catern> gross!
<MichaelRaskin> And Guix suddenly has pure-Guile stdenv.
<catern> great!
k2s has joined #nixos
<MichaelRaskin> Which suddenly means that I will install stuff from NixPkgs anyway, because porting to Guix is work.
jsgrant has quit [(Read error: Connection reset by peer)]
<Sonarpulse> cmcdragonkai1: out of curosity, does any of libp2p mirror the distribute haskell packages at all?
markus1189 has quit [(Ping timeout: 264 seconds)]
nix-gsc-io`bot has joined #nixos
markus1189 has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/05ab1e0e48 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
m0rphism has joined #nixos
hamishmack has joined #nixos
Itkovian has joined #nixos
sivteck has quit [(Quit: user missing.)]
k2s has quit [(Quit: Leaving)]
acarrico has joined #nixos
hamishmack has quit [(Read error: Connection reset by peer)]
devsteff has joined #nixos
chessai has joined #nixos
<catern> hmm okay
<chessai> i've tried following the example given using vam, but it doesn't seem to work as expected
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aforemny opened pull request #30066: nixos/gitlab: fix gitlab service (release-17.09...gitlab) https://git.io/vdl4n
NixOS_GitHub has left #nixos []
<catern> clever: let me put my desire another way, I want to install Nix without having to pack the store closure up into a tarball
<catern> and copy it over to the remote host
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<clever> catern: thats pretty much all nix-copy-closure does, it packs each storepath into a NAR, and streams it over ssh, where a remote nix unpacks it
<catern> yes, but that only works if Nix already exists on the remote host
<catern> exactly my problem :)
CrazedProgrammer has joined #nixos
fragamus has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
CrazedProgrammer has left #nixos []
acarrico has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vdlB3
<NixOS_GitHub> nixpkgs/release-17.09 858543b Daiderd Jordan: gitaly: add missing entry in all-packages...
NixOS_GitHub has left #nixos []
CrazedProgrammer has joined #nixos
mudri has joined #nixos
<clever> chessai: yeah, i would have expected that to work at a glance as well
mortum5 has quit [(Ping timeout: 246 seconds)]
Itkovian has joined #nixos
<clever> chessai: i think it loads all the plugin names into vim, and then runs a ExportPluginsForNix function
devsteff has quit [(Quit: Page closed)]
<catern> hmm, it's very tricky
CrazedProgrammer has quit [(Quit: The Lounge - https://thelounge.github.io)]
<clever> chessai: inspecting in nix-repl, i see a vimPlugins.haskellConceal
<catern> I guess I could have a set of statically compiled Nix binaries, and direct nix-copy-closure to use those
CrazedProgrammer has joined #nixos
<catern> then those binaries can set up the store and stuff
<catern> that's pretty distasteful though...
hc has quit [(Read error: Connection reset by peer)]
<clever> catern: it would need to interogate the target, then copy binaries over with scp
acarrico has joined #nixos
hc has joined #nixos
<catern> well, I can rsync the binaries over to some .nix-state directory
<catern> nix-static*
<catern> then no explicit querying needs to take place
<catern> I guess an easier way is to just
<clever> but that copy might be out of date
<catern> yeah, exactly
frankqux_ has joined #nixos
<catern> I guess it may be easier to just explicitly query: "is the Nix store currently set up on this remote host?" and if it is not set up, manually rsync a closure over in to /nix and run those binaries to finish the Nix store set up
<clever> yeah
<clever> thats fairly close to what the curl installer does
<catern> if the Nix store *is* set up, then I use nix-copy-closure to put that closure over there
<clever> you can just rsync the store over, instead of untar
<catern> I think I can manage to have almost all of the logic be the same between the two modes
<clever> one min
<catern> with the only difference being whether I use rsync or nix-copy-closure to move the closure over
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite> fearlessKim: you say the bios on your xps13 was fancy??
<sphalerite> The one on my (2017) xps15 isn't fancy :/
<clever> catern: the "compiled" copy of install-nix-from-closure.sh is what does most of the setup, after the tar has been unpacked
<sphalerite> It's also slow. Takes >10s to hand over to systemd-boot :(
<clever> catern: you will need to duplicate this expression (because its inside the tar creator), and then just rsync the closure of that bash script
hc has quit [(Ping timeout: 248 seconds)]
bennofs has quit [(Ping timeout: 248 seconds)]
frankqux has quit [(Ping timeout: 258 seconds)]
hc has joined #nixos
<sphalerite> fearlessKim: also "arch is for noobs" that cracked me up
MoreTea has quit [(Ping timeout: 240 seconds)]
Guest72573 has joined #nixos
<chessai> clever: i'm uncertain as to why you are saying it doesn't work
<clever> chessai: i think you want to add haskellConceal to the list, rather then github:enomsg/vim-haskellConcealPlus
<clever> oh haskellConcealPlus
<clever> or*
Mateon3 has joined #nixos
ThatDocsLady has quit [(Ping timeout: 264 seconds)]
Neo-- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #30067: caneda: git-2012-02-16 -> 0.3.1 (master...update/caneda-0.3.1) https://git.io/vdlEf
NixOS_GitHub has left #nixos []
Mateon1 has quit [(Ping timeout: 260 seconds)]
Mateon3 is now known as Mateon1
<obadz> catern: sorry I just joined the party. what are you trying to do?
Itkovian has joined #nixos
<obadz> I see deploy nix on some large number of hosts running another distro
jcarr has quit [(Ping timeout: 246 seconds)]
<obadz> You want to install nixos? Or just install nix?
<catern> obadz: just Nix
<obadz> and some closure of something? or just Nix?
<catern> just Nix
<catern> :)
<obadz> then curl nixos.org/… | bash ?
<catern> reproducibly, of course :)
<infinisil> catern: Can't you just get that installer script and modify it a bit for reproducability and maybe some different fetch source
<infinisil> ?
<chessai> clever: that worked
hc has quit [(Read error: Connection reset by peer)]
hc has joined #nixos
<catern> infinisil: well, I mean, I also have other desired things, like avoiding having to create a tarball, and other things
Guest72573 is now known as ivanivan
<ivanivan> Hi, I'm installing NixOS on a ThinkPad, and don't want to dual-boot.
<ivanivan> The installation instructions mention partitioning, but do I need to do that if I'm not planning on running another OS on this machine?
<ivanivan> There's also mention of swap partitions and LVM volumes, and I'm not sure what (if anything) I should do related to those.
<ivanivan> Apologies for the noob questions -- I'm pretty well-versed in the shell, but I've never set up my own system before.
<infinisil> catern: why though? what makes tarballs undesired?
<tokudan[m]> ivanivan: yes, you need to partition the disks yourself for nixos. how you partition your disk(s) is completely up to you
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite> rycee infinisil catern: I need to learn emacs too! I've started using it for Agda because that's what our Advanced FP class is in
aldek has joined #nixos
aldek has quit [(Client Quit)]
<infinisil> Oh nice
Neo-- has quit [(Ping timeout: 258 seconds)]
<infinisil> I had an FP class too last semester.. but holy shit, we learned the very very basics of haskell, it was too basic, we barely even touched monads. And no fancy editors either
<infinisil> was very disappointed
CrazedProgrammer has quit [(Quit: The Lounge - https://thelounge.github.io)]
CrazedProgrammer has joined #nixos
heath has joined #nixos
<sphalerite> infinisil: I did intro to FP last year, just on time for it to get a lot better
<MichaelRaskin> They should have gone full-λ-calculus and flunk everyone who failed to write truncated integer division!
<heath> anyone have success in getting ghc-vis to work on your machine? if so, please share details! :)
<obadz> catern: out of curiosity, why do you need reproducibility just to get nix on these systems?
<sphalerite> With all the monoid-functor-applicative-monad goodness
cfricke has quit [(Quit: WeeChat 1.9)]
<sphalerite> ivanivan: yes you do need to partition, just so the BIOS knows how to boot the system :)
<ivanivan> @tokudan[m]: thanks, good to know
<catern> infinisil: well, the tarball is just another overhead which I don't want to have. anyway, another desired feature is that first-install and later upgrades follow as similar a code path as possible
<catern> obadz: I mean, why wouldn't I want reproducibility in my deployments? that's what Nix is all about :)
<sphalerite> catern: you could also have the machines download the nix source, build and install it to /run/user/$UID/nix, then bootstrap from there :p
<obadz> catern: yes but once you have (any version of) nix you can pull stuff in a reproducible way
<catern> sphalerite: that's not exactly reproducible either!
<infinisil> catern: I mean, the nix installation is going to take a certain amount of time anyways, and it may well be that a tarball is faster
<obadz> catern: anyway, as long as you copy the same installer script on all hosts, you will get the same version of nix it looks like. I see a hash in the script:
<catern> obadz: well yeah of course :) but I want it to be reproducible all the way down
<sphalerite> catern: then I'd probably just pin one of the (premade) binary tarballs as fetched by the installer
<catern> sphalerite: that's not exactly reproducible either!!! I certainly won't use a premade binary tarball, I'll be building my own
<sphalerite> It's got what you need in it and won't change under your feet if you're pinning the version
<obadz> catern: it should be if you just copy the install script on all host and call it, I think.
<sphalerite> Why not?
<catern> this is also beneficial for when I later want to upgrade Nix versions
<obadz> but honnestly getting nix on your system reproducibly is useless
<sphalerite> catern: you can build your own using nix/release.nix
<catern> sphalerite: well, it's *consistent*, but it's not *reproducible* in the sense that I know the exact provenance of the binary
<obadz> you can always reinstall nix, from nix, with a pinned version.
<catern> sphalerite: I know that :)
<catern> that's what I was doing/planning to do
<infinisil> and nix doesn't really change between versions anyways
<ivanivan> sphalerite: thanks -- makes sense :)
<infinisil> there's no point having that reproducible
<catern> I don't really understand the opposition :)
<obadz> export NIX_PATH="nixpkgs=https://github.com/nixos/nixpkgs/archive/<some commit>.tar.gz"
<catern> what's wrong with deploying Nix using Nix instead of deploying Nix with a tarball and shell script?
<sphalerite> catern: I'm not sure anyone really understands what your problem is with using the existing setup script
<obadz> then everything you install will be driven by that commit hash
CrazedProgrammer has quit [(Quit: The Lounge - https://thelounge.github.io)]
<sphalerite> The tarball is built with nix
<sphalerite> As is the script
CrazedProgrammer has joined #nixos
<infinisil> ++
<sphalerite> So you are using nix for the deployment.
<obadz> you need the tarball only to get nix on the hosts in the first point
<obadz> then you can use nix after that
<sphalerite> It's just that if the nix isn't there on the target machine you can't use nix on the target machine to get nix on the target machine! You have to bootstrap it somehow, be it through a tarball or rsync or whatever. Either way you're copying something over
<catern> sphalerite: sure, but: 1. I can remove an intermediate step (no more tarball), 2. I can use the same logic both for installing Nix and upgrading it, 3. I can increase the level of idempotency of my deployment scripts
* obadz gives up
* sphalerite too
<catern> obadz: you're missing the point anyway :)
* infinisil too
<obadz> yes it seems so
<obadz> that's why I give up :)
<catern> sphalerite is not :)
<sphalerite> catern: either we're all missing your point or your missing all ours :p
jsgrant has joined #nixos
<MichaelRaskin> What about full-crazy?
acarrico has quit [(Ping timeout: 240 seconds)]
<sphalerite> You're*
<sphalerite> Or that. That's almost always a good explanation
<MichaelRaskin> sshfs, then install Nix into the sshfs-ed directory
<catern> MichaelRaskin: haha hmm... :)
CrazedProgrammer has quit [(Client Quit)]
<infinisil> i don't see the disappeal of tarballs, it probably makes transfer a lot faster, and adds an untar step which probably doesn't take long anyways
<catern> no that's too crazy!
<sphalerite> MichaelRaskin: nah man ftp is the way
<sphalerite> Or nfs
<sphalerite> SMB!!
<sphalerite> AFP!!!
CrazedProgrammer has joined #nixos
<MichaelRaskin> Sending core deployment software over broken unencrypted protocols, what could possibly go right.
* LnL doesn't understand the discussion
* sphalerite needs to calm down
CrazedProgrammer has quit [(Client Quit)]
<catern> infinisil: tarballs purely as a transfer mechanism might be okay, hm... (as opposed to rsyncing)
<MichaelRaskin> Well, with sshfs you can use Nix to install Nix even the first time around.
CrazedProgrammer has joined #nixos
<infinisil> that's literally all tarballs do
<infinisil> or am i missing something
JosW has quit [(Quit: Konversation terminated!)]
<catern> infinisil: where do you get the tarball? what do you do with it after you've copied it over?
mattcode has quit [(Quit: Leaving)]
<catern> those are the other parts :)
<catern> MichaelRaskin: yes that is delightfully crazy :)
<infinisil> you get it by packing files, you unpack the files after you copied it over
<LnL> you can build it with nix, just like how the tarball for nixos.org is built
ThatDocsLady has joined #nixos
<catern> LnL: yes, that would be how I would do it
<LnL> you don't have to use the exact version hosted on nixos.org to leverage the installer
<LnL> right?
<catern> by installer, do you mean the installer on nixos.org or the installer packaged into the tarball?
<catern> there are multiple scripts here
<catern> infinisil: oh also tarballs take up disk space :)
obadz has quit [(Quit: WeeChat 1.9)]
<hodapp> alright, time to try to kick VirtualBox to the curb...
<sphalerite> catern: not if you're only sending them through piprd
<sphalerite> Pipes
<catern> sphalerite: infinisil: well yeah of course, but in that case I might as well use rsync, which is what I would use.
<infinisil> as long as it works for you :P
<sphalerite> catern: so what's the actual *issue* that you came here to solve?
<sphalerite> I still don't get that
<infinisil> if there was something like that already i think
simukis has quit [(Ping timeout: 255 seconds)]
<catern> deploying Nix to a large number of hosts running Debian
fendor has joined #nixos
athaller_ has joined #nixos
<catern> that's multi-user Nix, mind
<catern> and with support for updating Nix later on
athaller has quit [(Ping timeout: 240 seconds)]
dbmikus has quit [(Quit: WeeChat 1.9.1)]
<MichaelRaskin> With multi-user you are back at needing to create build users with some script
<catern> the relevant user(s) already exist and even if they didn't, it wouldn't really matter...
<sphalerite> catern: but you seem to have your own solution in mind for it and not really be prepared to take on what any of us have to say about it..?
<sphalerite> And some fairly unclear requirements
<MichaelRaskin> Looks more like unusual requirements than a specific solution in mind.
<sphalerite> I don't see how anything we've said has been useful to catern ¯\_ (ツ) _/¯
<sphalerite> Aw pff riot screwing up my shrugs again
numerobis has quit [(Ping timeout: 258 seconds)]
jcarr has joined #nixos
<disasm> catern: just create a custom deb file and use apt-get to install it, lol :)
<MichaelRaskin> I dunno, my ii shows them fine
<catern> sphalerite: I mean, how would you suggest updating the Nix daemon later on, if I deploy it with nixos.org /install everywhere?
<catern> disasm: yes, that is the ideal way :) but sadly I don't have root, yet
<catern> so can't do it with a .deb
jtojnar has quit [(Remote host closed the connection)]
<cement> what type of thing is something enclosed in two single quotes, eg. ''words here with newlines''
<sphalerite> catern: nix-env -f '<nixpkgs>' -iA nix
<LnL> if you have the service use /nix/var/nix/profiles/default/bin/nix-daemon or some other profile you can update without having to change the service configuration
<sphalerite> cement: a string
<cement> ok, is it possible to append a file onto said string?
<disasm> catern: without root how are you creating /nix dir or is someone else doing that for you?
<catern> disasm: the latter
<cement> like, the contents of the file, obviously
<disasm> catern: without root, I'm going to say your best bet is a tarball and custom script (I know that's not what you want). As for upgrades going forward, why wouldn't nix update itself after the initial bootstrap?
<sphalerite> cement: see readFile in https://nixos.org/nix/manual/#ssec-builtins but depending on what you're trying to do that may not actually be what you want
jtojnar has joined #nixos
<cement> I want to configure vim system-wide, but with non-standard syntax highlighting for certain languages
<catern> disasm: and what triggers that update...
ThatDocsLady has quit [(Ping timeout: 264 seconds)]
<cement> in a "normal" vim install, you'd add a ~/.vim/syntax folder, and then add a .vim file (usually quite large)
<catern> sigh! I'll just do it and show you all
<catern> *insane laughter*
<sphalerite> cement: right, and these aren't packaged in vimPackages?
<chessai> does anyone know how i can implement a custom syntax file for vim in a configuration.nix?
<sphalerite> cement: the neater (but slightly more effort) approach would be to package them, which shouldn't be too complicated, using vim2nix (or not using it)
<cement> I doubt it. it's not a plugin, it's just one language's syntax highlighting
<chessai> scratch my request
<cement> chessai wanted to ask the question for me
<cement> how sweet
<sphalerite> cement: I have some extra vim packages which I just add in a somewhat ad-hoc way https://github.com/lheckemann/dotfiles/blob/master/neovim.nix
<sphalerite> Lol
dieggsy` has joined #nixos
dieggsy has quit [(Ping timeout: 255 seconds)]
<sphalerite> cement: I think the essential part of some of the "plugins" I use (like vim-nix) is a syntax file
<sphalerite> The same options should apply with regular vim as neovim
<cement> I'm not sure if this means everything is dead for me, but I've got things like vim-nix and a custom colorscheme, but they aren't applied
hiratara has quit [(Ping timeout: 258 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/858543bcaa (from 83 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<cement> like, all the .nix stuff builds
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> What's your expression for vim looking like?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hiratara has joined #nixos
<LnL> some people have had issues if they don't disable the builtin ft support of vim_configurable
Itkovian has joined #nixos
<cement> tbh, this whole system is very janky
<sphalerite> It's very nice when it works, but yes it is pretty fiddly to get working in the first place
<cement> well, I was being far more general, like this whole laptop was set up in like a day or two
<cement> and that's kind of been my overall complaint with nixos, is that I've gotta fiddle for days on end to get nearly anything to work right
Itkovian has quit [(Client Quit)]
<sphalerite> My comment still applies :D
<cement> and I've been "using" nixos for more than a year, maybe more than two, but only recently been trying to fiddle without direct support from clever
<cement> anyways, I'm gonna go off to a Starfinder (pre?)release event now, so maybe I'll get this working tomorrow
chessai has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
<sphalerite> Well if you don't like it after all that time then maybe it just wasn't meant to be and you should use a more traditional distro. Which would be a shame, but IMO you should use what works best for yoi
<sphalerite> ¯_ (ツ) _/¯
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
Itkovian has quit [(Client Quit)]
rnhmjoj[m] has left #nixos ["User left"]
cement has quit [(Ping timeout: 255 seconds)]
rnhmjoj[m] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mpickering opened pull request #30068: libroxml: init at 2.3.0 and osm2xmap: init at 2.0 c1f7b68 (master...osm2xmap) https://git.io/vdlwX
NixOS_GitHub has left #nixos []
taaperotassu has quit [(Ping timeout: 246 seconds)]
<catern> alright, I think I've got a handle on how to do it
<catern> I depend on a fixed version of Nix binaries. I deploy that to the host by any means necessary, possibly initializing the store while doing so. Then I deploy the multi-user configuration on top of that, using that fixed version.
dieggsy` has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
griff_ has quit [(Quit: griff_)]
oida_ has joined #nixos
jcarr has quit [(Ping timeout: 240 seconds)]
_ris has joined #nixos
oida has quit [(Ping timeout: 240 seconds)]
<infinisil> catern: multi-user configuration? You mean the nix build users?
<dtzWill> nix is the foot in the door enabling greatness :D
derchris has joined #nixos
<infinisil> hmm no that wouldn't make sense
mortum5 has joined #nixos
Tucky has quit [(Ping timeout: 248 seconds)]
python476 has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #30069: gcolor3: init at 2.2 (master...gcolor3) https://git.io/vdlom
NixOS_GitHub has left #nixos []
oida_ has quit [(Ping timeout: 258 seconds)]
ivanivan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
hiratara has quit [(Quit: ZNC - http://znc.in)]
mudri has quit [(Ping timeout: 258 seconds)]
hiratara has joined #nixos
<catern> hmm
<catern> one issue is, if I depend on a fixed version of the Nix binaries: How do I locate the previous version, so I can upgrade to the new version?
<catern> I guess they really are fundamental! but I don't really like the thought of using a user environment to do this!
<MichaelRaskin> What about just keeping a symlink to the latest Nix installed on the system?
<catern> i mean, that's the obvious solution, sure
<catern> but is it *right*???
<MichaelRaskin> Well, given that the default way of installing stuff is via profiles (user profile, system-wide default profile, or ystem profile tracking the instantiation of the system), and profiles are basically symlinks…
oida_ has joined #nixos
oida has quit [(Ping timeout: 258 seconds)]
<catern> I mean if I did that, then I might as well do it with a profile
<MichaelRaskin> Yes, specifying that this symlink is a profile doesn't make anything worse. nix-env --set is your friend.
oida has joined #nixos
M1k3y has quit [(Ping timeout: 260 seconds)]
peacememories has joined #nixos
<infinisil> I feel like catern would need to invest quite a bit of more time into this to get a catern-satisfying and reliable solution
<catern> do not worry, I am nearing the way
oida_ has quit [(Ping timeout: 258 seconds)]
Wizek__ has quit [(Ping timeout: 258 seconds)]
<catern> yes, I suppose a profile is reasonable
Tucky has joined #nixos
mudri has joined #nixos
<catern> that means the bootstrapping needs to both copy the Nix binaries over, initialize the store, and create a profile containing Nix
obadz has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hamishmack has joined #nixos
mortum5 has quit [(Ping timeout: 258 seconds)]
peacememories has joined #nixos
Sonarpulse has quit [(Ping timeout: 258 seconds)]
abrar has quit [(Ping timeout: 248 seconds)]
sary has quit [(Ping timeout: 260 seconds)]
Marqeaux has joined #nixos
taaperotassu has joined #nixos
sary has joined #nixos
digitus has quit [(Quit: digitus)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
ericnoan has quit [(Ping timeout: 248 seconds)]
michiel_l has quit [(Ping timeout: 246 seconds)]
sary has quit [(Ping timeout: 240 seconds)]
erasmas has quit [(Quit: leaving)]
michiel_l has joined #nixos
ericnoan has joined #nixos
ericnoan has quit [(Changing host)]
ericnoan has joined #nixos
oida_ has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
oida has quit [(Ping timeout: 248 seconds)]
ericnoan has quit [(Ping timeout: 260 seconds)]
sigmundv_ has quit [(Ping timeout: 258 seconds)]
sigmundv_ has joined #nixos
sary has joined #nixos
hc_ has joined #nixos
markus1199 has joined #nixos
python47` has joined #nixos
markus1189 has quit [(Ping timeout: 240 seconds)]
ericnoan has joined #nixos
hc has quit [(Ping timeout: 258 seconds)]
hamishmack has quit [(Quit: hamishmack)]