<fearlessKim[m]>
clever I get that there is a permission error, I just don't know how to work around that. Folders in /nix/store are owned by root so some parts of the nix process must be run as root (and the others as nixbuild),, I dont know which though. I would like to be able to do the "cp" call without changing my folders permission
Sonarpulse has joined #nixos
<clever>
fearlessKim[m]: do you even need fetchgitlocal?, could you just use that directory directly?
drakonis has quit [(Read error: Connection reset by peer)]
<fearlessKim[m]>
clever: well that's another concern, it's the kernel I develop on via a nix-shell. As such it has the patches applied and so when I try to nix-build it the config fails to apply the patches and the build process fails. I want to use fetchgitlocal so that unstaged changes (aka the patches) get ditched and that the folder can build easily.
<fearlessKim[m]>
I have been trying to change the kernel derivations to be more flexible, aka build the config along the way but it's a huge undertaking
MP2E has quit [(Remote host closed the connection)]
MP2E has joined #nixos
<samueldr>
fearlessKim[m]: can you `namei -nom /home/teto/mptcp/.git` and gist/pastebin the output?
<fearlessKim[m]>
(I can compile it from the nix-shell via $buildPhase but then I also need to nix-build at the same time so that nixops can launch my custom kernel)
<samueldr>
(obviously, man namei beforehand if you don't know what it does)
<samueldr>
if you chmod o+x /home/teto, and try again fearlessKim[m]
<petersjt014[m]>
are there any quirks/ specific things I should look out for with video drivers?
<petersjt014[m]>
right now I have no control over my screen brightness. it just kinda changes when it feels like it
<petersjt014[m]>
I can post my config file if that helps
<samueldr>
petersjt014[m]: please do can't hurt, and especially, the hardware you're using
<samueldr>
screen brightness, I'm assuming it's a laptop
<samueldr>
intel gpu? nvidia, amd?
<fearlessKim[m]>
samueldr: that fixes it, but I would rather have nix copy (even if it s temporary) it into the store as root so that I don't have to change my HOME permissions. How can I do that ?
<petersjt014[m]>
it looks like a rebuild I started earlier is still going. I'm gonna have to give it a minute or five.
tempeh has quit [(Ping timeout: 255 seconds)]
tempeh has joined #nixos
fakenullie has quit [(Remote host closed the connection)]
<ldlework>
https://nixos.org/nixos/manual/index.html#sec-modularity "Note that both configuration.nix and kde.nix define the option environment.systemPackages. When multiple modules define an option, NixOS will try to merge the definitions. In the case of environment.systemPackages, that’s easy: the lists of packages can simply be concatenated."
<ldlework>
Actually, the example code shown does not define environment.systemPackages
<ldlework>
error in docs?
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<petersjt014[m]>
messy and full of funtime screen glitches but otherwise pretty okayish
<ldlework>
samueldr, In the section about "Abstractions", "What if you need more than one argument, for instance, if we want to use a different documentRoot for each virtual host? Then we can make makeVirtualHost a function that takes a set as its argument, like this:" It seems weird to describe the function with multiple arguments as taking a "set". The syntax for passing multiple arguments just looks like set syntax. In reality, when the function had
<ldlework>
one arugment, you could pass a set to it.
acarrico has quit [(Ping timeout: 248 seconds)]
<ldlework>
probably a nitpick though
hariel has quit [(Remote host closed the connection)]
Stammon has joined #nixos
Maxdaman1us is now known as Maxdamantus
moet has joined #nixos
<Stammon>
Hi There. I've got some questions related to my nixos and homemanager configuration.
<Stammon>
First of all, I've got 3 screens which I want to be put in the right order and one of them rotated. I expect this can be configured in the nixos configuration. I'm missing the correct option to tell the xserver my settings though.
<moet>
is there something like ghcWithHoogle for the current cabal2nix generated expression?
johnw has joined #nixos
reinzelmann has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
aw has quit [(Quit: Quitting.)]
spacefrogg has quit [(Remote host closed the connection)]
aw has joined #nixos
spacefrogg has joined #nixos
alhariel has joined #nixos
<fearlessKim[m]>
Stammon: you can add in home-manager xsession.initExtra to run xrandr commands
<fearlessKim[m]>
STHG/generate-config.pl). any idea how to work around that ?
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
endformationage has quit [(Quit: WeeChat 1.9.1)]
orivej has joined #nixos
pie_ has quit [(Ping timeout: 276 seconds)]
moet has quit [(Quit: leaving)]
<etu>
Sigh... Linux 4.14 requires 5.2.1 of vbox which requires vagrant 2.0.1... which breaks for me and I don't have the time to debug it... Will try to make time for that soon
<Stammon>
fearlessKim: Thats what I'm currently doing. Isn't there a way where I can write my configuration in nix instead of using a xrandr command
MP2E has quit [(Remote host closed the connection)]
<fearlessKim[m]>
had to hack a bit but ${generateConfig} does the trick
ma27 has quit [(Ping timeout: 276 seconds)]
thc202 has joined #nixos
Harpalus has joined #nixos
ssmike has joined #nixos
ssmike1 has joined #nixos
ssmike has quit [(Ping timeout: 264 seconds)]
ssmike1 is now known as ssmike
<petersjt014[m]>
Anyone know how to change the backlight kind? Mine is acpi0 when I'm pretty sure it shout just be 'intel'
Harpalus has quit [(Quit: Leaving)]
<petersjt014[m]>
Should i rerun the hardware scan or something?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #32098: treewide: Use `binPrefix` instead of `prefix` for platform name prefixes (master...binPrefix) https://git.io/vbe2K
<petersjt014[m]>
actual_brightness is wrong, and nothing sofar is able to change the actual screen
jensens has joined #nixos
<MichaelRaskin>
Hm. normally, if I load all the feasible modules, echoing 1 and the contents of max_brightness to brightness gives different outcomes in at least one such directory.
FRidh has joined #nixos
<petersjt014[m]>
somewhere in the config files for the graphical installer is an option that enables the correct intel driver or whatever it is
rosa has joined #nixos
<rosa>
I need help
<MichaelRaskin>
Do you have this options to load all the drivers enabled?
<MichaelRaskin>
Should be something about udev, don't remember what exactly.
vincent_vdk has quit [(Ping timeout: 240 seconds)]
<rosa>
how does nix os patch the zle .so modual loading as zsh seems to make no syscall to load/access it
<petersjt014[m]>
I think trying all of the drivers is the default
<jluttine>
i'm writing a derivation for python application (salmon-mail) and then a salmon service based on that. i want users to be able to specify python packages that the salmon can find. how should i do that? override salmon build inputs in the service config?
<makefu>
jluttine: you could extend the pythonpath in the systemd service
<makefu>
or you could create a python environment
asuryawanshi has quit [(Remote host closed the connection)]
<makefu>
i have for devpi + devpi web: pkgs.python3.buildEnv.override { extraLibs = [ devpi-web devpi-server ]; }
<jluttine>
hmm.. is either one more preferred way? or what's the difference
asuryawanshi has joined #nixos
<jluttine>
makefu: doesn't your example modify the build env of all python packages?
davidak has joined #nixos
<makefu>
no, it creates a new buildEnv based on the python3 buildEnv
<fearlessKim[m]>
thanks Ralith
<jluttine>
makefu: ah! ok, thanks! i'll try that
<Ralith>
fearlessKim: if you want libc++, there's llvmPackages.libcxxClang and libcxxStdenv, fwiw, but beware binary compat issues
pie_ has quit [(Ping timeout: 248 seconds)]
ertes-w has joined #nixos
<Ralith>
(you can always override everything you want to use libcxxStdenv of course, if you don't mind lots of compiling; Nix is convenient like that)
joelpet has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
MP2E has quit [(Remote host closed the connection)]
townsend has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<fearlessKim[m]>
could the mix of compiler header generate a "posix_spawn failed: Permission denied" ?
phreedom has quit [(Ping timeout: 240 seconds)]
townsend has quit [(Client Quit)]
<fearlessKim[m]>
my bad the program expects path to binary and not folder
<Shados>
tilpner: That's literally what I'm using, and looking at it now it is wrapped. But either flash doesn't work with firefox-58 or the wrapper is somehow working differently... although looking at it, it shouldn't be, I think?
Capprentice has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vbe6Q
<NixOS_GitHub>
nixpkgs/master 9216f5f Izorkin: zsh-command-time: init at 2017-05-09 (#32083)
NixOS_GitHub has left #nixos []
Lisanna3 has joined #nixos
<hyper_ch>
Hmmm, I have a kvm guest that I setup with virt-manager, now I'd like to assign a usb device to it. It seems to work fine with virt-manager, but when I try to boot it, I get errors
civodul has joined #nixos
FRidh has quit [(Remote host closed the connection)]
<aminechikhaoui>
yeah but I would guess that the point is to not use the bucket
<fpletz>
LnL: yeah, looks like it :)
<vcunat>
whose point?
<LnL>
cloudfront caches stuff to reduce bandwidth costs
<vcunat>
well I only want the ?torrent query, so that would be super-small
flyx has quit [(Excess Flood)]
flyx has joined #nixos
<vcunat>
(and the long-term point of that is to reduce usage of cloudfront and S3)
ertes-w has quit [(Ping timeout: 255 seconds)]
<LnL>
sure, aminechikhaoui's point was just that people shouldn't use s3 directly
ertes-w has joined #nixos
<aminechikhaoui>
yeah
<LnL>
except for the ec2 hydra builders because it's free within the network
Isorkin has quit [(Ping timeout: 248 seconds)]
hamishmack has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vbeST
<NixOS_GitHub>
nixpkgs/staging 1f79b94 Jan Tojnar: glib: recognize NIX_GSETTINGS_OVERRIDES_DIR variable...
<NixOS_GitHub>
nixpkgs/staging 510737c Jan Tojnar: nixos/gnome3: override schemas using env variable...
<NixOS_GitHub>
nixpkgs/staging 337e900 Vladimír Čunát: Merge #31683: glib: Add variable for overriding schemas
NixOS_GitHub has left #nixos []
truh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vbeSN
<NixOS_GitHub>
nixpkgs/staging 1dba3c0 Jan Tojnar: meson: pass library install paths to g-ir-scanner...
<NixOS_GitHub>
nixpkgs/staging 6589519 Vladimír Čunát: Merge #31453: meson: library install paths for g-ir-scanner
NixOS_GitHub has left #nixos []
<sphalerite>
I'm having some trouble with the DPMS options on the console. `TERM=linux setterm --blank force </dev/tty1` worked once, now it's not working, and I don't really get why. Any ideas?
Isorkin has joined #nixos
mumux has joined #nixos
ma27 has joined #nixos
simukis has joined #nixos
alexteves has joined #nixos
<alexteves>
I'm about to buy a custom pc and plan to install nixos on it. How can I tell if which wifi network adapters will work with nixos?
<tommyangelo>
Is any one else having trouble with purescript-0.11.7 ? It fails to compile with a type mismatch error.
Guest52155 has joined #nixos
mumux has quit [(Quit: Leaving)]
mumux has joined #nixos
hamishmack has joined #nixos
fendor has joined #nixos
<hyper_ch>
hmm, did someone get USB assigning to VMs working with qemu/kvm (virt-manager)?
<NixOS_GitHub>
[nixpkgs] grahamc force-pushed unstable-aarch64 from 0ea9e57 to bc9e48d: https://git.io/vSSlm
<NixOS_GitHub>
nixpkgs/unstable-aarch64 bc9e48d Graham Christensen: Netboot: Add aarch64
NixOS_GitHub has left #nixos []
<tomster>
when running nix-shell against a default.nix - will it install packages from the user's nix-channel settings or use the global ones (as defined in /etc/nixos/configuration.nix)? i'm asking because i've set my personal nix-channel to follow unstable but i seem to be getting old versions of the packages when i run nix-shell
<gchristensen>
tomster: /etc/nixos/configuration.nix can't define channels, but: run `nix-info` please?
<tomster>
tar: This does not look like a tar archive
<gchristensen>
that's right
<gchristensen>
if you point it to a URL, it must be a tar. but do you have that directory I asked about?
<tomster>
yes, i do
<gchristensen>
try nix-shell -I nixpkgs=/nix/var/nix/profiles/per-user/tomster/channels/nixpkgs --command fish
acarrico has joined #nixos
zetok has joined #nixos
<tomster>
gchristensen: the fog is beginning to lift, thanks!
<tomster>
it's now downloading a shit ton of new stuff :)
<gchristensen>
great :)
Neo--- has quit [(Ping timeout: 276 seconds)]
erictapen has quit [(Ping timeout: 276 seconds)]
<tomster>
btw do i need to exit a nix-shell before running it again?
<gchristensen>
probably should
<tomster>
what's the best way to update a nix-shell after updating default.nix?
<gchristensen>
can you do me a favor and open an issue on github about this, describing what you were trying to do, how you tried to do it (with a user channel), that it didn't work, and this workaround?
<gchristensen>
(please include the value of the $NIX_PATH env var)
<tomster>
gchristensen: i'm not sure it's an issue, it worked immediately after you told me what to try
<gchristensen>
I gave you a workaround, but I'm pretty sure it is a bug that a user can't override the nixpkgs channel without the workaround
<tomster>
gchristensen: you mean pointing it explicitly to my personal nix profile should normally be redundant?
<gchristensen>
yeah
<tomster>
because implicit?
<tomster>
hm
<tomster>
how can i tell whether i'm currently inside a nix-shell?
<gchristensen>
$IN_NIX_SHELL
<tomster>
i often end up quitting the terminal because i hit ctrl-d once too many...
<tomster>
is there a safer way to end a nix-shell other than hitting ctrl-d?
<tomster>
something like the deactivate command from python's virtualenv for example?
<hedning[m]>
exit
<tomster>
hedning[m]: that's just the same as ctrl-d no?
<hedning[m]>
ah, yeah
<gchristensen>
there is no safety issue
<tomster>
if i exit one time too much i lose my window
<adisbladis>
tomster: I added a little snowflake to my prompt so I know when Im in a nix-shell
<gchristensen>
oh I see
<tomster>
can i update a nix-shell from the inside?
<tomster>
or can i tell *which* nix-shell i'm in? i often move between projects and then try to run project B's tools using project As shell... doh!
ssmike1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #32106: iosevka-bin: init at 1.13.3 (master...iosevka/bin) https://git.io/vbepe
NixOS_GitHub has left #nixos []
<gchristensen>
I use shellHook in a shell.nix help me
Wizek_ has joined #nixos
<adisbladis>
tomster: You could add some stuff to shellHook to set some environment variables
<gchristensen>
things like PS1="(fooproj) $PS1"
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
<gchristensen>
you could do function leave() { exit }
fendor has quit [(Ping timeout: 248 seconds)]
<tomster>
adisbladis but that would be per project then, right?
ssmike has quit [(Ping timeout: 260 seconds)]
ssmike1 is now known as ssmike
<adisbladis>
tomster: Yes it would
<gchristensen>
this is my favorite: HISTFILE = "${src}/.bash_hist";
<tomster>
ah, i thought the reason for default.nix would be that it could be shared as-is between developers
<tomster>
unfortunately, all of this was for naught in this case because the versions inside unstable are still too old (i.e. don't contain the bugfix i'm after)...
<tomster>
i'm using chef/kitchen which is written in ruby, is there a way to install newer versions of ruby gems that haven;t been nixified yet?
<makefu>
this hint could become part of an "Developing with nix-shell" article (which does not exist yet)
<gchristensen>
yeah, makefu
<gchristensen>
tomster: what exactly are you getting from nix? the gem? or chef? or kitchen?
<tomster>
btw if i do `nix-env -i foo` inside a nix-shell will that install it into my profile or into the project?
<tomster>
gchristensen: i install chefdk and vagrant in the default.nix
<gchristensen>
it'll install in to your project
<tomster>
nice!
<gchristensen>
no
<gchristensen>
I didn't mean to say that
<gchristensen>
it'll install in to your _profile_
<tomster>
damn
<gchristensen>
fwiw I never use nix-env, I exclusively use nix-shell and nixos' systemPackages
<tomster>
i want something like a sandbox where i can nix-env install stuff until i have the right stuff and then put that into my default.nix
<tomster>
it's cumbersome to edit the default.nix, exit the shell, re-enter the shell etc.
<gchristensen>
aye, the good news is you only have to do that every so often
<tomster>
currently it's *all* that i'm doing...
<tomster>
i need to get a newer version of test-kitchen otherwise i can't continue to work on this particular problem...
<gchristensen>
yeah but once your shell is good you can stop for a while
<tomster>
true
<tomster>
when i run nix-env -q inside a shell, how can i tell where the package is from?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/vbehN
<srhb>
tomster: You can't really, short of inspecting PATH or something.
ylwghst has quit [(Ping timeout: 240 seconds)]
<phdoerfler>
Hi, quick question: Is this the established way of mounting a CIFS share from NixOS? fileSystems."/mnt/scratch" = { device = "//server/sharename"; fsType = "cifs"; options = [ "credentials=/root/cifs.credentials" "uid=philipp" "gid="users" "x-systemd.automount" "noauto" ]; };
ottidmes has joined #nixos
<gchristensen>
I just assume "it has everything I need for this project" and any time that assumption is violated, I add it to the shell.nix
<tomster>
gchristensen: ok, thanks
<joepie91>
tomster: srhb: you can access the `buildInputs` env var from within a nix-shell
<tomster>
gchristensen: is it better to use shell.nix or default.nix?
<joepie91>
that shows you which packages are provided by it
tmaekawa has joined #nixos
<joepie91>
you can derive available things from that
<gchristensen>
tomster: I use shell.nix
<joepie91>
esp in combination wiht PATH
<joepie91>
wwith*
<joepie91>
with***
<ottidmes>
Has anybody used sedutils on NixOS? I am trying to leverage the builtin encryption of my new SSD for which I apparently have to use sedutils instead of LUKS
<tomster>
hm. echo $buildInputs shows nothing
<tomster>
but that's probably a fish-shell issue
mizu_no_oto has joined #nixos
<joepie91>
no idea about fish, but it works for me :P
tmaekawa has quit [(Client Quit)]
oida has quit [(Ping timeout: 240 seconds)]
<tomster>
ah, it does work
<tomster>
i wasn't inside the shell
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vbvvo
<NixOS_GitHub>
nixpkgs/master 2b74650 Tim Steinbach: hipchat: 4.30.0.1663 -> 4.30.2.1665
NixOS_GitHub has left #nixos []
<joepie91>
heh
<tomster>
ok, so how can i add an particular package in a newer version than available on the default channel?
<gchristensen>
is this re chefdk?
<tomster>
IOW i really, really need chefdk 1.3.43 for this project but untstable and stable only list 1.3.40 as latest
<tomster>
gchristensen: you guessed it :)
<gchristensen>
yeah hold tight a minute, I'm seeing about upgrading chefdk
oida has joined #nixos
<tomster>
on my macbook i would simply do 'gem install --update chefdk' but i no longer bring my macbook to work ever since i switched to nixos two weeks ago :)
<gchristensen>
would chef-dk (2.3.4) work?
<tomster>
i have to say that besides such hiccups like this here i'm super, super happy with nixos
<tomster>
gchristensen: hm, the latest release is 1.3.43
<tomster>
ah and there is no 'stable' per se, just actual releases?
periklis has quit [(Ping timeout: 240 seconds)]
<gchristensen>
release-17.09 tracks our current stable release
<tomster>
gchristensen: and you are grahamc? :)
<gchristensen>
tomster: can you run nix-shell -I nixpkgs=https://github.com/grahamc/nixpkgs/archive/8962b293c5421e53472486995822280a65643010.tar.gz --command fish
<gchristensen>
and see if that chefdk works for you
<tomster>
most certainly!
<gchristensen>
I am grahamc on github :)
fendor has joined #nixos
<tomster>
so my super deductive powers tell me you name is graham christensen?@? :-D
<gchristensen>
:)
<tomster>
your secret identity has been revealed!
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
ckauhaus has joined #nixos
<gchristensen>
:)
<tomster>
gchristensen: seriously, if this works, i would simply add custom package definitions to my projects in the future?
<gchristensen>
well you can do that, sure
<tomster>
and then reference those locally
<makefu>
*throws ninja smoke bomb on the ground and disappears into the darkness*
<gchristensen>
but it'd be better to get the patches upstream
<tomster>
but i have no idea about ruby... i just use chef because that's what we use here where i work
ma27 has joined #nixos
webchat310 has joined #nixos
ma27 has quit [(Client Quit)]
ma27 has joined #nixos
<gchristensen>
ah one moment
miko__ has joined #nixos
<gchristensen>
tomster: can you run nix-shell -I nixpkgs=https://github.com/grahamc/nixpkgs/archive/3d8d5f5a0d51a0d1d57baa576680deac7addd966.tar.gz --command fish
<tomster>
on it
<webchat310>
Hi I got a startup question.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbvUN
<NixOS_GitHub>
nixpkgs/master ba3a792 Orivej Desh: fish: enable parallel building
<webchat310>
I choose a different generation than default when booting (from the boot menu) in this case #13 but when I logged in and list generations it says 51, which is my latest. How can this be? What have I missed?
<tomster>
gchristensen: false flag, i got the same error when running chef --version in the old version, too
<tomster>
the command itself is working now!
<gchristensen>
woot
<webchat310>
a difference between 13 and 51 is what kernel is running. uname -a does agree with my choise on boot
<gchristensen>
webchat310: how are you listing generations?
<webchat310>
which gives me a list and points out current
<webchat310>
I also did ls -l on the profile directory
<webchat310>
ls -l /nix/var/nix/profiles/system
<webchat310>
which points to 51
<gchristensen>
hmm maybe current should say latest
<webchat310>
My original problem is something else but I got hung up on this because it looked a bit strange and I think I got a missmatch between kernel and the profile I'm running
<webchat310>
my original problem is that in X no windows are popping up, which I believe is after an --upgrade which bumped the kernel version. so I tried to load something old and work my way to the problem.
ma27 has quit [(Quit: WeeChat 1.9.1)]
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<gchristensen>
yikes :/
<gchristensen>
tomster: can you comment as such on the issue?
<tomster>
gchristensen: ok, it's working now!
<gchristensen>
tomster: also please do open that issue about channels and the workaround
<tomster>
gchristensen: i still have an error but it's a different one :)
<tomster>
i'm moving forward
<tomster>
i would like to wrap this up and do a quick recap with you, if you don;t mind
<hyper_ch>
my internet is down :(
<gchristensen>
sure
ylwghst has quit [(Ping timeout: 252 seconds)]
<tomster>
a) i will re-create the issue about the channels (i.e. start with a fresh project)
<tomster>
b) using nix-shell doesn't actually populate the profile that was active when entering the shell, correct?
ma27 has joined #nixos
<tomster>
c) but it does (or at least should) use the channel of that profile to install any missing packages?
<tomster>
so the same shell.nix will produce different results depending on the channel configuration of the user entering the shell?
<gchristensen>
a) thank you, b) correct, it doesn't touch the profile, it only manipulates environment variables, c) basically yes, but a bit more nuance to it
bgamari has joined #nixos
ylwghst has joined #nixos
<gchristensen>
a) the only thing you need to do to recreate the issue is run nix-shell without `-I`
<tomster>
gchristensen: re: a) doing that now
<tomster>
how can i verify whether it did the right thing or not?
drakonis has joined #nixos
<gchristensen>
ehh sorry it is hard for me to get in to now, as I've started my work day
<tomster>
gchristensen: no worries, thanks for taking the time to help me! much appreciated!
gleber_ has joined #nixos
<tomster>
have a good (work) day :)
<gchristensen>
you're welcome! :) please do comment on PR #32107 that it works for you
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yuriaisaka opened pull request #32108: libskk: init at 1.0.2 (master...pr-libskk-init) https://git.io/vbvIJ
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat closed pull request #31991: gnome3.gsettings_desktop_schemas: do not depend on gnome-backgrounds (staging...eschew-backrounds) https://git.io/vFxyX
<vcunat>
gchristensen: stamps of your public pushes are watched at work? :-) I think it won't hurt if the PR is open for half a day. Maybe some other reviewer from the community will catch up.
Capprentice has joined #nixos
ylwghst has quit [(Client Quit)]
ylwghst has joined #nixos
pie_ has quit [(Quit: Leaving)]
pie_ has joined #nixos
<disasm>
Is it possible to use a nixos-container on kubernetes? I'm guessing not since it isn't really an isolated container, requiring usage of nix store of host system.
ylwghst has quit [(Client Quit)]
<disasm>
mainly my goal is to use nixos module system and have systemd running in the container.
<gchristensen>
systemd can't run in docker IIRC
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
ylwghst has joined #nixos
ylwghst_ has joined #nixos
bgamari has quit [(Ping timeout: 276 seconds)]
civodul has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
bgamari has joined #nixos
periklis has joined #nixos
JosW has joined #nixos
leat has joined #nixos
<mpickering>
If I have a derivation I want to add to my local nixpkgs, where is the right place to add it? Is this what overlays are for?
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbvsp
<NixOS_GitHub>
nixpkgs/master 676b2ef Orivej Desh: dict: disable parallel building
NixOS_GitHub has left #nixos []
tempeh has quit [(Quit: WeeChat 1.9.1)]
Neo---- has quit [(Ping timeout: 240 seconds)]
m0rphism has quit [(Ping timeout: 268 seconds)]
fragamus has joined #nixos
ma27 has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
ahane has joined #nixos
<ahane>
hi
<ahane>
I'm very new to nix and am trying to use nix for building development environments via nix-shell on ubuntu.
<ahane>
i followed a basic example and have this default.nix:
<ahane>
{ }:
<ahane>
let
<ahane>
pkgs = import <nixpkgs> { };
<ahane>
in
<ahane>
pkgs.stdenv.mkDerivation {
<ahane>
name = "foo";
<ahane>
buildInputs = [
<ahane>
pkgs.php
<ahane>
pkgs.php71Packages.composer
<ahane>
pkgs.nginx
<ahane>
pkgs.mysql57
<ahane>
];
<ahane>
}
hotfuzz has joined #nixos
ylwghst has joined #nixos
<disasm>
ahane: use gist or nixpaste
<ahane>
sry maybe pastebin is better for code samples?
<ahane>
ok
zzamboni has quit [(Quit: Leaving.)]
<disasm>
ahane: so what you need is some form of process management. Doing that will put nginx, mysql, composer, php in the path, but you need some sort of script to start those services.
mizu_no__ has joined #nixos
hotfuzz_ has quit [(Ping timeout: 276 seconds)]
zzamboni has joined #nixos
<ahane>
well right now i was happy with starting them manually but nginx tries to log to /nix/store/
<disasm>
ahane: yeah, you need to create a nginx config file and pass -c nginx.conf
<disasm>
ahane: exactly, that's using the nixos module system, so it creates the config file for you and changes logging to stdout/stderr for journald to pickup.
<ahane>
okay wouldn't it be more consistent to configure nginx in the default.nix file?
<disasm>
ahane: yeah, in that case you would do a writeText 'nginx-conf
<disasm>
ahane: yeah, in that case you would do a writeText "nginx-conf" ''your config on multiple line''
<disasm>
that would put the nginx config file in the store
<disasm>
and then you'd run nginx -c /nix/store/<hash>-nginx-conf
<ahane>
okay but im a bit confused with the semantics of the nix file, where would i place that command?
<ahane>
so the whole "config" thing is just for nixos?
<disasm>
ahane: yup
<disasm>
ahane: a package can provide a systemd unit file that you could potentially link to /etc/systemd/system if there's no config file needed
<disasm>
but not all packages do that and most services require some sort of configuration.
<disasm>
you could also writeText a systemd unit file and a config file like we did above, and then symlink that to /etc/systemd/system
m0rphism has joined #nixos
<ahane>
okay great :)
<disasm>
ahane: don't worry, you'll be trying nixos in no time and be in the same position most of us are trying to convince others they should use it :)
ylwghst has quit [(Ping timeout: 248 seconds)]
alhariel has quit [(Remote host closed the connection)]
bennofs has joined #nixos
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
alhariel has joined #nixos
townsend has quit [(Ping timeout: 264 seconds)]
adulteratedjedi has left #nixos []
phreedom has joined #nixos
dan_b has joined #nixos
ssmike1 has joined #nixos
ssmike has quit [(Ping timeout: 240 seconds)]
ssmike1 is now known as ssmike
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
townsend has joined #nixos
__red__ has joined #nixos
<jluttine>
what is the default place for pid files in nixos?
<__red__>
Question: When dealing with an application which is arguably made up of multiple other apps (I'm thinking about mastodon) - is there a recommended approach?
<__red__>
I've not fully taken the application apart yet, but expect it's tightly coupled like all applications should(n't) be ;-)
zzamboni has joined #nixos
<ottidmes>
I am confused about sourceRoot, if I do `ls linux/CLI` within the unpacked source archive within the nix store, it exists, but if I set sourceRoot to this, I get 'linux/CLI': No such file or directory. Does anyone know what I am doing wrong?
ixxie has joined #nixos
<disasm>
jluttine: /run most of the time but I can't say with certainty all modules obey that
<gchristensen>
and with many tools using systemd, many don't use pidfiles anymore
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
<clever>
ottidmes: sourceRoot must include the name of whatever it made
<clever>
ottidmes: you usually want to append to sourceRoot in the right hook
<ottidmes>
clever: Thanks, I was just about to try that last approach, and seems to work: postUnpack = "sourceRoot=\${sourceRoot}/linux/CLI/";
<ertes-w>
apparently MS has just cut the support for the nixpkgs version of skype… does anyone know details about this? is it likely that there will be an update in the near future? can i do something to speed it up? unfortunately i'm bound to using skype for work
<clever>
ertes-w: there is a new skype4linux in nixpkgs already
<ertes-w>
ah, thanks… it doesn't seem to be in unstable yet, so i'll just install it from master
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 4 new commits to master: https://git.io/vbv0z
<NixOS_GitHub>
nixpkgs/master 6c8763e Orivej Desh: ftgl: enable darwin
<NixOS_GitHub>
nixpkgs/master 4a8cadd Orivej Desh: SDL2_image: support darwin
<NixOS_GitHub>
nixpkgs/master 78af593 Orivej Desh: glew: fix darwin install name
NixOS_GitHub has left #nixos []
<clever>
ertes-w: i'm using it on unstable
goibhniu has quit [(Ping timeout: 276 seconds)]
<ertes-w>
clever: and you're online? i'm currently getting this message: "Sorry, this version of Skype is not supported anymore."
<clever>
ertes-w: you also have to run skype4linux, not skype
<clever>
correction: skypeforlinux
<ertes-w>
i'm doing that
<ertes-w>
5.5.0.1 is the version i have from unstable
<ertes-w>
and now i'm installing a new 5.5.0.1 from master
<infinisil>
Well damn, I'll have to test this myself then. I wanted to switch to zfs encryption today, but if i can't use znapzend this means no backups
zzamboni has quit [(Read error: Connection reset by peer)]
<hyper_ch>
infinisil: "I downloaded the file (and made a backup). I am now able to reproduce the problems. I should be able to get them fixed tomorrow at the latest now. Thanks a lot for all the help." -> from last tuesday ;)
<hyper_ch>
I guess thanks giving, black friday and the weekend intervened
<hyper_ch>
but the important thing is, he can reproduce the issue
<hyper_ch>
so, still sending 4x 150GB of data across the net a day for backup$
<hyper_ch>
infinisil: had a look at my backup script?
<infinisil>
hyper_ch: A quick look yeah
<infinisil>
Well I'll just try with znapzend and see if it works for me
<hyper_ch>
I doubt it will
<infinisil>
Ohh you know what
<infinisil>
I'll just not turn on encryption for now
<hyper_ch>
:)
<hyper_ch>
why?
<infinisil>
maybe even use zfsStable, until encryption is more stable
<hyper_ch>
encryption is only in unstable
periklis has quit [(Ping timeout: 276 seconds)]
<infinisil>
yeah, but I don't /need/ encryption really
<ottidmes>
infinisil: What is so bad about LUKS over ZFS? I am planning to do that on my NAS drives, since they do not have encryption support builtin?
<hyper_ch>
infinisil: btw, you do I assign a usb device to a kvm? I just get "spice-client-error-quark could not redirect access denied"
<infinisil>
ottidmes: We're currently in a discussion about the upcoming native ZFS encryption :)
<hyper_ch>
ottidmes: nothing is bad about it
<hyper_ch>
luks is well tested, stable and reliable
<infinisil>
hyper_ch: Not doing that no
<ottidmes>
hyper_ch: Ah, thanks, that is a relieve to hear
<hyper_ch>
luks/dm-crypt I mean
<hyper_ch>
native zfs encryption is rather new and needs testing
orivej has quit [(Ping timeout: 260 seconds)]
erictapen has joined #nixos
<ertes-w>
nix-env seems not properly serialised… if i run two installations concurrently, only the one that finishes last wins… is this expected?
<hyper_ch>
ottidmes: the thing that draws me to native zfs encryption is that before I had a setup like: 3-disk mdadm raid 1 --> luks/dm-crypt --> ext4 with debian+proxmox
<ertes-w>
or is this a bug?
<hyper_ch>
ottidmes: now it's encrypted root zfs -> nixos
<hyper_ch>
and it's also remotely rebootable
<cransom>
i'd love for the trim patches to finally land on zfsonlinux
<hyper_ch>
actually, I do write a lot and delete a lot on my ssd
<hyper_ch>
constaly somewhere between 60-160 GB free space on a 1TB samsung
<hyper_ch>
and I haven't noticed any impacts yet
<hyper_ch>
it was totally different with btrfs that needed constant rebalancing etc
<ottidmes>
hyper_ch: remote rebootable, you mean you can enter the password for the encryption remotely? If so, I just always use something like dropbear to do so with LUKS
<hyper_ch>
ottidmes: yes, pretty much the same way
<hyper_ch>
because it can do that, that's why I set my office server with native zfs encryption as well
<hyper_ch>
without being able to do that, I'd probably have chosen luks/dm-crypt
<ottidmes>
hyper_ch: Right, very similiar. It indeed is a must have feature for servers, some of my VPS'es did have a VNC connection that I could use to enter my password, but SSH is preferable
<hyper_ch>
ottidmes: it's really simple to get it to rung with nixos :)
ahane has quit [(Remote host closed the connection)]
sigmundv has quit [(Quit: Leaving)]
<pcarrier>
is there a rosetta stone for the nixUnstable nix CLI? :)
<hyper_ch>
no idea what a rosetta stone is
<pcarrier>
hyper_ch: what Champollion used to decode Egyptian hieroglyphs. it was a stone with the same text in 3 languages.
<ottidmes>
hyper_ch: I probably will patch my 17.09 install to have that change made in 18.03 that allows you to add udev rules to the initramfs, because that was one of the problems I have on some of my servers, it not being able to properly setup the network without the necessary udev rules
fendor has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
pcarrier: it's been several decades since I had history classes at school
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pcarrier>
it shows you "equivalent" commands for basic operatiosn
<hyper_ch>
since I'm an honest person, I don't use cheatsheets ;)
ma27 has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
infinisil: so you don't know about usb devices and kvm?
<infinisil>
Wait, are devices in linux infinitely long or something? I'm doing `dd if=/dev/urandom of=/dev/sda2` and it says it copies 200MB/s and keeps going for while. /dev/sda2 is only 3MB big
ma27 has joined #nixos
Tucky has quit [(Quit: WeeChat 1.9.1)]
<infinisil>
hyper_ch: I do not
<hyper_ch>
infinisil: well, if you'd use /dev/zero and had compression enabled it would make sense
<infinisil>
/dev/sda2 is just a partition
Wizek_ has quit [(Quit: Leaving)]
<clever>
infinisil: some character devices have no end, but the block devices usually have a size
<Dezgeg>
you sure you didn't create a regular file of the same name?
<clever>
Dezgeg: good idea
<infinisil>
Dezgeg: Oh, checking
<clever>
infinisil: ls -lh /dev/sda2
<infinisil>
brw-rw---- 1 root disk 8, 2 Nov 27 18:01 /dev/sda2
<hyper_ch>
oh, clever is back... maybe he's also clever about usb devices in kvm on nixos
<clever>
hyper_ch: you need permission to the usb device under /dev/bus/usb/
fragamus has joined #nixos
<clever>
infinisil: can you gist the full output of the dd command, just everything in the terminal
<hyper_ch>
clever: so that needs to be chowned to my user?
<clever>
Failed to remove partition 2 from system: Device or resource busy
dan_b has quit [(Ping timeout: 246 seconds)]
<clever>
sda2 is still pointing to the rest of the disk
<clever>
you need to close the programs using the partitions, or reboot
<toogley>
i've done nixos-rebuild switch --upgrade . however, nix-env -qa firefox still shows no version 57, although https://github.com/NixOS/nixpkgs/pull/31663 was already merged 13 days ago
<clever>
toogley: the latest thing on 17.09 is a revert of the firefox upgrade
<toogley>
clever: aah, okay
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to release-17.09: https://git.io/vbv1z
<NixOS_GitHub>
nixpkgs/release-17.09 7bafbc0 adisbladis: mupdf: Fix for CVE-2017-15369...
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
* infinisil
is quickly creating a nixos usb stick before rebooting
<szicari>
Howdy, all. Is there a viable replacement for myEnvFun? I’m creating a derivation using a default.nix, which I use by dropping into a nix-shell. Is there a way to “install” this as an env? I’ve been hearing that myEnvFun isn’t really preferred anymore.
<kosta>
What is the correct invocation? nix-instantiate tells me “error: cannot auto-call a function that has an argument without a default value (‘stdenv’)”
ThatDocsLady has quit [(Ping timeout: 276 seconds)]
mrkgnao has quit [(Ping timeout: 246 seconds)]
<kosta>
how do I tell nix-instantiate to use the <nixpkgs>?
<kosta>
and then instantiate the derivation from the file?
<goibhniu>
szicari: that will prevent it from getting garbage collected
<szicari>
goibhniu: Reading the blog post.
<szicari>
goibhniu: Genius, thanks! This is exactly what I was looking for.
<goibhniu>
awesome! glad to help!
ambro718 has joined #nixos
<szicari>
goibhniu: Oddly though - nix-collect-garbage -d still seems to remove the packages I’m using. If I run that and then re-enter nix-shell, it re-installs the packages.
<szicari>
Maybe I’m doing something wrong.
<goibhniu>
oh!
<szicari>
I see the shell.drv in the local dir that is symlinked into the nix-store.
<szicari>
So that part seems to be working.
<szicari>
I notice the example in the blog post has a src attribute defined.
<szicari>
I don’t have that.
<goibhniu>
I thought --add-root would prevent that
<szicari>
I’m on macOS. That might have something to do with it.
<szicari>
I’ve noticed things that work in nix on *nix don’t always work on macOS.
<clever>
the shell.drv doesnt act as a root for every input it has
<clever>
it only roots the other .drv files it references
<szicari>
clever: Is there an additional step I need to take?
<clever>
gc-keep-derivations = true
<clever>
gc-keep-outputs = true
<clever>
szicari: i think you want these 2 options in /etc/nix/nix.conf
<szicari>
clever: Will this have wide-reaching implications for what is garbage-collected?
<clever>
szicari: i think it will only have an impact realted to .drv roots youve made
phreedom has joined #nixos
<szicari>
clever: I’ll give it a try, thank you.
<szicari>
Also thank you, goibhniu. Great to know there is ample support for nix. :)
<szicari>
My favorite package manager and configuration tool.
<szicari>
(and everything else that nix is)
<clever>
:D
<goibhniu>
\o/
cacatoes has quit [(Quit: WeeChat 1.6)]
davidak has quit [(Ping timeout: 250 seconds)]
<neonfuz>
what's the best way to 'pin' a package at a certain version
<neonfuz>
override it's version or something?
<clever>
neonfuz: overriding version will almost never have an effect
<clever>
neonfuz: you want to override the src
<neonfuz>
alright yeah
<neonfuz>
and that would have to be recompiled then on my machine right
<neonfuz>
assuming the nix expression points to sources
<clever>
yeah
<neonfuz>
sweet
<infinisil>
Confirmed: I prett much wiped my root filesystem
kosta has quit [(Ping timeout: 260 seconds)]
<infinisil>
Currently restoring from a backup
<neonfuz>
what is .config/nixpkgs/config.nix? can I put overrides in there?
davidak has joined #nixos
<neonfuz>
can I manually edit .nix-channels or should I use nix-channel
<thoughtpolice>
Has cross compilation been busted up/changed recently? I'm getting pretty obvious build failures in `master` in a lot of places I feel should be well tested, like zlib and ncurses? e.g. `nix-build --arg crossSystem '(import <nixpkgs/lib>).systems.examples.armv7l-hf-multiplatform -A zlib' fails immediately at configurePhase because 'cc' cannot be found...
<thoughtpolice>
I'm sort of fixing my way through this, thing-by-thing, but I'm not sure if this is known or not, or if I'm wrong. And obviously for things like zlib/ncurses I'm not going to push to master, to avoid a large-scale rebuild, so for my own work I'll have something working, I hope...
mizu_no__ has joined #nixos
forgetful has quit [(Remote host closed the connection)]
<clever>
neonfuz: just use nix-channel, and read its man page
forgetful has joined #nixos
zzamboni has joined #nixos
digitalmentat has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<thoughtpolice>
The strange thing to me is that a lot of stuff actually works that's clearly either had the expression written in mind for crossSystem builds, or it uses something 'automagical' like autoconf which is standardized -- but how could zlib and ncurses not build? They seem nearly unavoidable for any non-trivial closure...
<tempeh>
I'm working on adding drip, which is a wrapper around the "java" command. Where should that go in the package heirarchy?
<benley>
It should work fine to use file:/// urls as arguments to binary-caches / extra-binary-caches / trusted-binary-caches in nix.conf, right?
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
zzamboni has quit [(Client Quit)]
mizu_no__ has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
truh has quit [(Ping timeout: 250 seconds)]
zzamboni has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
jb55 has joined #nixos
ssmike has quit [(Remote host closed the connection)]
forgetful has quit [(Quit: Leaving)]
ssmike has joined #nixos
ylwghst has joined #nixos
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
zzamboni has quit [(Client Quit)]
taktoa has quit [(Remote host closed the connection)]
orivej has joined #nixos
<infinisil>
Nooo i forgot to mount boot :/
fragamus has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
<infinisil>
A disadvantage of using nixops to build your local machine is that you can't use it to install it with a chroot
sigmundv__ has joined #nixos
<infinisil>
Since I'm reinstalling everything now, I'll have to create a simple normal config, then boot into it, then use nixops to actually build my system
tempeh has quit [(Quit: WeeChat 1.9.1)]
<infinisil>
Damnit i still can't boot
<schoppenhauer>
hi. is anyone using android studio under nixos?
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<schoppenhauer>
with working AVD?
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #32124: rambox: remove comment with email address (master...patch-11) https://git.io/vbvjU
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vbvju
<NixOS_GitHub>
nixpkgs/master d341d28 Vaibhav Sagar: ihaskell/wrapper.nix: unify ihaskellEnv and ihaskell...
<NixOS_GitHub>
nixpkgs/master e7f4979 Peter Simons: Merge pull request #31395 from vaibhavsagar/cleanup-ihaskell-wrapper...
NixOS_GitHub has left #nixos []
ylwghst has quit [(Remote host closed the connection)]
ilja_kuklic has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
_ris has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 7 new commits to staging: https://git.io/vbfeu
<NixOS_GitHub>
nixpkgs/staging c66656a Dmitry Kalinkin: gnome-doc-utils: fix build for stores containing '+' character
<NixOS_GitHub>
nixpkgs/staging 0124cbd Jan Tojnar: gtk-doc: clean up XML_CATALOG_FILES patch...
<NixOS_GitHub>
nixpkgs/staging 6705f30 Vladimír Čunát: Merge branch 'master' into staging
<vcunat>
(I think it should work, unless I missed some typo, etc.)
michaelpj has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
michaelpj has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<greglearns>
LnL: 7dfa97969a3d8ca0bce2c0d19bafbacd0f4b9c3e.tar.gz works. 64413dec3e20029229a208d400b19c1776a0c925.tar.gz failed from yesterday, I believe. nixpkgs/archive/daf53c9a102e695d9ca0c2b48b231e8f2517264b.tar.gz was one I was using before for rust 1.20.0, which used to work on nix-env 1.11.13, but then started failing -- I don't know why.
<LnL>
hmm, I'll take a look if I find some time
ssmike1 has joined #nixos
jensens has joined #nixos
ssmike has quit [(Ping timeout: 264 seconds)]
ssmike1 is now known as ssmike
sigmundv__ has quit [(Ping timeout: 276 seconds)]
asuryawanshi has quit [(Remote host closed the connection)]
notthemessiah has quit [(Quit: WeeChat 1.9.1)]
asuryawanshi has joined #nixos
webchat310 has quit [(Ping timeout: 260 seconds)]
_ris has quit [(Remote host closed the connection)]
<dash>
somehow there's a quoting problem going on, and I don't immediately see any commits that busted it
fragamus has joined #nixos
<pcarrier>
so given buildFHSEnv is probably not the answer I'm trying to fully understand how it works
<pcarrier>
it seems rather convoluted :)
zzamboni has quit [(Quit: Leaving.)]
jensens has quit [(Ping timeout: 276 seconds)]
<neonfuz>
alright I'm figuring out things
jmc_fr`` has joined #nixos
<neonfuz>
so I just used overrideAttrs to override the version (qbittorrent for reference) and it just worked
zzamboni has joined #nixos
<neonfuz>
shouldn't I have to change the checksum? or is that just done for me?
LexLeoGryfon has joined #nixos
<neonfuz>
oh lmao
<neonfuz>
I just installed the new qbittorrent with the name of the old version... lmao
greglearns has joined #nixos
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<neonfuz>
now I'm getting 'undefined variable ‘fetchurl’', should I not include the fetchurl part in my override?
infinisil has joined #nixos
Slabity35 has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vbfqp
<NixOS_GitHub>
nixpkgs/master bfc0959 Vincent Laporte: ocamlPackages.cstruct: 2.3.2 -> 3.0.2
NixOS_GitHub has left #nixos []
<viric>
I got mad two days because my cable ethernet wasn't working, none of my two NICs
<LexLeoGryfon>
Why during boot OS doesn't ask for password for plain dm-crypt root partiotion? In my configuration.nix following string enables encryptmodboot.initrd.availableKernelModules = [ "keyboard" "keymap" "encrypt"];ule
<viric>
today I noticed they switched eth0/eth1.
Turion has joined #nixos
<viric>
and YET I prefer these names over those more fixed.
<Turion>
How do I properly use texhash (or whatever) to find newly created LaTeX .sty files in my home directory?
<MichaelRaskin>
Well, in my experience the theoretically-fixed names have _more_ options how to change than just changing places.
zzamboni has quit [(Quit: Leaving.)]
<Turion>
Back on Gentoo I'd just run texhash or sudo texhash, but now this doesn't do anything, it seems
truh has joined #nixos
<neonfuz>
awesome it worked
hariel has joined #nixos
<LexLeoGryfon>
how to force plain dm-crypt to ask for password after booting initrd? (no LUKS)
alhariel has quit [(Ping timeout: 240 seconds)]
dieggsy has joined #nixos
truh has quit [(Ping timeout: 240 seconds)]
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
hiratara has quit [(Ping timeout: 276 seconds)]
davidak has joined #nixos
dieggsy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vbf3q
<NixOS_GitHub>
nixpkgs/master 77cd7d7 José Romildo Malaquias: efl: 1.20.5 -> 1.20.6
<NixOS_GitHub>
nixpkgs/master 3654c7e José Romildo Malaquias: enlightenment: 0.22.0 -> 0.22.1
<NixOS_GitHub>
nixpkgs/master 7a87f16 Joachim F: Merge pull request #32122 from romildo/upd.enlightenment...
NixOS_GitHub has left #nixos []
ssmike has quit [(Ping timeout: 248 seconds)]
hiratara has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
hamishmack has joined #nixos
Turion has left #nixos []
jmc_fr`` has quit [(Ping timeout: 264 seconds)]
vcunat has quit [(Quit: Leaving.)]
Guest42105 has joined #nixos
bennofs has quit [(Ping timeout: 276 seconds)]
Neo-- has quit [(Remote host closed the connection)]
<cheshircat>
has anyone managed to install matlab?
Neo-- has joined #nixos
<Guest42105>
Hi all, I'm troubleshooting the build of the Beignet OpenCL derivation, probably a noob issue. In short, when I `nix-shell '<nixpkgs>' -A beignet`, the configure and build phases don't seem to do anything (I am running them from withing the Beignet source after unpackPhase).
asuryawanshi has quit [(Ping timeout: 268 seconds)]
<Guest42105>
The derivation uses sdtenv, so I would expect the build to be orchestrated by the Nix build phases, but maybe CMake-based packages work differently?
<LnL>
does it override the default phases?
rtjure has quit [(Ping timeout: 276 seconds)]
<Guest42105>
No. There is a child package for tests that has an installPhase, but that's it.
<LexLeoGryfon>
child... that's ILLEGAL to test on child
<LnL>
ah yes, cmake probably has a setup hook that configures some extra stuff
<LnL>
running genericBuild will run everything
<Guest42105>
Sweet! Building :D
<LnL>
if you want to execute stuff separately, it looks like cmakeConfigurePhase is added as an extra phase
truh has joined #nixos
<Guest42105>
Got it. I should probably read over the cmake derivation, if I'm going to dig into a cmake project. Thanks again for the pointer.
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
truh has quit [(Remote host closed the connection)]
agjacome has quit [(Ping timeout: 258 seconds)]
dieggsy has joined #nixos
miko__ has quit [(Ping timeout: 276 seconds)]
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
zzamboni has joined #nixos
szicari has quit [(Quit: szicari)]
adomas has joined #nixos
simukis has quit [(Ping timeout: 268 seconds)]
<Lisanna>
So, I think I already know the answer to this... but Nix doesn't have a way to have a conditional on whether or not some expression successfully evaluates / builds or not, does it?
hiratara has quit [(Remote host closed the connection)]
<MichaelRaskin>
builtins.tryEval for evaluation, but there are caveats.
<MichaelRaskin>
Build-time is after evaluation-time, so no conditioning on build failures.
<Lisanna>
oh, dang
ma27 has quit [(Ping timeout: 264 seconds)]
<Rovanion>
Does anyone know how to set coolbits for a nvidia card?
<MichaelRaskin>
builtins.tryEval _might_ be dropped when there is a good idea how to implement eval-release test without it and without full hydra.
<Lisanna>
what do you mean?
greglearns has quit [(Ping timeout: 260 seconds)]
<Lisanna>
what's it needed for currently?
hiratara has joined #nixos
<Lisanna>
is it specifically for eval-release-test of nix programs?
<Lisanna>
like lib?
<MichaelRaskin>
It is used to allow contributors to check that traversing Nixpkgs to instantiate everything the meta.maintainers and meta.platforms containing the current system doesn't fail in a more interesting way than allowed.
<catern>
hey #nixos
<catern>
can you advise me on how to do something in the most Nix-y way possible?
<MichaelRaskin>
Not sure if Hydra has something completely independent
<Rovanion>
Or stated more generally, is it possible to attach a string 'Option "Coolbits" "4"' to the nvidia device section of xorg.conf?
<thoughtpolice>
I fixed the ncurses crossSystem build apparently, but I have no idea how it ever worked. Is anyone actively maintaining this, or should I just bisect and write a ticket?
<MichaelRaskin>
Rovanion: I think you can set deviceSection in X config
<catern>
I have a default.nix for some Python software I am developing. I want to express a dependency from this Python software on a .json file in another package. Specifically this other package is coming from another proprietary package system. And I guess I am both 1. not sure how to idiomatically depend on a .json file from Python and 2. depend on a .json file that is inside a package in a proprietary package system
<catern>
I can (and have) write the adapter for the proprietary package system so the package is represented as a derivation, but then I'm not sure what to do...
<Rovanion>
MichaelRaskin: Ah, so I would define my own whole section. Could work. Thank youĸ
<Lisanna>
So, for build-time stuff, I'll definitely have to move that outside of Nix, into something that calls into Nix to test if some build works or not. I guess this is what Hydra does with sources. Is there a more straightforward command-line way to pass build parameters into a nix-build or something?
<MichaelRaskin>
Rovanion: no, it will _add_ to Section Device.
<MichaelRaskin>
Rovanion: NixOS modules system is complicated
dieggsy has quit [(Remote host closed the connection)]
<thoughtpolice>
Lisanna: Yes, you can just pass '--arg foo "some nix expression"' to nix-build, and if the default.nix is some function like `{ foo ? null }: ...`, then `foo` will have the result of the nix expression you pass in, or be null otherwise
<Lisanna>
oh, cool
<Rovanion>
MichaelRaskin: Well, that should reasonably, without testing, result in multiple device sections for the same nvidia card assuming there already is one automatically generated. Where is the final xorg.conf outputted,? It's not in /etc/X11/xorg.conf.
dieggsy has joined #nixos
<thoughtpolice>
e.g. sometimes I use `nix-build --arg nixpkgs 'import <nixpkgs> {}'`, and I give my expression a 'nixpkgs' parameter, which otherwise defaults to some bootstrap method. But allowing the argument means I can override it pretty easily.
Guest42105 has quit [(Quit: leaving)]
<MichaelRaskin>
Rovanion: No, it will add the deviceSection from config into each deviceSection
<Rovanion>
Do you have an example I could look atŋ
Arcaelyx has quit [(Read error: Connection reset by peer)]
<MichaelRaskin>
Not anything comprehensible (I don't use mainline NixOS, and when I cherrypick parts of NixOS the result is more complicated that you would want)
<MichaelRaskin>
Just set services.xserver.deviceSection to the single line you want to add and see if it works.
<Rovanion>
Right, will try!
<MichaelRaskin>
exportConfiguration=true; will help debugging: it creates xorg.conf in /etc/
Arcaelyx has joined #nixos
phreedom has quit [(Ping timeout: 276 seconds)]
erictapen has joined #nixos
<Lisanna>
okay, and --arg only works for functions that take a single pattern-matched attrset?
miko__ has joined #nixos
<Lisanna>
(I haven't seen functions which take arguments like a: b: c and functions which take arguments like {a, b, c} disambiguated well, do they have different names or something?)
<LexLeoGryfon>
guys, during boot my zfs pool is imported before it has been decrypted by dm-crypt. That's an issue. cuz pool encrypted - import fails. and dm-crypt doesn't ask for password. where I can check an boot order for dm-crypt prompt?
<pmade>
I have a problem with NixOps and a derivation containing shell scripts. On the deployment host the package is built and the fixup phase updates the shebang to the local bash. Then NixOps copies the derivation to an EC2 host. But the EC2 host doesn't get the same bash so the nix store paths in the script's shebang are wrong. How do I force bash to get copied too?
<LexLeoGryfon>
I'm using plan dm-crypt, no LUKS\LVM
<LexLeoGryfon>
and boot.initrd.luks.devices.<name?>.preLVM doesn't accept 'offset' as parameter
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Rovanion>
Does anyone know how I could add my own xorg keyboard layout file? The equivalent of sudo cp ~/.config/xkb/symbols/qq /usr/share/X11/xkb/symbols/
fragamus has joined #nixos
sigmundv__ has joined #nixos
sigmundv__ has quit [(Client Quit)]
<hodapp>
hrmph. tensorflowWithCuda still seemed borked on nixpkgs master
fragamus has quit [(Ping timeout: 240 seconds)]
gm152 has joined #nixos
miko__ has quit [(Ping timeout: 276 seconds)]
adomas has quit [(Quit: Konversation terminated!)]
phreedom has joined #nixos
chessai has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] puffnfresh opened pull request #32127: peek: init at 1.2.0 (master...package/peek) https://git.io/vbf4d
NixOS_GitHub has left #nixos []
ambro718 has quit [(Ping timeout: 258 seconds)]
<catern>
hey #nixos, isn't there some program which patches all the RPATHs in a Nix store to be $ORIGIN
<catern>
relative?
rosa has joined #nixos
<sphalerite>
Can anyone recommend VPN software? I've been using tinc quite happily, but would like to set up another network with PKI or LDAP-based auth
<catern>
in other questions... I am wondering if it makes sense to write my own Python importer which allows one to import Nix packages, hmm...
<cransom>
sphalerite: far more cumbersome than openvpn, but if you ever wanted to interface with a hardware network vendor, thats where you go.
<catern>
what I ultimately want to do is run binaries (and load a little bit of data) in other Nix packages
<sphalerite>
OK, not a concern. Openvpn it is!
<catern>
I'm fine with depending on Nix itself, I just want to do it both Pythonically and Nix-ically
<pie_>
bless whoever packaged opentyrian
<catern>
does that sound crazy? should I really be thinking of writig something that would let me write "import nixpkgs.coreutils" as Python code??
<catern>
hmm, I suppose it could encode mappings from package names to package paths in a file which is looked up relative to __file__ when I do "import nixpkgs.coreutils", so the paths would be absolute and nicely persisted