<Dezgeg>
or well, I guess you can't flatten a non-linear commit graph and have it always look sane... another reason for doing rebases instead of merges
<nh2>
can anybody tell me which part of nix implements package downloading?
eacameron has joined #nixos
<nh2>
I see curl invocations in ps, with the flag --netrc-optional, but I cannot find in any of the nix repos where that is used
joneshf-laptop has quit [(Quit: Leaving)]
takle has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 246 seconds)]
<nh2>
ah I found it, download-from-binary-cache.pl.in in `nix`; but I could not locate it on github because it is gone in the master branch where it's replaced by the C++/libcurl downloader
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
mekeor has quit [(Ping timeout: 258 seconds)]
mizu_no_oto has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
Drakonis has quit [(Ping timeout: 256 seconds)]
eacameron has joined #nixos
takle has joined #nixos
iyzsong has joined #nixos
mattyu has joined #nixos
drasich has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
mkoenig has quit [(Remote host closed the connection)]
ndowens08 has quit [(Ping timeout: 240 seconds)]
marusich has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<puffnfresh>
pikajude: yeah, the Insider update will come, you have to wait
<calvertvl>
clever: thanks for your help, the manual copy method worked well
mguentner has quit [(Ping timeout: 258 seconds)]
catch22_ has joined #nixos
<fresheyeball>
clever: dd did the trick
<fresheyeball>
thank you
<clever>
yep :)
isidore has joined #nixos
hyphon81 has quit [(Remote host closed the connection)]
ebzzry has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
RchrdB has quit [(Ping timeout: 260 seconds)]
Havvy has quit [(Ping timeout: 240 seconds)]
magnetophon has quit [(Ping timeout: 260 seconds)]
johnw_ has joined #nixos
Havvy has joined #nixos
byteflame has joined #nixos
toppler` has joined #nixos
alfie has quit [(Ping timeout: 260 seconds)]
kori has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has joined #nixos
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
toppler has quit [(Ping timeout: 260 seconds)]
alfie has joined #nixos
amir has quit [(Ping timeout: 268 seconds)]
amir has joined #nixos
kori has joined #nixos
[0x4A6F] has joined #nixos
byteflame has quit [(Ping timeout: 256 seconds)]
kyren_ has quit [(Ping timeout: 260 seconds)]
exarkun has quit [(Ping timeout: 260 seconds)]
exarkun has joined #nixos
Twey has quit [(Ping timeout: 268 seconds)]
kyren has joined #nixos
<vaibhavsagar>
hey, is there an openshift equivalent for nixos?
<vaibhavsagar>
in the sense that openshift will allow me to have a docker container running online (for free, although that's not as important)
mitchty has quit [(Remote host closed the connection)]
ebzzry has quit [(Ping timeout: 268 seconds)]
<vaibhavsagar>
I'd like to be able to specify a derivation somewhere and spin up a service
pingveno has quit [(Ping timeout: 260 seconds)]
<calvertvl>
vaibhavsagar: take a look at NixOps, multiple backends are available
<vaibhavsagar>
I was just about to say
<calvertvl>
I haven't used it yet but many people do
<vaibhavsagar>
but then I have to set up the backends manually?
Twey has joined #nixos
<calvertvl>
you have to have an account or set up the prerequisite for a local backend, yes
pingveno has joined #nixos
mitchty has joined #nixos
<vaibhavsagar>
are there any nixos-native server providers?
<vaibhavsagar>
or is that part of the *magic* of nixops, that I shouldn't need any?
<clever>
vaibhavsagar: for nixops on aws, it will spin up a VM running a clone of a base image the foundation uploaded to aws
mattyu has joined #nixos
<clever>
vaibhavsagar: for other provides like digitalocean, it will ssh into a base ubuntu image, and then reinstall nixos over the rootfs
<clever>
vaibhavsagar: not sure on what the other platforms in nixops will do
alx741 has quit [(Quit: alx741)]
<vaibhavsagar>
clever: that helps a lot, thanks
<clever>
vaibhavsagar: and there is also targetEnv = "none";, where you have to manualy setup a nixos box, with root ssh, then nixops will take care of the rest
<clever>
for cloud providers with a supported API, nixops can just create the entire machine for you
mattyu has quit [(Remote host closed the connection)]
<clever>
so you could make a nix expression that defines config for 100 boxes, hit go, and then it just goes out and adds 100 boxes to your bill
mattyu has joined #nixos
<vaibhavsagar>
that's pretty awesome
magnetophon has joined #nixos
<vaibhavsagar>
I was hoping that "nix containers as a service" would be a thing
<clever>
vaibhavsagar: part of the issue there, is that every container has full read access to the host /nix/store
<clever>
vaibhavsagar: which will also include the config and code for every other container
<clever>
at least, when using the built-in nixos containers
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vSlwV
<NixOS_GitHub>
nixpkgs/master f70e777 Peter Hoeg: calibre: 2.80.0 -> 2.82.0
mattyu has quit [(Ping timeout: 260 seconds)]
* clever
heads to bed
<vaibhavsagar>
thanks clever
<vaibhavsagar>
that makes sense
Svarog has quit [(Quit: Ex-Chat)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
drasich has quit [(Ping timeout: 246 seconds)]
katyucha has quit [(Read error: No route to host)]
matthewbauer has joined #nixos
matthewbauer has quit [(Ping timeout: 264 seconds)]
isidore has quit [(Quit: WeeChat 1.7)]
sigmundv has quit [(Ping timeout: 240 seconds)]
mattyu has joined #nixos
<c74d>
what packages provides libX11.so?
<c74d>
oh, xorg.libX11 I guess
mattyu has quit [(Remote host closed the connection)]
mattyu has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
mattyu has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Ping timeout: 240 seconds)]
crzyp3ck has quit [(Ping timeout: 240 seconds)]
byteflame has joined #nixos
endformationage has quit [(Quit: WeeChat 1.6)]
byteflame has quit [(Ping timeout: 256 seconds)]
takle has joined #nixos
stepcut has joined #nixos
stepcut has quit [(Remote host closed the connection)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
takle has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
fresheyeball has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Remote host closed the connection)]
demax has quit [(Remote host closed the connection)]
demax has joined #nixos
posco has joined #nixos
Filystyn has quit [(Ping timeout: 260 seconds)]
Filystyn has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
<canndrew_>
so, i'm trying to try out ruby-on-rails on my nixos machine.
<canndrew_>
the first thing i do is "gem install rails".
<canndrew_>
and that fails.
<canndrew_>
it reckons it can't find zlib.h, running it with `nix-shell -p zlib zlib.dev` doesn't fix anything.
<canndrew_>
any pro tips?
calvertvl has quit [(Ping timeout: 256 seconds)]
<ntruessel>
Hi all. I'm trying to set up nixos on my desktop and ran into a problem. The USB keyboard is not working during early boot. Hence I'm unable to enter the decryption key for my harddrive. I tried adding hid_generic to boot.initrd.availableKernelModules but had no success so far. I'm guessing the problem is related to a missing module in the initrd, but all I can find on google are old issues on the github issue tracker. Any pointers?
<ericnoan>
canndrew_: i'm a noob myself, but I'm pretty sure you have to install ruby through the declarative config. search the packages here http://nixos.org/nixos/packages.html
<NixOS_GitHub>
[nixpkgs] cpages pushed 1 new commit to master: https://git.io/vSli4
<kuznero>
ericnoan: didn't help. `nixos-rebuild boot` and `nixos-rebuild boot --upgrade` do not fail, but after the restart and then when I try running `nixos-rebuild switch` it fails with exactly same error as before: https://pastebin.com/1VvnNC9J
<Filystyn>
ericoan great thx just one last question
<Filystyn>
how to give range
<ericnoan>
kuznero: after the restart, you have already switched to the new config
byteflame has quit [(Ping timeout: 240 seconds)]
<Filystyn>
networking.firewall.allowedTCPPorts = [ 80 443 ]; here i have two but if i wnat range
<Filystyn>
how to spec it
mattyu has quit [(Ping timeout: 240 seconds)]
<kuznero>
ericoan: yes, but I will need to run it again with my own changes to *.nix files for example. So it is legit to run `nixos-rebuild switch` multiple times. Like it was in 16.0?.
<canndrew_>
avn: I've got a gemset.nix file but how i can use that to install rails and create a shell i can develop in?
<vcunat>
Hydra now doesn't show logs, so I'm completely blind.
<vcunat>
Basically everything started to fail on Darwin, though I can't see any relevant change. I suspect it might be some breakage on Hydra, but I can't know much without a Darwin machine.
k2s has quit [(Ping timeout: 260 seconds)]
ntruessel has quit [(Quit: Page closed)]
obadz has quit [(Quit: WeeChat 1.7)]
ebzzry has quit [(Quit: WeeChat 1.7)]
ebzzry has joined #nixos
jmeredith has quit [(Quit: Connection closed for inactivity)]
uralbash has quit [(Remote host closed the connection)]
<Filystyn>
ok new question
<Filystyn>
do i need to rememebr about soemthign when i just build with make/cmake?
<Filystyn>
i downloaded source and build am i safe or not?
<Filystyn>
the thing is im worried about .so libs
<Filystyn>
that they will get added inw rong place
<Filystyn>
since it seems they are stored in other place on nix than on other systems
takle has joined #nixos
<vcunat>
Filystyn: nix can garbage-collect anything in /nix/store, so if you reference such paths from outside /nix/store, they may break in time (e.g. after updates + GC).
<vcunat>
(Of course, GC is only done if you explicitly run it, by default.)
Lisanna_ has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] ambrop72 opened pull request #24558: qt58: Fix path to qhelpgenerator in cmake file. (master...qt-fix) https://git.io/vSlXo
byteflame has joined #nixos
<NixOS_GitHub>
[nixpkgs] georgewhewell opened pull request #24559: mtools: fix build on darwin (master...mtools-darwin) https://git.io/vSlXX
mattyu has joined #nixos
stepcut has joined #nixos
byteflame has quit [(Ping timeout: 240 seconds)]
catch22 has quit [(Remote host closed the connection)]
catch22_ has quit [(Remote host closed the connection)]
<Filystyn>
vcunat ok so how do i know i am safe?
<Filystyn>
cant i compile anythign what should be my steps
<Filystyn>
I am talking about manual compilation
mattyu has quit [(Ping timeout: 240 seconds)]
<Filystyn>
dowload
<Filystyn>
make
<Filystyn>
and hey what if it creates some .so files not in the nix dir
<obadz>
Filystyn: it's probably best for you to create a little .nix file to compile what you're trying to build
<obadz>
that's the nix way…
stepcut has quit [(Ping timeout: 256 seconds)]
<vcunat>
It certainly makes things easier.
<obadz>
vcunat: glad you're back on IRC :)
<vcunat>
But you can e.g. install all the dependencies into some profile - that way they won't be GCd until you remove them.
<vcunat>
obadz: I only come very rarely :-)
<Filystyn>
and what i do in that .nix file?
<Filystyn>
second what do you mean install to some other profile
<vcunat>
First, if you want just try something in short term, it's probably easiest to just fire nix-shell -p dep1 -p dep2 ... perhaps with also --pure flag and build the stuff in there.
Jackneill has joined #nixos
<vcunat>
It will add flags so that the dependencies should be found on the non-standard paths, etc.
<Filystyn>
short terms you mean i just make it see hwo it works delete?
<vcunat>
yes, for example
<Filystyn>
Than nono i have program i want to use and i will just recompile it if i want newer version. Probably 1-2 tiems a year it will be recompiled.
<vcunat>
this doesn't prevent GC of those dependencies
<vcunat>
For longterm stuff it's typically best to create a .nix expression, just like adding a package to official nixpkgs.
<Filystyn>
ok
mounty has quit [(Ping timeout: 264 seconds)]
<Filystyn>
so i need to learn how to make a nix package?
civodul has joined #nixos
<vcunat>
Yes, basically.
mounty has joined #nixos
<vcunat>
If it's something possible to be published, it would be best to include it in the "offical" nixpkgs tree, I think.
<Filystyn>
ok actualy thsi sounds cool ;-) ok ok and now question is will nxi try to fullfill dependencies in it?
<Filystyn>
actualy maybe i should check does it exist first its not pupolar so i assumed it's not in the rep
<vcunat>
Right :-)
<Filystyn>
ok just if you could give me soem link to wiki or some uptodate at least a bit how to make nix package
<vcunat>
You specify explicitly what packages should be visible to the builder. References retained the output make runtime dependencies.
<Filystyn>
so I will at least get a gasp of it for future referance
<obadz>
yeah if you want to preserve something along the lines of what you currently have you probably do
<Filystyn>
ok all works i see now kde5 was renamed to plasma. thank you ;-)
<Filystyn>
just for record everythign in manual is up to date but wiki should not be trusted?
<obadz>
that's the goel
<obadz>
goal
<vcunat>
Yes, the manual is reviewed, and it's versioned.
<Filystyn>
ok thx
<vcunat>
Wiki has been lower quality in general and it's read-only for some time (and something like deprecated).
<vcunat>
But there's discussion to revive it...
ebzzry has quit [(Read error: Connection reset by peer)]
<ambro718>
On one of my systems (ATI graphics), SDDM gives black screen, so I had to use LightDM for that one...
magnetophon has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ZombieChicken has joined #nixos
Filystyn has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 246 seconds)]
<ZombieChicken>
Does NixOS use systemd?
<obadz>
ZombieChicken: yes
<ZombieChicken>
Thanks
ZombieChicken has left #nixos []
<obadz>
haha
ixxie has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
wkennington has quit [(Read error: Connection reset by peer)]
magnetophon has joined #nixos
spinus has quit [(Ping timeout: 258 seconds)]
byteflame has joined #nixos
sg2002 has joined #nixos
<sg2002>
Hello. Have a couple of questions - does nixos provide a binary for chromium? Is there any place where I can find whether a particular package is binary or would be compiled from sources?
<obadz>
sg2002: it does. nearly everything that's available in the nixpkgs tree is provided in the binary cache
<sg2002>
obadz: For some reason it's compiling it for me. I don't seem to have any extra options that would necessitate this(like flash). Though that machine is a 32 bit one... On Chromium package page there's this link to hydra: https://hydra.nixos.org/job/nixos/release-17.03/nixpkgs.chromium.i686-linux, so I guess if there's no job, there's no binary package.
<sg2002>
Ok, another question - is there any way I can list all packages installed ad hoc?
<ambro718>
all packages in a user profile can be listed by "nix-env -q"
<ronny>
hmm
<ambro718>
note that each user including root has its own user profile
mattyu has quit [(Ping timeout: 260 seconds)]
<ronny>
anyone aware where kmail went in 17.03/unstable?
<sg2002>
ambro718: Thanks. I know that. What I want is to have an aggregate from all user profiles...
takle has quit [(Remote host closed the connection)]
<obadz>
sg2002: ls /nix/store ?
<obadz>
sg2002: it's odd that chromium is compiling. are you on a channel or using nixpkgs from git?
<sg2002>
obadz: No, I want specifically user demanded ones and not dependencies.
<ambro718>
obadz: he's using 32-bit
justbeingglad has joined #nixos
justbeingglad has left #nixos []
lezed1 has joined #nixos
<obadz>
sg2002: users don't demand packages, they demand environments.. you'll see those in ls /nix/var/nix/profiles /nix/var/nix/profiles/per-user/* /nix/var/nix/gcroots/auto /nix/var/nix/gcroots/per-user/*
<lezed1>
Hi, I have a quick question about the new packageOverrides. I used to have (in a nix-shell config) `let pkgs = nixos.overridePackages (self: super: {...})` and I'm not sure how to update it
<sg2002>
obadz: Yes, I know. I just want a script that goes all over those automatically.
<obadz>
I don't think there is one. what are you ultimately trying to do?
<sg2002>
obadz: I have a machine that I use from time to time. It's also has a couple of other users. Those users have stuff installed in their profiles. Once in a blue moon I get to upgrading nixos on it. Seeing what is installed in user profiles would allow me to promote some of those packages to configuration.nix.
<Filystyn>
do i need to enable something to run the tor browser. thsi is one of last things i need to make work somehiow ;-) ( one more is printer but did not even try yet )
<Filystyn>
ops it seem to actualy work on unstable
<Filystyn>
(did not work on stable)
<Filystyn>
than thx for now ;-)
<lezed1>
Regarding the overridePackages change, did `nixpkgs.stdenv` change was well (for use in defualt.nix)?
takle has joined #nixos
YellowOnion_ has joined #nixos
michiel_l has quit [(Quit: No Ping reply in 180 seconds.)]
YellowOnion has quit [(Ping timeout: 240 seconds)]
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
vcunat has quit [(Quit: Leaving.)]
mudri has quit [(Ping timeout: 246 seconds)]
romildo has joined #nixos
guillaum2 has joined #nixos
xadi has quit [(Ping timeout: 246 seconds)]
<guillaum2>
Hello. Apparently most libraries on nixpkgs are not packaged with static version. Is there a way to get the static library? If not, what is the usual way to build a standalone executable using nix (i.e.: I want as most of my lib as staticaly linked to ensure reproducible run on different distribution).
vcunat has joined #nixos
<qknight>
how to write this function in nix: on each call it returns n=n+1; n while keeping state of n
xadi has joined #nixos
<qknight>
this might only work with a service i suppose
ilyaigpetrov has joined #nixos
<vcunat>
I'd personally try to avoid such things, even if they were possible.
byteflame has joined #nixos
fuzzy-id has joined #nixos
<qknight>
vcunat: my motivation is this: i want a port abstraction which returns an empty port per instance
erictapen has joined #nixos
<qknight>
vcunat: another possiblity would be: services._ports."myidentifier" which would return the same port per identifier
<ambro718>
qknight: Perhaps you can keep the state in a nixos config option and each service forces it to one more?
nh2 has joined #nixos
<qknight>
ambro718: holding state in a config option is basically a service i guess
<vcunat>
I suppose you don't need those numbers to be "stable", i.e. always same for that given identifier?
mojjo has joined #nixos
<qknight>
vcunat: both models i proposed would work but the second one with the identifier returns always the same port number is even more desireable
byteflame has quit [(Ping timeout: 260 seconds)]
<ambro718>
qknight: I suppose so, you'd need to declare it in one place. But I'm not too familiar with nixos config so it might not be possible...
<vcunat>
You could hash the identifier into the port number.
<qknight>
vcunat: which shifts the problem into generating a unique identifier to get unique port numbers
mudri has joined #nixos
<ambro718>
vcunat: there aren't many port numbers, collisions would be likely
<vcunat>
but there's nontrivial collision probability if you have many ports
<qknight>
vcunat: we only have 65535 ports, and i would reserve only a small space of these for the prupose. that said, i fear collisions
<vcunat>
if you have just dozens, it should be low enough
<qknight>
vcunat: i plan for a range of 1000 ATM
<vcunat>
that's too much
<qknight>
vcunat: :P
<vcunat>
50% of collision existence already in around 256 choices
<qknight>
then no hash
<vcunat>
Why not maintain an explicit mapping?
<vcunat>
let portNumbers = {
<vcunat>
ident1 = 123;
<vcunat>
ident2 = 124;
<vcunat>
...
<ambro718>
vcunat: would there be any benefit to preserving port numbers?
<ambro718>
qknight:
<ambro718>
if yes you could do hash but if it's already used pick a different one
<ambro718>
maybe if that helps with less services getting restarted
<mojjo>
hi! anybody ever fetched contents from a git repo which isn't hosted on github? Instead it's on a ssh server, fetchgit seems not capable to handle this...
<vcunat>
Another option would be to defer port selection until runtime.
<qknight>
vcunat: i think runtime is too late, i need to write that port numbers into the config files also
<qknight>
vcunat: i'm considering your static approach ATM
mattyu has joined #nixos
<vcunat>
you can have a script that pre-generates/updates that static nix file
<vcunat>
before running real nix evaluation
<qknight>
vcunat: which runtime did you mean?
<qknight>
vcunat: i assumed after nixos-rebuild switch -> then services are started, i assumed you meant after nixos-rebuild swtich and before servcies are started
<vcunat>
(just that one line I posted) yes, I meant during system/service activation.
<vcunat>
But the "static" approach seems best to me.
<vcunat>
(from the information I know ATM)
<gchristensen>
good morning, #nixos
<vcunat>
good afternoon :-)
<gchristensen>
*rubs his eyes* vcunat, on IRC? :)
<vcunat>
I should've come yesterday, just as a joke :-)
<gchristensen>
hehe. I've been absent for about 4 days now. I had a couple of days of travel and then I got lost in the Nintendo Switch.
mattyu has quit [(Ping timeout: 260 seconds)]
<qknight>
vcunat: i didn't give you all the information. but for what you know i agree.
<vcunat>
qknight: and what I don't know but you do makes things different?
<qknight>
vcunat, ambro718: thanks your your help. very much appreciated!
<vcunat>
:-)
eacameron has joined #nixos
<qknight>
vcunat: have to think about implications.
Shados has quit [(Ping timeout: 260 seconds)]
Shados has joined #nixos
<gchristensen>
I thought that was part of being a functional language, there were none?
<qknight>
gchristensen: ?
eacameron has quit [(Ping timeout: 240 seconds)]
<qknight>
gchristensen: and welcome back ;-)
<gchristensen>
hehe, thank you
crzyp3ck has quit [(Changing host)]
crzyp3ck has joined #nixos
<obadz>
sg2002: maybe this? for p in /nix/var/nix/profiles/per-user/*/profile ; do nix-env -q -p $p; done
Itkovian has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
romildo has left #nixos ["Leaving"]
<ben>
so i have this derivation where i wrote propagatedBuildInputs = [ perlPackages.AuthenSASL ... ];
<ben>
and the resulting store path includes a nix-support/propagated-native-build-inputs with the path to Authen::SASL in it
<ben>
but when I nix-env -i the store path, Authen::SASL doesn't end up in my profile so the thing doesn't find it
<ben>
what step am I missing? :3
eacameron has joined #nixos
RchrdB has joined #nixos
<ben>
oh that's not what that does, is it
<m0rphism1>
Is it possible to get `nix-env -q` to display not only the names of installed packages, but also the attributes which were used to install them?
eacameron has quit [(Ping timeout: 240 seconds)]
<m0rphism1>
(I'm looking for an automatic way to reinstall my user packages after updating the nix-channel)
<ben>
isn't that nix-env -u --leq?
<crzyp3ck>
how to add some values to /etc/profile?
<ambro718>
Can someone explain what's all this ChromiumOS stuff in nixpkgs/hydra?
<crzyp3ck>
what does it to do starting an app with nix-shell ?
<gchristensen>
ambro718: I think some people use(d) the chromiumos kernel for some reason on nix
<ambro718>
ah that seems to be it yes
<sg2002>
obadz: Thanks.
<ben>
crzyp3ck: nix-shell -p foo gives you a shell that acts as if foo was installed, without permanently affecting your system or your environment
byteflame has joined #nixos
<ben>
so it looks like the issue is the environment setup and the name of the binary is right :)
<apostolis>
true
<crzyp3ck>
ben: nixy obadz thank you
mojjo has quit [(Ping timeout: 260 seconds)]
<gchristensen>
crzyp3ck: you might consider using an editor with nix syntax highlighting, or github's pastebin, which also has nix syntax highlighting
justbeingglad has left #nixos []
<apostolis>
Will it help if I install Chromium from the specific user instead of system-wide?
<crzyp3ck>
gchristensen: do we have hightlight for either kate kwrite or vim? if not then which editor?
<gchristensen>
vim yes
byteflame has quit [(Ping timeout: 260 seconds)]
sg2002 has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<gchristensen>
I don't know how to install it, though, maybe someone else does
<qknight>
vcunat: found an argument: say we use static names which are translated into port numbers we are not much better than using the port numbers directly (except we could change the range easily by adding a constant)
<vcunat>
I think nix highlighting for vim is installed by default.
<qknight>
vcunat: but now consider that we have 5 programs requiring an individual port we would have to write a ident1 into the first and so on
<qknight>
vcunat: but what if program 4 is not used anymore, then we have a gap and we would have to manage manually
<apostolis>
I did "nix-env -iA nixos.chromium" and it built path "user-environment". Now it works.
<qknight>
vcunat: i just want to dynamically allocated ports starting from 40000 in a range to 41000 for instance
peterhoeg has joined #nixos
<m0rphism1>
does the behavior of `nix-env -u` correspond to reinstalling packages by name (`nix-env -i`) or by attribute name (`nix-env -iA`)?
<vcunat>
m0rphism1: -i if you don't specify them explicitly by -A
<m0rphism1>
I've read the man pages, but I'm not entirely sure.
<qknight>
and also i didn't manage to mix 'nix' code with 'nix options' so i can increase the port number + 1 on each usage. stupid 'purely functiona' design ;p
bennofs has quit [(Quit: WeeChat 1.7)]
<vcunat>
qknight: it might be possible in the nixos module system
<m0rphism1>
vcunat: ah, thanks, I knew there was a reason I've made an update wrapper
<vcunat>
m0rphism1: you may do -u --always -A pkg1 -A pkg2 ....
mattyu has joined #nixos
<vcunat>
(but I prefer to define custom package sets that I just specify as argument to -A)
<gchristensen>
fpletz: ping
<qknight>
vcunat: i'm sure it somehow is with the options system but i don't know how either
<gchristensen>
fpletz: (this is important, please reply ASAP :))
dejanr_away is now known as dejanr
<m0rphism1>
vcunat: I've used the custom package set approach up until now, but I've never been disciplined enough not to use `nix-env -iA` as well, which lead to annoying inconsistencies ;)
<vcunat>
probably define one's own type - with custom function that "merges" values
<m0rphism1>
at some point I always have to synchronize my custom package set with the output of `nix-env -q` which is really annoying, as I'm comparing attributes to attribute names
<vcunat>
that function can do whatever, so e.g. compute counts and assign values
apostolis has quit [(Quit: WeeChat 1.7)]
elninja44 has joined #nixos
<vcunat>
that should be usable to auto-assign different values to each identifier
<vcunat>
(you're merging the set of the identifiers)
<jluttine>
hmm.. does nginx have anything similar to extraSubservices in apache? i'd like to be able to write web services for virtual hosts. for apache, there are owncloud, worpress and others. i'd like to have similar framework for nginx
<jluttine>
any insights on that?
<qknight>
vcunat: ah, but it would require a new type, interesting
<vcunat>
m0rphism1: why not uninstall everything and then nix-env -iA your -A sets
<vcunat>
qknight: the types are dynamic IIRC - you can just declare a new option with a new type
drasich has joined #nixos
mattyu has quit [(Ping timeout: 260 seconds)]
<vcunat>
I'm just assuming there's no such type yet. It might be generally useful.
<gchristensen>
does NixOS have a keychain-like-tool that works without gnome or kde running and has a CLI-helper for retrieving credentials?
<vcunat>
But e.g. for user+group IDs this would not be enough typically.
* vcunat
reboot
vcunat has quit [(Quit: Leaving.)]
fuzzy-id has quit [(Ping timeout: 264 seconds)]
vcunat has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
eacameron has joined #nixos
<m0rphism1>
vcunat: deleting everything before installing works, but has the minor drawback of deleting the packages accidentally installed with `nix-env -iA` instead of added to the package list
<m0rphism1>
but i can definetly live with that :)
dejanr is now known as dejanr_away
<m0rphism1>
interestingly, deleting everything via nix-env -e `nix-env -q` left me with w3m-v0.5.3+git20161120 which I am unable to uninstall o.O
<vcunat>
m0rphism1: I see
<vcunat>
you can compare `nix-env -q` with `nix-env -q -A yourset1 -A yourset2`
eacameron has quit [(Ping timeout: 246 seconds)]
<vcunat>
I think you can run `nix-env -e` without any parameters
<vcunat>
to uninstall everyting IIRC
<m0rphism1>
vcunat: oh, that's a cool idea, much easier to reconstruct the attributes from the package name diff :)
<vcunat>
if you add -P, it will show the attributes
<m0rphism1>
vcunat: oddly, this still doesn't remove the w3m package in question
<m0rphism1>
I think this is a bug, but no idea if I introduced it myself somehow
<tilpner>
vcunat - Are you thinking of $ nix-env -e \*?
<m0rphism1>
running `nix-env -e w3m` and `nix-env -e w3m-v0.5.3+git20161120` also doesn't work o.O
erictapen has quit [(Ping timeout: 246 seconds)]
<vcunat>
tilpner: right, just `nix-env -e` doesn't work, at least now
Itkovian has joined #nixos
<vcunat>
m0rphism1: the problem is that nix-env -i and -e accept regular expressions
<vcunat>
so `+` probably doesn't match itself
mojjo has joined #nixos
<vcunat>
(or perhaps there's some additional thing blocking this)
<m0rphism1>
vcunat: interesting, I see :)
<tilpner>
Does $ nix-env -e \* work then?
<tilpner>
Or $ nix-env -e w3m-v0.5.3\+git20161120 maybe
<m0rphism1>
tilpner: yes, it does :D
<vcunat>
the problem here is also that the name is bogus - everything is squashed into the version-less name and version is empty
<m0rphism1>
tilpner: ok, now I'm completely confused
<m0rphism1>
tilpner: I've reinstalled w3m, and now I am able to delete it even with `nix-env -e w3m`
<vcunat>
m0rphism1: that's because someone has fixed the name, most likely
<crzyp3ck>
nix for vim doesn't hightlight anything. all the nix file is black
<crzyp3ck>
is that right?
<gchristensen>
vcunat: by the by, your signed mail to the ML never seems to validate
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<qknight>
vcunat: just realized we must have this feature in nixpkgs already, UIDs are of this nature
<mojjo>
anybody knows how to prepare your setup to use fetchgitPrivate in a NixOps deployment?
<m0rphism1>
vcunat: I thought so too, but the name is exactly the same: "w3m-0.5.3+git20161120"
<gchristensen>
qknight: it is done with a perl script during activation time
<m0rphism1>
anyways, thank you all for your help :)
<vcunat>
gchristensen: thanks! I'll probably remove it.
<vcunat>
m0rphism1: it isn't the same
<mojjo>
I'm getiing "Note that the config file and any keys it points to must be readable by the build user". But who exactly is the build user of a nixops deployment?
<vcunat>
m0rphism1: the version started with "v"
eacameron has joined #nixos
<gchristensen>
vcunat: well I like it, I just wish it validated :)
<vcunat>
and nix only accepts dash followed by a number
<m0rphism1>
vcunat: right, my fault
<vcunat>
gchristensen: this signature of mine is ending it's validity and I'm not eligible for this one anymore
Itkovian has joined #nixos
<gchristensen>
ah
jgertm has quit [(Ping timeout: 240 seconds)]
<vcunat>
gchristensen: I'm not shown any validation errors in there, but I guess it doesn't matter with this soon-to-expire signature...
eacameron has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Client Quit)]
Itkovian has joined #nixos
m0rphism2 has joined #nixos
m0rphism1 has quit [(Ping timeout: 240 seconds)]
<fpletz>
gchristensen: pong
<crzyp3ck>
LnL: man I have a problem. the vim nix highlighter isn't working. It doesn't highlight anything.
dejanr_away is now known as dejanr
<gchristensen>
fpletz: I need to destroy that instance used for ipfs. Do you need time to get things off it?
ndowens08 has joined #nixos
<fpletz>
gchristensen: no problem, just destroy everything :)
<gchristensen>
ok, thank you!
<fpletz>
the last news on that was that we needed the ipfs guys to fix their shit %)
<ndowens08>
Hey gchristensen fpletz
<crzyp3ck>
nix highlight vim. ANYONE?
<gchristensen>
hi there, ndowens08
<ndowens08>
fpletz: seen a little bit of a video of you on youtube
<ndowens08>
gchristensen: how is it
<fpletz>
ndowens08: only a little bit? :)
<ndowens08>
it was a long video lol
<NixOS_GitHub>
[nixpkgs] vcunat pushed 3 new commits to master: https://git.io/vSl7m
<NixOS_GitHub>
nixpkgs/master b5121db Vladimír Čunát: xorg xf86-video-ati: 7.8.0 -> 7.9.0
<NixOS_GitHub>
nixpkgs/master 3932d08 Vladimír Čunát: xorg xf86-video-nouveau: 1.0.13 -> 1.0.14
<NixOS_GitHub>
nixpkgs/master 8eec294 Vladimír Čunát: xorg-server: maintenance 1.19.2 -> 1.19.3
deepfire has quit [(Ping timeout: 240 seconds)]
<gchristensen>
ndowens08: feeling a bit better. last week & before, I was quite stressed (as you guessed.)
<qknight>
gchristensen: makes sense for UID but not for ports
<qknight>
gchristensen: because for UIDs you can parse /etc/passwd and extend it basically but there is no equivalent for ports though
byteflame has joined #nixos
<gchristensen>
right, UIDs are usually used by reference to the name, not by number
<qknight>
gchristensen: depends, form a filesystems perspective it is the other way round
<gchristensen>
it is okay, I've missed loads of things *stares at his inbox, 300 items since 2 weeks ago*
<qknight>
gchristensen: ctrl+a del
<gchristensen>
I can't, important things in there
<qknight>
gchristensen: kidding ;)
spluko has joined #nixos
<gchristensen>
I used to do that, figuring anything sent once would be re-sent if important. now, there are very important things and I don't want to make some of the people have to re-send
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<spluko>
Hi, in the NixOS manual, it says "To make Qt 5 applications look similar to GTK2 ones, you can install qt5.qtbase.gtk package into your system environment." Does that package still exist?
eacameron has quit [(Ping timeout: 260 seconds)]
<vcunat>
spluko: I think now it's a plugin included in qtbase by default
<ndowens08>
I was hoping to create a shell script to search debian package's search pkg contents; so it would be easy to see what file provides a file; but couldn't get it to work;
byteflame has quit [(Ping timeout: 240 seconds)]
<vcunat>
ndowens08: Debian and Ubuntu provide a web service for that
<ndowens08>
vcunat: yep, though I wanted to pull that data and have it parse through cli using curl and sed to remove html
jsgrant-_ has quit [(Remote host closed the connection)]
<joepie91>
which has a file search for _many_ distros
<ndowens08>
I had it almost, except it didnt seem to replace $1 with the 1st command argument
<spluko>
vcunat: So I just install qt5.qtbase and it should work or is there some config I need to do? There seem to be lots of tips on how to do this, but it is very unclear what is up to date and what is relevant in NixOS.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen>
fpletz: we regularly have ~515 people in here. growing! hopefully many hands will make lighter work over time.
Itkovian has joined #nixos
<spluko>
vcuant: I'm using i3. On another machine, I think I used lxappearance to select the GTK theme, but that doesn't seem to be saving my config
m0rphism2 has quit [(Quit: WeeChat 1.4)]
<spluko>
I think it should create the file .gtkrc-2.0, but it doesn't
Itkovian has quit [(Client Quit)]
<ndowens08>
ok this is weird, i am wanting to squash two commits; in git log it shows the two i want to do next to each other, meaning nothing in between, so I normally would do git rebase -i HEAD~2 but it only shows one commit?
Itkovian has joined #nixos
<ndowens08>
weird, had to do HEAD~3 in which there isnt :\
<nh2>
what's the difference between buildPhase and buildCommand, which one should I use?
ixxie has joined #nixos
jacob_ has quit [(Quit: leaving)]
<nh2>
I see, buildCommand defines the entire build infrastructure, if I use it, `src` is not used. With buildPhase, src is used, and I define just the build step
<gchristensen>
(re-ask) does NixOS have a keychain-like-tool that works without gnome or kde running and has a CLI-helper for retrieving credentials?
<nh2>
next question: how do I tell `npm install` to not try to put things into /homeless-shelter
<Filystyn>
what can i temporary use to stream sound on nixos (skype aint working ).
<Filystyn>
teamspeak?
<nh2>
Filystyn: what do you mean by "stream sound"? I you want a teamspeak alternative, mumble is great
eacameron has joined #nixos
<Filystyn>
no i need to know where sound works ;-)
vaibhavsagar has quit [(Remote host closed the connection)]
<Filystyn>
it does not work on skype
<nh2>
Filystyn: well with mumble you can configure your microphone to use alsa or pulseaudio etc, and then connect to a server, enable local or remote loopback and see if you can hear yourself
<nh2>
should be OK as a way to test if audio works
<mojjo`>
hi.. I'm wonderiing why my nixops build process cannot read the ssh config file set in the nix-path. I'm getting "Can't open user config file /home/me/.ssh/config: Permission denied", but the file is actuall readable for all...
<bennofs>
mojjo`: nix-build uses filesystem namespaces I believe
elninja44 has quit [(Remote host closed the connection)]
<bennofs>
mojjo`: I don't think you can read any external files during building. You could use builtins.readFile during evaluation to read the file, or use `/path/to/file` to copy the file to the nix store
justanotheruser has quit [(Ping timeout: 240 seconds)]
<avn>
mojjo`: it not works with `use-sandbox = true;`
<avn>
mojjo`: I finished up with little rewrite of fetchgitPrivate using checkout-only key
magnetophon has quit [(Remote host closed the connection)]
<mojjo`>
avn: where is the use-sandbox set?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
<ndowens08>
Ugh so far no luck on fixing it
<avn>
nix.useSandbox if you use nixos, or somewhere in nix.conf, but it disable chrooted/sandboxed builds. It why I prefer solution with insecure checkout key
<mojjo`>
ah, I see. I use nixos, but I have not set the useSandbox, so it's defaults to false..
<avn>
Is my solution, do you think folks, if it enought good to put alongside existing fetchgitPrivate?
eacamero_ has joined #nixos
chakerbenhamed has joined #nixos
orivej has joined #nixos
<mojjo`>
avn: I cannot judge it.. I'll continue trying to understand it, then maybe use it, and then I might give you feedback
eacamero_ has quit [(Ping timeout: 260 seconds)]
jmeredith has joined #nixos
<avn>
mojjo`: actually all what script does -- shut up ssh warnings about world redable key ;)
eacameron has joined #nixos
<ndowens08>
well no longer does it say java not found, got a new error :p
<mojjo`>
avn: but, is fetchgitPrivate useless then?
<gchristensen>
ndowens08: ahh, progress!
<ndowens08>
Could not find or load main class net..nix.store.zk8kmwxkfard47bdvg7l0lmhix3idzhs-openjdk-8u121b13.bin.java.sip.communicator.launcher.SIPCommunicator
eacameron has quit [(Read error: Connection reset by peer)]
<ben>
The following new services were added since the last release:
<ben>
(this will get automatically generated at release time)
<ben>
or will it?
<avn>
mojjo`: different approach, fetchgitPrivate use agent forwarding, my solution use pre-generated key (which laid alongside custom .nix files) -- both have own misadvantages ;)
<avn>
mine is more CI friendly, but checkout key live in publically available /nix/store
<mojjo`>
I honor your effort, and you will have good reasons. I'm not into the topic enough to argue. I'm just wondering, why I can't get the gitfetchPrivate to work...
<mojjo`>
(than I could see the drawbacks and maybe try another approach)
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
<ndowens08>
not sure how to get past that one, if i knew where it is located at, may could fix it
<nh2>
ben: it seems that at least for 17.03 it worked
<mojjo`>
avn: do you know by any chance if I have to set ssh-auth-sock in the ssh config?
<avn>
mojjo`: do you use ssh agent running (and used ssh -A if your nixos is remote)?
<ndowens08>
hmm maybe have idea now
<tjg1>
have people decided what's going to happen to the wiki yet?
<mojjo`>
avn: I'm using nixops to deploy from a local nixos system to a remote nixos system. So it does the ssh thing under the hood.
mattyu has joined #nixos
alx741 has joined #nixos
<tjg1>
I'm asking because I'd like to contribute more articles to it
<crzyp3ck>
is there anyone here using vim nix syntax highlighter plugin thingy?
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #24565: jitsi: Fixed java not found (master...jitsi) https://git.io/vSlNV
<crzyp3ck>
obadz: horrraaaa! could you give me an screenshot?
<crzyp3ck>
obadz: mine isn't working no highlight.
<ndowens08>
let me know if it seems to work for you; it loaded for me; I dont use it, so test it and let me know if it is safe to merge
fez has joined #nixos
<nh2>
in checkPhase, why is the directory write-protected?
simendsjo has joined #nixos
<crzyp3ck>
obadz: I opened my vim to the nix config file and no color; all lines are black.
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
<NickHu>
Hmm, I filled up my disk, and I can't run the garbage collector because it complains the disk is full - ideas?
johnsonav has quit [(Ping timeout: 240 seconds)]
<ndowens08>
obadz: if you look at it, you will see i added the --replace java line and the postFixup fixes the a line that got changed by substitute(which caused the second error)
<obadz>
ndowens08: I looked, you can't hardcode nix paths in nix files…
<fez>
Hi all. I'm trying to cross compile a C program to non-NixOs system. It compiles okay, but it sets NixOs-specific rpath and dynamic linker in compiled executable. I could fix them manually using patchelf, but is there a good way to set those as some <nixpkgs> argument?
mudri has joined #nixos
<simpson>
fez: Why not just copy the Nix closure? Do you not have root on the other machine?
<simpson>
fez: Nix is designed to let you copy the entire closure and have everything Just Work.
<ndowens08>
hmm DOes nix-env -i eagleview compile successfully for any of you? I updated it and mine built find, but the version in repo keeps going in a loop
<ambro718>
I'm trying to figure out why ntpd is broke and I see something very interesting, the process enters zombie state just after it does some capability stuff and calls getpid. Strace here: http://ideone.com/vXQIWa
<ambro718>
does anyone have a clue what is happening?
<fez>
simpson, hmm, I didn't considered that. That's maybe that's a way to do it, if this closure won't get too big (I'm compiling to Raspbian on Raspberry Pi). Thanks for the advice
<simpson>
fez: I don't know what the right way to do Nix with RPi is, but I'd love to know.
<spluko>
It looks like the GTK+ style for QT5 is in libsForQt5.qtstyleplugins, but that package is marked as broken. Has anyone managed to get their QT5 apps to use the GTK theme?
byteflame has joined #nixos
<NixOS_GitHub>
[nixpkgs] ambrop72 opened pull request #24573: ntpd: Add patch to allow getpid syscall in seccomp filter. (master...ntpd-fix) https://git.io/vS8Ji
byteflame has quit [(Ping timeout: 268 seconds)]
<lush>
Is there a way to let nixos check whether my current configuration is valid without just tryharding it to change and let it fail if necessary?
ambro718 has quit [(Remote host closed the connection)]
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
<lush>
I just started my upgrade to 17.03 and it fails saying "dependencies couldn't be built"
jsgrant-_ has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
<ambro718>
How to hack a systemd service definition (in nixos config) to start in strace?
jmiven has quit [(Quit: co'o)]
<ambro718>
I would need to override the ExecStart but to do that I need the previous definition with the right command line
<ben>
override the package that the service is starting with a wrapper package that's just a script that calls strace on the real service?
<simpson>
lush: Your switch is failing because you're having trouble downloading a package from the cache.
fresheyeball has joined #nixos
<simpson>
Not sure whether it's your setup or the cache.
<fresheyeball>
hey so I have a problem
<fresheyeball>
I've install nixos and that worked fine
<fresheyeball>
all I need to do is set my password with passwd
<fresheyeball>
but when I drop to tty from the login screen
<fresheyeball>
I don't get a terminal where I can type anything
<fresheyeball>
it shows me the nixos posting, with mounting as the last line
<lush>
simpson: so what should I do?
<simpson>
lush: I'm not sure TBH. I was able to download that cached file just fine. I'm not sure what's going wrong for you.
<lush>
simpson: may it help when I post my configuration file?
jmiven has joined #nixos
<fresheyeball>
this is really annoying, anyone else seen dropping to tty from the login fail like this?
<lush>
simpson: I have set nixos up just a few days ago
<simpson>
lush: No, I can't think of anything in your configuration that would cause TLS errors.
<lush>
simpson: so just retry and hope that it will download it correctly?
<ambro718>
ben: right. It was easier to just hack the service though.
<simpson>
lush: I guess.
<lush>
simpson: alright I'll try, thx
<pbogdan>
is there any reason why the value of my config.services.xserver.display would be null despite the default being 0? I'm not customising it explicitly anywhere in my configuration
<lush>
What is the meaning of "cannot build derivation ‘/nix/store/6yfz0dwnxf8sdbd2pgc8lykncsl0jgi3-nixos-system-nixos-17.03.873.0c041520c3.drv’: 1 dependencies couldn't be built" ?
eacameron has quit [(Ping timeout: 264 seconds)]
<fresheyeball>
lush: its pretty clear. For some reason that drv could not be built
<qknight>
aszlig: hey. i have found no way to use the 'nixos options system' to give me unique ports. studying users.users revealed that UIDs are generated inside the .pl scope and not nix. ATM i'm thinking about extending builtins to have such functionality
<LnL>
vcunat: looks ok
<Lisanna>
lush for example, if you lost your connection to the internet and you just made a change to your config? I think the more useful error message will be printed somewhere else in the output
<fresheyeball>
ok, so dropping to tty is just fucked
<fresheyeball>
is there a way I can set my password in configuration.nix?
<lush>
do I need to change the stateVersion manually?
<fresheyeball>
are you just trying to upgrade nixos?
<Lisanna>
fresheyeball I think users persist between rebuilds
<lush>
fresheyeball: yup
<lush>
fresheyeball: installed 16.09 a few days ago and I just try to switch to 17.03
<Lisanna>
What's your mutableUsers setting?
<fresheyeball>
Lisanna: true
<fresheyeball>
lush: so I don't know enough to help more. I've never done an upgrade. All I can say is that the error is this package /nix/store/5cpnwwnasypdi7p0av6qbaf52y99gmdz-xz-5.2.2-bin/bin/xz
<lush>
mhm ok :(
<lush>
thank you though :)
<fresheyeball>
lush: if you can find a way to override which version of that package your system needs, you should be able to get around it
<lush>
anyone here that may help me upgrade my system? :')
demax has quit [(Ping timeout: 260 seconds)]
<fresheyeball>
lush: you may also want to manually bump the version
<lush>
fresheyeball: as I said: this is a really "fresh" installation of nixos, I've got no idea why it wont work
<lush>
fresheyeball: and the main reason I want to switch to nixos is that I can safely upgrade with it... at least in theory as it seems ^^
<lush>
fresheyeball: stateVersion?
<fresheyeball>
yeah
<simpson>
Uh. Don't change stateVersion unless you really mean it.
<simpson>
It upgrades database schemata and that sort of thing.
<Yaniel>
does it make sense to keep stateVersion in sync with the stable channel?
<Yaniel>
when using the unstable channel
<simpson>
It makes sense to not change stateVersion.
byteflame has joined #nixos
<benley>
ever?
<simpson>
Grep nixpkgs and see what'll change when you change it.
<benley>
I've been changing it to match the stable version number after releases happen, once I'm satisfied that I won't be rolling back to the previous release
<benley>
but yknow, I've never actually dug into what it affects
<fresheyeball>
Lisanna: I found a way
<fresheyeball>
I enabled xterm
<fresheyeball>
and logged in as root
<fresheyeball>
ok
<fresheyeball>
so I would like kde4 back
<fresheyeball>
and nixos 17 is kde5 oriented
<fresheyeball>
in nixos 16 I had `kdm.enable = true;` under displayManager
<benley>
re stateVersion: it appears to be very few things: openstack keystone version, sshd ancient style hostkeys, postgres daemon version, ... and that's it
<fresheyeball>
how can I do this in nixos 17?
byteflame has quit [(Ping timeout: 240 seconds)]
<benley>
fresheyeball: unfortunately I believe kde4 has been removed from nixos 17.03
<fresheyeball>
benley: really? wtf? why?
<benley>
one sec, I'll find the discussion about it
<fresheyeball>
benley: oh well, actually I don't care, I just want xmonad to work with some kde backend
<fresheyeball>
benley: do you know where I can find an example config for this in nixos 17?
<fresheyeball>
I had it fine in nixos 16
<benley>
oh that should totally be possible
<benley>
(not that I actually know how - but it should be doable)
<benley>
fresheyeball: how did you set it up with nixos 16 / kde4?
<simpson>
fresheyeball: KDE 4 has been EOL for several years, it would seem; no security fixes means that it's hazardous to carry. Are you interested in carrying that torch?
<fresheyeball>
benley: I really wish there was a simple configuration upgrade tool
<simpson>
fresheyeball: Unfortunately, configuration and upgrades are both non-simple.
<benley>
for nixos configs in general? That would be pretty slick.
<benley>
it also sounds pretty difficult to do correctly
<benley>
fresheyeball: ah, so it looks like you have nixos install kde4, but you don't actually use the kde4 login session and instead have xmonad start the kde components?
<fresheyeball>
benley: yes
ambro718 has joined #nixos
<fresheyeball>
benley: what is the benefit of nixos 17 vs 16?
<fresheyeball>
I'm frustrated enough I'm considering just install 16
<benley>
newer versions of things :-P
<benley>
the main downside to continuing to run nixos 16.x is that it won't be getting security updates after next month
<lush>
benley: tried it 2 times, failed 2 times like this
<fresheyeball>
wow this is horrible
<fresheyeball>
Its like everything is just broke
<lush>
benley: although I had some "errors" in my configration before it proceeded so far
<lush>
mainly my package names were outdatet
<lush>
like kde5.ark => ark
<lush>
But that shouldn't affect it right?
* lush
afk now
erictapen has quit [(Ping timeout: 240 seconds)]
<benley>
ah yeah, various packages got moved around, but that shouldn't cause that curl error
chakerbenhamed has quit [(Ping timeout: 246 seconds)]
<bennofs>
benley: looks like some ssl cert problem
mudri has quit [(Ping timeout: 258 seconds)]
<bennofs>
curl: (35) Unknown SSL protocol error in connection to cache.nixos.org:443
<pbogdan>
I think I'm missing something reading lightdm service module, if I understand correctly it resets config.services.xserver.display to null, defaults display to :0 but doesn't seem to have a way to actually change it to anything else
<benley>
fresheyeball: what broke?
<Lisanna>
benley is that true? But 17 just came out a few days ago. Are major versions of Nixos really EOL'd that fast?
<bennofs>
Lisanna: gchristensen agreed to provide security updates for one more month for 16 afaik, but yes
<benley>
Lisanna: yeah, unfortunately. There aren't really enough people on the project to do security support for multiple releases at once.
<simpson>
Lisanna: I think that that's for 16.03, so it's been a year.
<Lisanna>
Ah, I figured it might be something like that
<benley>
I would really like to see at least a few months of overlap in security support after a nixos release, but it's hard to get there without more corporate backing
<fresheyeball>
benley: tty broke, my xmonad config broke, there is no guide for fixing, trying to login to the xmonad session just freezes, restarting freezes
<benley>
(hell, I'd love to see an LTS release like Ubuntu does, but that would pretty much require people getting paid to support it)
eacameron has joined #nixos
<benley>
fresheyeball: ouch. Have you considered using the kde desktopmanager session, and using the .config/plasma-workspace/env/set_window_manager.sh trick?
<fresheyeball>
benley: I just disabled kde and am reinstalling
<fresheyeball>
we will see if that does it
agjacome has quit [(Quit: leaving)]
<fresheyeball>
benley: the real issue here is tty breaking
eacameron has quit [(Ping timeout: 240 seconds)]
<fresheyeball>
the fact that I can't drop to a terminal is a serious problem
<benley>
your non-x11 getty consoles broke? that's impressive
<benley>
are there errors, or just a blank screen?
<fresheyeball>
benley: I don't think its x11 related
<fresheyeball>
I hit ctrl+alt+F1
<fresheyeball>
and then I get the out of nixos posting prior to the login screen
<fresheyeball>
and then I have to restart the computer from the box, since there is nothing I can interact with
<benley>
so there is text on screen, but not a login prompt?
<fresheyeball>
yes
<dupin>
tried to upgrade but getting error about desktommanager.kde4 does not exist in conf file
<benley>
if so, is there anything different on tty2 or tty3?
chakerbenhamed has joined #nixos
<dupin>
how to fix this
<benley>
(ctrl-alt-f2 or alt-f2, etc)
<dupin>
benley, it shouls be the same
<dupin>
*should
<fresheyeball>
benley: I tried that
<fresheyeball>
same thing
<benley>
huh
<fresheyeball>
benley: no idea, I just can't set my password anyother way, which means I can't login
<benley>
dupin: kde4 not in the new release, but kde5 is.
<benley>
dupin: you'll want to set `services.xserver.desktopManager.plasma5.enable = true` if you were using desktopManager.kde4 before
<dupin>
benley, do you want to tell me to make changes in conf file
<dupin>
good I will try that
<lush>
bennofs: any idea what I can do about the ssl problem?
<fresheyeball>
since this is a fresh system
<fresheyeball>
should I be using nixos-install after editing configuration?
<fresheyeball>
or nixos-rebuild switch?
<benley>
nixos-rebuild switch after editing the config
<benley>
nixos-install is just for bootstrapping a new install from scratch
<fresheyeball>
benley: what happens if I use install a second time?
toppler` is now known as toppler
<lush>
bennofs: works fine
<benley>
fresheyeball: in theory it should work out fine - it will rewrite /etc/nixos/hardware-configuration.nix and reinstall some stuff in /nix/store
<benley>
oh yeah and it will reinstall grub or gummiboot or whatever bootloader you're using
<bennofs>
lush: have you tried re-running nixos-rebuild switch ?
<lush>
bennofs: I did it twice; I can try it once again
mudri has joined #nixos
leothrix has joined #nixos
<dupin>
benley, it look like I have to do same thing with kdm what to put instead
<fresheyeball>
chromium and chrome are not the same thing
<lush>
yup I know
<lush>
bennofs: any other ideas?
<SovereignBleak>
I gave up on trying to make EXWM play nice. If anyone uses it as their window manager I’d *love* to see your config.
reinzelmann has joined #nixos
<dupin>
can someone who use 17.03 tell me what I have to put instead of kdm in conf file tnx
<bennofs>
SovereignBleak: EXWM? Is that the emacs wm?
contrapumpkin has joined #nixos
<benley>
heh, I kinda wish I was comfortable with emacs so I could appreciate things like exwm
<bennofs>
SovereignBleak: I tried it on arch for a while, but it was too laggy for my liking
<lush>
dupin: guess that depends on what login manager you want to use
mattyu has quit [(Remote host closed the connection)]
<lush>
dupin: maybe sddm?
<SovereignBleak>
bennofs: Yeah it is. :-)
<bennofs>
SovereignBleak: I think going the other way is more reasonable: have the window manager manage emacs windows (make windows it frames)
<bennofs>
SovereignBleak: I thought about writing something to have emacs helm for window switching / app launching though
<dupin>
lush, if I try to use kdm I get error so that is why I think i have to change something
<bennofs>
Perhaps using the emacs minibuffer as status line and pinning it on all workspaces
propumpkin has quit [(Ping timeout: 246 seconds)]
<nh2>
I have checkouts of my nix project in on 2 different machines. If I nix-build them, they show different derivation hashes. How can I debug what the difference between the two derivations is?
<lush>
dupin: yeah I think kdm isn't there in kde5 anymore
<lush>
dupin: so you have to choose another login manager
<lush>
If I'm not mistaken sddm is the new "default" for kde5 but that could be wrong
<bennofs>
sddm is the "official" kde one, isn't it?
<lush>
dupin: if you want to use sddm it'd be: "services.xserver.displayManager.sddm.enable"
<ndowens08>
I couldnt even get sddm to work for me;
<dupin>
tnx ;)
<lush>
sddm works fine for me
<lush>
although I'd like to use another login manager if my upgrade would work instead :D
drasich has quit [(Ping timeout: 246 seconds)]
<ndowens08>
weird, if I gave wrong password it would say error or w/e but if i did the correct password, it would act like I said systemctl restart display-manager and go back to login over and over
<lush>
:o
<benley>
ndowens08: sounds like the login is succeeding but the x session is exiting with an error right away?
<ndowens08>
yup, but lightdm, slim works fine
<ndowens08>
just sddm
mguentner2 is now known as mguentner
Itkovian has joined #nixos
<lush>
bennofs: what does "curl: (6) Couldn't resolve host 'cache.nixos.org'" tell me?
<benley>
ndowens08: odd. are you using kde/plasma5, or some other desktop session?
<ndowens08>
nah dont use desktops
<NixOS_GitHub>
[nixpkgs] shlevy pushed 3 new commits to release-17.03: https://git.io/vS8tc
<NixOS_GitHub>
nixpkgs/release-17.03 a687c0f Shea Levy: Add facility to append secrets to the initrd...
<NixOS_GitHub>
nixpkgs/release-17.03 acf8b78 Shea Levy: systemd-boot: Support initrd secrets...
<NixOS_GitHub>
nixpkgs/release-17.03 e840e05 Shea Levy: initrd-ssh: Use initrd secrets for host keys...
<ndowens08>
awesome/bspwm
<benley>
lush: that tells you that DNS isn't working
<lush>
wtf
<lush>
I'll just reboot and cross fingers
<lush>
see you ^^
lush has quit [()]
byteflame has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vS8t4
<NixOS_GitHub>
nixpkgs/master 74e2f48 Jörg Thalheim: pdfshuffler: init at unstable-2017-02-26