o1lo01ol1o has quit [Remote host closed the connection]
jgeerds__ has quit [Ping timeout: 268 seconds]
metalrain has joined #nixos
chenhq2005 has quit [Ping timeout: 260 seconds]
andymandias has quit [Ping timeout: 240 seconds]
andymandias_ has joined #nixos
erasmas has quit [Quit: leaving]
fendor has quit [Read error: Connection reset by peer]
mexisme has joined #nixos
teehemkay has joined #nixos
knupfer has joined #nixos
fendor_ has quit [Ping timeout: 265 seconds]
Guest92090 has quit [Ping timeout: 272 seconds]
Flambe has joined #nixos
<infinisil>
Problem: I updated the nix version on my local machine, but haven't done the same on a remote machine
teozkr has quit [Ping timeout: 260 seconds]
savanni has quit [Read error: Connection reset by peer]
sevanspowell has quit [Read error: Connection reset by peer]
valwal has quit [Read error: Connection reset by peer]
joedevivo has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
dani- has quit [Read error: Connection reset by peer]
alanz has quit [Read error: Connection reset by peer]
typetetris has quit [Read error: Connection reset by peer]
<infinisil>
But now I get the dreaded "error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused" error with a `nix-copy-closure`
metalrain has quit [Read error: Connection reset by peer]
alunduil has quit [Read error: Connection reset by peer]
jared-w has quit [Read error: Connection reset by peer]
CustosLimen has quit [Read error: Connection reset by peer]
<infinisil>
What's the best way to solve this?
mbrgm_ has joined #nixos
alanz has joined #nixos
sevanspowell has joined #nixos
<infinisil>
Since this is happening in an automated script, I'd like to find a good permanent solution
jared-w has joined #nixos
teozkr has joined #nixos
savanni has joined #nixos
alunduil has joined #nixos
<Flambe>
The only time I've had it pop up I found restarting the nix daemon worked alright
mbrgm has quit [Ping timeout: 260 seconds]
sorear has joined #nixos
mbrgm_ is now known as mbrgm
typetetris has joined #nixos
jeregrine has joined #nixos
dani- has joined #nixos
metalrain has joined #nixos
darkf has joined #nixos
pkral has joined #nixos
knupfer has quit [Quit: knupfer]
CustosLimen has joined #nixos
<infinisil>
I wouldn't expect this to work here, but I guess I can try
mitsuhiko has joined #nixos
joedevivo has joined #nixos
valwal has joined #nixos
blackriversoftwa has joined #nixos
<Flambe>
It's just the first thing that came to mind.
teej has joined #nixos
<infinisil>
Or I just don't do anything, because now it seems to work
teej has quit [Excess Flood]
<infinisil>
..
<Flambe>
Good thing the tech support fairies blessed you today
philipcristiano has joined #nixos
<infinisil>
This is even worse, nothing is supposed to have changed since last time!
teej has joined #nixos
jackdk_ has quit [Remote host closed the connection]
<gchristensen>
did you by chance notice the status of nix-daemon.socket and nix-daemon.service?
<infinisil>
Nope
<gchristensen>
ack
<gchristensen>
maybe journalctlcaptured them?
<infinisil>
I'll check it once I can get a new terminal.. The nixos-unstable update I did seems to have caused my alacritty to deny creation of new terminals..
<hpfr[m]>
How would I go about adding a custom module to the kernel source tree in NixOS? I.e. copying a repo into drivers/input/touchscreen/IPTS before building
<infinisil>
No idea about the solution other than reverting an nvidia_x11 upgrade though
<arcnmx>
I assume "no restarting" means that the problem persists across restarts?
virus_dave has quit [Quit: virus_dave]
<infinisil>
arcnmx: Ah yeah that too, mostly at least
<infinisil>
I think I was able to start an alacritty terminal initially after restarting
<arcnmx>
(just checking because I have never not had absolutely everything break after only updating userspace nvidia stuff without rebooting)
rizary_ has joined #nixos
davidtwco has joined #nixos
<infinisil>
Lemme see again..
<arcnmx>
nvidia is the reason my desktop never has more than a week or two of uptime :p
rizary_ has quit [Max SendQ exceeded]
<infinisil>
Seems to work as of now..
<infinisil>
I'm also getting the yellow warning bar about outdated settings now which I didn't before
<infinisil>
Which is weird
oharvey has quit [Ping timeout: 260 seconds]
<infinisil>
The only thing that changed is that I'm not using the latest kernel now
sigmundv__ has quit [Ping timeout: 268 seconds]
Peter_Storm has joined #nixos
<infinisil>
Okay I guess I'll try latest kernel again
<infinisil>
Everything seems to look fine as of now..
taktoa[c] has quit [Ping timeout: 246 seconds]
<infinisil>
Weeeeird
<infinisil>
I'm 100% sure I rebooted earlier
* arcnmx
shrug
<arcnmx>
as far as I know nvidia drivers have worked that way for years, I just assumed they tightly integrate the kernel ABI with userspace or upload binaries or something
Peter_Storm has quit [Ping timeout: 258 seconds]
<infinisil>
Well, can't reproduce
<infinisil>
No idea what problem you're having, infinisil
<arcnmx>
oh o.o
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvUDu
davidtwco has quit [Ping timeout: 245 seconds]
nlofaro has quit [Ping timeout: 245 seconds]
CMCDragonkai has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @aanderse merged pull request #77326 → nixos/httpd: symlink apache configuration to /etc/httpd/httpd.conf for use in the apachectl command → https://git.io/JvePX
xelxebar has joined #nixos
vk3wtf has joined #nixos
cinimod`` has quit [Ping timeout: 268 seconds]
reallymemorable has joined #nixos
alexherbo2 has quit [Remote host closed the connection]
<evanjs>
Hey infinisil, I think I solved my "repl downloads a tarball all the time" problem from earlier... and probably many more problems I've been having :D
<evanjs>
Doesn't make sense to override <nixos> to point to a url if it's always going to be pointing there, anyway :P
<infinisil>
Hm, that is stateful though
<infinisil>
What problem is there with just using `nix.nixPath = [ "nixpkgs=${fetchTarball ...}" ]`
adamse has quit [Read error: Connection reset by peer]
fresheyeball has quit [Quit: WeeChat 2.6]
<infinisil>
evanjs: ^
<evanjs>
It was mostly the fact that often times, when I'd try to work with it, it would need to fetch it again. Among other weird issues I'm unsure were related
<evanjs>
Like things breaking until I start a nixos-rebuild, wait until it says "rebuilding", and Ctrl+C :D
<evanjs>
infinisil: Don't I still need a nixos-config entry?
<infinisil>
Ah sure
<infinisil>
Was just an example
alanz has quit [Ping timeout: 272 seconds]
felixfoertsch23 has joined #nixos
mexisme has quit [Ping timeout: 240 seconds]
felixfoertsch has quit [Ping timeout: 272 seconds]
lightbulbjim has quit [Ping timeout: 260 seconds]
<hpfr[m]>
I’m trying to build https://github.com/linux-surface/intel-precise-touch into my NixOS kernel. Would I write a derivation for this based on its Makefile, then include that derivation in boot.extraModulePackages? Or can I just make a huge patch for it and include it in boot.kernelPatches?
alanz has joined #nixos
drakonis has joined #nixos
<samueldr>
there's a common pattern for those kind of out-of-tree modules
* samueldr
checks for one
<hpfr[m]>
samueldr: the README lists a method for building in tree as well. Wouldn’t that be better
<samueldr>
no
<samueldr>
well
<samueldr>
I don't think so
<hpfr[m]>
Why not
<samueldr>
you would have to rebuild the whole kernel for naught
<hpfr[m]>
I already do
<samueldr>
that's not the point exactly, if you do it following the pattern you can contribute back :)
<hpfr[m]>
samueldr: Anyone wanting to use Surface touch hardware has to compile their own kernel anyway, and I was intending to eventually post the nix configurations for that, but if you think keeping this as a separate module is better, I’m fine with that too
<samueldr>
if you grep for "modules.*modDirVersion" in nixpkgs, you should find a bunch of those out of tree modules
<samueldr>
(both the fruit that's gone bad, and those "a while ago" dates)
<hpfr[m]>
samueldr: I’d imagine they didn’t contribute it back because they didn’t think they could maintain it. I’m just cobbling together Linux-surface stuff and nix stuff and hoping it works, and every time something breaks I have to wait until I’m on break to try to recobble things together
<hpfr[m]>
And I don’t understand best practices or even what’s going on entirely for either side haha
<samueldr>
at one point I didn't
<samueldr>
with time I'm sure you will :)
noonien has joined #nixos
<noonien>
hello
<noonien>
can anyone ELI5 how configuration.nix works? and how it gets used by nixos-rebuild?
<hpfr[m]>
It declares all the information about your system, which nixos-rebuild reads and performs whatever steps are necessary to get your system to that state
<noonien>
yes, i'm interested in what those steps are, and how it works
<hpfr[m]>
If you have `boot.loader.systemd-boot.enable = true;` in your configuration.nix, nixos-rebuild will perform whatever is specified to get systemd-boot working
<noonien>
i've been using nixos for a few months. i would like to use nix to build a project and i would like to have a configuration.nix for it, so i can easily have different builds
<noonien>
yes, i'm familiar with what configuration.nix does. i'm more interested in how nixos-rebuild uses configuration.nix
<infinisil>
noonien: I can explain
<noonien>
awesome!
<noonien>
i'm gussing first configuration.nix is build, then passed to a nixos derivation, that then also uses nixpkgs
<infinisil>
noonien: nixos-rebuild is a wrapper around building the system and activating it. Building it is `nix-build '<nixpkgs/nixos>' -A system`
<infinisil>
And activating it is calling $result/bin/switch-to-configuration boot/test/switch
<infinisil>
Those are the main steps
<infinisil>
The default.nix in nixpkgs/nixos contains a wrapper around a module system evaluation
<infinisil>
Which pretty much does `lib.evalModules { modules = [ <list of modules in <nixpkgs/nixos/modules/module-list.nix>> configuration.nix ]; }`
<noonien>
ah! i see
pingveno has joined #nixos
<noonien>
so basically configuration.nix is nothing special, it's just another module
<infinisil>
Indeed!
pareidolia has quit [Ping timeout: 260 seconds]
<noonien>
hmm, if that's the case, i think i need to understand `config` next
<infinisil>
Hm, okay so modules have the basic structure `{ options = ...; config = ...; }`. options is where you define options, config is where you assign values of them, in general
taktoa[c] has joined #nixos
<jeaye>
Every time I start a nix shell, I see `bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)`. Any quick fix for that?
<infinisil>
noonien: Oh and `imports = ...` of course
pareidolia has joined #nixos
<infinisil>
noonien: So the first step evalModules does is flatten all imports into a single list, containing all modules recursively
<infinisil>
noonien: Then all options assignments are joined together, merging multiple declarations if necessary, such that you get a single `options` value that has all the options from all modules
<noonien>
interesting, that was also about to be a question, thanks for answering
<noonien>
so evalModule also handles 'options'
pingveno has quit [Ping timeout: 246 seconds]
<infinisil>
evalModules handles everything, it's the thing that does a module system evaluation
<infinisil>
noonien: I guess I can also explain some about `config`
<infinisil>
When you do e.g. `config = mkIf condition { foo = 10; bar = mkDefault true; }`, this gets converted into `config.foo = mkIf condition 10; config.bar = mkIf condition (mkDefault true);` first
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<infinisil>
Then all the conditions are evaluated such that you have `config.foo = 10; config.bar = mkDefault true`
aw has joined #nixos
spacefrogg has joined #nixos
taktoa[c] has quit [Ping timeout: 272 seconds]
<noonien>
hmm, what is the difference between `options` and `config`?
<infinisil>
Then all such assignments of all modules are joined together, into e.g. `config.foo = mkMerge [ 10 20 ]; config.bar = mkMerge [ false (mkDefault true) ]`
<noonien>
are options for modules, and config for packages?
<infinisil>
The values with highest priority are then merged together according to the type of the option they assign to
gustavderdrache has left #nixos [#nixos]
<infinisil>
noonien: options declares options, config assigns to them, nothing to do with packages
<noonien>
ah, no, `options` are the actual options, `config` are their values
<infinisil>
Yeah
<noonien>
can i set a config that is not defined as an option?
<infinisil>
Not sure what you mean
<noonien>
i'm unsure what the purpose of `options` is. is it just for documentation purposes, or something for validation config values
<infinisil>
You couldn't define options without it!
<infinisil>
And without having any options, you can't set any of them
<infinisil>
Hmm
<infinisil>
It validates what you assign in `config` yeah, and it defines merging strategies
<infinisil>
And defaults
<infinisil>
And types of course
<noonien>
I see, that makes sense!
mexisme has joined #nixos
<infinisil>
Also something important: There's no generic action of "evaluating these modules". It's always about *what* option/config value you want to evaluate
<infinisil>
I sometimes call that the root expression
<infinisil>
In NixOS this is config.system.build.toplevel
<infinisil>
(which is what `nix-build '<nixpkgs/nixos>' -A system` uses)
<infinisil>
Feel free to ask me if you have more questions :) Stumbling around in the implementation of the module system is also very insightful though
<noonien>
i see that nixos/lib/eval-config.nix actually returns a function that loads the module list and provides an argument to load the configuration.nix file
<infinisil>
Yup
hyper_ch has joined #nixos
phreedom has quit [Ping timeout: 240 seconds]
alanz has joined #nixos
phreedom has joined #nixos
<infinisil>
eval-config.nix is like lib.evalModules for NixOS, such that you don't have to pass the module-list.nix and other things
<noonien>
i see that there can be different config.system.build.toplevel, dependsing on what is build
<noonien>
usually system/action/top-level.nix is used, i guess
<noonien>
but i believe, for example, when building a vm, another one is defined?
<infinisil>
noonien: Yeah, see nixpkgs/nixos/default.nix, where vm = is defined
<noonien>
great!
<noonien>
it's interesting to know how nixos works, but i see there are many details to each component, but i got the gist of it
<noonien>
enough to use something similar to build my project using nix, i think ^_^
<infinisil>
You can use the module system outside of NixOS
<noonien>
i have multiple sub-projects, i guess each one is a module, that defines its options and uses the config
<infinisil>
Nothing about the module system is NixOS specific. I'm using it for my emacs config for example
<infinisil>
(as in, standalone)
<infinisil>
And home-manager is using it too without NixOS
<infinisil>
nix-darwin too
<infinisil>
haskell.nix too :)
alanz has quit [Ping timeout: 272 seconds]
<noonien>
config.system.build.toplevel is basically the toplevel derivation that is built, correct?
<infinisil>
Yea
justan0theruser has joined #nixos
<infinisil>
Well I gotta go for now :)
justanotheruser has quit [Ping timeout: 258 seconds]
<noonien>
thanks for all the info! it was really helpful! i am very grateful!
<infinisil>
:D
drakonis has quit [Ping timeout: 246 seconds]
<noonien>
i was about to ask how the toplevel derivation actually creates the system, but i see that's what the `environment` module does
c00w has joined #nixos
nlofaro has joined #nixos
<noonien>
actually, i was wrong, it's not a module, just another option, that is used by several modules, for example modules/system/etc/etc.nix seems to build /etc
steveeJ has joined #nixos
nlofaro has quit [Max SendQ exceeded]
mexisme has quit [Ping timeout: 258 seconds]
ouzu has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
steveeJ has quit [Ping timeout: 260 seconds]
c00w has quit [Ping timeout: 245 seconds]
mankyKitty has joined #nixos
Lears has quit [Read error: No route to host]
Lears has joined #nixos
Dagger has quit [Remote host closed the connection]
Dagger2 has joined #nixos
mankyKitty has quit [Ping timeout: 268 seconds]
vld has joined #nixos
c00w has joined #nixos
steveeJ has joined #nixos
c00w has quit [Ping timeout: 240 seconds]
ilikeheaps has quit [Ping timeout: 265 seconds]
vld has quit [Ping timeout: 268 seconds]
ilikeheaps has joined #nixos
steveeJ has quit [Ping timeout: 272 seconds]
tjg1 has quit [Quit: DON'T KEEP CALM AND FUCK THIS. FUCK THAT. FUCK YOU. FUCK OFF.]
<{^_^}>
[nixpkgs] @jonringer merged pull request #77793 → vscode-extensions.ms-python.python: 2019.10.44104 update language server → https://git.io/JvUi5
<{^_^}>
[nixpkgs] @jonringer pushed commit from @tbenst to master « vscode-extensions.ms-python.python: 2019.10.44104 update language server »: https://git.io/JvUQx
<tilpner>
infinisil: I changed nothing, but can you try again?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @leenaars to master « csv2odf: init at 2.09 »: https://git.io/JvU72
taktoa[c] has joined #nixos
pkral has joined #nixos
lightbulbjim has joined #nixos
dansho has quit [Quit: Leaving]
cbarrett has joined #nixos
lstanley has joined #nixos
newhoggy has joined #nixos
nimblepoultry has joined #nixos
pointfree has joined #nixos
NemesisD has joined #nixos
mudri has joined #nixos
Theuni2 has joined #nixos
metalrain has joined #nixos
fnords has joined #nixos
victorbjelkholm_ has joined #nixos
dmj` has joined #nixos
emily has joined #nixos
CustosLimen has joined #nixos
jbetz has joined #nixos
typetetris has joined #nixos
cqc_ has joined #nixos
rodarmor has joined #nixos
<{^_^}>
[nixpkgs] @softinio opened pull request #77806 → Add myself as vim plugins codeowner → https://git.io/JvU7V
feepo has joined #nixos
Peter_Storm has joined #nixos
jeregrine has joined #nixos
bgupta has joined #nixos
dani- has joined #nixos
nh2 has joined #nixos
carter has joined #nixos
jackdk has joined #nixos
ToxicFrog` has quit [Ping timeout: 240 seconds]
<dminuoso_>
clever: What is also interesting, is the fact that GRUB is completely hung (it's stuck displaying 10s remaining seconds) when trying to boot with UEFI.
zertox has joined #nixos
mankyKitty has joined #nixos
digitalgrease has joined #nixos
gausby_ has joined #nixos
elvishjerricco has joined #nixos
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso_>
Is there a way to display loaded third party kernel modules?
jared-w has joined #nixos
bitonic has joined #nixos
hoek has joined #nixos
<ivan>
dminuoso_: I don't know but you can search journalctl -b for 'taint' which has things like `wireguard: loading out-of-tree module taints kernel.`
hyper_ch2 has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vld has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
<infinisil>
tilpner: Thanks!
<tilpner>
infinisil: Does it work now?
<tilpner>
(Because I changed nothing, so it shouldn't if it didn't before, but I found nothing wrong with it)
<{^_^}>
[nixpkgs] @hauleth opened pull request #77817 → Support git send-email on Darwin → https://git.io/JvUxf
<tilpner>
(But I've been LE renewal failures for a few days on an unrelated domain, indicating DNS is wonky)
<tilpner>
*been having
<tilpner>
In other news, a Firefox update ate the profile I use to login at the domain registrar
<{^_^}>
[nixpkgs] @hauleth opened pull request #77818 → Upgrade git: from 2.24.1 -> to 2.25.0 → https://git.io/JvUxT
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
euandreh has quit [Ping timeout: 260 seconds]
jethroksy has joined #nixos
Dagger2 is now known as Dagger
vld has quit [Ping timeout: 272 seconds]
Chiliparrot has joined #nixos
oblomov20 has joined #nixos
captn3m0 has joined #nixos
<dminuoso_>
clever: Well it doesnt even boot into anything.
<dminuoso_>
clever: The moment the UEFI grub screen is up, everything appears stuck.
<oblomov20>
Hi: i have a networking question: I'd like to open some ports, so I set│ networking.firewall.allowedTCPPorts = [ 47624 ]; 36 │ networking.firewall.allowedUDPPorts = [ 6073 ]; 37 │ networking.firewall.allowedTCPPortRanges = [ { from = 2300; to = 2400; } ]; 38 │ networking.firewall.allowedUDPPortRanges = [ { from = 2300; to =
<oblomov20>
2400; } ];
<oblomov20>
but when I do: sudo nmap -sUT -p T:2300-2400,47624,U:6073,2300-2400 localhost
<oblomov20>
all the ports are listed as closed; what am I missing?
<dminuoso_>
clever: Perhaps I need to get an EHCI debug port analyzer
<dminuoso_>
Argh damn it. I cant.
<AmandaC_>
Wait, when was allowedXXXPortRanges added!? I've got a couple of places in my nix configs where I just add a bunch of consecutive ports to allowedXXXPorts
<dminuoso_>
Only have a single USB port, so I cant boot off a stick *and* do EHCI port debugging
<philipp[m]2>
e or directory` getting this during a nix-build.
<philipp[m]2>
`../pixmaps/icon-theme-installer: /usr/bin/env: bad interpreter: No such fil
<clever>
dminuoso_: and earlycon doesnt work?
<dminuoso_>
clever: Correct, I mean judging from the cmdline that the switches otherwise work in, it shouldnt even be neede
<dminuoso_>
This is what it boots with on the debian
<philipp[m]2>
The header is the proper `#!/usr/bin/env bash`. Why is that breaking?
<clever>
dminuoso_: try without quiet?
<clever>
philipp[m]2: /usr/bin/env doesnt exist at build time, you have to run the patchShebangs function on the file
<dminuoso_>
clever: I dropped the quiet of course. I basically took the grub line from the nixos image and just amended it with console=ttyS0,115200n8
<oblomov20>
AmandaC_ I don't know, but if you scan the ports you opened with nmap, are they marked as open?
<trulsa>
Is there any way to change the ordering of paths in the PKG_CONFIG_PATH variable set by nix-shell. I want PKG_CONFIG_PATH=<nix pkgs pkgconfig>:<system pkgconfig>, but it is set the other way around which breaks some builds.
<dminuoso_>
clever: (I have no idea what that tty0 is for, but that's definitely not the console)
<clever>
dminuoso_: if you supply multiple console= lines, it will print logs to each one
<oblomov20>
AmandaC_ no, that program is definitely not running; I didn't know I had to have that running; so is there a way to check if the ports can be opened in principle?
<clever>
dminuoso_: whichever one is last, is used as the input when reading /dev/console
<dminuoso_>
Ah fair enough. Well I tried that as well
<dminuoso_>
I see
<oblomov20>
AmandaC_ like, checking if my firewall configuration is what I think it is?
<AmandaC_>
oblomov20: you can try and run a program like nc to listen on a port
<clever>
philipp[m]2: probably for purity, to catch such leaks
<AmandaC_>
oblomov20: or check iptables rules to see if they're correct. But if the config is loaded, there's no reason they shouldn't be applied
<dminuoso_>
What is interesting, is that this switch appears to have 2 USB controllers
<dminuoso_>
Maybe I should open this switch up and see whether there's maybe pins on the mainboard for another USB port.
<dminuoso_>
Because other than earlyprintk Im out of ideas
<AmandaC_>
oblomov20: the whole point of nixos is that it's all programmatically controlled by the configuration.nix
<clever>
dminuoso_: ehci debug also only works on the "first" port of a given controller
<najtra>
How do I tell my nix-shell file to modify NIX_LDFLAG as such as to pick up my local include files? in local directory for example ./vendor/*/includes?
<dminuoso_>
clever: Mmm, first I need to figure out how to expose that second USB port
<dminuoso_>
otherwise there's no USB stick to boot from if a debug cable is connected
<{^_^}>
[nixops-aws] @AmineChikhaoui pushed to master « ebs-volume: add automatic retries during volume deletion »: https://git.io/JvTJf
kenjis1 has joined #nixos
f0x has quit [Ping timeout: 265 seconds]
joepie91 has quit [Ping timeout: 268 seconds]
<tilpner>
Looks like I may need to set up monitoring for my registrars DNS servers :/
psyanticy has joined #nixos
<tilpner>
There's been a few of these hiccups, but I never catch them
<hyper_ch2>
finally fixed my nixos booting problem
<tilpner>
(Or perhaps it's my fault, that seems more likely)
<{^_^}>
[nixpkgs] @Infinisil pushed commit from @AIDEA775 to release-19.09 « nixos/zsh-syntax-highlighting: Fix highlighting when ohMyZsh is enabled »: https://git.io/JvTJY
<{^_^}>
[nixpkgs] @Infinisil closed pull request #73695 → nixos/zsh-syntax-highlighting: backport Fix highlighting when ohMyZsh is enabled → https://git.io/JeKCj
f0x has joined #nixos
joepie91 has joined #nixos
mDuff has joined #nixos
drakonis has joined #nixos
Guest92090 has quit [Ping timeout: 240 seconds]
Guest92090 has joined #nixos
<nh2>
is there a good way to detect whether the nix daemon is in use on a system, or whether a single user install is present?
<{^_^}>
nix#3085 (by davidak, 19 weeks ago, open): Add command that output system information like nix-info
<evanjs>
Any tips for tracing infinite recursion?
waleee-cl has joined #nixos
mac10688 has quit [Ping timeout: 240 seconds]
<evanjs>
Why does everything work when I ask questions about my issues >.> Regardless, I'm still not an expert in diagnosing these things, so pointers can't hurt
mariel__ has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
<evanjs>
In my case, I think, at least with regards to what not to do when handling the NIX_PATH, multiple channels on a single machine, and etc. I think that's where a majority of my issues are stemming from
<{^_^}>
[nixpkgs] @alyssais pushed commit from @Enzime to master « mkvtoolnix: 41.0.0 -> 42.0.0 »: https://git.io/JvTTU
<Shoubit>
Basically, I've got `virtualisation.virtualbox.host.enable = false;` specified in one of the imports and then in the configuration that imports it is set to `true` in exactly the same manner.
<{^_^}>
[nixpkgs] @alyssais pushed commit from @c0bw3b to master « jdupes: 1.13.2 -> 1.14.0 »: https://git.io/JvTTN
<LouisDK>
How does I instruct how many cores to use when compiling stuff in NixOS? :)
kleisli has joined #nixos
<LnL>
--option cores X
<LnL>
or nix.buildCores in configuration.nix for something more persistent
<LouisDK>
@LnL - Thanks. What's the default option? 1?
chagra has quit [Ping timeout: 272 seconds]
horner has quit [Remote host closed the connection]
<LnL>
I think it's set in hardware-configuration.nix, generated based on the cpu counnt
<infinisil>
Shoubit: And what's the error?
<LnL>
LouisDK: nixos-option nix.buildCores :)
srid has joined #nixos
<Shoubit>
infinisil, "error: The option `virtualisation.virtualbox.host.enable' has conflicting definitions, in `/nix/store/813lqs2x8wqa38rwvlq4y12kkamj6x5l-source/configuration.nix' and `/etc/nixos/configuration.nix'."
<LouisDK>
@LnL - thanks :)
<srid>
What's a good way to declaratively install custom fonts in nixos (or home-manager)? Such as this one: https://www.jetbrains.com/lp/mono/
<LnL>
LouisDK: ah no 1, maxJobs is generated (note that setting both cores and max-jobs to you cpu count can lead to suboptimal performance when building many things at the same time)
<LouisDK>
@LnL - makes sense. I see my current value is 0 aka. use all cores.
<evanjs>
Or did you mean fonts outside of the tree?
<srid>
outside of nixpkgs, yes
<LnL>
LouisDK: in that case, check if what you're building has enableParallelBuilding set, by defaults builds are not called with make -JX
<aswanson>
srid: I know there are a lot of fonts in nixpkgs. you could take a look at at default.nix file for one of them and see about creating one for your font. This might be helpful too: https://nixos.wiki/wiki/Fonts
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
lsix has quit [Quit: WeeChat 2.6]
Neo-- has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
erasmas has quit [Read error: Connection reset by peer]
erasmas has joined #nixos
chagra has joined #nixos
<evanjs>
welp. guess I'm locked on 19.09 for now. No idea why I get a stack overflow every time I try to switch to unstable. If only I could give it a bit more room...
mexisme has joined #nixos
<infinisil>
evanjs: Have you tried minimizing your config to get down to exactly what's causing it?
<evanjs>
infinisil: Yeah I've been all over the place with it :D I guess I could try to cut off entire portions, though. hrm. what to disable...
erasmas_ has joined #nixos
chloekek has joined #nixos
erasmas has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 260 seconds]
erasmas_ is now known as erasmas
pbb has quit [Ping timeout: 272 seconds]
pbb has joined #nixos
domogled has quit [Ping timeout: 272 seconds]
Chiliparrot has joined #nixos
TheCommieDuck has joined #nixos
o1lo01ol1o has joined #nixos
chagra_ has joined #nixos
pbb_ has joined #nixos
pbb has quit [Ping timeout: 272 seconds]
chagra has quit [Ping timeout: 265 seconds]
Dandellion has joined #nixos
<Dandellion>
where would I find `/usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf` on nixos?
kenjis1 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<evanjs>
infinisil: ooooo. sooooo ironically, if I did switch to nixos-unstable (I'm assuming the PR is there by now), and re-enable the option.... hrm
<infinisil>
Yeah I can reproduce the inf rec..
<infinisil>
And reverting that PR fixes it
<evanjs>
sweeeeet
<infinisil>
The problematic case is when you do `imports = [ ./foo.nix ]` *within foo.nix itself*
<infinisil>
Or `imports = [ ./bar.nix ]` in foo.nix, and `imports = [ ./foo.nix ]` in bar.nix
<evanjs>
yeah I think it was something like new-modules/something -> ../../config -> new-modules, etc
tsrt^ has quit [Ping timeout: 240 seconds]
<infinisil>
evanjs: I think just removing that ../../../config import should work though, no?
<{^_^}>
[nixpkgs] @globin pushed to release-19.09 « gitlab: fix asset building for CE »: https://git.io/JvTqn
o1lo01ol1o has quit [Remote host closed the connection]
erasmas has joined #nixos
TheCommieDuck has joined #nixos
<TheCommieDuck>
Hey. Trying to install nix with lustrate, got everything installed (I think) however when I do switch-to-configuration boot, grub proceeds to fail to find the grub boot folder.
<Guanin>
Hi, is there any speech-to-text application or assistant available on NixOS (or linux in general)? I found stuff like pocketsphinx, but it seems to be just a library. Stuff like platypus (a wine wrapper/addition to run dragon naturallyspeaking) does not seem to be maintained anymore and is also not available on nix
<gchristensen>
Guanin: I used to (rarely still do) run dragon in a Win10 VM
<TheCommieDuck>
do I have to set my locales to en_US or something?
shyim has quit [Quit: Ping timeout (120 seconds)]
noonien has quit [Remote host closed the connection]
<Guanin>
gchristensen, do you use something to redirect the output of dragon to your host? My problem here is that the system is used by a non-tech person (classical case of family tech support), so it needs to be at least somewhat intuitive or scriptable
<gchristensen>
I used Aenia and I wouldn't doom somebody who isn't very technical to that.
<gchristensen>
honestly, I would recommend they use Dragon NS on Windows10. it is very good, wonderfully accessible, and even I was tempted to switch to Windows because of it
<catern>
I'm thinking about giving a regular formal class at $DAYJOB to explain to my Nix users how to use Nix at a non-trivial level. we use Nix on top of Debian. anyone have any thoughts about what I should include, or talks/materials I should use?
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #63121 → shaarli-material: Mark as broken → https://git.io/fj2oV
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvTmu
TheCommieDuck has quit [Quit: WeeChat 2.7]
<catern>
right now I'm thinking about maybe explaining fundamental Nix philosophy stuff, basic Nix language and packaging stuff, how to declaratively manage packages, how to do basic overriding, but maybe there's something else that would be higher priority? and maybe I can't fit all of those...
<Guanin>
gchristensen, that's the path I'm taking right now. Just wanted to know if it would be possible to provide a nix-based alternative, as it seems really hard to break for a non-tech person while being remote-maintainable over wireguard+ssh, which is a big plus for me :)
<gchristensen>
aye
<gchristensen>
I wanted that too
<gchristensen>
maybe look in to Talon
<gchristensen>
I didn't feel comfortable with Talon because it is closed source, listens to everything I say, has the ability type and move my mouse, and the point that really caused it to be a problem for me: doesn't cost any money. I just can't trust that.
drakonis has quit [Ping timeout: 260 seconds]
Dave[m]1 has joined #nixos
<Guanin>
yeah, that seems very strange
cjpbirkbeck has joined #nixos
kenjis1 has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
magnetophon has quit [Remote host closed the connection]
srid has quit [Quit: Connection closed for inactivity]
<Raito_Bezarius>
Is it possible to build a fixed output derivation without knowing in advance the hash (like when I'm developing it and I still don't know the resulting hash)?
<gchristensen>
,tofu Raito_Bezarius
<{^_^}>
Raito_Bezarius: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<kraem>
Hi! I recently switched to the mainline kernel and noticed the facetimehd webcam stopped functioning. After some research I can see that the revision pinned in nixpkgs is pretty old. How would I build it locally and boot with my local build?
kleisli has joined #nixos
<kraem>
(The bug I'm encountering seems to be solved in a more recent rev of the git repo)
<kraem>
I'm trying to find some documentation but can't find any.. Would be super happy for a link explaining the process :)
<qyliss>
kraem: a more recent build of the kernel?
ardumont has quit [Ping timeout: 248 seconds]
<kraem>
qyliss: no i switched to pkgs.linuxPackages_latest and noticed the facetimehd-driver is not working anymore so i'd like to try to build facetimehd from a more recent rev and boot with it
<qyliss>
How do you currently have facetimehd-driver installed?
<qyliss>
In a configuration.nix?
<kraem>
yes via the module
domogled has joined #nixos
<qyliss>
Oh, didn't realise there was a module
<kraem>
I'd like to try to bump the version and (hopefully) do a PR :)
<qyliss>
Aha, okay
gotofail[m] has joined #nixos
<qyliss>
Well if you want to do a PR, the best thing to do is git clone nixpkgs, make your changes there, and try buliding your system from that
<qyliss>
To do that, use -I nixpkgs=/path/to/nixpkgs when you nixos-rebuild
<kraem>
Ah, that's the switch i'm after. Then if I nixos-build it with switch||boot it will boot with the new driver, right?
<kraem>
*nixos-rebuild
<qyliss>
Yeah
ardumont has joined #nixos
picantest has quit [Ping timeout: 272 seconds]
erictapen has joined #nixos
kleisli has quit [Ping timeout: 260 seconds]
fendor_ has quit [Ping timeout: 268 seconds]
<kraem>
I changed the the rev in pkgs/os-specific/linux/facetimehd/default.nix but it didn't seem to build any new derivation of the pkg upon `nixos-rebuild -I nixpkgs=path boot`. Is there something I'm missing?
<{^_^}>
[nixpkgs] @alyssais pushed commit from @matthiasbeyer to staging « gnused: 4.7 -> 4.8 »: https://git.io/JvTsa
<clever>
lovesegfault: yep
Guanin has joined #nixos
<lovesegfault>
clever: Hey :) So, I've been using this insane script to help me set up my system configs (i.e. place them in the right dirs (/etc/nixos/, $HOME/.config/nixpkgs)
<kraem>
qyliss: thanks for your help. will have to try again tomorrow :)
<clever>
lovesegfault: i would put everything into a single directory, like /etc/nixos/nix-config, and then use an activation script to basically do `ln -sv $HOME/.config/nixpkgs ${./nixpkgs-config}`
<clever>
lovesegfault: then your update procedure is just `git pull && nixos-rebuild switch`
<lovesegfault>
clever: Could I also have a default.nix that "unifies" everything; like to build the system I want to just do nix-build -A foucault
<lovesegfault>
As opposed to the huge incantation I have right now
<lovesegfault>
(foucault is a hostname)
<clever>
lovesegfault: configuration.nix should have basically just 1 line in it, { imports = [ ./nix-config/whatever.nix ]; }
<lovesegfault>
Yeah, that's what i have
<clever>
which pulls in the entry-point for that machine, based on the hostname
<lovesegfault>
I mean for doing tests
<clever>
ah, hmmm
<clever>
have you seen my release.nix?
<lovesegfault>
Have not
<lovesegfault>
Right now I do nix-build '<nixpkgs/nixos>' -A system --arg configuration ./system/machines/foucault.nix
<lovesegfault>
Which is fine, it's just yuge
<clever>
lovesegfault: thats basically what my release.nix automates
<clever>
lovesegfault: if you run `nix-build release.nix` it will be dumb, and just build every attribute of the set, which is what you kinda want here
<clever>
lovesegfault: a full hydra, would give you more though...
<lovesegfault>
One of my problems is that I can't use hydra as a cache
<lovesegfault>
b/c secrets
<power-fungus>
I tried to install nixos in a rasberry pi 3B. I downloaded and booted the nixos-image for sd and wanted to perform a clean install on another sd card. I followed the general install instructions as well the board specific instruction. `nixos-install` failed with the following error: https://pastebin.com/qNAiWtak
gustavderdrache has quit [Quit: Leaving.]
o1lo01ol1o has quit [Remote host closed the connection]
<lovesegfault>
clever: I also wish home-manager was just part of Nix :P
<rengglian>
what is best practice to work with configuration files. I have a config file which has some placeholders (token). I can build the project successfully and copy the file to the right location. But the config file in nix/store is not writable...
<rengglian>
okay, I should probably give the path to the config file via arg
jb55 has quit [Quit: jb55]
deni_ is now known as deni__
o1lo01ol1o has quit [Remote host closed the connection]
kamadorueda has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
deni__ is now known as deni
philr has joined #nixos
<evanjs>
Touchpad no worky again (20.03) oh boy. Not much time to diagnose atm but prolly just going to add self to input group for now ...
Palpares has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<deni>
has anyone gotten dropbear to actually work on servers for unlocking encrypted partitions during boot (lvm dm-crypt etc) ?
rengglian has joined #nixos
<bsima>
i have a buildPythonPackage call and would like to set an environment variable during the build, anyone familiar with how to do this?
<deni>
I'm using boot.initrd.network.ssh like in the docs but I can never connect to that server when the machine start booting...it just stops at the password prompt and I have to connect via the remote console and enter the password myself
<deni>
infinisil: I really want this to work and at the moment I'm desperate.... I moved off of encrypted ZFS (for reasons)... and I'm back on plain old lvm/luks...but if I can't get this thing to work I'm likely just going to have to leave the disk unencrypted
gustavderdrache has joined #nixos
<lovesegfault>
Can i have a fn like foo: import <foo> { bar = foo; }?
<lovesegfault>
cc. clever since it's related to what we were talking about
<infinisil>
deni: I'd ask the authors/maintainers of the module in the relevant PRs/issues
<evanjs>
qyliss: confirmed in path on my 19.09 machine
xO1 has quit [Ping timeout: 265 seconds]
<qyliss>
huh
<evanjs>
okay now that I look at my 20.03 path... it's just odd
<infinisil>
lovesegfault: You want the search path syntax to refer to a function?
jb55 has joined #nixos
<infinisil>
lovesegfault: That would be just `foo=/path/to/file/containing/a/function.nix`
<notgne2>
looks like its in my 19.09 PATH too
<lovesegfault>
infinisil: Oh, no; I have something more like this
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #77850 → signal-desktop: use autoPatchelfHook, wrap properly → https://git.io/JvTZm
<notgne2>
I don't really like ~/bin so I don't think I put that there
<lovesegfault>
foo: import <bar> { a = "foobar"; b = "bar"; c = "bazz"; d = foo };
<evanjs>
yah it's been there for a while AFAIK
<lovesegfault>
I want the foo being assigned to d to be the fn input
<infinisil>
lovesegfault: And what doesn't work with the code you just showed?
<lovesegfault>
infinisil: It was home-manager ./... not an attr set
<infinisil>
I was just gonna say, the error isn't in the code you showed :)
<evanjs>
homeBinInPath seemed to do it. that's nice it's optional now I guess. Now to fix my touchpad...
ambro718 has joined #nixos
<evanjs>
There it is again... xf86OpenSerial: Cannot open device /dev/input/mouse0 ...
m0rphism has quit [Ping timeout: 272 seconds]
rogue_koder_ has joined #nixos
rogue_koder has quit [Ping timeout: 268 seconds]
philr has quit [Ping timeout: 240 seconds]
kleisli has quit [Ping timeout: 260 seconds]
andreas303 has quit [Ping timeout: 240 seconds]
<deni>
is it possible to point NixOps to a non-nixos machine with ssh access and have it reinstall nixos over the host? (provided the disk and filesystems are unmounted so it can overwrite them)?
myskran has quit [Ping timeout: 272 seconds]
andreas303 has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
fendor has quit [Read error: Connection reset by peer]
justanotheruser has joined #nixos
<lovesegfault>
Is there a generic way to tell nix-build which arch to build for?
<lovesegfault>
in particular I'm trying to build a home-manager thing for Aarch64, but I'm on x886
<lovesegfault>
* x86
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
zduch4c has joined #nixos
<zduch4c>
hey
<{^_^}>
[nixpkgs] @zowoq opened pull request #77851 → saldl: init at 40 → https://git.io/JvTZr
<zduch4c>
just updated to 19.09, and installed GNOME 3 and all that jazz, but I cannot seem to start Nautilus (the file manager) through the Activities dock or app list
detran_ has quit [Ping timeout: 258 seconds]
mDuff has joined #nixos
<evanjs>
*finally tests infinisil's patch from a few hours ago* yup. that was *all* it was :P thanks for linking the issue! (#76857)
<zduch4c>
journalctl says "the error from journalctl says "Received error from DBus search provider org.gnome.Nautilus.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome"
<zduch4c>
whoops
<zduch4c>
sorry, hold on
<zduch4c>
the error from journalctl says "Received error from DBus search provider org.gnome.Nautilus.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Nautilus was not provided by any .service files"
<noonien>
is it possible to change the nix store path when building a project?
ee194350 has quit [Ping timeout: 268 seconds]
<evanjs>
noonien: like point /nix/store somewhere else entirely..?
<noonien>
yes
<infinisil>
evanjs: Why not fix the recursive import though?
<noonien>
but not for the entire system, just a single nix-build
<evanjs>
yes but it's not advised. You'll be building everything yourself and won't be able to use cached builds
ee194350 has joined #nixos
<noonien>
that's ok
<evanjs>
infinisil: Oh don't worry I did! it was already used elsewhere and removing it from that file didn't hurt anything
<evanjs>
I just wanted to verify my situation lol
<infinisil>
I see :)
<evanjs>
noonien: alright, as long as you realize it means like _everything_ haha
<zduch4c>
so could it be because of a new package not having a correct service file?
<noonien>
yup, i'm aware :D
<noonien>
i'm not sure if i'll use it, just want to learn
<evanjs>
I think $NIX_STORE_DIR is what you want? depends on what you're doing, exactly
<evanjs>
i.e. nix-shell, nix-env
<evanjs>
oh. or `--option store <path>`
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @globin merged pull request #77686 → Revert "Re-revert "awscli: Get rid of runtime -dev dependencies"" → https://git.io/JvJ5N
<erasmas>
for anyone who talked about the recursion issue with me yesterday, the issue ended up being a callPackage call that exported `{ inherit pkgs; // set1 // set2 /// ...}`
<erasmas>
when evaluated as a normal nix expression there's no issue, but when evaluated via hydra it gets stuck in a loop trying to resolve `pkgs`
<infinisil>
erasmas: That's not a valid expression though?
<erasmas>
I cannot find any non-hydra way to get that to cause infinite recursion
<infinisil>
Not sure how that would cause anything like that, this probably depends on the context
bvdw has quit [Write error: Connection reset by peer]
bvdw has joined #nixos
<erasmas>
there's either something very special about the environment hydra runs builds in, or it's doing some magic with the pkgs set
<tnks>
I just checked the ticket for /nix not being writable on Catalina. I've been holding off on upgrading until I have some clarity on the right steps... that ticket has gotten really long, and I'm not sure what the best recommendation is currently. Does someone have a summary?