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.
<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…)]
<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>
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>
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
<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
<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
<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 ?
<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
<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
<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
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.
<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.
<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
<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`
<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...
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.
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 ?
<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)
<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
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?
<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
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
<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
<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: 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.
<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?
<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
<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
<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.
<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
<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?
<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.
<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.
<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?
<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
<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??
<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
<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:
<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
<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''
<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?
<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
<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))]
<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)]