<ben>
applying some overlay in /etc/nixos/configuration.nix seems like less long-term pain than repeatedly merging/rebasing nixpkgs master or w/e into your local fork
<alphor>
ben: I guess I should clarify, I'm not really interested in everything, just cherry picking, the rest can be off a tagged release
<ben>
alphor: overlays can just override/add single packages
<gchristensen>
alphor: let me experiment with something
<gchristensen>
alphor: hmm do you want to modify existing services, or do you want to add new ones?
matthewbauer has quit [(Ping timeout: 246 seconds)]
<alphor>
gchristensen: modifying existing ones was a pain point in the past
eacameron has quit [(Ping timeout: 240 seconds)]
ertes has joined #nixos
cpennington has quit [(Ping timeout: 246 seconds)]
<ben>
alphor: i have a thing that's like nixpkgs.overlays = [(self: super: { pmount = super.pmount.overrideAttrs (attrs: { patches = [ ./allow-exfat.patch ]; }); })];
<alphor>
in my case it was having a service bind to a tunnel address that was known only at boot
<ben>
i might have miscounted the closing parens there
<ben>
but it seems simple enough
<gchristensen>
ben: will overlays impact services?
<clever>
i think overlays are only a way to give a list of packageOverrides
<clever>
and it will have no impact on services
<clever>
other then when a service reads pkgs.foo
<gchristensen>
I think so too
<gchristensen>
alphor: we still don't have an excellent story around overriding services
<gchristensen>
alphor: I think that post is your best bet, but I don't particularly love it as it makes it harder to remember to update I think
<ben>
the services don't appear from thin air tho
<ben>
they come from the nixpkgs that i'm adding overlays to
<gchristensen>
do you have first hand experience with overlays providing services?
<ben>
i patched networkmanager with a backported crash fix
<gchristensen>
huh
<ben>
i might be misremembering but i did something to make that work and i dont nixos-rebuild out of a git checkout :P
<clever>
johnramsden: loginShellInit vs interactiveShellInit vs shellInit vs extraInit
<clever>
one of them must work
<johnramsden>
Do I need to reboot?
<clever>
nope
<johnramsden>
Whoo! extrinit worked!
cpennington has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
hellrazor has joined #nixos
<alphor>
thanks for the discussion gchristensen, ben.
<ben>
:+1:
hellrazo1 has quit [(Ping timeout: 260 seconds)]
<gchristensen>
alphor: you're welcome... did we help? :P
<ben>
idk, id just install a package into my user env that includes the config file somewhere and then manually symlink .nix-profile/whatever into .config/libvirt
eacameron has quit [(Ping timeout: 260 seconds)]
<ben>
or find whatever env var controls hat .config is looked at and add .nix-profile/etc/ or something to that
<gchristensen>
ben: it can be pretty desirable to have configuration.nix put things in your user dir
zeus_ has joined #nixos
<clever>
johnramsden: oh, and extraInit may also cause some issues, it will only run when you open a terminal, so running a program via the gui may skip creating the config
mudri has quit [(Ping timeout: 260 seconds)]
<alphor>
gchristensen: now I know about overlays, so yes :D
<gchristensen>
alphor: great :)
<ben>
... I still have the nixos-unstable nixpkgs checkout but I'm actually not sure what I'm using it for...
<ben>
probably just looking things up
<johnramsden>
clever: oh :S I wonder why interactive didn't work.
<clever>
johnramsden: the activation scripts run much sooner in the bootup, and every time you rebuild-switch, so they wont have that issue
takle has quit [(Remote host closed the connection)]
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
schoppenhauer has quit [(Ping timeout: 240 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
schoppenhauer has joined #nixos
johbo has joined #nixos
takle has joined #nixos
<disasm>
hacking on nixos... what's the preferred way to test things out? I read http://matrix.ai/2017/03/13/intro-to-nix-channels-and-reproducible-nixos-environment/ and setup /nix/nixpkgs, but then every time I want to test something, I switch to master, create a branch, make some changes, switch back to nixos-17.03, cherry pick the change in my feature branch, test it, switch back to my feature branch, fix change,
<disasm>
switch back to channel, cherry pick, etc...
ericsagnes has joined #nixos
<clever>
disasm: i try to use "nixos-rebuild build-vm -I nixpkgs=/home/clever/nixpkgs -I nixos-config=./configuration.nix" for testing
<disasm>
ah k, and then have a minimal configuration.nix with what your testing in it, that makes sense. Then the host OS doesn't get touched when developing stuff and you can stay on a stable channel for everyday stuff.
takle has quit [(Ping timeout: 260 seconds)]
<clever>
yep
<clever>
and if you dont give it root, it has zero chance of breaking things
<disasm>
that uses qemu for the vm?
<clever>
yeah
<unlmtd>
how could I launch a user-installed WM?
Myrl-sak1 has joined #nixos
<Myrl-sak1>
How do I run nix-repl's commands without, well nix-repl.
<Myrl-sak1>
(Say, something like bash -c)
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
<disasm>
clever: in that resulting VM, is there a default credential or do you need to specify a password in the configuration.nix for the root user?
<clever>
no defaults
<clever>
youll need .initialPassword = "hunter2";
<clever>
and initial only works on the first boot, so youll need to delete the qcow
<clever>
check the current dir to see it
drakonis has joined #nixos
drakonis has quit [(Changing host)]
drakonis has joined #nixos
<disasm>
clever: is that a param to users.extraUsers.USER?
<disasm>
when adding a service that uses a database, should that database and service database user be autocreated by nix? Or is it best to leave that up to the user installing the service?
<clever>
disasm: which db engine is it on?
<drakonis>
got any good paste service
<drakonis>
?
<clever>
drakonis: i prefer gist.github.com
<disasm>
by nix, I mean a pre-setup-script for the service.
takle has quit [(Ping timeout: 240 seconds)]
<clever>
since it can handle multiple files and editing
<disasm>
clever: postgresql
<drakonis>
something for quick pasting rather
<drakonis>
since i'm not logged in anywhere
<clever>
drakonis: there is a gist command in nixpkgs, nix-env -iA nixos.gist ; df -h | gist -p -
<drakonis>
hm oh
<drakonis>
i see
<disasm>
drakonis: I use nixpaste :) but gist works too
<disasm>
yeah, I'm more wondering for a pkg/systemd service I'm adding to nixos
<drakonis>
a pkg/systemd service?
<drakonis>
what.
<drakonis>
like i said
<disasm>
drakonis: too different conversations :)
<drakonis>
zfs has been deleted but gparted only sees one partition
<drakonis>
it also sees only one partition for the usb
<drakonis>
despite the usb reporting two partitions
<drakonis>
i suppose it must be a problem with gparted
<disasm>
clever: https://github.com/NixOS/nixpkgs/pull/25907 -- mainly wondering if I need to add logic to setup the database/role or leave it up to the user installing it.
<clever>
disasm: id add logic to detect if the db is missing, and auto-configure it
<clever>
drakonis: one min
<disasm>
clever: thanks! I'll do that!
<disasm>
well, getting late here, I should get to bed. Thanks for the help clever!
<clever>
drakonis: can you hit 'view->device information' in gparted, and screenshot that?
kirelagin has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
derchris has joined #nixos
Jackneilll has joined #nixos
kirelagin has joined #nixos
ROKO__ has quit [(Ping timeout: 240 seconds)]
derchris has quit [(Ping timeout: 246 seconds)]
derchris has joined #nixos
filterfish has joined #nixos
<jav>
The package vte includes a shell script vte.sh which under Debian - for example - is installed as /etc/profile.d/vte.sh .. some terminal emulators (termite for example) ask to have this file sourced in ~/.bashrc so that 'open new terminal in current directory' works. What would the NixOS-way be of finding the correct path to vte.sh? The NixOS package for vte doesn't currently seem to make it available in any form. ... I have seen in the
<jav>
autojump package, that it installs an extra script autojump-share, which outputs the correct location, so that one can do something like this: source $(autojump-share)/autojump.bash .. would that be the recommended approach to extend the vte package in a similar way?
<jav>
or maybe alternatively do something with 'environment.etc'? ... but if I undertand correctly, than the file might end up either at /etc/profile.d/vte.sh or ~/.nix-profile/etc/profile.d/vte.sh, depending on how the user installs the package, correct?
filterfish_ has joined #nixos
filterfish has quit [(Remote host closed the connection)]
aanderse has quit [(Remote host closed the connection)]
aanderse has joined #nixos
hellrazor has quit [(Quit: WeeChat 1.8)]
freusque has joined #nixos
<gchristensen>
does anyone have opencl working on nixos? ( zimbatm )
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vHUQL
<NixOS_GitHub>
nixpkgs/master 2c39316 midchildan: mikutter: init at 3.5.7...
esmiurium_ has quit [(Read error: Connection reset by peer)]
<LnL>
default.nix is usually something you can build so it is a drv or a function that returns a drv
<LnL>
and it's the default file that nix-build will took for
jav has quit [(Quit: Leaving)]
<LnL>
nix-shell also looks for a default.nix, but if there's a shell.nix it will use that instead. this is useful when you want to use a different expression when running nix-shell
spion has quit [(Ping timeout: 240 seconds)]
<LnL>
and release.nix usually returns an attrset of jobs for each platform
kombinator has joined #nixos
darlan has joined #nixos
<LnL>
for example in the nix project you can run
<LnL>
nix-build ./release.nix -A build.x86_64-darwin
proteusguy has quit [(Remote host closed the connection)]
<liminal18>
hey folks I need panels and ncrusesw libraries for a project
<liminal18>
panelw
<liminal18>
ncursesw
<liminal18>
Right now I am including nurses and appendix the lib to my path
<liminal18>
appending
<pbogdan>
anyone seeing issues with urxvt not rendering unicode characters? getting squares instead of actual chars since updating to unstable from 17.03
<liminal18>
but stack still says it can't find the c header limo for them
<pbogdan>
had same in xterm after the update but that got fixed by installing symbola font (already had unifont installed) but urxvt is still refusing to render
<LnL>
liminal18: are you using nix-build with an expression?
<liminal18>
LnL: using a default.nix file loading it with nix-shell
<liminal18>
nurses is in the build and it's lib shows up in echo $LD_LIBRARY
<LnL>
did you add the dependencies to buildInputs, that should set the CFLAGS, etc.. for you
<liminal18>
_PATH
<liminal18>
yeah nurses is is buildInputs
<liminal18>
but not panels and ncursesw
<LnL>
try adding ncurses.dev
<TimePath>
I think this is the part where I give up: `Couldn't load /nix/store/62wbrqv5zmryag7z1f2c0lagcmi37aap-opencflite-476.19.0/lib/libCoreFoundation.so for /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation`
<liminal18>
LnL: good idea and it did work but stack still doesn't see them
<liminal18>
does stack us SD_LIBRARY_PATH?
<liminal18>
SD = LD
freusque has joined #nixos
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] selaux opened pull request #25961: google-cloud-sdk: Upgrade and fix calling itself (master...google-cloud-sdk) https://git.io/vHUdL
NixOS_GitHub has left #nixos []
<liminal18>
weird I can see the files inside lib/pkgconfig
<LnL>
oh, are you using the haskell mkDerivation?
<liminal18>
LnL using stack the default.nix is simply haskellPakcages.stack zilb ncurses
<LnL>
no clue then, I've only used the native haskell infrastructure
<liminal18>
LnL thanks for the help the .dev thing at least means the header files are there
<LnL>
did you try with both ncurses and ncurses.dev, the dev output might only contain the headers
<liminal18>
LnL will try
<LnL>
TimePath: does it need frameworks, otherwise that should probably point to ${darwin.CF}
<TimePath>
LnL: that's coming from opencflite
<TimePath>
issue is a handful of undefined symbols preventing loading
<LnL>
don't see anything suspicious there, any idea when it broke?
<TimePath>
I'm not sure it ever worked exactly 100%, but it worked a little more than it currently does
mudri has quit [(Ping timeout: 240 seconds)]
<TimePath>
I definitely created a mach-o binary and loaded it
roconnor has joined #nixos
<TimePath>
Think I tried around 6 months ago?
<gchristensen>
I'm trying to package siad from https://github.com/NebulousLabs/Sia/ but when I `go get -u github.com/NebulousLabs/Sia/...; cd src/github.com/NebulousLabs/Sia/siad; go2nix save` then try and build the default.nix, it seems there are many dependencies missing from the generated deps.nix. has anyone seen this before? I also tried running go2nix from src/github.com/NebulousLabs/Sia/ but nothing was buildable
<gchristensen>
there.
sigmundv has quit [(Ping timeout: 240 seconds)]
kirelagin has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
kirelagin has joined #nixos
freusque has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nh2 opened pull request #25964: manual: Fix `addCheck` example having arguments in wrong order. (master...nixos-manual-module-addCheck-order) https://git.io/vHUNv
NixOS_GitHub has left #nixos []
simendsjo has joined #nixos
<LnL>
go projects often vendor their dependencies, that's usually why they don't show up
<gchristensen>
yeah, but it doesn't build, I'll push my stuff
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #25855: Set virtualisation.libvirtd.qemuOvmf to false as the OVMF closure-siz… (master...qemu-OVMF-on-channels) https://git.io/v9xI0
<nschoe>
Hi everyone, sorry to ask such a vague question (and on this topic), but I've never had this issue before, and Googling only give advice for Ubuntu-based systems, so I'm trying here (since I'm using nixOS, obviously). A few weeks ago I lost the standard select-text-then-paste-with-middle-click-button feature. When I reboot and freshly log in nixOS, it works, but after a couple of hours it just doesn't work anymore. When I try to
<nschoe>
select text, the moment I release my button 1 the selection is gone and middle-clickling doesn't do anything. Does any of you have the faintest idea of what is going on?
<nschoe>
(sorry text came up bigger than I thought :/)
pie_ has quit [(Changing host)]
pie_ has joined #nixos
orivej has quit [(Quit: No Ping reply in 180 seconds.)]
<Olgierd>
hello, I've added a second nginx vhost and now phpfpm says “Primary script unknown” even though a) the script exists and is readable by phpfpm user b) the configuration is correct
<Olgierd>
I read in the backlog that it is related to some changes in 17.03, but I didn't find it mentioned in the release enotes
mudri has joined #nixos
<Olgierd>
how do I upgrade my configuration to 17.03?
<nschoe>
joko, thanks for answering. I'm not using wayland, so I don't think it's this (also I'm up-to-date).
<Olgierd>
is the reboot part required? I have 17.03 channel and am fully upgraded
<joko>
nschoe: it's been a while since I've updated my NixOS and I don't have this issue. I would suggest you have a look at https://github.com/NixOS/nixpkgs/issues if anyone else has this issue and post there if not
<gchristensen>
Olgierd: then no :)
<gchristensen>
Olgierd: to be clear, you shouldn't chhange the stateVersion in your configuration.nix
<joko>
gchristensen: and why is that?
<Olgierd>
I did not — it's the version I installed originally
alphor has joined #nixos
<joko>
I typically switch it after I upgrade successfully in a new channel
Olgierd_ has joined #nixos
cpennington has joined #nixos
<LnL>
it's used to keep some things like postgres backwards compatible with the data you might have on disk
<gchristensen>
joko: some stateful things about your system should stay the way they are through time
alphor has quit [(Client Quit)]
Olgierd has quit [(Quit: WeeChat 1.5)]
<gchristensen>
like the host SSH keys were generated differently in a newer version, and we shouldn't change them
<NixOS_GitHub>
nixpkgs/master 57b77e9 Joachim F: Merge pull request #25667 from DmitryTsygankov/DmitryTsygankov/bitcoin-classic...
NixOS_GitHub has left #nixos []
seagreen has quit [(Ping timeout: 260 seconds)]
hellrazor has joined #nixos
tomberek has quit [(Quit: Page closed)]
johnw__ has joined #nixos
johnw_ has quit [(Ping timeout: 268 seconds)]
endformationage has joined #nixos
stanibanani has joined #nixos
sigmundv has quit [(Ping timeout: 272 seconds)]
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
Mich2443 has joined #nixos
<Mich2443>
Hi. I want to use a u2f with nixos. I added " security.pam.enableU2F = true; security.pam.enableU2F = true;" to config.nix. Now the module is marked as "auth sufficient" in the pam-directory.
<gchristensen>
Mich2443: unfortunately, our pam module is a bit hard to work with / inflexible. that said, you can specify the text of the entire pam ruleset for a particular service and make it wahtever you want
<gchristensen>
Mich2443: like security.pam.services.login.text
sigmundv has joined #nixos
m3tti has joined #nixos
stanibanani has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vHTf6
<NixOS_GitHub>
nixpkgs/master 881385d Joachim Fasting: linuxPackages.phc-intel: remove use of features.grsecurity...
<NixOS_GitHub>
nixpkgs/master 16b6ee3 Joachim Fasting: nano: use https for meta.homepage...
<NixOS_GitHub>
nixpkgs/master bfd3227 Joachim Fasting: dnscrypt-proxy: 1.9.4 -> 1.9.5...
NixOS_GitHub has left #nixos []
cpennington has joined #nixos
<bachp>
I was just wondering if there is a way to create a nix shell expression with both python2 and python3 installed and select which one is the default. Currently it seems python -> python3, however I would like to change it to python -> python2 while still having python3 available. Any hints how to do this?
<Mich2443>
gchristensen, thank you. How I still have to figure out what exactly should be in said file.
<gchristensen>
Mich2443: yeah, and I don't know PAM very well
<dash>
bachp: everything's "available", what do you want to do with it?
<bachp>
dash: I'm trying to build an environment that is compatible with Yocto using buildFHSUserEnv and I need to have /usr/bin/python pointing to python2
<dash>
bachp: OK. and what do you want to do with python3?
<bachp>
dash: Yocto needs both of them ;) The bitbake build system moved to python3 but some older parts still require python2 and they assume that they can call it as /usr/bin/python
<dash>
bachp: i guess put "ln -s ${python3}/bin/python usr/bin/python3" in extraBuildCommands?
<bachp>
dash: I was hoping there was a way to change the priority of the packages in some way
<dash>
bachp: not sure how that would help
<bachp>
Because if I only add either python2 or python3 they both are symlinked as python
<dash>
sure
<bachp>
dash: but as soon as I install both the python3 interpreter wins
<bachp>
I would also like to understand why
<dash>
it's just going to do whichever was put in the envuronment last
<bachp>
dash: I have the following expression now: https://pastebin.com/eDeejp8C If I change the order of python3 and python27 nothing changes still python3 is symlinked as python
apeschar has joined #nixos
<dash>
bachp: OK
<dash>
sounds like you will have to fix it manually then
<dash>
i.e. in a build ocmmand
<apeschar>
nixops deploy calls nix-copy-closures with --use-substitutes, which makes the host download files from the cache... this happens one by one. does anyone know whether it can be made to download multiple files at once?
<apeschar>
like what happens when you do nix-build -j10 locally...
<bachp>
dash: Ok :( But do you know how the priority comes to be? So why does python3 win?
<gchristensen>
apeschar: so you want 1 target server to download multiple dependencies at once?
<apeschar>
that's right
<gchristensen>
I'm surprised it doesn't already
<apeschar>
gchristensen: me too-- I've tried --max-jobs and --cores, but that doesn't influence the nix-copy-closures call
betaboon has joined #nixos
<gchristensen>
apeschar: what does your target server's nix.maxJobs have set?
<gchristensen>
by default that is 1
ixxie has joined #nixos
<ixxie>
When I run nix-build in some directory with a default.nix, I can assume in the build process access to everything inside that directory?
<apeschar>
gchristensen: 1, indeed. however, how would one set this from nixops without having to first change the config manually? that's what i'm struggling with
<gchristensen>
you can assume it has access to your full disk, ixxie
<apeschar>
gchristensen: perhaps it would help if I set nix.maxJobs in the NixOps config! i hadn't considered that yet since i figured it would only take effect _after_ the initial deployment...
<gchristensen>
apeschar: well it would take effect after the first config deplay
<gchristensen>
yep!
<ixxie>
thanks gchristensen, I guess my problems are not nix related then
<apeschar>
gchristensen: that's too late :P
<gchristensen>
it would only take effect after your first config deploy indeed, but: (1) how often do you setup new nodes? (2) where are these nodes hosted?
<ixxie>
did you see the SO question I posted btw?
<gchristensen>
yes
<apeschar>
gchristensen: not too often, and somewhere (UpCloud) where the pipe is a lot bigger than my local one :) I should probably set this sort of initial config in my disk image
<gchristensen>
exactly
iMatejC has quit [(Remote host closed the connection)]
<ixxie>
cool :) I figure formulating comprehensive questions can be just about the only helpful thing I can do at this point :P
<gchristensen>
or have a pre-nixops phase where you prepare it with this sort of thing
<apeschar>
gchristensen: that sounds like a better plan-- rebuilding the image for every little tweak will be a bit of a pain
bhipple has quit [(Ping timeout: 255 seconds)]
<apeschar>
thanks!
bhipple has joined #nixos
<gchristensen>
you're welcome! :)
justanotheruser has quit [(Ping timeout: 240 seconds)]
MatejC has joined #nixos
a13ph has joined #nixos
justanotheruser has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 5 new commits to release-17.03: https://git.io/vHTUI
<NixOS_GitHub>
nixpkgs/release-17.03 77194b2 Joachim Fasting: nano: use https for meta.homepage...
<NixOS_GitHub>
nixpkgs/release-17.03 d606d25 Joachim Fasting: dnscrypt-proxy: 1.9.4 -> 1.9.5...
<NixOS_GitHub>
nixpkgs/release-17.03 daf0b31 Niklas Hambüchen: manual: Fix `addCheck` example having arguments in wrong order....
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
bkchr has joined #nixos
pbogdan has joined #nixos
takle has quit [(Remote host closed the connection)]
sigmundv has quit [(Ping timeout: 260 seconds)]
fstd has joined #nixos
<fstd>
Hi
ixxie has quit [(Quit: Lost terminal)]
<fstd>
For some reason in our expression we have nmap, ... in our pkgs but not ipsec-tools, since its linux specific we figured its not in there by default? how do we import it?
k2s has joined #nixos
<gchristensen>
fstd: what are you trying to be able to do?
<gchristensen>
I don't understand
<LnL>
the attribute name is ipsecTools
<simpson>
fstd: `ipsecTools ? null, ` if you're just wanting to do it optionally.
<fstd>
LnL: thanks, how would I have figured that out if I may ask?
<LnL>
I usually use nix-repl '<nixpkgs>' and the tab completion
<LnL>
nix-env -qaP also include the attribute paths
<fstd>
thanks a lot
Wizek_ has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
takle has joined #nixos
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
takle has quit [(Ping timeout: 240 seconds)]
sigmundv has joined #nixos
<joko>
Could anyone help me create my own channel for nixos? Currently I checkout channels/nixos-unstable and add a couple of commits on top of that
Olgierd_ has quit [(Quit: Konversation terminated!)]
<srhb>
joko: I don't think there are any steps after that. :)
k2s has quit [(Quit: Leaving)]
<joko>
srhb: I was looking for some guidance on generating nixexprs.tar.xz and binary-cache-url, testing that all the packages I want to be built are indeed there etc.
<thblt>
Does anybody knows if NixOS can start the X session by simply running a user's ~/.xsession, if present?
<thblt>
With Debian, I'm able to do that with LightDM, it's called "Default X Session" or something similar.
oleks has quit [(Remote host closed the connection)]
takle has joined #nixos
<thblt>
Use case: I build my XMonad with Stack, so starting an X session = running a binary under ~
<thblt>
Thanks!
yegods has quit [(Remote host closed the connection)]
<thblt>
my XMonad *config, I mean
yegods has joined #nixos
<joko>
thblt: I am doing something similar with sddm, at least sddm looks for ~/.xsession
<thblt>
joko: Thanks,
<thblt>
joko: trying right now :)
takle has quit [(Ping timeout: 240 seconds)]
yegods has quit [(Ping timeout: 258 seconds)]
oleks has joined #nixos
<thblt>
joko: It works, thank you!
<joko>
you're welcome
det has joined #nixos
<joko>
My guess on having my own channel is to have a look at nixos/release-combined.nix and more specifically at nixos.channel
<MichaelRaskin>
In what sense do you want to have your own channel?
simendsjo has quit [(Ping timeout: 260 seconds)]
<joko>
MichaelRaskin: well, I want to get some commits to nixos-unstable faster and/or some testing ones
<MichaelRaskin>
Why not just make a checkout and put it into NIX_PATH?
<joko>
MichaelRaskin: this is similar to what I am doing ("sudo nixos-rebuild -I nixpkgs=/home/joko/playground/nixpkgs -I nixos-config=/etc/nixos/configuration.nix switch"), but I would like to automate it a bit more
<MichaelRaskin>
export NIX_PATH?
<MichaelRaskin>
If you say «some commits», your update already contains decisions
<MichaelRaskin>
NIX_PATH can just point to checkouts
<joko>
MichaelRaskin: and would that work with autoUpgrade?
yegods has quit [(Remote host closed the connection)]
<MichaelRaskin>
It probably runs in its own environment that will need changing
<MichaelRaskin>
An it will only upgrade when you update the checkout anyway
alphor has joined #nixos
kirelagin has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
alphor has quit [(Client Quit)]
mkoenig has quit [(Ping timeout: 240 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
mkoenig has joined #nixos
systemfault has quit [(Read error: Connection reset by peer)]
systemfault has joined #nixos
bkchr has quit [(Ping timeout: 268 seconds)]
cpennington has quit [(Ping timeout: 240 seconds)]
bkchr has joined #nixos
mizu_no_oto has joined #nixos
<bkchr>
Hi, I want to autostart yakuake, is there any way to define a autostart program?
<LnL>
oh wow, I just discovered :s in nix-repl
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
mog has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
<joko>
bkchr: kcmshell5 autostart and add it there?
johnsonav has joined #nixos
cpennington has joined #nixos
drakonis has joined #nixos
kirelagin has joined #nixos
Itkovian has joined #nixos
alphor has joined #nixos
alphor has quit [(Remote host closed the connection)]
bastian has joined #nixos
Itkovian has quit [(Client Quit)]
bkchr has quit [(Ping timeout: 240 seconds)]
bastian has quit [(Client Quit)]
bkchr has joined #nixos
Itkovian has joined #nixos
<gchristensen>
do we have any open source electron apps packaged?
<drakonis>
warning: name collision in input Nix expressions, skipping ‘/home/drakonis/.nix-defexpr/channels_root/nixos’
<drakonis>
and i thought sddm-kcm was available, it isnt :(
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
betaboon has quit [(Quit: This computer has gone to sleep)]
FRidh has joined #nixos
bkchr has quit [(Ping timeout: 255 seconds)]
JagaJaga has joined #nixos
<FRidh>
bachp: priority is set in the Python expressions in pkgs/development/interpeters/cpython/../default.nix . Could you open an issue? I may have used set the wrong priority in the past.
m0rphism has quit [(Quit: WeeChat 1.7.1)]
<pbogdan>
gchristensen: atom? though that's building the package from .deb rather that building from source if that's what you meant
<bachp>
FRidh: Thanks I just saw this. And by looking at nixpkgs I tought python2 has higher prority (-100) compared to python3 (-10). So I was wondering why it didn't work. But it turns out I was using an old nixpkgs version where https://github.com/NixOS/nixpkgs/commit/079353e20851073e9b5de183ab24414d7cd54ccb was missing. Now that I updated everything is working as expected. Thanks for the help.
mog has joined #nixos
exarkun has quit [(Ping timeout: 246 seconds)]
hellrazor has quit [(Ping timeout: 240 seconds)]
exarkun has joined #nixos
yegods has joined #nixos
hellrazor has joined #nixos
<gchristensen>
pbogdan: yeah, I'm really wondering if we build any electron apps from source
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
AndreasO has joined #nixos
yegods has quit [(Ping timeout: 240 seconds)]
esmiurium has joined #nixos
<AndreasO>
I was eager to install NixOS, but I just read that using Python on NixOS isn't without trouble.
systemfault has quit [(Read error: Connection reset by peer)]
mkoenig has quit [(Remote host closed the connection)]
<FRidh>
AndreasO: virtualenv is a hassle, tox is broken afaik, and development mode is "not ideal". Aside from that I think it works fine, but I'm for sure biased :)
<AndreasO>
FRidh: and pip?
<FRidh>
any idea what to do to get the lines that are hidden due to mei 16 22:38:13 nixos kernel: systemd-shutdow: 38 output lines suppressed due to ratelimiting . I don't have this issue, but according to the person that does modifying services.journald.rateLimitBurst didn't help
<FRidh>
AndreasO: depends how you use it I would say. You can create a virtualenv, and use pip from within it. You can also use a user site-packages though in my opinion you should never do that.
<AndreasO>
FRidh: I mostly code in Racket now, that seems to work fine.
ambro718 has joined #nixos
Itkovian has joined #nixos
bkchr has joined #nixos
johnsonav has quit [(Ping timeout: 246 seconds)]
AndreasO has quit [(Quit: Found more important stuff than irc!)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Guest21382>
Is zimbatm around? Been working on bundlerEnv and suddenly realized: it seems like multiple outputs is really appropriate here.
Itkovian has joined #nixos
Guest21382 is now known as judson
FRidh has quit [(Quit: Konversation terminated!)]
<judson>
More generally, looking for advice on using mutliple outputs in this case.
johnsonav has joined #nixos
pie_ has quit [(Ping timeout: 260 seconds)]
hellrazor has quit [(Ping timeout: 246 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hellrazor has joined #nixos
bkchr has quit [(Ping timeout: 272 seconds)]
bennofs has joined #nixos
systemfault has joined #nixos
alphor has joined #nixos
alphor has quit [(Client Quit)]
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
det has quit [(Remote host closed the connection)]
det has joined #nixos
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
ertesx has joined #nixos
ertesx has quit [(Client Quit)]
stanibanani has quit [(Ping timeout: 240 seconds)]
ertesx has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
kirelagin has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
thc202 has quit [(Ping timeout: 268 seconds)]
<gchristensen>
gosh, almost every step with Sia.tech has lead to a stubbed toe
Jackneilll has quit [(Remote host closed the connection)]
<bachp>
Is it possible to set hardeningDisable=[ "all" ] for a buildFHSUserEnv. So that whenever gcc is called inside the chroot it does not have the hardening flags set via cc-wapper?
jmiven has joined #nixos
agjacome has quit [(Quit: leaving)]
<symphorien>
you can export it as an environment variable
<bachp>
symphorien: I tried export hardeningDisable=all
<symphorien>
That should do the trick, doesn't it ?
orivej has quit [(Ping timeout: 255 seconds)]
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] obadz pushed 1 new commit to master: https://git.io/vHTnV
<bachp>
symphorien: When I pass it to yocto via config it works so it indeed does the trick. By wrapping gcc you mean another warpper around cc-wrapper or to replace it completly?
<MichaelRaskin>
Does NixOS_GitHub need special freenode access to make announcements as status change messages? Maybe the nixos-users-wiki bot could do it the same way?
<symphorien>
I mean just another wrapper that sets the environment variable
<ekleog>
MichaelRaskin: it's just running a /notice instead of a normal message
<bachp>
symphorien: Is there an example how to do this in a nix buildFHSUserEnv? Or would it be possible to add an option to the upstream cc-wrapper that allows disabling hardening?
<ekleog>
like this
<ekleog>
(that said I don't know who manages this bot so can't do it)
<symphorien>
You don't want to change stdenv.cc bacause it would trigger a rebuild of everything
<bachp>
That makes sense
<bachp>
What I'm trying to achive is to setup a nix-shell to make a yocto build on NixOS
<symphorien>
I have never used buildfhsuserenv but if it takes a list of packages, just pass your modified gcc in the list
<gchristensen>
makefu: ^ can you make nixos-users-wiki NOTICE the channel instead of MSG?
kampfschlaefer has quit [(Ping timeout: 272 seconds)]
<bachp>
To achive this I would need a gcc inside the FHS env that doesn't have the hardening flags enabled
<symphorien>
And yes maybe an option in gcc for that would make sens
orivej has quit [(Read error: Connection reset by peer)]
<bachp>
symphorien: I think I know what you mean. I will give it a try, and if it works and makes sense I will come up with a PR. Thanks for the help.
<symphorien>
All the more as gcc45 for example simply fails with hardening enabled (the options didn't exist at that time)
<MichaelRaskin>
Thanks, ekleog
ambro718 has quit [(Ping timeout: 272 seconds)]
orivej has joined #nixos
exarkun has quit [(Read error: Connection reset by peer)]
<clever>
Zer000: do you know if hydra is using a different version of nix?
<Zer000>
clever, how can i check?
det has quit [(Ping timeout: 240 seconds)]
<Zer000>
they're both on 16.09, it's unlikely
<Zer000>
I can go to the server that my hydra is running on, clone the repo from github and run ./nix-build.sh and it works just fine.
det has joined #nixos
hiratara has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<clever>
Zer000: i'm guessing it has to do with the regex in parseTOML
hiratara has joined #nixos
<Zer000>
clever, well I don't know what to do about it. Should I submit an issue on github?
<Zer000>
I guess that as a workaround I can always pre-convert my .toml files to .json and then go from there
<clever>
yeah, i think thats all you can do
asymmetric1 has quit [(Ping timeout: 240 seconds)]
betaboon has quit [(Quit: This computer has gone to sleep)]
sigmundv has quit [(Ping timeout: 246 seconds)]
mellowmaroon has joined #nixos
<SovereignBleak>
So I’ve been loving NixOS but I haven’t realized how poor my graphics performance has been until I partitioned off a part of my drive to do some video editing with Lightworks on Ubuntu (since we don’t have Lightworks packaged). I install Ubuntu's Nvidia Prime tool, use it to switch to the Nvidia card in my Optimus laptop and the performance is so much
<SovereignBleak>
better than Bumblebee I wonder how I ever suffered this long.
<MichaelRaskin>
Well, on my laptop (with Nix) I cannot make Bumblebee work, but Nouveau + Prime work fine
<mellowmaroon>
Is there any way to disable interactive login for the root account?
<SovereignBleak>
I’m not technical enough to package it but there’s a utility for Arch called nvidia-xrun similar to nvidia-prime if any packagers out there want to take a crack at it. https://github.com/Witko/nvidia-xrun/blob/master/README.md
<SovereignBleak>
Nouveau gives terrible performance.
<mellowmaroon>
Also, thanks for reminding me to set up my configuration with Nvidia stuff :)
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<MichaelRaskin>
In my case my main problem is that I need working Nvidia card for the VGA output. Could Lenovo please get sold to Asus or something…
<MichaelRaskin>
Well, DRI_PRIME=1 gives me some performance boost when switching from Intel to Nouveau
<MichaelRaskin>
I don't trust Nvidia not to break some subtle X expectations in some corner cases, to be honest, so I use nouveau+modesetting
Nobabs27 has joined #nixos
systemfault has joined #nixos
<Nobabs27>
yo how do I connect to wifi? The manual seems to have no info on this (im installing on a laptop).
betaboon has joined #nixos
betaboon has quit [(Changing host)]
betaboon has joined #nixos
mizu_no_oto has joined #nixos
<mellowmaroon>
Nobabs27: I've always done it graphically after installing Gnome/KDE
<Nobabs27>
well I can't get it installed without internet connection
<Nobabs27>
if I have to I'll use ethernet, but the command dhcpcd does nothing
<mdash>
Use "nmtui"
<Nobabs27>
there is no nmcli either (networkmanager)
<mellowmaroon>
Nobabs27: Oh right...sorry lol, I use the graphical installer with KDE, and set it up from there
<Nobabs27>
command not found mdash
<MichaelRaskin>
I just write wpa_supplicant.conf manually
<MichaelRaskin>
It has a manpage, but I am not sure if it is on CD (hopefully it is)
<Nobabs27>
so there is no ncurses app for this that comes with the installer?
<mellowmaroon>
That's probably the easiest option if you're not installing inside the KDE
<mdash>
Did you enable network manager in your configuration.nix?
<Nobabs27>
its not installed yet mdash, im in the liveusb
<mdash>
Ah the installer disk. Never mind
<mellowmaroon>
I think nmtui is an ncurses app
<Nobabs27>
yeah but the command isnt found
<Nobabs27>
so, what is the service for networking called?
stepho has quit [(Ping timeout: 240 seconds)]
<mdash>
On the installer I ended up running wpa_supplicant by hand
<Nobabs27>
brb gonna try something
<mellowmaroon>
Nobabs27, that will probably be easiest without a graphical env
<MichaelRaskin>
I actually always use plain wpa_supplicant just because its config is versionable
cpennington has quit [(Ping timeout: 260 seconds)]
<mellowmaroon>
NetworkManager doesn't use wpa_supplicant behind the scenes, does it?
<mellowmaroon>
I prefer wpa_supplicant, but I don't like fighting GNOME/KDE
<Nobabs27>
ok I cheated, hooked it up to ethernet and did systemctl restart dhcpcd
<Nobabs27>
then once I get it installed I'll install network manager and be good to go
justelex has quit [(Ping timeout: 240 seconds)]
<Nobabs27>
although it would be nice if the iso just included networkmanager :)
<mellowmaroon>
For non-graphical setups, I think more people use wpa_supplicant, and that's included
<mellowmaroon>
but anyway, glad you got things working :)
<MichaelRaskin>
There is also wpa_cli
<Nobabs27>
im going to an i3 setup once I get it done
<MichaelRaskin>
Which even has command completion
stepho has joined #nixos
<mellowmaroon>
Found something to disable root login for ssh at least...
<clever>
mellowmaroon: i usualy set services.openssh = { enable = true; permitRootLogin = "yes"; passwordAuthentication = false; }; once the install is done
<clever>
only ssh keypairs, no other way in
<Nobabs27>
how do I chroot in to change some stuff?
<mellowmaroon>
clever: so that disables interactive login as well?
<clever>
Nobabs27: there is a "nixos-install --chroot" flag that does it all for you
<clever>
mellowmaroon: it still allows interactive logins over ssh, but you need a keypair to get it
<Nobabs27>
oh thank god
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<mellowmaroon>
that's cool, never knew about nixos-install --chroot
pie_ has quit [(Quit: Leaving)]
pie_ has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<Nobabs27>
I guess that the NixOS equiv of arch-chroot
<mellowmaroon>
for me, the installation process was so short that I just redid the steps when I needed to change something for installation
<clever>
if you remount an existing install and run nixos-install on it again, it will update it to match the configuration.nix
<mellowmaroon>
right, that's how I did it
<clever>
nixos-install is basicaly just a script to run nixos-rebuild under chroot, and deal with getting nix inside the rootfs
<Nobabs27>
is nix-env -qa thow you search or...?
<Nobabs27>
*how
<clever>
Nobabs27: i usualy use nox or nix-repl to search
<Nobabs27>
ah ok
<Nobabs27>
brb
<mellowmaroon>
what's nox?
<mellowmaroon>
I've been using nix-env -qaP
<clever>
a tool that will index nixpkgs and allow searching
<mellowmaroon>
oh, neat :)
<Nobabs27>
nix-repl command not found
<Nobabs27>
ill try qaP
<clever>
nix-repl has to be installed first, nix-env -iA nixos.nix-repl
<clever>
same for nox
<mellowmaroon>
qaP buffers it into "less", and there I used the / key
<mellowmaroon>
thanks for the nox tip! :D I like it
ambro718 has quit [(Ping timeout: 272 seconds)]
<Nobabs27>
well qaP is worse than the web interface, I searched networkmanager on both, only the web gave me results
<mellowmaroon>
...I didn't know there was a web interface either haha