<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeBPu
<{^_^}>
_pash: Please expand your question to include more information, this will help us help you :)
toppler has quit [Ping timeout: 268 seconds]
selfsymmetric-pa has quit [Remote host closed the connection]
<hpfr[m]>
Did the bot just talk lol
<clever>
uhhh, what? lol
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeBPo
<infinisil>
hpfr[m]: clever: PM ",expand" to the bot to find out why :)
jluttine has quit [Ping timeout: 276 seconds]
toppler has joined #nixos
<clever>
infinisil: ahhh!
<hpfr[m]>
On the matrix bridge right now
<infinisil>
,expand
<{^_^}>
,expand #<channel> <user>: Anonymously send "Please expand your question to include more information, this will help us help you :)" to a user in a specific channel (only works in PMs)
<hpfr[m]>
What, because that’s too aggressive to send personally? Haha
<{^_^}>
[nixpkgs] @risicle opened pull request #71411 → [r19.09] putty: add patch for CVE-2019-17069 → https://git.io/JeBPK
<chessai>
,expand
<{^_^}>
,expand #<channel> <user>: Anonymously send "Please expand your question to include more information, this will help us help you :)" to a user in a specific channel (only works in PMs)
<chessai>
nice
<infinisil>
I haven't talked about this functionality here, it's there in case people ask very vague questions but you don't necessarily want to obligate yourself to helping
<clever>
infinisil++
<{^_^}>
infinisil's karma got increased to 150
<infinisil>
Because if I ask "Can you expand on that?" Users will think I know stuff about <thing>, which I might not, I'm just asking for more info in case somebody else can help with more info
_pash has quit [Quit: leaving]
<mdash>
hpfr[m]: remember there's #nix:matrix.org too if you want something fancier ;-)
<chocopuff>
idk if this is the right place, but damn nix sounds so good on paper but so hard to get right as a newcomer arghhh
<chocopuff>
it is very rewarding and frustrating at the same time lol
<chocopuff>
there is just a steep learning curve
<infinisil>
chocopuff: Yeah there sure is..
<infinisil>
We're here to help though :)
<hpfr[m]>
mdash: I prefer the IRC because it’s much more active, just use the bridge on mobile
<chocopuff>
:D
<evils>
btw, i just installed ubuntu 19.10, that shit's frustrating...
<chocopuff>
it probably is a matter of getting the hang of it
<evils>
oh and isn't a steep learning curve one where you learn a lot for little time invested?
<evils>
brb, gonna see if i broke my desktop too :P
evils has quit [Remote host closed the connection]
bhipple has joined #nixos
evils has joined #nixos
<evils>
i think i just prefer a hell of my own making :D
<evils>
i saw, but only after looking for it, ctrl+d seems fine
toppler has joined #nixos
<infinisil>
I think it would be best to just call Nix hard to learn instead of saying it has a steep learning curve :)
<infinisil>
(in accordance with above answers)
<evils>
i'm not entirely convinced it's hard to learn, more that there isn't particularly good learning material?
<infinisil>
Doesn't that make it hard to learn?
<ShaRose>
ok, so a while ago I was having issues with dnsdist: turns out, it's the DynamicUser setting in the systemd service it makes. If I force it to false, it works fine.
<ShaRose>
Any idea what's the best way to get that fixed?
<ShaRose>
(I mean, I can just mkForce it, but still)
<evils>
infinisil: i guess, but it's a curable ailment
wtv_nick has quit [Quit: Lost terminal]
<infinisil>
ShaRose: Setting that to false means the service probably runs as root, with all privileges, which is no good. DynamicUser enables a whole bunch of isolations to prevent services from doing nasty stuff
reallymemorable has joined #nixos
<ShaRose>
yeah but it also isolates it from being allowed to bind
<ShaRose>
so
<infinisil>
ShaRose: Look at `man systemd.exec` to see what it all does. Try to figure out why it fails with it, then allow that specific thing manually (via serviceConfig.*)
<infinisil>
ShaRose: Ah yeah that's a common thing that has to be manually allowed
<infinisil>
nixpkgs should have some examples lemme see..
<ShaRose>
lemme see if 19.09 fixes it for some reason
<chessai>
haven't made a PR to nixpkgs in a while, if i've no idea which nixpkgs maintainer to cc, is there someone i should pick, or leave it out entirely?
<infinisil>
I just wanted to see whether the module changed between 19.03 and 19.09
<ShaRose>
systemd probably changed at the very least
<ShaRose>
so
<infinisil>
The module didn't seem to change
<evils>
chessai: there should be a maintainer listed in the default.nix of the relevant package, under meta.maintainers
<infinisil>
ShaRose: Maybe it has to do with your ip there, where's that one from? A VPN?
<chessai>
oh, i'm daft, that refers to the package maintainer, not the nixpkgs maintainers
<ShaRose>
linked the nix file, it's a local IP formed from a bridge
<chessai>
(as in the people with commit bit)
<infinisil>
ShaRose: Ah did'nt notice
<red[m]>
Okay - basic question. I've been asked to cherrypick a commit to release-19.09
<ShaRose>
also, kinda lame how dnsdist doesn't automatically add the firewall rules :P
<qyliss>
Git won't let you commit to a remote branch
<red[m]>
well, I am a superhacker in a different domain
<ShaRose>
still upgrading to 19.09, but will try
<qyliss>
Because they're for tracking remote state, not local state
<red[m]>
eating and comedy :-P
<ShaRose>
good one
<red[m]>
Branch 'release-19.09' set up to track remote branch 'release-19.09' from 'upstream'
<red[m]>
okay - that looks good I guess
<infinisil>
Though, after reading a bit more, I'm not very hopeful with AF_NETLINK, even though it sounds promising
ebzzry has quit [Quit: WeeChat 2.3]
<red[m]>
This branch is even with NixOS:release-19.09.
<red[m]>
:-D
<red[m]>
So - if I'm in my checked out state for release-19.09
<red[m]>
and then create a new branch from here - any changes I make should be able to create a PR relative to release-19.09 right?
<samueldr>
yeah
<red[m]>
(sorry- this is the first time I've been asked to PR against a release so want to make sure I don't waste any reviewer's time)
toppler has joined #nixos
<evils>
red[m]: no worries, github will let you review your changes before submitting the PR, and after that the bot will tell you if there's issues with it before anyone gets to it
work_ has quit [Quit: Connection closed for inactivity]
ng0_ has joined #nixos
<red[m]>
I for one appreciate my robot overlord
<red[m]>
it's funny = I got added to the org yesterday and got my first review request from the bot the same day
<red[m]>
a coincidence I'm sure ;-)
<red[m]>
hmm
<red[m]>
from a practical standpoint - how do I check something doesn't break downstream packages when in a release branch?
<red[m]>
since I usually push stuff on master, and my servers all run on master... I just nixos-rebuild against them
<red[m]>
and grahamc mentioned that redhat is switching to wayland. Why do I get the feeling that that means that redhat will weaponize systemd to kill off x11
<{^_^}>
[nixpkgs] @nh2 closed pull request #66416 → pkgsStatic: Don't disable static on curl for git → https://git.io/fj72C
Shouou has quit [Ping timeout: 276 seconds]
<red[m]>
speaking of - does anyone here use wayland yet?
<ShaRose>
infinisil no dice, btw. Also tried RestrictAddressFamilies="~";
<infinisil>
Weird
Cale has joined #nixos
<angerman>
how do I debug a derivation? Ideally I'd be placed into the derivation to the point where I can run build or something and it would behave identically to what the derivation with nix-build is doing.
<clever>
angerman: if sandboxing isnt a concern, you can just run `nix-shell /nix/store/foo.drv` and it will set the same env vars
<infinisil>
Either that or run the derivation with a nix-shell
<clever>
angerman: then just tweak `$out`, and run `genericBuild`
<angerman>
clever: hmm let's see that seems like a slightly less invasive approach. My current issue is that I end up with encoding issues in nix-build, but LANG is set properly...
<infinisil>
clever: Unfortunately (same with the breakpoint thing) it's hard to know what commands to run for immediate steps :/
<clever>
angerman: `nix-shell --pure /nix/store/foo.drv` should replicate the env vars right
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<ShaRose>
infinisil just noticed that the dnsdist service on centos has all those same flags except instead of a dynamic user it has a specific one and includes NoNewPrivileges=true
slack1256 has joined #nixos
<infinisil>
DynamicUser enables NoNewPrivileges by default fwiw
<infinisil>
And RemoveIPC and PrivateTmp too
<infinisil>
Maybe disable one of those?
<ShaRose>
there's a few things included in the service that dynamicuser implies apparently
<infinisil>
Maybe you could ask #systemd for guidance, or the original module author. The module must have worked at some point
toppler has joined #nixos
<ShaRose>
debated that but wasn't sure what the policy was behind just emailing people (I'm assuming who committed it was the author: avoiding a blind ping etc)
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « torrential: use vala 0.40 »: https://git.io/JeB1P
<angerman>
clever: thanks. That seems to have helped shed some light!
<matthuszagh>
hi. i'm building a python package and am getting an error that setuptools is not available. This triggers on the setup.py file. i've made setuptools a propagatedBuildInput of the derivation
<matthuszagh>
also, setuptoolsBuildPhase starts since i'm seeing the mssage "Executing setuptoolsBuildPhase" and I believe setuptools is a dependency of that as well
<matthuszagh>
any thoughts on why it's not finding setuptools?
<matthuszagh>
happy to post code if that helps
<{^_^}>
[nixpkgs] @artemist opened pull request #71426 → gtk3: Enable separated debug info on Linux → https://git.io/JeBM6
drakonis has quit [Quit: WeeChat 2.6]
domogled has joined #nixos
Fare has quit [Ping timeout: 250 seconds]
nikola_i has quit [Ping timeout: 245 seconds]
endformationage has quit [Ping timeout: 240 seconds]
nikola_i has joined #nixos
toppler has quit [Ping timeout: 250 seconds]
kaychaks has joined #nixos
kaychaks is now known as Guest99374
day|flip has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
drakonis has joined #nixos
toppler has joined #nixos
matthuszagh has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
<offlinehacker>
arianvp: was it only about confimaps or do you have a general idea that each kubernetes resource would be a derivation?
m0rphism has joined #nixos
johnnywho2 has joined #nixos
<offlinehacker>
and then have some kind of dependency tree
<johnnywho2>
Hey, new user here. I 'm running 19.09. I need to install samsung unified driver 1.00.36 for my printer (m2070) to work, but I can 't figure out how
Shoubi has joined #nixos
arianvp has quit [Ping timeout: 250 seconds]
Shoubit has quit [Ping timeout: 250 seconds]
arianvp has joined #nixos
noogie has quit [Ping timeout: 250 seconds]
phI||Ip has quit [Ping timeout: 250 seconds]
toppler has quit [Ping timeout: 268 seconds]
c0bw3b_ is now known as c0bw3b
revtintin has quit [Quit: WeeChat 1.9.1]
Mateon1 has quit [Remote host closed the connection]
phI||Ip has joined #nixos
Mateon1 has joined #nixos
<arianvp>
but the generation of json is currently just done with nix-instantiate right?
br_ has quit [Ping timeout: 250 seconds]
c0bw3b has quit [Remote host closed the connection]
<arianvp>
If I would want some resources to be derivaitons, I probably need to do some hackery. not sure yet how
kyren has joined #nixos
ivegotasthma has quit [Ping timeout: 250 seconds]
<offlinehacker>
arianvp: yup, i just used nix module system that defines schema and merging rules for resources
<offlinehacker>
i do not see major benefit of having each resource as derivation, as you would not be able to reuse nix module system
<arianvp>
you would
br_ has joined #nixos
<arianvp>
(I think)
<offlinehacker>
I'm still unsure if nix module system is best solution in last years there are better languages for that
andymandias has quit [Ping timeout: 250 seconds]
johnw_ has joined #nixos
<arianvp>
I'm gonna mess around with it a bit. and probably get stuck. but still fun
kaychaks has left #nixos ["Leaving"]
<arianvp>
(I also work on a competing solution, dhall-kubernetes :P )
<arianvp>
offlinehacker: but the question I wanted to ask is. Are you running into performance issues with kubenix now? Given the modules you generate a pretty huge
<offlinehacker>
The problem is at our company we use kubenix for quite complex deployment, and i'm still not sure if i want to continue to use it
<offlinehacker>
well we are building more than 1000 resources in single configuration and it takes ~20s, it's not too fast, but it's also not optimized in current version
<offlinehacker>
but i do not have time to maintain all this modules
<johnnywho2>
arianvp: Thanks
<offlinehacker>
i integrated helm in kubenix 2.0
<arianvp>
wow that's a lot
<arianvp>
nixos modules are a lot saner than helm though! I like the idea
<arianvp>
but it's nice to be able to piggy-back on other people's work though
enteee has quit [Ping timeout: 250 seconds]
<johnnywho2>
arianvp: So I 'm trying to set services.printing.drivers = [ pkgs.samsungUnifiedLinuxDriver ] and that lands me with the default version. How do I tell it to use the version I want?
multun has quit [Ping timeout: 250 seconds]
<johnnywho2>
I 'm sure it 's a stupid question tbh but I really don 't know my way around
<offlinehacker>
johnnywho2: you probably want to override a package if that version is not in nixpkgs
enteee has joined #nixos
<arianvp>
the "pkgs" attribute is a blessed set of versions that work together. for some packages we ship multiple version (e.g. pkgs.linuxPackages_4_19 and pkgs.linuxPackages_5) but usually we only have one blessed version
<jD91mZM2>
I've been thinking a bit about the rust situation nix has. Would it be crazy to create a daemon running as a separate user that handles rust build requests that different nix derivations send? Some sense of purity would be lost, but I don't know if I can care anymore.
<edef>
i think we can do a lot cleaner of a cargo setup quite easily
<edef>
without bringing in additional magic
<edef>
but otoh i'm not going to speculate too heavily when i have no impl to show for it
<elux>
wedens[m]: this looks cool, but its not quite enough. still need to be able to run other docker cli commands like to create a network
<jD91mZM2>
Another easy solution would be to just throw money at the problem in hope that it goes away: By having large hydra servers that take various rust programs and compile them without cache (for purity) and then creates binary caches for all the things
gkmn1 has joined #nixos
<jD91mZM2>
edef: What exactly are you thinking? Carnix and crate2nix are both great projects but I feel like they almost never work
gkmn1 has quit [Client Quit]
<edef>
i think cargo probably needs to integrate more closely in the expression generation
<tilpner>
jD91mZM2: crate2nix worked great for the last three (small-ish) projects I it with
<tilpner>
*I used it with
DrWhax has joined #nixos
<qyliss>
Shell did some cool stuff with Carnix to make it work better
<rajivr___>
Found it! `(import <nixpkgs> {}).lib.version` seems to have it.
gkmngrgn has quit [Ping timeout: 240 seconds]
<qyliss>
I don't know if she made it public
<wedens[m]>
elux: make your own systemd service then
<elux>
ok cool. thx for the advice. ill look into that
toppler has joined #nixos
<{^_^}>
[nixpkgs] @marzipankaiser opened pull request #71437 → ricty: change mirror and homepage url → https://git.io/JeB9g
<tilpner>
Ehh, you shouldn't give me full control over either of them
<tilpner>
I would delete the parts of cargo that builds stuff
<tilpner>
Everyone uses Nix, so everything's compatible with it
<tilpner>
And now 99% of the Rust community is unhappy
<jD91mZM2>
No, see, that's interesting. I don't know what I expected, but it wasn't that
<tilpner>
(Seriously, I'm not familiar with the differences in information cargo provides and Nix needs. Ask the authors of carnix/crate2nix/buildRustCrate)
<tilpner>
It's a shame carnix insisted on pijul (though I understand the reason)
<jD91mZM2>
I don't understand the reason, what was it?
<tilpner>
They build pijul and nest, and dogfooding validates their own software
<tilpner>
Now you could make a point that it would be pragmatic to just use git for this one repo
<tilpner>
But if you're just going for pragmatic, there's no point in even building pijul, or any innovation over git ever
<tilpner>
Though this means a "I'll just fix this in carnix" can end up failing "How do I build a recent enough pijul to even start warking on carnix?"
<tilpner>
(Because at one point nest didn't keep backwards compatibility to the pijul which was in nixpkgs)
<jD91mZM2>
Oh, they've fixed that now? Nice
toppler has quit [Ping timeout: 250 seconds]
<tilpner>
I haven't kept up with it, I never ended up fixing whatever problem I had in carnix :c
<jD91mZM2>
Oh :(
<edef>
last time i tried pijul it ate my data
<jD91mZM2>
edef: "Data" as in the changes you made to the repository?
<edef>
and that's the kind of thing a {version control,file,archival} system can only do once
<Yaniel>
I should try packaging my rust cli tool to get familiar with those nix wrappers
<edef>
jD91mZM2: it wedged my repo in a way where the only way i could really recover was to just check out the versions carefully and commit them to git
<jD91mZM2>
Oh, darn
<edef>
i couldn't pull or push, etc
<edef>
it's the kind of thing you can only really do once before people recount the story for decades to come, i think
<jD91mZM2>
I mean it is beta software, I assume, but I guess that's another reason not to use it as the primary source until it's 100% stable
<jD91mZM2>
So I just updated to NixOS version 19.09 and now some of my fonts seem wonky. Emacs, which should use Hack, now has much smaller text. Polybar, which uses fontawesome, now does not have any icons
<rnhmjoj>
jD91mZM2: i've found something similar with my bitmap font: in some qt application the font is huge, much larger than the reported pixel size
<W1lkins>
How do I install a golang package that's not part of nixpkgs during setup? do I need to use pkgs.fetchFromGitHub and do it manually or is there an easier way?
<oldandwise>
how do I do this. I have 'b.nix' with content 'rec {q = 123;f = p: p + q}'. In 'nix repl', I did 'a = import ./b.nix'. I want to call the lambda, but with a new value of q. So I need to inherit the lambda, call it and it must use a new value of q.
<alexarice[m]>
oldandwise: you want to change q from the repl?
<oldandwise>
alexarice[m]: the lambda 'f' refers to 'q'. I cannot change 'q' that is immutable. Is there a way to inherit the lambda 'f', such that when i call it, it will pick-up a new value of 'q' from the derive class
shabius has quit [Read error: Connection reset by peer]
toppler has quit [Ping timeout: 250 seconds]
<rnhmjoj>
wedens: maybe, but there is definitely something else: it also affect xterm fonts. it could really be penultimate
kleisli has joined #nixos
<alexarice[m]>
oldandwise: Check out `lib.makeExtensible`. It's found in `fixed-points.nix`
<alexarice[m]>
oldandwise: `lib.makeExtensible (self: {q = 123;f=p: p + q;})`
<alexarice[m]>
oldandwise: hold on
drakonis_ has joined #nixos
<oldandwise>
alexarice[m]: i'm not trying to work on a package.. i'm learning the very basics
<{^_^}>
[nixpkgs] @Gabriel439 opened pull request #71448 → Fix description for services.kubernetes.addonManager.enable → https://git.io/JeB5Q
<alexarice[m]>
oldandwise: `nix-repl> let set = lib.makeExtensible (self: {q = 123;f=p: p + self.q;}); in (set.extend (self: super: {q = 10;})).f 10`
<alexarice[m]>
oldandwise: I think what you are trying to do is not that basic
<alexarice[m]>
oldandwise: I'm not sure how you can do it with just rec sets
<oldandwise>
error: undefined variable 'lib' at (string):1:11
<alexarice[m]>
try `:l <nixpkgs>`
drakonis has quit [Ping timeout: 268 seconds]
<oldandwise>
alexarice[m]: thanks.. will continue learnings from here.
jb551 is now known as jb55
<oldandwise>
alexarice[m]: one last question for the day, what is this 'inherit (nixpkgs) pkgs;' by the way?
toppler has joined #nixos
shabius has joined #nixos
<alexarice[m]>
oldandwise: that is syntactic sugar for `pkgs = nixpkgs.pkgs;`
<oldandwise>
damn... yeah,...tsk tsk...
* oldandwise
such a scary sounding keyword there...
oldandwise has quit [Quit: leaving]
growpotkin has joined #nixos
slack1256 has joined #nixos
<{^_^}>
[nixpkgs] @mweinelt opened pull request #71449 → anydesk: add pulseaudio to buildInputs → https://git.io/JeBdL
<jD91mZM2>
Update: Enabling penultimate did not fix my issues
<jD91mZM2>
Upudate 2: My emacs font looks a lot more like my terminal font (hack) now. Maybe it was actually using the incorrect font before this update, I know I was actually wondering that myself a while ago and decided to trust my system more than my eye
drakonis_ has quit [Ping timeout: 250 seconds]
alexbakker has joined #nixos
toppler has joined #nixos
drakonis_ has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @risicle opened pull request #71452 → mbedtls: add patch for CVE-2019-16910 → https://git.io/JeBdd
<chris___>
I'm running into an issue where it looks like my /etc/hosts entries are being ignored. Has anyone run into this before perhaps?
<inkbottle>
What is nix syntax inspired from? Like ';' in let-expr, or ':' for lambda's.
captn3m0 has quit [Ping timeout: 250 seconds]
knupfer has joined #nixos
drakonis1 has joined #nixos
chris___ has quit [Client Quit]
<Matthieu_>
Hi, I'm trying to run a python script that uses an external lib (libgobject-2.0.so.0) that is installed by the package «glib» but the script still can't see it. I thought nix would make those libs available. Fyi, the «glib» package is installed via "buildInputs". I'm not very familiar with this. Am I doing something wrong ?
<jD91mZM2>
SaboteurCZ: If it's using cargo inside, I think you'll need to try to nix-ify that part separately
<jD91mZM2>
Network access during builds is disallowed so that's why it's failing
<SaboteurCZ>
I saw some info about that
<smw_>
Hi all. I am a relative noob to nixos. Can anyone point me to documentation for two things: 1. how can I see the final output of a small part of a nixos config. For example, I want to see the final config after all overrides and settings of “systemd.services.transmission”. 2. How can I see a diff of all configs after I make a change to my configuration.nix?
<smw_>
I have a small understanding of nix at this point. The problem is that working with such a large nix code base is very daunting. Especially when I don’t really understand all the syntax. Too much of the system is a black box which is slowing me down greatly :-\
<jD91mZM2>
Matthieu_: How are you compiling this?
<{^_^}>
[nixpkgs] @FRidh merged pull request #71438 → Python: setuptools/wheel/pip now bootstrap from source → https://git.io/JeBHh
<{^_^}>
[nixpkgs] @FRidh pushed to staging « Python: setuptools/wheel/pip now bootstrap from source »: https://git.io/JeBbl
<jD91mZM2>
SaboteurCZ: Oh, interesting. The latter seems to be using cargo vendor though, which may be executed in a phase where downloading *is* allowed. Not sure.
<jD91mZM2>
smw_: For #2, you can see a diff of your configs by checking them into git. Or am I misunderstanding?
kaliumxyz has quit [Remote host closed the connection]
<Matthieu_>
jD91mZM2: I use nix-shell
captn3m0 has joined #nixos
<Matthieu_>
(i'm not sure I've understood your question, actually)
eeva has quit [Ping timeout: 268 seconds]
<Matthieu_>
I just need an env with those packages.
<SaboteurCZ>
jD91mZM2 gnome-podcasts build explicitly says, that cargo-vendor is not available
selfsymmetric-mu has quit [Remote host closed the connection]
<smw_>
jD91mZM2: jD91mZM2 nixos-option as far as I can tell only tells you which files define settings
<smw_>
jD91mZM2: I am looking for the “final rendered settings”.
<Matthieu_>
FRidh: thx
monoidal has joined #nixos
ng0 has quit [Remote host closed the connection]
elux has joined #nixos
ng0 has joined #nixos
eeva has joined #nixos
drakonis_ has joined #nixos
captn3m0 has quit [Read error: Connection reset by peer]
captn3m0 has joined #nixos
<jD91mZM2>
smw_: I seem to have borked my system now and can't try, but I thought it also gave you the current value?
kaliumxyz has joined #nixos
buckley310 has quit [Read error: Connection reset by peer]
toppler has quit [Ping timeout: 265 seconds]
buckley310 has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
laalf has quit [Quit: No Ping reply in 180 seconds.]
<smw_>
jD91mZM2: nixos-option systemd.services gave a “default” which was empty as well as lists of nix files which declare or define it.
cosimone has quit [Quit: Terminated!]
<jD91mZM2>
smw_: Oh, my bad
<smw_>
my goal is to build my in-mind nix compiler by seeing the output of the real nix compiler ;-)
ddellacosta has quit [Ping timeout: 250 seconds]
<smw_>
right now I feel blind. I make a change and it works or it doesn’t. I can’t inspect what happened. I think this is why I gave up on nixos last time I tried it :-\
<jD91mZM2>
smw_: What I think you can do is play around in the repl
softinio_ has joined #nixos
softinio_ has quit [Remote host closed the connection]
<jD91mZM2>
smw_: Not entirely sure how but I think you should be able to access your config from there
softinio has quit [Read error: Connection reset by peer]
<smw_>
jD91mZM2: maybe I can then jerryrig a diff system
<phyfey[m]>
also try using nixos-rebuild test in the future if your not already
justanotheruser has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @c0bw3b pushed to master « perlPackages.Starlet: disable checks on Darwin »: https://git.io/JeBbQ
toppler has joined #nixos
risson has quit [Quit: Pouet. WeeChat 2.6]
captn3m0 has quit [Read error: Connection reset by peer]
captn3m0 has joined #nixos
drakonis has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
ng0 has joined #nixos
<jD91mZM2>
smw_: So, while I'm unable to find a variable inside nixpkgs that point to your user configuration, the user configuration itself gets a `config` variable passed to it... that points to itself. So together with builtins.trace you can hackily print out the things you want
<smw_>
jD91mZM2: I am focused on system config right now
<smw_>
jD91mZM2: I am trying to setup a server at the moment
<jD91mZM2>
Sorry, I meant system* config
chris___ has quit [Quit: Lost terminal]
<jD91mZM2>
You know that `{ pkgs, config, ...}` line? Yeah the `config` param passed actually refers to the system config itself. Lazy evaluation is cool and weird
laalf has joined #nixos
<smw_>
I see
<smw_>
so what I want to the output of config after evaluation
<jD91mZM2>
I'm thinking something like `boot.loader = builtins.trace config.boot.loader { ... };` and then `nixos-rebuild test`. It's not pretty, but it might work
<clever>
jD91mZM2: thats going to cause infinite recursion
<clever>
try `nix repl '<nixpkgs/nixos>'` and then `config.boot.loader`
<jD91mZM2>
clever: Oh, yeah, good point
<jD91mZM2>
Nice, thanks, that's what I was searching for before
<smw_>
jD91mZM2: nix-shell is telling me /etc/nixos/default.nix doesn’t exist XD
<jD91mZM2>
smw_: What are you running?
<smw_>
oh, nm, the command is nix repl
<smw_>
clever: awesome! any pretty printing though? :-)
<clever>
smw_: you can also just give it a more specific attr, and use tab completion
<jD91mZM2>
smw_: There is builtins.toJSON, but that won't work when something errors
<smw_>
jD91mZM2: that isn’t a problem. tojson sounds good
<jD91mZM2>
It still won't be pretty but it will be formattable
shibboleth has quit [Quit: shibboleth]
<smw_>
jD91mZM2: yep!
<gchristensen>
elvishjerricco: was your system booting EFI before?
<elvishjerricco>
gchristensen: Yea but with grub and that efiInstallAsRemovable thing
cryptomonad has joined #nixos
PHiZiX has joined #nixos
<jD91mZM2>
smw_: You can automate it using nix-instantiate --eval --strict --json -E '(import <nixpkgs/nixos> {}).config.boot.loader.efi'
<smw_>
clever, jD91mZM2: this is exactly what I was looking for my first question. Would still like better diffing capabilities though. Then I could change one value at a time and see how it interacts with the rest of the system.
<ericdallo>
Hello, I don't know if here is the right channel for asking this, but someone can review this PR? I want it on master for a while: https://github.com/NixOS/nixpkgs/pull/70885
silver has quit [Read error: Connection reset by peer]
silver has joined #nixos
noudle has quit []
kaba00 has quit [Remote host closed the connection]
kaba00 has joined #nixos
<growpotk->
Hey has anybody else experienced issues with browser location services? For my machines lately Brave is the only browser that can correctly access my location. Both Firefox and Chrome always fail to though.
chloekek has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
abathur has quit [Ping timeout: 240 seconds]
<elux>
in my nix config, ive created a user but when i try to sudo as that user i get the error: sudo: /run/current-system/sw/bin/sudo must be owned by uid 0 and have the setuid bit set -- what gives?
<samueldr>
looks like it doesn't pick up sudo from `/run/wrappers/bin`
<kandinski>
I use a service which doesn't cope well with IPv6, so I have configured avahi to be exclusively IPv4. This is the default, but I have forced it in my configuration.nix, to no avail. Do you have any suggestion?
<kandinski>
ah, I have flushed the caches with avahi-daemon --kill on both the publishing and resolving machines I'm using for this experiment.
growpotk- has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 268 seconds]
<clever>
elux: how are you switching to that user?
ng0 has quit [Quit: Alexa, when is the end of world?]
Matthieu_ has quit [Ping timeout: 276 seconds]
m3thos has joined #nixos
<m3thos>
hey, I can't find on the documentation how to remove a broken profile.. I just did a nixos-rebuild switch .. and then it wasn't good.. so I did a nixox-rebuild switch --rollback
<m3thos>
how do I purge the bad profile ? (I know its number, if that matters)
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @d-goldin to master « release-notes 19.09: removal of non-LTS kernel attrs »: https://git.io/JeBjz
<worldofpeace>
arianvp: I believe the font things have to be configured with gsettings
<pbb>
what does this mean: "Detected unsafe path transition /var/lib/deluge -> / during canonicalization of /var/lib/deluge."
<pbb>
/var/lib/deluge is a symlink to /mnt/data/deluge
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « rl-1909: add note for blueman »: https://git.io/JeBjg