<kleisli>
running nix-shell fails to find the package, could anyone suggest how i might fix this?
<slack1256>
I am using systemd with the unified cgroup hierarchy (v2). The only cgroup.controllers available on the {system,user}.slice are "memory pids". How do I enable via configuration.ni also "cpu io"?
<selfsymmetric-mu>
kleisli: You know what? I'm surprised I've never questioned that before. But I have no channels in my user account and yet I can run nix-shells as user. I'm only subscribed to channels as root.
Rusty1 has joined #nixos
<selfsymmetric-mu>
I do: `let pkgs = import <unstable> {};`, and that lets me use packages from unstable.
<selfsymmetric-mu>
`unstable` is the name of that channel on my root. Honestly I'm not sure why that's the case...
<kleisli>
yes, that was my configuration prior today @selfsymmetric-mu
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
davehunt24 has joined #nixos
davehunt24 has quit [Remote host closed the connection]
<selfsymmetric-mu>
I'm going to have a bit of a gripe now. NixOS to me feels like the only correct OS in the sense of "declarative configuration". But the fact that the standard ways of doing things are rife with global variables, and a general lack of denotational semantics, really bums me out.
<selfsymmetric-mu>
Going about things in the usual way gives one the feeling that the operating system is horribly designed. I think it could be saved by an effort to document denotational ways of doing things. `overrideAttrs` over `override`, for example.
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<kleisli>
how does nix find <nixpkgs> or <unstable> in the first place?
<gchristensen>
it looks in dirs in $NIX_PATH
<selfsymmetric-mu>
See, that's a perfect example of what I'm talking about. Why can't I just define the location in my config?
<iclanzan>
:q
iclanzan has quit [Quit: leaving]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
alex`` has quit [Quit: WeeChat 2.4]
<adamt>
selfsymmetric-mu: What location?
<adamt>
selfsymmetric-mu: You can configure NIX_PATH however you want, if that's what you're talking about
<slack1256>
denotational semantics is something connal always talk but is so curbersome nobody can do not toy examples
npmccallum has joined #nixos
<simpson>
selfsymmetric-mu: Think of shell environment variables, like NIX_PATH, as keyword/named arguments to the commands being invoked.
<selfsymmetric-mu>
adamt: Oh, it's certainly powerful enough. I'm just talking about readability. slack1256: Okay, let's just talk about discoverability and locality of definitions, since that's less controversial. What I mean is that a new user can look at `pkgs.gcc` in an example config and understand implicitly that they can also put `pkgs.perl`. But they don't know what `pkgs` is, where it comes from, or how to replace it, without looking at
<selfsymmetric-mu>
documentation outside the config.
__monty__ has quit [Quit: leaving]
<jackdk>
documentation? I still have to grep nixpkgs to find many things, though I'm starting to get a handle on how things are laid out
<selfsymmetric-mu>
If pkgs were declared in the config as a part of a channel with a url, then it becomes immediately obvious and none of these questions would be asked. That's just one example.
<selfsymmetric-mu>
Does that make sense? It's a discoverability thing for me.
<adamt>
selfsymmetric-mu: The naïve way of doing that would cause a bootstrapping problem (you need pkgs to get pkgs), but I think somebody mentioned using import '<foo>' magic to do the bootstrapping. But yeah, nix is very magical in many places
<slack1256>
Mmm I guess making `nix repl` more accesible is low-hanging fruit for a great gain
<selfsymmetric-mu>
Yeah. don't want to appear ungrateful; I will note that this is still better ceteris paribus than installing an OS operationally and maintaining a bunch of dotfiles.
<adamt>
ceteris paribus? You sure are fond of fancy words. :P
<selfsymmetric-mu>
slack1256: I think you might be right. I'll make sure that I learn `nix repl` more properly. It'll probably help me out.
<selfsymmetric-mu>
Ah, they're not that fancy, they're just well worn. :P
<adamt>
selfsymmetric-mu: If you have suggestions, try to hack something together and create a PR to get some discussion going. The nixos community is usually very friendly :-)
Borg20 has joined #nixos
Borg20 has quit [Read error: Connection reset by peer]
<selfsymmetric-mu>
adamt: Will do! I have to get my feet under me first. I'm working on my second PR now but I'm a bit stuck. I submitted it two months ago but it's been in review limbo...
<selfsymmetric-mu>
It's super nice on IRC, but there's not a critical mass of mentors yet when it comes to submissions. Hopefully it'll get there someday but it feels like the community is still getting up to speed.
rcshm has quit [Read error: Connection reset by peer]
rcshm_ has joined #nixos
<adamt>
If you feel stuck or ignored about a PR, try mentioning it here. It sometimes help.
<adamt>
selfsymmetric-mu: I'm both too tired and too lacking in knowledge about node/npm to be any useful here ;-)
orivej has joined #nixos
<selfsymmetric-mu>
Hah, I feel you there. I'm having the same issue. I don't know NixOS and I don't know npm so I don't know where to begin when it comes to connecting them together.
<selfsymmetric-mu>
But thank you for taking a look anyway.
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<blackriversoftwa>
colemickens: you there?
<jackdk>
adamt you don't want to know how many times I had to retype that URL because Firefox kept autocompleting it from history with the full stop appended
<adamt>
I've spent a few hours getting my java project to build with nix. Some tool chains are just really, really difficult to get to behave nicely (like, not randomly downloading stuff).
<adamt>
jackdk: Heh, weechat didn't include the . in the url when I clicked it. :P
<jackdk>
and unfortunately I don't know enough about npm to help
<adamt>
selfsymmetric-mu: Anyways, good luck. Hope you'll stick around. Nixos is great but sure takes some time to learn, and even more time to appreciate the ability to just dig around the nix files and hack away.
<blackriversoftwa>
colemickens: I've decided to stop appeasing cloud-init in its tantrum, and just generate a nixos module from the JSON metadata
<kyren>
selfsymmetric-mu: you may already be aware of this, but there are ways to reduce the number of magical external variables that influence a build, for example you can now do pretty easy nixpkgs pinning: https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
slack1256 has quit [Remote host closed the connection]
<kyren>
selfsymmetric-mu: this way you avoid channels entirely, in fact I actually really don't like channels so I have my entire system built this way so that it always references a specific nixpkgs version, I think the tooling and discoverability of this is pretty poor right now, but it's my understanding that this will possibly become more accessible with "nix flakes", whenever that is implemented?
Ralith_ has quit [Quit: Lost terminal]
<kyren>
but you can get by without channels at all, and it's what I do
<{^_^}>
nixops#665 (by grahamc, 1 year ago, open): Support multiple versions of nixpkgs in one network
<gchristensen>
it would be very very slow
fusion809 has joined #nixos
<aanderse>
ah
ilmu has quit [Ping timeout: 245 seconds]
<kyren>
selfsymmetric-mu: but I also do something similar with my workstation and servers, I don't even put their configuration.nix in /etc/nixos or anything, I've actually kind of built a janky nixops if I'm honest, but the point being that you don't actually *need* channels and they're confusing and there are alternatives and people are looking for better presentations of this
<aanderse>
and are you using different versions of nixpkgs on different networks, on the same nixops host?
<gchristensen>
not anymore
<infinisil>
gchristensen: Why is it so slow?
<aanderse>
heh
<aanderse>
infinisil: you know your issue about speed?
<gchristensen>
scoped import eliminates thunk caching I think
<infinisil>
aanderse: Yeah nixops is already slow, but I interpreted this as "slower than nixops is already"
<aanderse>
yeah i'm trying to figure out the best way to split my network up
<aanderse>
pretty small so far, only ... ~20 boxes
<infinisil>
aanderse: The worst rebuild times come from when each of those 50 machines depends on every other machine, then it would be about 2500 times the normal nixos-rebuild time :P
<aanderse>
but if that number gets up to 50 or 100...
<adamt>
Even at 20 machines the eval time with just a single pkgs can be zzzz. :-)
<aanderse>
adamt: my solution to that has been more cpus so far
<aanderse>
i'm not saying it is fast
<aanderse>
but it is acceptable
<adamt>
aanderse: My problem seem to be lack of memory. I need to replace this 12GB toy.
<infinisil>
Hmm, does nixops eval machines in parallel?
ericsagnes has quit [Ping timeout: 246 seconds]
<aanderse>
adamt: yeah so far i think i'm 4 core 8 gb on the nixops machine
<infinisil>
I think it definitely should be able to, but I'm not sure it does
kleisli has quit [Ping timeout: 268 seconds]
<aanderse>
not fast, but not too bad so far
<aanderse>
currently using 2 nixops servers, each with those specs
<adamt>
infinisil: It uses the same eval mechanism as our tool (well, we stole eval-machines.nix, so..), and in theory it should be possible, but we managed to introduce something that causes all evals to be seriel. And no idea about what causes it.
<adamt>
=/
<aanderse>
i want to drop the second nixops server and double the specs on one
<infinisil>
adamt: That's unfortunate
<aanderse>
but i haven't got around to pinning nixpkgs per network (or at all) yet
<adamt>
aanderse: Why do you need servers specifically for nixops? And why can't you host multiple networks on the same box?
<aanderse>
adamt: i need a server for nixops because of shitty internal policy... and i'm the only guy on the team running linux :)
<aanderse>
i definitely *can* host the multiple networks on the same box, but haven't got around to it yet
<adamt>
internal politics \o/
<aanderse>
i definitely didn't know enough *how* to set different channels per network when i first setup setup nixops
<aanderse>
and now... i see a wiki article that doesn't feel complete enough for me to get around to it yet
<aanderse>
if you have concrete examples of 2+ networks using different channels you'd like to share i would appreciate, though :)
<selfsymmetric-mu>
adamt: kyren: Thanks for telling me about this! I'm happy to hear there are initiatives like this! I just read through the flakes proposal and it looks great. It seems to be a better manifestation of the spirit of Nix.
<aanderse>
and less politics, more policy/coworkers using windows so can't run nixops locally
<adamt>
aanderse: Catch me tomorrow if you don't find out before, we have some ugly scrips that automates some of the work with the setup on kyren's link
<selfsymmetric-mu>
I put my `configuration.nix` under version control and keep it in a special user location. So pinning, without channels, sounds like a good solution for me.
<aanderse>
i think i joined too late.. kyrens link?
<selfsymmetric-mu>
Hm, what the heck I think I'll give pinning a whirl right now.
<infinisil>
Pinning is great and you should use it for all nix projects :)
<aanderse>
adamt: ah yeah that is the article i was looking at. my noobness shows in that i don't understand how that works, or explicitly where to put it in my nixops network :)
<kyren>
selfsymmetric-mu: I have probably similar ugly scripts to adamt, the idea being that you can keep a nixpkgs rev in version control along with your configuration, and update it relatively painlessly
<selfsymmetric-mu>
And what do the ugly scripts do, approximately?
Mr_Keyser_Soze has joined #nixos
<adamt>
selfsymmetric-mu: We use this one for creating a json file with url, git commit, hash: https://pastebin.com/8tuuekiU
<selfsymmetric-mu>
Thanks!
<kyren>
selfsymmetric-mu: I have a 'versions' file that is associated with every machine that is filled with NIXPKGS=<url> and NIXOS_MAILSERVER=<url> that gets source by scripts, and I have another script that updates the url based on git ls-remote, it's SUPER jank, whatever adamt does is probably better
<kyren>
as an example, whatever it needs to reference, NIXOS_MAILSERVER was just an example
<kyren>
then I have more scripts that pass those environment variables in via -I flags (and all invocations of nix commands have NIX_PATH cleared before calling)
<adamt>
Lastly all our networks import nixpkgs like this: pkgs = import ../common/nixpkgs.nix { version = "19.03"; };
<adamt>
kyren: I wouldn't be so sure my setup is better, but it's certainly much different to yours
<adamt>
:P
<kyren>
I'd share my system-config git repo but it's full of SECRETS
<adamt>
I'd share my system-config git repo but it's also full of SECRETS
<selfsymmetric-mu>
Oh totally, mine too. XD
<samueldr>
get yer secrets out, nuke the history and share! :)
<adamt>
samueldr: Yes, I'm sure everybody wants to crawl through almost 13k lines of Nix from strangers on the interwebs :P
<InFlames>
does anyone have any advice on what to read to get my usb type-c port on my dell xps 9560 working?
laalf has joined #nixos
ericsagnes has joined #nixos
<samueldr>
not sure if it's the same model that gchristensen has, if so he might have tips? (if he's on)
<colemickens>
What does "working" mean?
<colemickens>
or rather, in what way is it not working?
<InFlames>
actually, working isn't quite accurate
<InFlames>
it passes video
<InFlames>
but my dock isn't recognized, that is more likely the actual issue
<InFlames>
it's the dell usb c dock
<colemickens>
What model? Sure it's not TB?
<InFlames>
oh yeah, sorry, it's the tb one
<samueldr>
right, I think I remember the gist of it if it's the TB dock
<InFlames>
over usb type c
<samueldr>
you need to update all the bios
<colemickens>
Probably Thunderbolt security in the BIOS, or I think there's a UI in GNOME For it now.
<InFlames>
it was working under ubunut, not that that's necessarily relevant, but should rule out bios issues, right?
<samueldr>
your computer's and the multiple ones in the dock, for the dock it might still require a windows install :/
<colemickens>
You can disable the security in BIOS, or auto-approve Dell devices, or leave it up to the OS to approve devices (which is what the new tool [whose name I forget] allows you to do)
<samueldr>
hm, maybe it'll work better yet once everything has been done with regards to all the firmwares
<InFlames>
I like jankyscript :)
<InFlames>
I can try the firmware updates
<colemickens>
I guess the Thunerbolt UI in gnome was over a year ago now :(
<colemickens>
tbtui, like nmtui, would be nice to have
<gchristensen>
firmware updates were critical to making the dell tb16 dock work reasonably
<InFlames>
it worked extremely solid on ubuntu for me, but again, that might not be relevant
<InFlames>
I don't understand firmware granularly enough to know if it would
<InFlames>
the display DOES work over it, but that's hdmi
selfsymmetric-mu has joined #nixos
<InFlames>
usb type-c to the dock to hdmi
<blackriversoftwa>
Is there an easy way to pipe the output of fetchurl through a command and get that as a derivation?
<blackriversoftwa>
I tried using mkDerivation with just an `installPhase` but sh hates my command. Apparently $out isn't defined
<blackriversoftwa>
(I'm trying to read a json URL into nix but one of the fields that I'm not using has special characters in the string that nix complains about. So I'm trying to pipe it through jq first to remove that field)
Wharncliffe has joined #nixos
<elvishjerricco>
blackriversoftwa: Can you share some code that you've tried?
Barnerd22 has joined #nixos
Barnerd22 has quit [Remote host closed the connection]
ddellav28 has joined #nixos
domogled has quit [Read error: Connection reset by peer]
ddellav28 has quit [Remote host closed the connection]
<blackriversoftwa>
elvishjerricco: This derivation isn't intended to ever be a package. It's just a way to filter the contents of a URL before I try to load those contents with `builtins.fromJSON`
<elvishjerricco>
blackriversoftwa: Regardless, referring to the installPhase variables is referring to the installPhase you set, so it thinks the phase name is the contents of your installPhase string. Obviously no such phase exists. You need the string "installPhase", not the variable
<elvishjerricco>
blackriversoftwa: And still, I'd say there's no reason to set phases, and would recommend not doing so
<blackriversoftwa>
elvishjerricco: yeah I just changed that and it worked: thanks
<elvishjerricco>
oh, I guess unpackPhase will fail if you don't. Hm. Could just set unpackPhase then... either way's a hack I guess :P
silver_ has quit [Read error: Connection reset by peer]
ym555 has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
wolfman154 has joined #nixos
<wolfman154>
Is anyone still on?
wolfman154 has quit [Client Quit]
andehhh_16 has joined #nixos
andehhh_16 has quit [Remote host closed the connection]
<Dagger>
okay, if anyone cares: my accept_ra issue was in fact caused by dhcpcd. I had the networking.useDHCP=false commented out earlier, and apparently dhcpcd sets accept_ra=0 while running and fails to restore it when terminating
<Dagger>
that option has way too many side effects that have nothing to do with DHCP :/
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #58513 → gnutls: enable latest version on Darwin → https://git.io/fjTKA
Fare has quit [Ping timeout: 245 seconds]
tirdtoon has joined #nixos
tirdtoon has quit [Remote host closed the connection]
<Arahael>
For what it's worth, the instructions for "installing nixos from other distro" work quite nicely from an ubuntu live cd, slow as hell, Ubuntu loads a lot of crap, but otherwise pretty darn good so far. Just doing the final nixos-install right now.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
bemeurer has joined #nixos
rcshm has quit []
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
andylavarre has joined #nixos
andylavarre has quit [Remote host closed the connection]
<aszlig>
kleisli: like if you have a nix path of nixpkgs=/foo/bar, using <nixpkgs/a/b/c> will resolve to /foo/bar/a/b/c
ericsagnes has quit [Ping timeout: 268 seconds]
<aszlig>
bemeurer: the official hydra doesn't use a channel directly, the channel is made based on the latest successful evaluation + builds
<aszlig>
bemeurer: so let's say the rust compiler got an update, hydra will evaluate it and run the builds of the derivations that have changed
buckley310_ has quit [Quit: Bye]
<bemeurer>
I see, but if, for example, rust has changed but ripgrep (A rust project) hasn't it won't re-build ripgrep; correct?
<aszlig>
bemeurer: and if certain tests/builds are still succeeding, a new expression tarball is created, which in turn represents the new channel
<bemeurer>
Since most of the time the derivation won't change due to a compiler bump
<aszlig>
bemeurer: it will rebuild ripgrep, because the compiler is part of its dependencies
<bemeurer>
Oh, I see, can you define "derivation" for me? (Nix newbie here)
<bemeurer>
I thought I knew what it meant, but what you just said proves me wrong
<aszlig>
bemeurer: very simplified you could also call it "package"
<aszlig>
but more exact it's like a build recipe
<bemeurer>
I thought the "recipe" was the nix formula. If the derivation was "just" the formula I wouldn't expect it to be rebuilt when one of its buildInputs are updated
<aszlig>
it contains all the inputs, outputs, env vars, builder command, args, etc...
<bemeurer>
Aha!
<bemeurer>
Now it makes sense :D
<bemeurer>
So when GCC gets updated, Hydra has a crapton of work to do
<aszlig>
bemeurer: you can inspect them via "nix show-derivation"
<aszlig>
bemeurer: correct
<bemeurer>
Very neat :)
<{^_^}>
[nixpkgs] @booxter opened pull request #58518 → Bump patchelf to 0.10 → https://git.io/fjTiC
<bemeurer>
Thanks a lot aszlig!
rcshm has quit []
<aszlig>
bemeurer: the build outputs* are hashed based on the contents of the _derivation_ (not its own contents), so whenever there is a change in the recipe (which includes the hashes of its inputs as well), nix knows that it needs to either rebuild or substitute the derivation
buckley310 has quit []
hellrazor has joined #nixos
vonfry has joined #nixos
<aszlig>
* -> simplified, there are also fixed-output derivations, which are hashed with their contents
<bemeurer>
aszlig: Why would I want a fixed-output derivation?
<aszlig>
so the decision whether to rebuild/substitute pretty much boils down to a stat-call, if the output exists -> fine, if not -> rebuild/substitute
<aszlig>
bemeurer: you want that if you want to fetch sources
<aszlig>
like eg. some tarball
<bemeurer>
I see, that makes sense
<aszlig>
if you don't hash this and fetch the latest tarball every time, you could end up with a non-reproducible build result
<aszlig>
so the hash over the tarball's content makes sure that you always get the same output (or an error if eg. the url of the tarball gets a 404 or whatever)
<bemeurer>
This reminds me I need to write something to automatically update my zsh plugin packages
<bemeurer>
It's the only thing left for me to leave Gentoo and go to NixOS :D
ericsagnes has joined #nixos
vonfry has quit [Ping timeout: 245 seconds]
<aszlig>
bemeurer: something like oh-my-zsh?
buckley310 has joined #nixos
<kleisli>
why does `import <nixpkgs>` work when i don't have a directory called nixpkgs in my #NIX_PATH
Rusty1 has quit [Quit: Konversation terminated!]
<bemeurer>
aszlig: Not quite, I didn't want to use oh-my-zsh, so I manually wrote derivations for my zsh plugins and put them in home-manager
pie___ has joined #nixos
<aszlig>
kleisli: there is also the case where you can directly use something like NIX_PATH=/foo/bar - (notice, not "NIX_PATH=nixpkgs=/foo/bar"), which will look up based on the contents of that directory
<aszlig>
bemeurer: ah, okay :-)
<bemeurer>
aszlig: I wanted to use zplug, but couldn't quite figure out how
<aszlig>
bemeurer: hm, no idea... i use zsh, but i try to avoid plugins if possible
<aszlig>
bemeurer: same with vim, although i do have quite a lot of plugins... they're however mainly syntax/indent plugins
pie__ has quit [Ping timeout: 246 seconds]
Fare has quit [Ping timeout: 250 seconds]
<bemeurer>
aszlig: I found that migrating my (neo)vim config to Nix was really painless. Almost all the plugins I wanted were already available
<infinisil>
Taneb: I think you need to use something like .override (old: { packageOverrides = lib.composeExtensions (old.packageOverrides or self: super: {}) packageOverrides; })
<Taneb>
infinisil: thanks! I ended up refactoring so that I have one override to python36 which is the composition of the two smaller operations
<infinisil>
Overrides can be so ugly..
hyper_ch2 has joined #nixos
phreedom has joined #nixos
phreedom_ has quit [Ping timeout: 256 seconds]
agander__ has joined #nixos
agander__ is now known as agander
Jetien has quit [Ping timeout: 272 seconds]
jbgi has quit [Ping timeout: 246 seconds]
agander_ has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @andir merged pull request #57936 → buildRustCrate: use $NIX_BUILD_CORES for each of the crates → https://git.io/fjfsl
<betawaffle>
does the nixos community care about consistency of style?
<infinisil>
betawaffle: I do!
<betawaffle>
yeah, me too
<gchristensen>
I think we all do
jtojnar has quit [Remote host closed the connection]
<gchristensen>
and I think there is a sort of mutually agreed upon style (I know this sucks) but without automatic verification tools, it is tough / very annoying to nit-pick PRs
<betawaffle>
so when will we see someone create nix-fmt?
<Taneb>
Difficult to say, but you can make it happen sooner by creating it ;)
<gchristensen>
the follow-up problem is you can't just nix-fmt a 1.5m lines of code, the code churn would be hell
<betawaffle>
gchristensen: right, but you could make it such that any modified files need to be fmt'd, then those could just be in separate commits. hell, you could even make it such that only new files needed that treatment
<{^_^}>
[nixpkgs] @domenkozar merged pull request #58525 → Haskell optional separate bin output → https://git.io/fjTXn
<gchristensen>
or support for examining the diff, finding it in the AST, and ensuring that part is well done
<infinisil>
betawaffle: Yeah that would be the idea if we wanted to introduce autoformatting to nixpkgs
<betawaffle>
gchristensen: explain?
<gchristensen>
if I add a new function in a file which is poorly formatted, we could find the code which was added and only run a nixfmt check on that part
<infinisil>
gchristensen: I think that would be a bit too much trouble for what it's worth
aanderse-work has joined #nixos
<gchristensen>
maybe yea
<betawaffle>
is there a sense of how much of the codebase is currently not well formatted?
<aanderse-work>
trying to send mail out over postfix via mod_php in apache but getting an error: postdrop: warning: mail_queue_enter: create file maildrop/110637.89222: Permission denied
adetokunbo has joined #nixos
ym555 has joined #nixos
<aanderse-work>
this is after adding postfix to the systemd units path
<aanderse-work>
anyone have any thoughts?
<infinisil>
aanderse-work: setuid wrapper needed or something is my initial thought
<aanderse-work>
postfix has a setSendmail which is true
<{^_^}>
[nixpkgs] @domenkozar pushed 2 commits to release-19.03: https://git.io/fjTSf
<aanderse-work>
so it takes care of that
<infinisil>
Wouldn't that only create a setuid wrapper for `sendmail`?
<{^_^}>
[nixpkgs] @domenkozar pushed to release-18.09 « haskell: allow separate bin output, disable by default »: https://git.io/fjTSU
<infinisil>
Ah
<infinisil>
Nah postdrop is there too
<infinisil>
Maybe the postdrop setuid wrapper has a mistake in it
<aanderse-work>
does that mean i have to add setgidGroup as an extragroup to the wwwrun user?
<infinisil>
aanderse-work: Is /run/wrappers/bin on the PATH of the service?
<aanderse-work>
infinisil: systemd.services.httpd.path = [ pkgs.postfix ]; ... should that be systemd.services.httpd.path = [ "/run/wrappers/bin" ]; instead?
hexo is now known as olovnatejsie
<infinisil>
aanderse-work: Nope, I think that just means that any user can execute that binary, and it will seems as if ${cfg.setgidGroup} has executed it
<aanderse-work>
ok
<aanderse-work>
well that makes more sense because i can use the php mail function while executing php from the command line
<infinisil>
aanderse-work: Yeah try that, but without the /bin at the end I think
agander_ has joined #nixos
<aanderse-work>
i noticed 2 things which aren't great about the apache module this morning: 1. it depends on postgresql and 2. it doesn't work with postfix
<aanderse-work>
could check if any of those 3 are enabled
<infinisil>
Maybe
ilmu has joined #nixos
<infinisil>
I also feel like we should have a /run/wrappers like thing where we can tell it which binaries should be in it, e.g. /run/wrappers/for-apache-httpd which would only contain postdrop
jbgi has joined #nixos
<aanderse-work>
possibly, though my nick is currently aanderse-work so at the moment only interested in getting this bug fixed :p
<jonge[m]>
hey there. when i use `pkgs.gcc`, that is the wrapped gcc, that consumes NIX_LDFLAGS parameters from the environment, right? i have the problem here that in nix-shell i can inject whatever parameters i want using NIX_LDFLAGS and that makes my test apps link - but if i use the same wrapped gcc in an initial ramdisk (without stdenv etc.) it simply ignores my env vars. what can be wrong here, do i need to set more? unfortunately
<jonge[m]>
the wrapping magic is so complicated that i don't get how it works from studying the wrapper script...
Jetien has quit [Remote host closed the connection]
Jetien has joined #nixos
<aanderse-work>
i have a sneaking suspicion this postfix not working with php bug will exist in phpfpm as well
* aanderse-work
tests
<infinisil>
jonge[m]: Try NIX_CFLAGS_LINK maybe
<symphorien>
jonge[m]: by curiosity, why do you want to compile things in the initramfs ?
<jonge[m]>
symphorien i created a minimal ramdisk with makeInitrd from nixpkgs whose sole purpose is to compile the linux kernel and then shutdown again. we do some benchmarks of virtual machine monitors with that.
jb55 has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
ilmu has quit [Ping timeout: 250 seconds]
npmccallum has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @bzizou opened pull request #58534 → sumatools: init at 1.0.34 → https://git.io/fjTSE
<jonge[m]>
infinisil NIX_CFLAGS_LINK also does nothing unfortunately
<symphorien>
jonge[m]: you can export NIX_DEBUG=1 to have the wrapper explain what it does
<jonge[m]>
symphorien i did and its output looks different than in my nix-shell experiment. it is as if that env var was not set...
<infinisil>
jonge[m]: Okay this might sound weird, but try also setting `NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST=1`, I think that's some magic to make the c wrapper forward the NIX_CFLAGS stuff to the host platforms wrapper
<{^_^}>
[nixpkgs] @markuskowa opened pull request #58536 → clblas: turn of gtest, fix build → https://git.io/fjTS1
<jonge[m]>
infinisil unfortunately it has no effect.
<infinisil>
Darn, well I'm out of ideas
<{^_^}>
[nixpkgs] @matthiasbeyer opened pull request #58537 → lib: lists: Alias map = builtins.map → https://git.io/fjTSy
<jonge[m]>
infinisil oh wait. interestingly it's adding this flag to "extra flags after to /nix/store/....gcc", but _not_ to "extra flags after to /nix/store/....ld"
<jonge[m]>
so it has some effect but i am not there yet. :D
<{^_^}>
[nixpkgs] @vcunat pushed 154 commits to staging-18.09: https://git.io/fjTSS
wolfman154 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<wolfman154>
Could you guys help me with an issue I am having with home-manager ?
<infinisil>
wolfman154: Only if you tell us what the issue is :)
waleee has joined #nixos
linarcx has quit [Ping timeout: 255 seconds]
<jomik>
betawaffle: From your name I'd assume you were running the beta. I thought it would be unstablewaffle that ran unstable :o
<betawaffle>
:P
<wolfman154>
infinisil: Thanks, I installed xmonad globally as a nix module and got it to work with my custom keyboard layout, but to be able to be able to compile xmonad and configure xmonad.hs , I need to install it locally on my user environment, what is the correct syntax to install xmonad on the home-manager ?
grizwako has quit [Read error: Connection reset by peer]
jomik has quit [Quit: WeeChat 2.4]
<infinisil>
wolfman154: Dod you see the xmonad module? xsession.windowManager.xmonad.*
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @nyarly to master « (ruby-modules/gem): (refactor) (#53525) »: https://git.io/fjT90
<lielaazive>
Hey, I'm trying to provision a VirtualBox machine using NixOps, but I'm running into some obscure issue w/ root partition creation (or so I think), even though I'm running pretty much a blank configuration. Any hints as to what I should be Googling or looking at in GitHub? https://pastebin.com/DRgByDmZ
<aminechikhaoui>
lielaazive not sure if anyone tested vbox nixops backend with nixos unstable, you might be the first one :D can you see if it's reproducible with the stable release, try running `nixops deploy -d kshaa_virtualbox -I nixpkgs=channel:nixos-18.09` or 19.03 is fine as well
Mr_Keyser_Soze has joined #nixos
<wolfman154>
infinisil: it says xmonad.config is null by default, how do I change it to an absolute path so xmonad.hs is gets managed by the home-manager ?
<{^_^}>
[nixpkgs] @herrwiese opened pull request #58539 → nixos/nextcloud: Cherry-pick nginx recommendations to 19.03 → https://git.io/fjT9a
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 250 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lielaazive>
aminechikhaoui: :3 Yup, switching to the stable NixOs version fixed it! (18.09)
<gchristensen>
ZFS is failing to build on 5.0.{1,2,3,4} due to a GPL symbol -- but this makes no sense. anyone familiar with kernel configs mind checking out this issue? https://github.com/zfsonlinux/zfs/issues/8545 this doesn't make sense to me
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-19.03: https://git.io/fjT9b
npmccallum_ has joined #nixos
<joko>
gchristensen: I haven't tried a 5.x Linux kernel, but the issue you're having could be during the architecture (aarch64-linux). Maybe zol devs aren't anticipating this? https://github.com/zfsonlinux/zfs/issues/8259 mentions x86-64. Disclaimer: I've read only texts, not a single line of code :)
<{^_^}>
zfsonlinux/zfs#8259 (by tonyhutter, 11 weeks ago, closed): Linux 5.0: _kernel_fpu{begin,end} no longer exported
__monty__ has quit [Quit: leaving]
<gchristensen>
joko: no worries -- yeah, that one has been fixed up for a time -- this one seems really strange
<joko>
(I've gotten the issue from the 0.7.13 release)
<tilpner>
gchristensen: simd_aarch64.h hasn't been touched in 3 years
<gchristensen>
yeah!
<wolfman154>
infinisil: oh it makes sense now, quick syntax question: does the path have to be in double quotes ?
<infinisil>
,tias wolfman154
<{^_^}>
wolfman154: Try it and see! (then tell us what you saw)
<linarcx>
tilpner: Should i do extra efforts to it work? is that line enough?
* tilpner
doesn't know
<infinisil>
It should be enough I think
<linarcx>
Let me try it.
<linarcx>
And it is not documented. right?
<linarcx>
I mean in wiki pages..
<linarcx>
or manual
<infinisil>
Well the boot.kernelPackages option is documented
<tilpner>
Just try it, nothing should break permanently
<linarcx>
Oh! It try to compile it from source! There is no precompiled linux-libre package, right?
<lielaazive>
aminechikhaoui: Is it possible to lock the nixpkgs to the unstable 19.09 using the -I flag? I tried and nixops says "cannot be downloaded, ignoring". I'm not even sure how I got the unstable version initially, I'm pretty sure I just followed the quick start guide.
<aminechikhaoui>
unstable was likely pulled from your default channel, check `nix-channel --list`. But you could also use it with `-I nixpkgs=channel:nixos-unstable`
<gchristensen>
I'd like to bisect the linux kernel to see where the ZFS module stopped building. anyone familiar with the process here?
<gchristensen>
normally I'd ping aszlig but they're AFK it seems :)
jomik has quit [Quit: WeeChat 2.4]
<carter>
hello everyone! i'm going to be asking a lot of dumb questions over the coming weeks ... i'm trying to get work to have a sane packaging / config setup and ..... its a pretty enterprisey wacky setup :)
<buckley310>
<3 enterprisey setups
<hyper_ch2>
carter: you'll have a hard time ahead of you if you want to live up to me regarding dumb questions... despite having use nixos for soem time now, I still have plenty of those left :)
<hyper_ch2>
(but the people here are in general very friendly, knowledgable and helpful)
<carter>
buckley310: hyper_ch2 AND BLOCK CHAIN
<carter>
i'm pretty active in haskell land
<hyper_ch2>
pfff... block chain... old news....... new hotness: ring chain :)
<carter>
and honestly for my own little haskell stuff / personal projects nix has the wrong pain to power ratio
<carter>
hyper_ch2: i just like trying to build better distributed multi team/multi org dbs with all sorts of fancy modelling kit
<carter>
but yeah
<hyper_ch2>
I don't know about enterprisey stuff... I'm just an average home computer user
iyzsong has quit [Ping timeout: 255 seconds]
<Jetien>
How can I find out which snapshot of nixpkgs is likely to have a binary cache of a derivation in it?
<carter>
honeslty, idk what enterprise is,
<carter>
:)
agander_ has quit [Ping timeout: 250 seconds]
<Mic92>
Jetien: with hydra
<{^_^}>
[nixpkgs] @luispedro opened pull request #58541 → megahit: init at 1.1.3 → https://git.io/fjTHS
<therealwaphire[m>
Needed 4.20 because my server's iGPU support wasn't available in anything prior to 4.20 :P
<therealwaphire[m>
haha
<samueldr>
linuxPackages_latest had been made 5.0 just beforehand
anpryl has joined #nixos
<samueldr>
therealwaphire[m: you say "downgraded", was it through your own action?
<therealwaphire[m>
<samueldr "https://github.com/NixOS/nixpkgs"> cool I guess I'll update to 5.0.x on that one server when I have to
<therealwaphire[m>
does NixOS support live patching kernels by any chance? I wouldn't like rebooting my servers in cases of kernel upgrades
<samueldr>
(I just want to be sure a nixpkgs update didn't downgrade an attribute)
ilmu has joined #nixos
<therealwaphire[m>
samueldr: yes
<therealwaphire[m>
nothing automatic
regulus_ has joined #nixos
bwe_ is now known as bwe
<therealwaphire[m>
It threw an error while trying to update because I still had that 4.20 attribute. Changed that to 4.19
<samueldr>
good, I think we had in the past one occasion where linuxPackages_latest was downgraded and I really didn't like the idea :/ it had downgraded a couple versions due to falling back to an LTS
<therealwaphire[m>
ah
bwe has joined #nixos
bwe has quit [Changing host]
<therealwaphire[m>
I read a comment that there's a ZFS performance-hurt factor, kind-of, in 5.0.x?
<samueldr>
I have no idea about anything zfs, :)
<gchristensen>
I don't know if it did impact ZFS's performance. there was a lot of FUD around what happened.
<{^_^}>
#58422 (by mogorman, 2 days ago, open): chafa: init at 1.0.1
<gchristensen>
no worries
anpryl has quit [Quit: Konversation terminated!]
<gchristensen>
infinisil: see the failing step, "-package-list-no-aliases"?
<gchristensen>
click Details
<gchristensen>
anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-2-shlevy.ewr1.nix.ci/pkgs/tools/misc/chafa/default.nix:1:1 called without required argument 'docbook_xml_xslt', at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-2-shlevy.ewr1.nix.ci/lib/customisation.nix:69:12
<gchristensen>
it'd be cool to have a wiki page for each of these errors
i1nfusion has joined #nixos
<linarcx>
Guys. i've create a package called: `vazir-fonts`. It build and in hydra i can see the logs of it's build. But when i want to search it via: `nix search -u vazir-fonts`, it can't find it. why?
<Ankhers>
How can I find which package a certain binary is in? I'm looking secifically for the `ar' tool.
<samueldr>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended)
<ar>
,locate bin/ar
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
Found in packages: swift, arduino, arduino_core, gcc-arm-embedded, binutils-unwrapped, gcc-arm-embedded-5, gcc-arm-embedded-6, gcc-arm-embedded-7, gcc-arm-embedded-4_7, gcc-arm-embedded-4_8, gcc-arm-embedded-4_9
anpryl has quit [Client Quit]
<samueldr>
ar: lol that nickame :)
<samueldr>
,locate bin ar
<{^_^}>
Found in packages: swift, binutils-unwrapped
<gchristensen>
<3 ar
<{^_^}>
ar's karma got increased to 1
<samueldr>
^ the former searches prefixes in bin, while bin ar is a specific form for the bot which searches the name entirely
<Ankhers>
Is there a way to do it not in IRC?
<symphorien>
with nix-index
<samueldr>
Ankhers: yes, nix-index
<Ankhers>
Thanks!
<infinisil>
linarcx: First it has to arrive at a channel, then you need to update your channel, then you need to update nix searches index, and only then you'll see it
<infinisil>
Although then it's hard to see whether your package is in that commit :/
<linarcx>
infinisil: What you mean?
Fare has joined #nixos
<infinisil>
linarcx: That page there shows that nixos-unstable is at commit 07b42ccf2de451342982b550657636d891c4ba35, but you can't easily see whether a package is in that commit or not
<infinisil>
linarcx: Anyways, I checked out that version and tried to find your package, but it's not there yet
anpryl has quit [Ping timeout: 255 seconds]
<linarcx>
infinisil: What happend to my package? :)
<samueldr>
still not in a completed successful build, but it's on the cusp
<infinisil>
linarcx: It appears that the channel updated 2 days ago, but only with the things committed 7 days ago
<infinisil>
linarcx: And your package was committed 4 days ago, so it's not in there yet
<linarcx>
infinisil: Issue it on github?
<infinisil>
linarcx: It took the channel 7-2=5 days to build everything so it could update
<linarcx>
It is an issue at all or normal behaviour?
drakonis has quit [Quit: WeeChat 2.3]
<infinisil>
linarcx: There's nothing unusual about this no, that's normal :)
<samueldr>
half-and-half; normal behaviour, but it'd be better if it could be faster
drakonis has joined #nixos
<linarcx>
infinisil: Awesome:) i'll wait for it. thank you so much.
i1nfusion1 has quit [Remote host closed the connection]
<infinisil>
linarcx: You can however install it already if you want to, no need to wait for the channel
<averell>
re: zfs + 5.0 kernel, that doesn't work with zfsunstable yet, does it?
<Ankhers>
Can anyone show me an example of using `nixops scp'? I'm can't seem to understand it's arguments.
lielaazive has quit [Ping timeout: 245 seconds]
<AlexRice[m]>
If I've been an idiot and made a pull request from my master branch instead of a new branch is there any way to switch it or do I need to wait for the pr to resolve?
<Ankhers>
And of course, just as I ask, I get it.
ilmu has joined #nixos
erasmas has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
lejonet has quit [Ping timeout: 245 seconds]
civodul has quit [Ping timeout: 258 seconds]
<infinisil>
AlexRice[m]: Probably a question for #git, but yes you can fix it locally, force push, and at the same time change the base branch in the PR
<{^_^}>
[nixpkgs] @dtzWill opened pull request #58543 → libfido2: init at 1.0.0 (and libcor dep) → https://git.io/fjT5s
<infinisil>
betaboon: Having a NixOS option for that would be neat :o
buckley310 has joined #nixos
Jetien has joined #nixos
<Guest69096>
infinisil thanks
<Guest69096>
why was there no output?
<betaboon>
infinisil: how do you mean ?
buckley310 has quit [Client Quit]
agander has joined #nixos
buckley310 has joined #nixos
<infinisil>
Guest69096: nix-env has some problems all around and that is one of them..
hexagoxel has joined #nixos
<betaboon>
i never ever use nix-env oO
<infinisil>
betaboon: Like `nixpkgs.allowedUnfreePackages = [ "foo" "bar" "baz" ];` which would set `allowUnfreePredicate`
<betaboon>
infinisil: ah now i understand :)
<infinisil>
Or even `environment.unfreeSystemPackages = with pkgs; [ foo bar baz ];`
Neo-- has quit [Ping timeout: 240 seconds]
<betaboon>
infinisil: i think both of those would be great. only `unfreeSystemPackages` wouldnt be enough for me
<infinisil>
betaboon: Why not?
<betaboon>
infinisil: btw in the elastic-apm-server PR, i read your review-notes and started working on it. just didnt find the time to think and work on the config-aspect that you raised ;)
justanotheruser has quit [Ping timeout: 246 seconds]
<Glider_IRC>
Hello here, I have a boot failure on a fresh Nixos install performed in a VirtualBox VM, I end in emergency mode, and systemd journal report a fail to execute /run/current-system/sw/bin/plymouth. I'm not sure what I must do, I tryed to dissable plymouth and them rebuild Nixos but it has no effect.
<betaboon>
infinisil: regarding "why not": eg in the elastic-apm PR: there are unfree versions of the package used in a service, those packages are not added to systemPackages but used in the service-unit directory. thus i would have to configure nixpkgs to allow a specific unfree package
<infinisil>
betaboon: Ahh yeah that makes sense
Guest69096 has quit [Quit: Leaving]
<AlexRice[m]>
infinisil: thanks
drakonis has quit [Ping timeout: 244 seconds]
fusion809 has quit [Ping timeout: 268 seconds]
<fresheyeball>
ok nixos is reinstalling
<fresheyeball>
question
<betaboon>
infinisil: ah that PR for the RFC is what you linked to in my PR? i started reading it and it made some sense. just didnt have the time to realy think on it :)
shu9 has joined #nixos
<fresheyeball>
my home folder is not there yet
<fresheyeball>
if I create if from the installer will I have a bad time?
<fresheyeball>
just like mkdir /home/isaac
<fresheyeball>
so I can drop in my xmonad?
<sphalerite>
fresheyeball: only to the extent that the poermissions will be wrong
Tucky has quit [Quit: WeeChat 2.2]
<fresheyeball>
well I am a dumbass, so I will just use xterm after reboot
<sphalerite>
fresheyeball: probably better to install, then nixos-enter, then su - isaac though
<sphalerite>
or that.
<fresheyeball>
nixos-enter is some black magic
<sphalerite>
using su within nixos-enter should ensure that PAM's home-directory-creating gets triggered though.
<infinisil>
betaboon: Oh yeah the link I posted in the PR doesn't work anymore I guess, but yeah it's about that PR. So the basic idea is to have a `config` option of a type that represents json (in your case) and remove options like `logLevel`, instead users can use `config.logging.level` directly
<infinisil>
s/it's about that PR/it's about that RFC/
<fresheyeball>
btw this IRC is the most impressive linux heads on the planet
<fresheyeball>
yall rock
<tilpner>
fresheyeball: See PM please
<infinisil>
betaboon: And extraConfig isn't needed either, because users can also just set `config` directly, and the module system will take care of merging everything together nicely
<betaboon>
infinisil: yeah i liked the idea and the arguments. and getting rid of `extraConfig` stuff seems reasonable as well
<{^_^}>
[nixpkgs] @bignaux opened pull request #58548 → lugaru: init at 1.2 → https://git.io/fjT5h
ddellacosta has joined #nixos
civodul has joined #nixos
<sphalerite>
fresheyeball: <3
<betaboon>
i love how vibrant it is in here :D
<infinisil>
<33
<gchristensen>
me too, betaboon. we have a super good community -- I love it a lot. big thanks to people like infinisil, sphalerite, and *many* others for that
<genesis>
i put games for your children :D
<viric>
Is there any hash calculator for fetchgit output based on a local checkout?
<sphalerite>
viric: nix-prefetch-git should work I think
<viric>
I push this to the repository, and I want fetchgit to take it
<viric>
sphalerite: that would fetch, isn't it?
<viric>
sphalerite: this requires a server running
fmsbeekmans has joined #nixos
<sphalerite>
viric: yes, it would fetch. No, it doesn't require a server running.
vmandela has joined #nixos
<sphalerite>
viric: it would behave similarly to git clone ~/nixpkgs /tmp/nixpkgs.
<betaboon>
infinisil: thanks for update in the PR :)
<fmsbeekmans>
I have written a function that uses `nix-prefetch-git` that generates a list of derivations, how can I build these derivations?
hyper_ch2 has joined #nixos
<hyper_ch2>
Mic92: trim patch was merged with zfs master
<sphalerite>
fmsbeekmans: using nix-build I guess?
<fmsbeekmans>
But nix-build doesn't allow nix-prefetch-git right?
<sphalerite>
fmsbeekmans: a nix list? Or a bunch of nix files? Or what?
<Mic92>
hyper_ch: ok. Then we can bump zfsUnstable
<sphalerite>
fmsbeekmans: oh, you want to run your script inside a derivation?
<fmsbeekmans>
sphalerite a nix list
<fmsbeekmans>
sphalerite: I'm a bit new to this all, I want to generate the derivations and build them.
<fmsbeekmans>
And I wanted to use nix to script it
drakonis has joined #nixos
i1nfusion1 has joined #nixos
<viric>
sphalerite: I can give a local repository, really?
<hyper_ch2>
trying to create now a PR for zfs update :)
<sphalerite>
viric: yep, I tried it just before — `nix-prefetch-git ~/nixpkgs` works for me no problem
sanscoeur has joined #nixos
<viric>
sphalerite: fails for me - but I have a very old nixpkgs
drakonis_ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjTdZ
<fmsbeekmans>
sphalerite: Is that a sensible approarch? A nix file that creates a list of derivations (Or a bunch of files with derivations) but needs network access and then build these derivations?
sanscoeur has quit [Ping timeout: 246 seconds]
<clefru>
hyper_ch2: wow, trim is finally merged?
<clefru>
what's next? persistent L2ARC, flying cows? crazy times we live in.
mekeor has joined #nixos
Erasmus has quit [Ping timeout: 250 seconds]
<ajs124>
clefru, raid level reshaping? or maybe raid vdev expansion?
<nyanloutre[m]>
buckley310: yes remmina give me the same thing
<nyanloutre[m]>
but I can connect with the Windows RDP client
<nyanloutre[m]>
most likely a Remmina bug
<buckley310>
yeah, specifically it looks like a freerdp bug
lejonet has joined #nixos
<buckley310>
`[13:08:19:978] [17045:17049] [ERROR][com.winpr.timezone] - Unable to find a match for unix timezone: US/Eastern`
<buckley310>
does anyone know how to get vinagre to work with RDP on nixos?
<linarcx>
Gyus. I've create a test profile via: `nixos-rebuild switch -p test `, and it added a submenu to grub. But i want to delete it. How can i do it?
<{^_^}>
#40706 (by lucas8, 45 weeks ago, open): Broken cmake file with Qt5.10 full
<nschoe>
The problem was solved, then it came back again, then apparently, a PR was merged that should solve the issue, but I'm still having it. Anybody else has that issue?
<fresheyeball>
anyone know how to exit tty to a xmonad/none session?
<nschoe>
fresheyeball, CTRL + ALT + F2,3,4, etc. ?
<fresheyeball>
nschoe: other way around
Jetien has quit [Ping timeout: 246 seconds]
mmlb9774508 has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 245 seconds]
<nschoe>
fresheyeball, then it's CTRL + ALT + F7 to get back the GUI tyt
<nschoe>
tty*
orivej has joined #nixos
<nschoe>
Nobody for the Qt issue?
Jetien has joined #nixos
elux has quit [Quit: leaving]
mekeor has quit [Ping timeout: 255 seconds]
nschoe has quit [Ping timeout: 255 seconds]
aanderse-work has quit [Ping timeout: 246 seconds]
<jD91mZM2>
Yet another update if anybody remembers my weird display multi monitor thingy issue (if anything, for future reference if people search the IRC logs for solutions). Basically, recap, plugging in a monitor would make the second monitor look messed up and my primary screen would be shifted up so I only saw the bottom of it. I worked around it by using proprietary nvidia drivers, but finally the culprit appears
<jD91mZM2>
to be compton. You read that right. I never would have guessed, but using the glx backend on my intel driver (I have NVIDIA Optimus) was the problem with rendering. Sorry to post this giant wall of text, but... idk... Chances are nobody will get this exact issue
<linarcx>
Gyus. I've create a test profile via: `nixos-rebuild switch -p test `, and it added a submenu to grub. But i want to delete it. How can i do it?
orivej has quit [Ping timeout: 250 seconds]
Jetien has quit [Ping timeout: 250 seconds]
<betaboon>
puffnfresh: you aroudn ?
drakonis has joined #nixos
<jD91mZM2>
linarcx: This whole profile system is new to me (learned it from you just now), but what happens if you garbage collect and delete old generations?
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #nixos
<Ariakenom>
how should I search for nixos packages?
<ghostyy>
how do i set the user_allow_other option for fuse in nixos 18.09
<Ariakenom>
for example vscode
<ghostyy>
i had environment.etc."fuse.conf" set and it worked in 18.03 but that has stopped working in 18.09, its not looking in /etc for fuse.conf but in the nix store itself
<MichaelRaskin>
I do use some NixOS modules as functions «configuration attrset → config file»
<waleee>
MichaelRaskin: seems a bit like guix-light (minus the libre-part)
<b1000101>
MichaelRaskin: nice
<dashkal>
Actually, that reminds me. How sane is it on NixOS to get /home on a second partition? I forget the details on how much it deviates from the normal filesystem.
<waleee>
*guixsd
<MichaelRaskin>
Well, they considered replacing sudo with a daemon and rejected that plan
<gchristensen>
MichaelRaskin: your daemon -- does it provide you a terminal, or no?
<ghostyy>
i just upgraded from 18.03 to 18.09 and now 3d doesnt work on my second xorg session (but it does on the first), does anyone have any ideas as to what might cause this?
<MichaelRaskin>
dashkal: you need to mention that in the configuration, but NixOS doesn't care about /home location too much
<dashkal>
Good to know. So I can do that when I'm ready to move over.
<MichaelRaskin>
gchristensen: no, why should it?
<gchristensen>
MichaelRaskin: well sometimes I use sudo with interactive programs, and I'm wondering if yours supports that or no
<infinisil>
ghostyy: Nobody can help you if all the information we get is "does not work"
<MichaelRaskin>
I can ask it to evaluate arbitrary code (with auth) and return results, though
<gchristensen>
nice
<MichaelRaskin>
I can ask it to start a terminal with root shell, too!
<ghostyy>
the error message (for eg glxgears) is just a generic "could not load swrast.so" which just means it wasnt able to fall back to software rendering
<ghostyy>
i guess i could try strace
dejanr has joined #nixos
<infinisil>
ghostyy: Ah that's a common opengl error, it means it couldn't find the driver(s)
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @Infinisil to master « bazel: Fix PATH escaping »: https://git.io/fjTb9
lielaazive has quit [Ping timeout: 245 seconds]
<ghostyy>
services.xserver.videoDrivers = ["nvidia"]; i have this set though
<ghostyy>
also it works on my first xorg session
<ghostyy>
at tty7
<ghostyy>
but not on my other one
<dashkal>
Ok, sanity/understanding check. I'm reading the nixpkgs manual's haskell section. And it looks an awful lot like the sanest way to do dev of any kind is to make shell.nix files in my dev directories that pulls in the specific environment for that project. Am I on the right track?
<infinisil>
ghostyy: Huh, how do you run multiple ones? I've never seen anybody do that
Fare has quit [Ping timeout: 244 seconds]
<ghostyy>
i just install the startx program, go to another tty and run startx
<dashkal>
Is that how your first one is started?
<ghostyy>
it didn't work in previous versions but it worked in 18.03 (and 3d hardware acceleration worked too)
<ghostyy>
no the first is started with lightdm
<dashkal>
There's the key difference. The environment startx knows isn't the same as that of lightdm's
<ghostyy>
how do i get multiple lightdm sessions/make startx act like lightdm?
<infinisil>
Well, probably not, but there's some discussion about startx there
<dashkal>
I do see a related page on the wiki, but the top line is "Note: This page is a WIP, it doesn't describe best-practices with nix and NixOS and should be updated to use a nix derivation generating the necessary files instead of manipulating the contents of the store."
<Taneb>
Any idea why my laptop's trackpad may not be working
<ghostyy>
ah yeah, that was written before startx started working
<ghostyy>
i have absolutely no clue what was the thing that made it work in the last version (and not in previous versions, or this version apparently) but i didnt have to do anything special for it
orivej has joined #nixos
<ghostyy>
hm... if i log the output of startx maybe itll tell me what modules its loading
<ghostyy>
if i dont see the nvidia one then thats probably the problem
<dashkal>
My gut check (I'm new to this) is that you need to make a derived derivation that depends on the missing packages.
<MichaelRaskin>
I wonder how much I am missing out by using nouveau and modesetting
<MichaelRaskin>
So many interesting things seem to happen with nvidia drivers!
<dashkal>
Meh, they do usually Just Work (tm).
<ghostyy>
to be fair i had very little interesting things happen to me before upgrading
<ghostyy>
also it loads the nvidia module and there are no errors
b1000101 has quit [Ping timeout: 256 seconds]
<dashkal>
But I mostly don't need 3d on my linux station. I keep windows around for most of my need for 3d.
<ghostyy>
thats smart
npmccallum_ has quit [Remote host closed the connection]
<MichaelRaskin>
I have nonzero but limited demands for 3D, but these are even covered by Intel GPU (that I also have)
<laalf>
hello! could someone give me docs on how to mount multiple encrypted partitions? i am using lvm with one partition at / (which works fine), one other partition (i dont know how to unlock it automatically with a keyfile) and a cache partition (also unlockable via that keyfile, also no mountpoint because its lvm cache). boot.initrd.luks.devices doesnt work because the keyfile is stored on /. i dont know how to configure filesystems.<name?> properly.
<ghostyy>
i realized the other day after psending nine hours trying to get a video game to work in wine that the most important thing in life is wasting as little time as possible on asinine computer debugging tasks
<Taneb>
Apparently I just needed to turn on libinput
npmccallum has joined #nixos
<dashkal>
Thanks for that, Taneb. I'll run into that myself when it's time to get Nix on this machine properly.
<dashkal>
I don't intend to have to dev with windows for any longer than necessary. But I inherited some C#/Azure code. So until I either port or get it working on mono, windows I'm stuck with.
<laalf>
MichaelRaskin: you are missing better compatibility, less breakage and better working optimus. if you were wondering.
<Taneb>
dashkal: glad you're getting some benefit out of me missing something that should have been obvious
<dashkal>
I miss things like that too. Lots of obvious things all at once. Some get dropped :)
agander has quit [Ping timeout: 255 seconds]
<MichaelRaskin>
laalf: better compatibility with what? My priority is XRandR
<MichaelRaskin>
I guess I am missing out on being able to run CUDA stuff, though
waleee has quit [Quit: WeeChat 2.4]
<dashkal>
There's a space I want to play with in the mid-term future. I have some projects down the pipe that could use CUDA.
jappie has joined #nixos
<jappie>
Hi, does anyoone know how to set the date of nixos
<laalf>
MichaelRaskin: ah wait... i thought you were talking about what you were missing if you ran nouveau instead of nvidia. nvidia has better performance. cuda, vulcan. the rest is worlds worse
<jappie>
I'm trying to prepare for daylight savings
<jappie>
So I want to set the date into the future
<MichaelRaskin>
I thought some parts of Vulkan are there in Mesa, but I might be wrong
<laalf>
MichaelRaskin: would be new to me... well nouveau is working on vulcan so....
<ghostyy>
the keyfile stuff is tricky
<laalf>
ghostyy: thats not exactly my issue. i just want multiple partitions unlocked at boot
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fjTNJ
<ghostyy>
yeah, sorry i didnt read your whole post well enough
d10n-work has quit [Quit: Connection closed for inactivity]
<ghostyy>
https://pastebin.com/wrD7BBzy thats the whole thing i use to unlock multiple devices with the same passphrase, i just use an extra initrd with a luks-encrypted filesystem image in it, and inside of there are all of the keys to all of the devices
<clever>
ghostyy: nixos now saves the passphrase to a file on a tmpfs, and uses it for several devices
<clever>
ghostyy: so such hacks arent needed anymore
<ghostyy>
whoa really?
<clever>
yes
<ghostyy>
thats pretty cool, ill have to set that up
<laalf>
clever: do you have a snipplet for me? or should i go the bash route?
i1nfusion1 has quit [Remote host closed the connection]
<laalf>
clever: so i add the other partitions to boot.initrd.luks.devices as well and they get unlocked automagically? (yes i have the same password on all of them)
goibhniu1 has quit [Ping timeout: 268 seconds]
<clever>
laalf: yep
i1nfusion1 has joined #nixos
goibhniu1 has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to release-19.03: https://git.io/fjTNO
imdoor has joined #nixos
<laalf>
wish me luck then
fresheyeball has quit [Quit: WeeChat 2.2]
ddellacosta has quit [Ping timeout: 250 seconds]
linarcx has quit [Quit: WeeChat 2.4]
ddellacosta has joined #nixos
<ghostyy>
hmm, so on the other x session its loading the mesa libgl, while on the first its loading one that just says "libGL"
slack1256 has joined #nixos
<ghostyy>
ah services.xserver.exportConfiguration = true; thats the line that makes startx work
<martyet-o>
hyper_ch what does mean that "mypool" at the end of phpfpm services line? what can explain me right this section somewhere in documentation? :) i would like to find, learn.. sorry for weird question :)
<hyper_ch>
martyet-o: no idea
<infinisil>
selfsymmetric-pa: What's your OS?
<clever>
martyet-o: php-fpm lets you configure multiple pools of workers
<clever>
martyet-o: each with its own config
<martyet-o>
and i can separate these pools with separate ports and users? am i right?
<martyet-o>
thinking about for what is this useful..
<martyet-o>
but this seems like that point
bemeurer has quit [Ping timeout: 259 seconds]
<clever>
martyet-o: shared hosting, each directory on your server runs php files as a diff user
drakonis has joined #nixos
<selfsymmetric-pa>
infinisil: This is on NixOS.
<gchristensen>
clever: turns out ZoL's aarch64 compile farm is 4-core odroid with 1.7gb of ram :D
<infinisil>
selfsymmetric-pa: What nixpkgs version are you using?
<selfsymmetric-pa>
Does my `emacs-overrides` look correct?
<selfsymmetric-pa>
I'm using 18.03.
<selfsymmetric-pa>
I'll give unstable a shot.
<dminuoso>
o1lo01ol_: Is the SSH config perhaps not under nix control in those cases (and they differ)?
<infinisil>
selfsymmetric-pa: What emacs-overrides?
<selfsymmetric-pa>
It's the second-to-last comment in that thread.
<o1lo01ol_>
dminuoso: SSH config are not under nix's control in any of the cases.
<infinisil>
selfsymmetric-pa: Oh, you mean emacs.override
<selfsymmetric-pa>
infinisil: Here, I'll upload the whole file.
<martyet-o>
php package for nixos exists, php works, but on nginx nope.. and setting up fastcgi cant work, if i will not install package for it.. doesnt?
<dminuoso>
o1lo01ol_: Well... :/
<infinisil>
selfsymmetric-pa: Well you are using imagemagick there, not imagemagickBig
<selfsymmetric-pa>
infinisil: I know, I tried with both.
<infinisil>
selfsymmetric-pa: And not sure about all the other override things, I just know that when you do `.override { imagemagick = imagemagickBig; }` it works
<selfsymmetric-pa>
Interesting...
<infinisil>
Just try it with that, and when that works continue with other overrides
<selfsymmetric-pa>
How would I write that, syntactically, I mean?
<selfsymmetric-pa>
I don't know how to layer overrides like that.
<selfsymmetric-pa>
The weird global nature of `overrides` confuses me generally. I'm usually more comfortable with `overrideAttrs`.
<infinisil>
OHhh yeah you have a mess up with overrides
<selfsymmetric-pa>
Yeah?
<infinisil>
selfsymmetric-pa: Yeah but there's different override things, and you're using the wrong one for imagemagick
<infinisil>
And you maybe also messed up the emacs package override for emacsPackages
<selfsymmetric-pa>
Ohhh. How do I fix it? Is it not a valid attribute?
<infinisil>
Hold on, checking
<infinisil>
You need `emacs.override { imagemagick = imagemagickBig; }`
<infinisil>
Compare it with what you have
<selfsymmetric-pa>
Hmm. But I don't even have `emacs`. I have `emacsPackagesNg` and `emacsWithPackages`.
<selfsymmetric-pa>
Ohhhh.
<selfsymmetric-pa>
Sorry, I get it now.
<selfsymmetric-pa>
Same place as srcRepo = true;
<infinisil>
I'll just take your file and rewrite it a bit, hold on
<selfsymmetric-pa>
Hmm. By the way, I noticed you use `myEmacs`, not `my-emacs`. I can't figure out what the prevailing conventions are for camelCase vs kebab-case.
<selfsymmetric-pa>
Any advice?
<infinisil>
Hehe, it's usually camelCase in nixpkgs, but that's up to you to choose ;)
<selfsymmetric-pa>
Ah, so no style guide yet? That explains that, haha.
<gchristensen>
there is a bit of a style guide somewhere, but not much
<gchristensen>
and it is hard to really have it be effective without automated verification
<samueldr>
still, having a style guide is necessary to answer with one truth "how to write it" when asked, or when diverging opinions arises :/
<gchristensen>
the right way to write nix expressions is the way I write nix expressions of course
shibboleth has joined #nixos
<samueldr>
while without the tooling to automate catching those it won't be possible to police, at least there would be _a_ definitive answer and the project could advance towards the style until the tooling exists
<infinisil>
gchristensen: Yeah, but only if it's how I write Nix expressions of course
<gchristensen>
I propose someone who writes nix expressions like I do authors a definitive style guide
<gchristensen>
(more seriously, I'm pretty willing to go with *any* style which is automatic)
<selfsymmetric-pa>
Centralization of style is badly needed. Too many ways to do things today. Everybody assumes you write Nix like they do.
<infinisil>
gchristensen: *Literally any* style?
<selfsymmetric-pa>
It's so frustrating to hear, "oh just override with `foo = 2`". What do you meeeeeeeeeeeean???
<elux>
how does nixos work with systemctl? is there a way to have a service run in systemctl --user ? and make it so i can turn it on/off by cli as I'd like?
<elux>
ie. for services.postgresql, id rather not have this run on my system all the time, just when i turn it on..
<elux>
i gues i could use docker, but meh would rather not
<buckley310>
normal as in, create a service file in your home folder and then you can start/stop it
<elux>
im still unclear how nixpkgs work with home-manager with the system-level config, because when using nixos-rebuild, i can set services.postgresql and it will install postgres, if i try the same thing in home-manager's nixpkg, it says it cant find postgresql ..
<buckley310>
i've actually never used home-manager, so im not sure how services work with that
adetokunbo has joined #nixos
freeman42y has joined #nixos
OmnipotentEntity has quit [Remote host closed the connection]
<rycee>
elux: The user services in Home Manager are completely separate from the system and user services on NixOS. The options available on Home Manager can be seen here: https://rycee.gitlab.io/home-manager/options.html
<ghostyy>
is there anyone who can help me with getting latest nvidia drivers to work?
<buckley310>
stick that in your config, and then grab `pkgs/os-specific/linux/nvidia-x11` from master
goibhniu1 has joined #nixos
freeman42y has quit [Ping timeout: 258 seconds]
slack1256 has quit [Ping timeout: 250 seconds]
<buckley310>
i am sad because nixos 19.03 stopped one version before nvidia added freesync support :(
<elux>
rycee: thank you :) and thanks for home-manager, love it!!
<rycee>
elux: No worries. Glad you like it! :-)
<elux>
so, any suggestions for how i can copy the postgresql from NixOS/nixpkgs and use it with home-manager with systemd user level..? im surprised this hasnt been done already
<elux>
im finding setting up postgres (v11) is quite challengine with nixos, even to get a template db created etc
<elux>
(im just 1 week in on my desktop nixos setup which is a real joy other then a few minor new things)
bemeurer has quit [Ping timeout: 246 seconds]
<rycee>
elux: I think it would require some fairly intimate understanding of the NixOS and Home Manager modules to port a complex module like the postgres one.
<elux>
got it, ill just try to get NixOS's postgresql to work then
<elux>
last lame question -- how can i setup a decent gtk2/gtk3 theme? my thunar is looking pretty bad
<rycee>
elux: I would recommend to instead use NixOS declarative containers and set up postgres inside it.
<elux>
oo, interesting ill look those up. ive never heard of NixOS declarative containers yet
<elux>
what kind of container runtime does it use..? docker? or something else
<rycee>
elux: For example, I have `gtk = { font = { package = pkgs.dejavu_fonts; name = "DejaVu Sans 8"; }; theme = { package = pkgs.theme-vertex; name = "Vertex-Dark"; }; };` in my configuration.
<ghostyy>
buckley310, have you experienced any problems in 19.03?
<ghostyy>
im thinking of upgrading from 18.09
<elux>
thank you, ill give that a shot. the nix files are readable, but often not clear which are valid values to pass to options
<elux>
i use DejaVu everywhere too :) so thats perfect
Fare has joined #nixos
<buckley310>
ghostyy: nope. ive been using it for a couple weeks on my two machines.
mmlb9774508 has joined #nixos
zupo_ has joined #nixos
jappie has quit [Ping timeout: 256 seconds]
<elux>
rycee: what do you use for your iconTheme settings? unfortauntely im not seeing any fonts show up in thunar -- although the theme/fonts look much better
<rycee>
I used to have `iconTheme = { package = pkgs.tango-icon-theme; name = "Tango"; };` but now I just use the default one.
zupo has quit [Ping timeout: 246 seconds]
<elux>
thank you
<elux>
nice, looks decent.
<rycee>
No worries. I'm heading to bed now. Good luck :-)
m0rphism has quit [Ping timeout: 272 seconds]
<ghostyy>
argh i cant get around this /nix/store/a6rf8a474z5y01w4ld2v54d24kyqcxag-stdenv-linux/setup: line 312: pkgBuildAccumVars: readonly variable error