<gchristensen>
`nix-shell -p weechat` will get you weechat
<gchristensen>
or put pkgs.weechat in environment.systemPackages in /etc/nixos/configuration.nix
torched[m] has joined #nixos
ddellacosta has joined #nixos
<wolfmantjg123>
adamt: gchristensen thanks guys I wasted hours trying to build weechat with a cpp compiler
<gchristensen>
oh man :)
<adamt>
wolfmantjg123: Have fun
random_yanek has joined #nixos
<tbenst[m]>
I seem to have shot myself in the foot. my user .nix-profile -> /nix/var/nix/profiles/per-user/root/profile
<tbenst[m]>
and /nix/var/nix/profiles/per-user/$USER/profile does not exist
<Ashy>
wolfmantjg123: also in general on nixos i just try to run the command before installing: $ weechat => The program `weechat` is not installed. It is provided by several packages. You can install it by typing one of the following..."
JonReed has quit [Ping timeout: 256 seconds]
<tbenst[m]>
anyone know how I can create the proper user profile..?
<wolfmantjg123>
Ashy: it just tells me weechat: command not found
matix has quit [Quit: WeeChat 2.4]
__monty__ has quit [Quit: leaving]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tbenst[m]>
If I try to do, for example, `nix-env -iA nixos.sox`, I see `error: opening lock file '/nix/var/nix/profiles/default.lock': Permission denied`
<wolfmantjg123>
Can someone show me a screenshot of their environment.systemPackages in their configuration.nix. , I want to make sure I’ve typed it correctly
<samueldr>
and the worse part imho is how it hypened the url
<samueldr>
wolfmantjg123: tip I wished I knew about when I started: there are three manuals, they are all complementary; and they are not necessarily something to read in order
<samueldr>
there is the nix manual, it's about nix the language and the nix-* and nix commands
<worldofpeace>
samueldr good eye. Didn't even notice that
<samueldr>
worldofpeace: :) part of my job description is UX/UI on the web, those things pop to me
<samueldr>
there is the nixpkgs manual, about the packages repository. this one may be less useful at the start
<samueldr>
and the last one, the nixos manual, which is about the *distribution* the distro that's built using nix and nixpkgs :)
<wolfmantjg123>
samueldr: ok thanks for the heads up
sigmundv__ has quit [Ping timeout: 250 seconds]
<samueldr>
the nix manual has a neat chapter about the *syntax* of nix expressions, which I found extremely helpful to grasp what I was reading
vidbina has joined #nixos
<samueldr>
but it's not light reading, it's a bit condensed
wolfmantjg123 has quit [Remote host closed the connection]
<abbafei[m]>
@adamt Arch packages `cuetag.sh` as NixOS does, but Debian and its derivatives package it as `cuetag`
random_yanek has quit [Ping timeout: 246 seconds]
alex`` has quit [Ping timeout: 246 seconds]
goibhniu has quit [Ping timeout: 245 seconds]
<adamt>
abbafei[m]: Fair enough. It's kinda weird to package a binary (even though it's a shell script) as .sh in the first place, in my opinion, so I see your point
abaisteabaiste has quit []
kvda has joined #nixos
simukis has quit [Quit: simukis]
random_yanek has joined #nixos
vidbina has quit [Ping timeout: 264 seconds]
silver has quit [Read error: Connection reset by peer]
Rusty1 has joined #nixos
aanderse_ is now known as aanderse
jluttine has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhNlL
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #56197 → Android and related cross fixes → https://git.io/fhNlq
<{^_^}>
[nixpkgs] @grahamc pushed to master « libguestfs: build on hydra »: https://git.io/fhNl0
jluttine has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @grahamc pushed to release-19.03 « libguestfs: build on hydra »: https://git.io/fhNlE
dbmikus has quit [Ping timeout: 255 seconds]
adamt has quit [Ping timeout: 244 seconds]
jluttine has joined #nixos
<buckley310>
I have submitted this pull request, however for some reason the hash of one of the ruby gem packages (metasploit-framework) keeps changing. does anyone know why this might be? https://github.com/NixOS/nixpkgs/pull/54405
<ottidmes>
buckley310: probably some timestamp or randomness introduced in the build causing the build not to be reproducible. When I this happened for one of my packages, I was recommended diffoscope. Just build it twice, and compare the results with diffoscope and you should hopefully be able to pinpoint the cause
Supersonic has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #55750 → Allow using LLVM for cross compilation toolchain → https://git.io/fh74D
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/fhNlp
<tjg>
have any of you guys built your own custom keyboard layout in nixos?
<tjg>
To get started, install xorg.xkbcomp , what are the commands to install this ?
iqubic has joined #nixos
tjg has quit [Quit: WeeChat 2.2]
hyperfekt has quit [Ping timeout: 256 seconds]
wedens has joined #nixos
<jackdk>
the stuff that wiki page is asking for can be done within a nix-shell, I think: nix-shell -p xorg.xkbcomp
Supersonic has joined #nixos
vmandela has quit [Quit: Leaving]
random_yanek has quit [Ping timeout: 245 seconds]
kreisys has joined #nixos
slack1256 has joined #nixos
kreisys has quit [Client Quit]
PeterHK has quit [Ping timeout: 256 seconds]
work_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @grahamc opened pull request #56448 → libguestfs: build without the appliance → https://git.io/fhN8m
random_yanek has joined #nixos
kvda has joined #nixos
camsbury has joined #nixos
<teto>
I have a bug where 2 lua environments are created when there should be only one really. What would you recommand to know what triggers the creation of each environment ? I am not sure how to interpret build with -vvvvv ? (afk)
stepcut has joined #nixos
<CMCDragonkai>
When I copy multiline text into ZSH, it copes correctly without adding extra backslashes into it. But if I copy it into bash on NixOS, it results in adding extra backslashes to my multiline command. Is anyone else experiencing this?
freeman42x has quit [Ping timeout: 252 seconds]
iqubic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #55615 → cdimgtools,perlPackages.DataHexdumper: init at 0.3, init at 3.001 → https://git.io/fhQux
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhN8O
fusion809 has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
counting1ort has joined #nixos
random_yanek has quit [Ping timeout: 245 seconds]
countingsort has quit [Ping timeout: 245 seconds]
ym555 has quit [Quit: leaving...]
camsbury has quit [Quit: WeeChat 2.2]
fusion809 has quit [Ping timeout: 264 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ryantm>
isobit: Ask your question; maybe someone can help.
vk3wtf has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<isobit>
Just having some issues after trying to run a fwupdmgr update, the systemd-boot-builder doesn't like there being a /boot/efi/nixos/fw... I've seen this issue: https://github.com/NixOS/nixpkgs/issues/39386 but I'm not sure how to get unstuck
<{^_^}>
#39386 (by superm1, 44 weeks ago, open): fwupd doesn't work for EFI updates
<isobit>
Can I just rm the cap files in /boot/efi/nixos/fw to abort the whole firmware update and rebuild?
stepcut has quit [Remote host closed the connection]
<isobit>
Presumably I still need to be able to rebuild nixos to use that overlay to get efivar to version 37... I'm just afraid to touch anything in /boot as I've never really mucked with EFI/boot stuff before
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
<ryantm>
isobit: I'm not too familiar with doing firmware upgrades either. If no one helps you hear, consider posting on https://discourse.nixos.org/ to reach a broader audience.
<ryantm>
helps you here*
<isobit>
ryantm: No worries, I will definitely check that out as well.
<ajs124>
damn, I just updated my thinkpad uefi today and forgot that fwupd exists. I could've looked into it, otherwise.
<isobit>
ajs124: How'd you update? Lenovo distributed bootable USB/CD?
<ajs124>
Yeah, just put the iso on a USB stick and used that.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
<isobit>
Did it wipe your boot entries? I've heard that happens to some people
<bgamari>
is there any way to refer to the log of one derivation in the derivation of another?
<bgamari>
e.g. what you would generally get from `nix log`
<ajs124>
isobit: In the uefi menu? Didn't really pay attention to that, but I only have nixos on there anyways, so I don't really care.
<isobit>
ajs124: Something like that, I'm in over my head here but I was avoiding it because I didn't want to have to try to reconstruct my /boot/efi if it broke it, since I don't really know what I'm doing lol
noonien has quit [Quit: Connection closed for inactivity]
<isobit>
ajs124: of course, now I've gone and broke things through fwupd anyway. It'd be nice to just get fwupd working with EFI (because convience) but at this point I just want to cut my losses with fwupd, get nixos to rebuild, and then probably update with the update iso
<isobit>
*convienience
<ajs124>
If you don't have any overly complicated setup involving other operating systems or distributions, I don't think there's anything in /boot a nixos-rebuild won't be able to restore.
pie__ has joined #nixos
<ajs124>
Which bootloader are you using?
<isobit>
systemd-boot, but I had attempted to stage an update with fwupdmgr update and now nixos won't rebuild because of this systemd-boot-builder error: IsADirectoryError: [Errno 21] Is a directory: '/boot/efi/nixos/fw'
<ajs124>
you can just delete that directory and list your boot entries/order with efibootmgr
pie___ has quit [Ping timeout: 250 seconds]
<isobit>
Oh, really? I thought maybe that was the case but I really didn't want to screw up my boot
<ajs124>
I don't see why not. Worst case, you can always just fix it with a live usb, as long as you have physical access.
<isobit>
I nuked /boot/efi/nixos/fw and nixos rebuilt just fine so I'm gonna give 'er a quick reboot and then call it a night hopefully. Firmware updates can wait. This whole thing is definitely a good reminder to keep a live usb handy, anyway...Thanks for your help ajs124 and ryantm!
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ayerhart has joined #nixos
alex_giusi_tiri has left #nixos [#nixos]
fusion809 has joined #nixos
isobit has quit [Ping timeout: 256 seconds]
sicklork1n has quit [Quit: Changing server]
sicklorkin has joined #nixos
vk3wtf has quit [Ping timeout: 264 seconds]
random_yanek has quit [Ping timeout: 255 seconds]
kvda has joined #nixos
ikitat has quit [Ping timeout: 245 seconds]
ayerhart has quit [Read error: Connection reset by peer]
kvda has quit [Client Quit]
random_yanek has joined #nixos
ayerhart has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
work_ has quit [Quit: Connection closed for inactivity]
<adamantium>
Question: without getting into things like overlays and package overrides, if i want to keep my base system on stable, but use unstable for select packages, would the simplest way to do this be to add the unstable channel to a non-root user, and install unstable packages per-user with nix-env -i ?
lord| has joined #nixos
vk3wtf has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
Rusty1 has quit [Quit: Konversation terminated!]
<jackdk>
overrides are easier than you think. hold on, I'll prepare a paste
<adamantium>
Well i'll just see what anyone else says, or is there any good docs to point me to regarding overlays vs overrides
hsrthsrthsrt has joined #nixos
dbmikus has joined #nixos
wfranzini has joined #nixos
wfranzini has quit [Quit: wfranzini]
reinhardt has joined #nixos
ottidmes has quit [Ping timeout: 246 seconds]
endformationage has quit [Quit: WeeChat 2.3]
reinhardt has quit [Client Quit]
random_yanek has quit [Ping timeout: 258 seconds]
drakonis has quit [Quit: WeeChat 2.3]
dbmikus has quit [Quit: WeeChat 2.3]
palo1 has joined #nixos
NickSeagull has joined #nixos
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
random_yanek has joined #nixos
hyper_ch2 has joined #nixos
MoreTea has quit [Quit: WeeChat 1.9]
gagbo has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @dotlambda pushed to release-19.03 « Revert "nixos/fish: generate autocompletions from man pages" (#56439) »: https://git.io/fhNBG
MoreTea has joined #nixos
NickSeagull has quit [Read error: Connection reset by peer]
<dminuoso>
Hiya. I want to use cabal-install-2.4.0.0 in nix, but that version appears not to be in nixpkg yet. What are my optoins?
Ariakenom_ has joined #nixos
<srhb>
dminuoso: nixos-unstable has cabal-install 2.4.1.0 in the main haskell package set.
Makaveli7 has joined #nixos
<srhb>
dminuoso: And 18.09 is unlikely to certainly not going to get it at any point :)
<dminuoso>
srhb: That sentence is.. wait.. uh
<dminuoso>
so it's likely to get it at some point?
Tucky has joined #nixos
<srhb>
dminuoso: Sorry. I meant to say it's very unlikely that it gets updated in 18.09
<srhb>
dminuoso: Full hackage bumps generally don't happen during a stable release.
<srhb>
dminuoso: in other words, a stable nixos release sort of mostly follows a certain stackage lts release.
<srhb>
More specifically the hackage packages db coming from one of those.
<dminuoso>
srhb: Ah, so in some way nixpkg is similar to the curated resolvers from stackage?
<srhb>
dminuoso: Yes. Except not really curated, but frozen in the same way. :)
sigmundv has quit [Remote host closed the connection]
rauno has joined #nixos
shanemikel has joined #nixos
shanemikel has left #nixos [#nixos]
<dminuoso>
srhb: I see. So this is very hacky right now since I just hardwired an import from unstable into my shell.nix for this project, but I guess this works for now.
wfranzini has joined #nixos
infinii has joined #nixos
infinii has quit [Ping timeout: 255 seconds]
nD5Xjz has joined #nixos
nD5Xjz_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fhNBd
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhNBF
<{^_^}>
[nixpkgs] @peti pushed commit from @artempyanykh to haskell-updates « ghc-8.4.4: use sphinx 1.7.x to build the documentation »: https://git.io/fhNRl
<elvishjerricco>
Mic92: I just used the branch that your fork recommended, and I think that commit was included
simukis has joined #nixos
<lejonet>
srhb: it was just a quick longshot to see what other behaviour we got with it
<lejonet>
srhb: I can't say I bumped into any problem with switching to py3 except that ceph-mgr all of a sudden couldn't find the module six, even tho I added it to the python env it uses
<lejonet>
(which is interesting in more than one way, as we didn't have the six module explicitly added to the python env when using python2.7)
hyper_ch2 has joined #nixos
<tA>
if the source for something im installing is a local git repo, how do i define that?
winem_ has joined #nixos
<tA>
in terms of defining src = [ ? ];
ixxie has joined #nixos
thc202 has joined #nixos
<lejonet>
tA: there is a fetchgitlocal defined in nixpkgs/pkgs/build-support/fetchgitlocal/default.nix
<lejonet>
and from what I can read from the code there it seems you'd use it as such: src = fetchgitlocal /path/to/repo;
qbiot has quit [Remote host closed the connection]
qbiot has joined #nixos
<tA>
lejonet: so i add fetchgitlocal to the inputs?
<lejonet>
tA: yes, otherwise it'll complain about it being undefined
qbiot has quit [Remote host closed the connection]
<tA>
im getting an error about an anonymous function not being called with correct arguments?
qbiot has joined #nixos
qbiot has quit [Remote host closed the connection]
<tA>
lejonet: is fetchgitlocal not in the default channel?
<lejonet>
tA: i think it should be, how so?
<lejonet>
I can find it in 18.09 nixpkgs at least, so it should be there
<tA>
lejonet: not sure, it wouldnt find it
<tA>
apparently you can use regular fetchgit on local repos though, got it working now
<lejonet>
tA: yeah, I don't really know how fetchgit/fetchgitlocal/fetchgitprivate related to eachother before, but it would seem like fetchgit "proxies" the 3 different variants
qbiot has quit [Remote host closed the connection]
<tA>
i got some more questions sorry, if im using home-manager, is there a way to start the mpd service through that, using nix? i can get it going by putting the config files in the right place but not through home-manager itself
<lejonet>
There I sadly can't help you (and don't worry, this channel is for questions after all :) ) because I haven't come to using home-manager yet (blasphemy, I know... ;) )
<tA>
no worries, back to nix, and embarrasing question, but is mpc in the repos? i cant seem to find it
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<jasongrossman>
tA: There are several versions of mpc.
<jasongrossman>
tA: `nix search mpc` will show them to you.
pie_ has joined #nixos
rauno has quit [Remote host closed the connection]
<adfaure>
Hello, I am running nixos. And I am wondering how I could override a package ? I am familliar with the nix code that overrides, so my concern is more about where put the code that overrides a package ? Writing into configuration.nix does not seems to wor..
<arianvp>
explains how to make it show up _both_ in nix-env and in your configuration.nix
periklis has quit [Remote host closed the connection]
halfbit has joined #nixos
<wedens>
what may cause compton to fail with "No GLX extension" with intel video when started as systemd service (via home-manager)? it works just fine when started from terminal
<symphorien>
LD_LIBRARY_PATH points to opengl related stuff
<symphorien>
This env var may be missing from the systemd service
alex`` has joined #nixos
<wedens>
hm. wait. it actually also fails when I do `compton --backend glx`, home-manager provides --config option with non-default location
<sphalerite>
kmein: what waleee said if you just want to use the proprietary firmware with the free driver. If you want to use only the proprietary driver, I think you need to add broadcom_sta to boot.extraModulePackages
<samrose>
In a buildRustPackage context, what is a good example of setting an environmental variable like `RUST_SODIUM_LIB_DIR` (points to /nix/store location of libsodium)
<sphalerite>
kmein: and probably also blacklist b43 or brcmfmac or whatever the corresponding free driver is
<adamt>
Woah, the documentation for the kafka module (at least in 18.09) is really really really really really dangerous. It uses /tmp/kafka-logs as an example for where kafka stores its logs. Which logs? The ones that's actually the data, and not the regular log.
<therealwaphire[m>
can i make nix not set a password for root at the end of installation?
<yorick>
therealwaphire[m: --no-root-passwd
<therealwaphire[m>
damn
<therealwaphire[m>
that was easy
<therealwaphire[m>
thank you
<Izorkin>
+
knupfer has joined #nixos
symphorien has quit [Quit: WeeChat 2.3]
rauno has quit [Remote host closed the connection]
Makaveli7 has quit [Quit: Leaving]
agander has quit [Ping timeout: 244 seconds]
kreisys has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
Neo-- has joined #nixos
<kmein>
sphalerite: thanks so much, that worked
thc202 has joined #nixos
ij has quit [Read error: Connection reset by peer]
<sphalerite>
adamt: nice! PR would be appreciated :)
<sphalerit>
adamt: although in the default nixos setup /tmp is persistent ;)
timor has joined #nixos
ij has joined #nixos
adfaure has quit [Quit: Page closed]
<timor>
Is it possible to prevent the `systemctl daemon-reload` for user sessions after switching to a new configuration? In our case this fails, because the `su` mechanism does not emulate the user's runtime environment sufficiently.
<countingsort>
hey, i have a `fetchTarball` without a hash in my configuration.nix. from my understanding this validates the tarball for an hour (?). how can i force it to redownload it right now?
knupfer has quit [Ping timeout: 268 seconds]
fendor_ has joined #nixos
fendor_ has quit [Remote host closed the connection]
<kreisys>
Does 'nix-shell --pure' do anything other than clearing the environment? I'm having trouble pulling images from a private docker registry from --pure mode. It can't retrieve the credentials. It's strange because even if I manually copy all the env vars from the non-pure environment into the pure environment 'docker pull' still fails.
fendor has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 250 seconds]
fendor_ is now known as fendor
<fendor>
does someone have a guide on how to develop opengl applications with vscode and cpptools?
<infinisil>
timor: Not really, what specifically is the problem?
lfish has joined #nixos
<hyper_ch2>
what is the rationale of having /tmp persistent by default? every other distro that I've used doesn't do that
<ajs124>
I have a problem with builtins.fetchGit OOMing (on a machine with 32GB RAM) when trying to fetch a rather large git repo. Would the fetchgit from nixpkgs fare better?
<infinisil>
hyper_ch2: You mean why `boot.cleanTmpDir` is false by default?
<hyper_ch2>
infinisil: yes
<therealwaphire[m>
<freenode_yor "yep, linux 4.20 fixes the proble"> which problem?
<etu>
I know that archlinux suggests to have /tmp as a tmpfs as default, but that's not always what you want on NixOS if you're doing big builds etc.
hsrthsrthsrt has quit []
<timor>
infinisil: Hard to tell. We have a pretty heavily configured pam setup here. It is set up so that sudo works without any problems. The journal indicates that the default pam stack for su gives some errors, but it is hard to tell what influence this has on the commands that are supposed to run in the user scope. But in general, after system upgrade, user services misbehave, and I wanted to test whether turning off the reload will improve this.
<hyper_ch2>
infinisil: I'm tempted to try the zol trim patch
nuh^ has joined #nixos
<infinisil>
timor: I see. The only way I can think of is to modify a nixpkgs clone directly and use that for your system instead. Maybe you could also open an issue in nixpkgs
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
<lfish>
hello, I'm trying to set a static ip in my nixos box. I put this in my configuration.nix https://pastebin.com/fXQ8gUbN and I don't get the specified ip. Is that what I'm supposed to do? btw wlp3s0 is the name I get from ifconfig
<timor>
infinisil: Thanks!
<bgamari>
how does one coerce Nix to allow me to write a string referring to a derivation path?
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<bgamari>
I'm just trying to emit a JSON object containing a list of derivation paths
<bgamari>
but Nix claims "error: the string '/nix/store/z1x0m12yx4abzz2pg8ng6gdrdqalxzjv-aeson-1.4.2.0.drv' is not allowed to refer to a store path (such as '=/nix/store/z1x0m12yx4abzz2pg8ng6gdrdqalxzjv-aeson-1.4.2.0.drv'),"
<dmj`>
bgamari: derivations have a string representation I believe. So if you do something like foo = "${theDerivation}" it should work
<bgamari>
dmj`, I'm already doing that, sadly
<bgamari>
I was hoping it would be that easy
<ajs124>
can you paste your code somewhere?
<bgamari>
sure
thc202 has quit [Ping timeout: 268 seconds]
<bgamari>
ajs124, error: the string '/nix/store/z1x0m12yx4abzz2pg8ng6gdrdqalxzjv-aeson-1.4.2.0.drv' is not allowed to refer to a store path (such as '=/nix/store/z1x0m12yx4abzz2pg8ng6gdrdqalxzjv-aeson-1.4.2.0.drv'),
<emily>
how up to date is https://nixos.wiki/wiki/NixOS_on_ZFS / does anyone have recommendations for any other material on setting up a full-ZFS NixOS system, possibly with LUKS encryption?
<srhb>
emily: Luks is pretty straightforward with one major gotcha *. Just do the luks stuff before you create a "regular" zfs setup with the pool on /dev/mapper/crypt or whatever.
<srhb>
emily: The gotcha is that nixos-generate-config will *not* pick up the luks stuff at all.
<emily>
right
<srhb>
emily: So you'll need to do all the initrd.luks stuff yourself after generating the config.
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « llvm7: build with gcc6 on 32-bit linux »: https://git.io/fhNVA
henrytill[m] has joined #nixos
<emily>
not so sure I want to try setting up LUKS at all on this, it's a server so I'd need the early sshd in initrd kerfuffle -- though I remember NixOS having support for that?
<srhb>
Oh, and regarding boot on luks, or even boot-on-zfs-on-luks, I never even attempted that.
<srhb>
emily: Yeah, it's also in boot.something.
nuh^ has quit []
<srhb>
emily: boot.initrd.network.ssh.*
<aanderse>
fwiw nixos on zfs without encryption is a breeze...
ubert has quit [Quit: Leaving]
<emily>
oh, I'll keep /boot unencrypted.
<srhb>
Yeah, it's pretty trivial then.
<srhb>
I *think* encrypted boot on luks is too, but I never attempted it, so I feel bad recommending it.
<srhb>
boot-on-zfs-on-luks is more of a ??? to me.
<emily>
now I'm actually wondering whether this Hetzner hardware even supports UEFI at all
<srhb>
Does that matter though?
<srhb>
(I don't recall if they support it, but I don't think it alters the NixOS side of things much aside from the fact that systemd-boot is out)
<emily>
no, just I'm so used to using systemd-boot as a bootloader in my desktop system nixos config
<srhb>
Right :)
<ajs124>
srhb, if you do root-on-zfs-on-luks it's basically like any other fs on top of luks
agander has joined #nixos
<srhb>
ajs124: Ok :)
<emily>
(I've been NixOS-on-desktop for a while but am just now moving server over)
<srhb>
ajs124: I do have root on zfs on luks, what I'm wondering about is /boot
<emily>
srhb: re /boot-on-ZFS-on-LUKS, tbh I don't know why you'd want to do that. who would trust whatever gnarly ZFS implementation is in GRUB?
<srhb>
emily: Switching to grub is trivial when you're not doing something exotic fwiw :)
<srhb>
emily: Yeah, exactly my thought.
<emily>
I prefer to get from the firmware to a linux kernel with the minimum of orchestration fuss required and then do all the "fancy" boot logic in an initramfs
<srhb>
Yep yep, agreed.
<srhb>
What I'm doing now on basically every system is: /boot on raw disk, swap on raw disk (but setting up random encryption at each boot), then a luks partition with a zfs pool on.
<srhb>
It's really simple and easy to wrap my head around.
<bgamari>
how can one determine whether a derivation has been realised?
<srhb>
bgamari: ls /nix/store/yourhash?
<bgamari>
srhb, well, it might have been instantiated
<bgamari>
but the build might have failed
<srhb>
bgamari: Right, but the outhash and the drv hash are different.
<bgamari>
fair enough
<bgamari>
srhb, so nix-build will delete $out if the realisation fails?
<srhb>
bgamari: Unless you change an option that probably should never have existed, yes :)
<bgamari>
--keep-failed?
<srhb>
No, that just keeps it in /tmp
<srhb>
It's more exotic, and I forget what it is.
defolos[m] has joined #nixos
<bgamari>
alright, well I guess I don't need to worry about this
o1lo01ol1o has joined #nixos
<srhb>
bgamari: So yeah, the quick way is something like stat $(nix eval --raw nixpkgs.hello)
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « plantuml: 1.2019.0 -> 1.2019.1 »: https://git.io/fhNw6
random_yanek has joined #nixos
sigmundv__ has quit [Ping timeout: 255 seconds]
ddellacosta has joined #nixos
<Taneb>
Is there a way I can override which version of haddock is used, at all?
<samrose>
probably obvious to many here, but what would cause something like `bash: result/bin/<binary>: Permission denied` when I am patchelf-ing an existing binary?
<edef>
the nix store is read-only
<edef>
`result` is presumably a symlink into the store
defolos[m] has left #nixos ["User left"]
agander has quit [Ping timeout: 240 seconds]
ij has quit [Ping timeout: 246 seconds]
hyper_ch2 has quit [Quit: Page closed]
Ariakenom_ has quit [Ping timeout: 250 seconds]
<samrose>
edef: yes, so how would one achieve running an already built binary that is installed in nix store?
<srhb>
samrose: so far so good. Then it's probably related to some bad patchelfing. I don't recall exactly what errors might cause it, but ldd and readelf will probably also help debug.
<srhb>
samrose: (Maybe a wrong loader location will cause this? Can't recall)
<samrose>
others here might have comments with far more expertise about whether this actually could work in the nixos context or not
<samrose>
I spent some time looking at nixos-container and systemd-nspawn before I set it aside as too much extra cruft in what I am doing
<samrose>
samueldr: you mentioned "unless I'm wrong "Permission denied" is the error to expect from the (ld-linux) interpreter not being found" do you have some clues on how I can diagnose this?
<clever>
samrose: what does `file result/bin/holochain` report?
ng0_ has joined #nixos
<clever>
vaibhavsagar: you could just run docker on the real host, and then expose /var/run/docker.sock to the nixos container?
<hyper_ch2>
and you really think an ordinary average computer user like me understands that? :)
<gchristensen>
not necessarily, no
<hyper_ch2>
thanks, I have it bookmarked
<gchristensen>
I don't fully grasp it either
<hyper_ch2>
hmmm, when did I upgrade last time to master.......
infinii has quit [Ping timeout: 246 seconds]
<hyper_ch2>
so, just added correct sha256 for the trim patch
<hyper_ch2>
in my zfs default.nix
<slack1256>
fetchFromGithub downloads a tar.gz file, yet on the web page of github I can only get a .zip file. Does anybody know how to get the tar.gz file?
<gchristensen>
change the URL from a .zip to .tar.gz
<hyper_ch2>
clang has building issue on nixos master cannot build derivation '/nix/store/1baj0hyk5ana1vb9ma7i24rar5z9wbn3-clang-wrapper-7.0.1.drv': 1 dependencies couldn't be built
<hyper_ch2>
lets switch to unstable then
vidbina has quit [Ping timeout: 240 seconds]
<hyper_ch2>
now how to do that
<slabity>
clever: Is there an easy way to extract that optionsJSON using `nix eval` or something like that?
<clever>
gchristensen: page 11, it mentions every vdev has a 3.5mb hole for boot code, that could allow embeding grub stage 1.5 into the zfs device
<gchristensen>
nice
<clever>
gchristensen: that would just require grub-install to understand that, and then boot.loader.grub.device = "/dev/sda1"; i think
<clever>
slabity: nix-build '<nixpkgs/nixos/release.nix>' -A options should do it
slack1256 has quit [Remote host closed the connection]
jomik has joined #nixos
thblt has joined #nixos
<jomik>
Waow... A revision has disappeared from `NixOS/nixpkgs` O.o Specifically `11cf7d6e1ffd5fbc09a51b76d668ad0858a772ed` which I used as unstable.
<{^_^}>
jomik: 1 week, 3 days ago <wedens> in dunst (U) means notification has url, (A) means it has actions (which you can access via hotkey). you can disable it via `show_indicators = false`
<slabity>
clever: Thanks. That works perfectly
<jomik>
wedens: OH! Thanks for that - 1 week and 3 days ago :P I have been sick.. :)
rauno has joined #nixos
janneke has quit [Quit: janneke quits Mes'sing]
<samueldr>
jomik: was it part of a nixpkgs branch or part of another github repo forked from nixos?
<hyper_ch2>
unstable doesn't seem to like me either configure: error: pugixml.hpp not found. If you do not have pugixml installed as system library, you can use the copy of pugixml distributed with FileZilla by passing
<gchristensen>
jomik I see it okay just fine, from here
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhN6l
<jomik>
That is true... Ah, shit. I used blob instead of tree for the url.
<jomik>
Thanks! Wonder why my nix-shell environment fails then.
<clever>
jomik: what error does it give?
<thblt>
Hello, I have a small issue with latest unstable. I have programs.light.enable = true; in my configuration.nix, which is supposed to install light with a "setuid wrapper". But light -S [percentage] only works with sudo, and requires root password, which I assume is not expected. Am I missing something or should I report a bug?
<clever>
thblt: what does `which light` report?
<jomik>
None. And... Now I switched revision, it works. I switched back, and now it works...
<thblt>
clever: /run/current-system/sw/bin/light
<thblt>
<clever>
jomik: and does it still work after a reboot?
<thblt>
clever: same with which -a, btw
<jomik>
Good point, let me try that.
shibboleth has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
_kwstas has joined #nixos
jomik has joined #nixos
<jomik>
Well, it works after a reboot too. False alarm then, odd.. Thanks for the quick confirmations tho :D
reinhardt has joined #nixos
janneke has joined #nixos
alex`` has quit [Quit: WeeChat 2.4]
<samueldr>
thblt: did you remove `light` from systemPackages? (not sure if it could cause issues)
<samueldr>
ah, it does have release notes, sorry for the nastygram dtz :)
hyper_ch2 has quit [Quit: Page closed]
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-18.09: https://git.io/fhN6X
nckx has joined #nixos
<dtz>
Haha np. Also I don't know what you're talking about yet, so now I'm looking for nastygrams haha
<samueldr>
I deleted the comment, you might have it in your mail
aswanson has quit [Quit: WeeChat 2.2]
<samueldr>
(it was: "This needs a release-note", while it did have it :/)
Guest57456 is now known as eliasp
<dtz>
Oh haha hey as long as it's not like "sick and tired of your shit, dtz you hamster-brained buffoon" or similar unnecessarily personal haha, all good. Especially since clearly working towards common good/improvement :). Thanks for the quality control!
_kwstas has quit [Quit: _kwstas]
_kwstas has joined #nixos
aswanson has joined #nixos
freeman42x has joined #nixos
Ariakenom has joined #nixos
dejanr has joined #nixos
<dejanr>
evening all, anyone have idea what could possible go wrong with this:
<dejanr>
ln: failed to create symbolic link '/nix/store/d5s8ykvph9pajah9g95mnz2sb6lyih11-user-units/pulseaudio.service': File exists
<dgarzon>
Hi, I am trying to use `pipenv` within a `nix-shell`, and running `pipenv lock --pre` results in `/nix/store/ym0r4mdxf3imislzqvxx4i7snqcfxm57-python3-3.7.2/bin/python3.7: No module named virtualenv`. Has anyone ran into this issue before? I cannot find anything in the documentation or issues :(
work_ has quit [Quit: Connection closed for inactivity]
domogled has joined #nixos
_kwstas has quit [Quit: _kwstas]
_kwstas has joined #nixos
<__monty__>
dgarzon: Only thing I know is python moved from virtualenv to venv around py3k.
<samrose>
why would it be that building a cargo build --release on ubuntu would result in ldd output bearing no reference to rust executable, but the same ldd output on nixos results in the rust executable not being able to run?
rpg has joined #nixos
alex`` has joined #nixos
<samrose>
`result/bin/holochain -bash: result/bin/holochain: No such file or directory`
<__monty__>
Hmm, having a haskell issue. I already jailbreaked haddock-library but apparently it's not enough? http://ix.io/1Cbm
timor has quit [Ping timeout: 255 seconds]
_kwstas has quit [Quit: _kwstas]
<clever>
samueldr: what is the interpreter now, under `file result/bin/holochain`?
<samueldr>
samrose: ^
_kwstas has joined #nixos
waleee has quit [Quit: WeeChat 2.4]
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
nefix has joined #nixos
<nefix>
Hello! I'm starting to migrate my home servers to NixOS + NixOps. I have one question: can a machine have two "profiles" activated simultanioulsy?
<clever>
nefix: only one system profile can be active at once
<tilpner>
That depends on what you mean by profile
<nefix>
I'm thinking of separating into two different expressions: one for my personal projects and one for "work" projects
<tilpner>
The modules at <nixpkgs/nixos/modules/profiles>? Sure
<nefix>
clever: I see. So I should put everything inside the same network
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #43300 → [wip] haskell: add core libraries logic to remove need for global package db → https://git.io/fNTR7
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
nefix: you can use the imports list to merge several nixos files together into a single machine
dgarzon has quit [Quit: dgarzon]
<nefix>
Also, can I specify somehow the IP addresses for real machines? I mean, configure them through NixOps
<samrose>
clever right on thank you I owe you like a 24 pack of beer now
o1lo01ol1o has joined #nixos
wfranzini has joined #nixos
slack1256 has joined #nixos
<slack1256>
Where should I document some configuration gotchas a package requires to function on nixos? as comments on the default.nix?
knupfer has joined #nixos
<clever>
slack1256: thats usually done with a nixos module that handles it for you, like programs.light.enable
<slack1256>
Mmm got it.
vmandela has left #nixos ["Leaving"]
o1lo01ol1o has quit [Remote host closed the connection]
dgarzon has joined #nixos
o1lo01ol1o has joined #nixos
<hyper_ch>
Mic92: are you there?
<dgarzon>
I think the better way to ask my question is the following: is there a way to have a nix-shell with PYTHONPATH set to all python packages I include? Pipenv does not depend on `virtualenv`, but if it is available in the PYTHONPATH, it should pick it up!
agander has joined #nixos
<mdash>
dgarzon: hmm. what are you using pipenv/virtualenv to do?
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #56471 → scfbuild: bump to latest git (Jun 2017) → https://git.io/fhNPv
<dgarzon>
i am not a python developer so i don’t know the details, but a developer came to me telling me about this issue, and now I need to fix it for him :(
<dgarzon>
Given `echo $PYTHONPATH` is empty through `nix-shell`, I wanted to populate it with `virtualenv` to see if that removes the error we are getting
<bgamari>
do we have any way to remove VERNEED information from object files?
<bgamari>
it doesn't seem like patchelf supports this
<bgamari>
but surely I can't be the first one with this need
<{^_^}>
[nixpkgs] @peti pushed commit from @artempyanykh to haskell-updates « ghc-8.4.4: use sphinx 1.7.x to build the documentation »: https://git.io/fhNPn
shibboleth has quit [Quit: shibboleth]
<{^_^}>
[nixpkgs] @peti pushed commit from @artempyanykh to master « ghc-8.4.4: use sphinx 1.7.x to build the documentation »: https://git.io/fhNPc
<gchristensen>
matix: it is not a nice user experience, and should not be done lightly -- so...probably not nice to have it be an option.
Glider_IRC_ has joined #nixos
leotaku has joined #nixos
<pie__>
gchristensen, does buildEnv not work with nix-shell?
<matix>
gchristensen: boot.cleanEverythingExceptBootHomeNixRootVarIDestroyAllDataYouHaveBeenWarned = "I have been warned";
<gchristensen>
no
Ralith_ has quit [Remote host closed the connection]
scientist has joined #nixos
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie__>
lol user experience
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<pie__>
ugh, sorry that was really snarky ;~;
<gchristensen>
thanks, pie__
Ralith_ has joined #nixos
<pie__>
:( im sorry, its not that bad actuallz
<gchristensen>
matix: though, I delete /root and /var too
Glider_IRC__ has quit [Ping timeout: 258 seconds]
<scientist>
hey guys I was just wondering how to change my keyboard layout in nixos, for example: dvorak, in ubuntu I would just change it in the system settings gui
<hyper_ch>
clever: for zfs unstable with trim?
<monotux>
I'd like to add a line to my ssmtp config file (setting the authmethod), is there any nice way to do that in my configuration?
<pie__>
gchristensen, fwiw i might have just never done any nontrivial linux sysadmin ever if not for nix
<pie__>
scientist, i mean, how did you install nixos? ;)
rpg has joined #nixos
<gchristensen>
matix: the only user which has data persist is root and me, so the declartive ones can regenerate each time ... and get their data erased :P
<{^_^}>
[nixpkgs] @dotlambda pushed to master « papis: bash completions are now installed automatically »: https://git.io/fhNXm
<scientist>
pie__: took me forever but finally got it installed, I'm just so used to ubuntu, changing the keyboard layout in ubuntu is much easier
<pie__>
scientist, you could probably still do that through the usual interface
<pie__>
if you use gnome or kde or whichever
<pie__>
setxkbmap is also a temporary option
<gchristensen>
matix: the setup I have with the erasing root feels pretty exciting for reasons, like if the bootloader dropped me in to a linux with basic network and rebuilt the config during the boot process from my github account -- then letting another user log in would get their own config applied automatically in the same way ...
<gchristensen>
sort of a google chromebookification of nixos
<mdash>
scientist: pretty much everything in nixos is done (or can be) via configuration.nix
<scientist>
pie__: I think I am usiing plasma5
<mdash>
gchristensen: and now that nixos is an option on netboot.xyz it's even more cool of an idea
<clever>
gchristensen: i had another crazy idea recently, what if the initrd used `nix copy` to copy the closure of the active generation, to a tmpfs, and then ejected the boot media
<pie__>
or the windows thing :P<gchristensen> sort of a google chromebookification of nixos
<gchristensen>
clever: that'd be cool indeed!
* gchristensen
is currently backing up his laptop to install erase nixos, install windows
<clever>
gchristensen: ive manually done similar before with gentoo, my entire rootfs was a squashfs, that i would copy to ram on bootup
<clever>
elvishjerricco: yeah, the entire os, and all user-data, lived in ra,
<matix>
i was thinking of cleaning up most of /var on boot but those declarative profiles got me thinking
vk3wtf has quit [Ping timeout: 258 seconds]
<matix>
didn't realize that if all the data is gone anyway then it doesn't matter if uid changes
<scientist>
mdash: well just like the ubuntu instructions state, I make a copy of the existing file, manually switch the keys, then switch to that file, I can easily do it in ubuntu, but I have no idea how to do it in nixos
<clever>
hyper_ch: that boot stuff is from my pre-nixos days, so it wont be of much use
<scientist>
?
<hyper_ch>
clever: boot stuff? I mean zfs unstable trim patch
<pie__>
(people should rebuild qubes and TAILS with nix ;P)
<clever>
hyper_ch: oh, yeah, i got the link
ij has joined #nixos
<hyper_ch>
and by config I meant nix expression :)
<clever>
hyper_ch: thought you where asking for different config, about what i mentioned above
<mdash>
(I wanted to map Caps Lock to Hyper_L and Mod3 but didn't yet figure out how to get custom xkb rules into my nixos config)
<hyper_ch>
clever: well, my notebook hasn't crashed yet with manual trimmed issued and autotrim set a zpool option
<clever>
hyper_ch: trim can have weird edgecase bugs, bug luckily zfs has scrub, so you can audit all data to verify its still there
<scientist>
mdash: i'm burnt out right now, i'll try again later
<mdash>
scientist: yeah me too
<hyper_ch>
luckilly zfs has snapshots and zfs send/recv :)
<hyper_ch>
and with the trim I see now the difference between pro and evo samsung SSDs
<clever>
hyper_ch: snapshots alone dont help you when trim just deletes the data a snapshot refers to
<mdash>
more generally, can someone recommend how you create a derivation that just takes another derivation's output and adds/modifies files in it?
<ottidmes>
mdash: with regards to your "takes another derivation's output and adds/modifies files in it" question, maybe just use buildEnv and have your modifying derivation have higher prio?
jackdk has joined #nixos
ym555 has joined #nixos
dgarzon has quit [Quit: dgarzon]
alex`` has quit [Read error: Connection reset by peer]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis_ has joined #nixos
ym555 has quit [Quit: leaving...]
matijja has quit [Ping timeout: 250 seconds]
alex`` has joined #nixos
drakonis has quit [Ping timeout: 259 seconds]
<scientist>
hey guys how do I scroll up in weechat
<edef>
pgup?
<scientist>
edef: thanks, just installed weechat yesterday, still getting used to it
alex`` has quit [Read error: Connection reset by peer]
<monotux>
that much I get, but how do I actually do that? would that require a overlay or something similar?
<monotux>
I'm probably missing something obvious here :)
<clever>
monotux: thats more about how you would fix nixpkgs properly, but you can use the ugly hostname trick while waiting for nixos-unstable to update
<monotux>
aaaaah
<monotux>
I thought I could add the extra option to that module inline from my configuration.nix file, if that makes sense
<matix>
monotux: you sort of can, if you use overlays
<matix>
oh wait nvm
<matix>
it's module not a package
orivej has quit [Ping timeout: 244 seconds]
wfranzini has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
<monotux>
I also just read the manual and discovered that ssmtp only supports LOGIN and CRAM-MD5, and not PLAIN that I need
<emily>
the thing where the initrd ssh host key is exposed in the nix store kinda sucks ._.
<monotux>
matix, do you have anything to recommend reading for overlays? the amount of info to understand nixos is great but I'm curious and would like to understand that part as well :)
ddellacosta has joined #nixos
<makefu>
monotux: the wiki is quite nice with a lot of practical information about overlays as well as an explanation of self: super: -> https://nixos.wiki/wiki/Overlays
<monotux>
thanks, I'll have a look!
<matix>
tbh I find the nix pills very informative
kvda has joined #nixos
<matix>
even though it doesn't touch on overlays per se but it still covers most of what you need to know
wfranzini has joined #nixos
<makefu>
the pills are absolutely fantastic, yeah.
<monotux>
I've found that they are a bit hard to get into, but it might just be that there's so much other info at this stage