<l33[m]>
i'd go with coolkids, and use fd, find , when you get into has some very strange (historic) issues around globing and recursive directory expansion... .here be dragons.....
<infinisil>
I've started to like explicit for loops and co. Just because it's much easier to understand. Though if recursive search were needed I'd probably go with find/fd
gxt has quit [Remote host closed the connection]
<Raito_Bezarius>
does anyone know if there is a gcc for 32bits (or 64bits) riscv baremetal target in nixpkgs?
gxt has joined #nixos
<Raito_Bezarius>
I chcked quickly and didn't found anything
<l33[m]>
is risc5 the future?
lovek323 has quit [Quit: Connection closed for inactivity]
<Raito_Bezarius>
also, I don't know :) — risc-v looks definitely cool, but that does not tell us a lot about whether it can become a replacement for modern ISA
<l33[m]>
oh i never thought of computers to be an industry.
<{^_^}>
[nixpkgs] @fnlaai opened pull request #102559 → introduce patch(.diff) to slstatus and dmenu → https://git.io/JTdNi
<freezeboy>
DigitalKiwi yes ... that's a solution, but then I don't know how big I should target
<{^_^}>
[nixpkgs] @fnlaai closed pull request #96675 → Make slstatus able to patch from diff → https://git.io/JUtVa
<pushqrdx>
is anybody using magic trackpad with nixos?
<pushqrdx>
if so how is your experience, because my experience on linux in general has been atrocious
<DigitalKiwi>
my magic mouse disconnects a lot...
<DigitalKiwi>
so if the bluetooth stack is similar uh maybe expect that
<pushqrdx>
i am connecting the trackpad over wire to avoid such issues
<pushqrdx>
i have enabled libinput in configuration, but the track pad is registering random click, the mouse sometimes moves faster or slower, sensitivity is weird
<pushqrdx>
over all, almost unusable here so i wonder is this just the drivers on linux being bad or am i missing something
<psy3497>
Indeed. I managed to run it with nix-shell but
<siraben>
What was the command to run in nix-shell?
<psy3497>
I am asked to run as root. So I guess everthing has to be installed in the environment?
deltab has quit [Ping timeout: 264 seconds]
<siraben>
What you need to do is create a derivation
<siraben>
Don't install stuff into /usr/bin/ etc.
<psy3497>
nix-shell -p qmake4Hook qt4
<psy3497>
this is to run INSTALL, which then produces an executable in the same directory (I don't think it tried to install anything globally, and if it did an error would have occurred right?)
<siraben>
yeah that only puts you in a temporary environment with those dependencies
<psy3497>
Then I was asked to run the program with mtools, so I ran a nix-shell with mtools just to execute the program
h0m1 has quit [Ping timeout: 240 seconds]
<psy3497>
Then I was asked to run the program as root. Problem is when I run as root the gui appears with no text. Whereaas if I run without root, I do get text appearing
<Dotz0cat>
I got this to build but it now does not work correctly. I think it is somehow missing a dependacy. what it does is it does not show thumbnails I have it fetch from the internet. anything that you can think of that I could be missing? https://gist.github.com/Dotz0cat/15a6e5e7ddb596605b6a8e0141c82c63
sigmundv_ has quit [Ping timeout: 256 seconds]
<alienpirate5>
day three of trying to package my app
<heath>
ran into my first infinite recursion error with this shell.nix: https://gist.github.com/heath/40b04df97f7badc798a208c2a30b8cd3 --show-trace mentions it occurred while evaluating column 13 on line 1, but that doesn't seem useful; tips on figuring these type of errors out?
justan0theruser has quit [Ping timeout: 268 seconds]
dbmikus_ has joined #nixos
<typetetris>
Using `nix-shell (Nix) 3.0pre20201020_e0ca98c` I have a strange behaviour, where it opens a bunch of threads and then waits on a futex (according to strace) forever.
jabster28 has quit [Ping timeout: 240 seconds]
<typetetris>
Where should I report such a thing? To nixpkgs or nix ?
waleee-cl has quit [Quit: Connection closed for inactivity]
<typetetris>
srhb: I think about `nix-shell` and `nix-env`. At the moment I am trying to load my system configuration in a `nix shell` but it keeps complaining that `nixosConfigurations.monster` (monster my systems name) isn't a derivation. I am calling `nix shell .#nixosConfigurations.monster` inside /etc/nixos. I thought I could explore its contents with tab completion ..
<cole-h>
typetetris: You might be interested in my compat wrapper for `nix repl` (and other tools)
<siraben>
How can I use GrahamcOfBorg to test cross-compilation? I tried commenting `@GrahamcOfBorg build pkgs.pkgsCross.remarkable1.hello` but it returned with `
<siraben>
The following builds were skipped because they don't evaluate on x86_64-linux: pkgs.pkgsCross.remarkable1.hello
<typetetris>
how can I lock an input for a flake to specific commit?
strikerlulu has joined #nixos
<cole-h>
Add `/rev` to the flake URI
<cole-h>
not literally `/rev`, but `/jas789431hfjkasd7831` or whatever the revision is
* strikerlulu
strikerlulu has quit [Remote host closed the connection]
cole-h has quit [Ping timeout: 256 seconds]
<jdnixx[m]>
Ok so wtf
<jdnixx[m]>
Tell me why when I `nix-env -iA nixos.ema` and start tab-completing, it shows me a bunch of different Emacs packages
domogled has quit [Quit: domogled]
<jdnixx[m]>
Including one named like for example `nixos.emacsWithPackages`
<jdnixx[m]>
BUT
<siraben>
cole-h: I see. I'll try doing it on another repo with cachix.
medvid has quit [Ping timeout: 265 seconds]
<jdnixx[m]>
When I go and `nix search emacs` it finds the main emacs package, uemacs, emacs26/27/27-nox, etc etc
<jdnixx[m]>
but NOT half of the other ones that nix-env showed on tab completion
<jdnixx[m]>
What gives? I thought `nix` was supposed to replace whatever legacy functions but it looks like it’s not even going off the same cache or something as nix-env?
jonringer has quit [Ping timeout: 260 seconds]
<Emantor>
Is there any way to get a ARMv7 cross compiler into my mkShell env without building it on my machine
<Emantor>
I know I can use crossSystem { config = "armv7l-unknown-linux-gnueabihf" }; but all others pkgs built into the shell will be for ARM, I am only interested in gcc.
<Emantor>
And that works by using the host mkShell with i.e. pkgsCross.armv7l-hf-multiplatform.buildPackages.gcc, pkgsCross.aarch64-multiplatform.buildPackages.gcc, …
<siraben>
I see
<{^_^}>
[nixpkgs] @vbgl opened pull request #102596 → ocamlPackages.mirage-console: init at 3.0.2 → https://git.io/JTFWF
<matthewcroughan_>
where oh where did cole-h go ;_;
fnlaai has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 260 seconds]
<bqv>
matthewcroughan_: He has you on ignore
<matthewcroughan_>
lol
medvid has joined #nixos
<eyJhb>
matthewcroughan_: you can use bqv instead :D
<matthewcroughan_>
sounds about right.
<matthewcroughan_>
Like I said, when I first got into Linux, I annoyed a lot of people and a lot of people blocked me. It's just how it is. It's self regulation.
<bqv>
matthewcroughan_: while some of that is other people having short fuses, and some of it is whatever brand of special personality you have, the rest is up to you to mitigate, one way or another
<jackdk>
typetetris: look up the documentation for boot.initrd.luks.devices
<jackdk>
For mine, I set that to { nixos = { device "/dev/disk/by-uuid/<theuuid>"; preLVM = true; allowDiscards = true; };
<jackdk>
and I have "discard" in the options list for each filesystem
<typetetris>
jackdk: Thank you!
<jackdk>
related question: if you have multiple disks under luks, and you want to put the keyfile for disk B on disk A (which is the one nixos boots from), where's a safe place to stash the keyfile?
sangoma_ has quit [Quit: WeeChat 2.9]
sangoma has joined #nixos
<Orbstheorem>
Hello, is anybody using qtcreator on NixOS ?
sangoma has quit [Ping timeout: 240 seconds]
ilmu has quit [Ping timeout: 268 seconds]
ilmu has joined #nixos
<typetetris>
jackdk: Sorry don't know about your keyfile. Do I need to run fstrim manually or does the discard mount option take care of that?
sangoma has joined #nixos
codyopel has quit [Quit: Idle for 30+ days]
jonte[m] has quit [Quit: Idle for 30+ days]
theglenn888[m] has quit [Quit: Idle for 30+ days]
steve[m] has quit [Quit: Idle for 30+ days]
fendor__ is now known as fendor
<jackdk>
typetetris: that's ok, it was more of a question for the floor. I don't know ssd stuff very well, I just cargoculted it from somewhere
<sphalerite>
jackdk: my usual approach for that is to put it in a root-owned, 0700 directory (like /root)
<sphalerite>
typetetris: I'm not entirely sure, but I think it makes sense to do both, i.e. have discard enabled _and_ occasionally run fstrim.
<sphalerite>
typetetris: though I might be confusing things with zfs's autotrim and zpool trim.
<sphalerite>
typetetris: I can't imagine it would _hurt_ to do the same on ext4 though, even if I'm wrong :p
<typetetris>
jackdk, sphalerite: https://wiki.archlinux.org/index.php/Solid_state_drive suggest its safer to enable fstrim and don't use the discard mount option. Otherwise you would need to know, wether your device likes continuous trim.
<typetetris>
And they suggest its better to use only one of those options.
<typetetris>
clever: Its about not downloading the sources if the result of the expression is already in the cache. With builtins.fetchTarball it redownloaded the sources every time (doesn't do a derivation too) I tried to build the immediate dependee, despite it being in the store already. `fetchTarball` downloaded the sources at evaluation time might be the problem?
<clever>
typetetris: all of the builtin based fetchers will download at eval time, and then just insert the path to the result as a plain path
<clever>
as-if you had done src = ./foo;
<typetetris>
clever: Good to know.
<clever>
if you supply a sha256, it will compute the storepath, and check if it already exists, then maybe skip the fetching
<typetetris>
clever: Yeah, I want to avoid pulling the sources into the store :)
<clever>
if a derivation has outputHash and outputHashMode, then it will be considered fixed-output by the new standards, and outputHash must contain the hash algo
<clever>
by the old standards, outputHashAlgo has the algo name, and its split between 2 fields
<clever>
outputHashMode="flat" means that $out must be a single file, and you are reporting the hash of the file
<clever>
outputHashMode="recursive" means $out can be a file, directory, or even symlink, and you are reporting the hash of the nar (nix-store --dump $out > foo.nar)
* colemickens
takes notes
<clever>
flat mode, lets you reuse the hashes from a yarn.lock for example, so you dont have to fetch&hash everything when generating nix
<clever>
but git in yarn.lock, uses the commit sha1, which doesnt work, so you still have to fetch&hash those
<{^_^}>
[nix] @domenkozar closed pull request #3955 → improve help text for tarball-ttl → https://git.io/JUfXN
<{^_^}>
[nixpkgs] @FRidh opened pull request #102613 → WIP: Python: wrap and patch using `requiredPythonModules` instead of `propagatedBuildInputs` → https://git.io/JTFiC
alp has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 349 commits to staging-next: https://git.io/JTFig
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<typetetris>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries ping channels paste escape'' -a escape" library overlay ifd pinning botsnack profiling unfree ask which-channel xml xy fancy-uninstall imperative wololo nixlang++ tofu cache pills pointers home-manager invite runtimedeps stateversion thesis commands exec matrixbridge smart-questions tias
<dmedinag>
hi there! I'm trying to find examples of nixos configuration files that use wayland. Does anybody here use wayland+sway as daily drivers and is happy to share some experience on the topic?
<sphalerite>
dmedinag: I use it, but configure it in my user profile. I have programs.sway.enable = true; for wahtever system-level machinations are necessary, but other than that it's all user-based
mmohammadi9812 has quit [Client Quit]
mmohammadi9812 has joined #nixos
leserf_ has joined #nixos
noudle has quit []
<dmedinag>
so you just do `programs.wayland.enable` in your configuration.nix and then use home-manager to configure sway? Do you use a greeter?
<hexa->
if you're using home-manager you could pass those vars through home.sessionVariables
<hexa->
though I'm not sure about systemctl import-environment and dbus-update-activation-environment .)
<hexa->
:)
<hexa->
the home-manager module for sway is in a very usable state
<sphalerite>
I'm not necessarily endorsing my way of doing it, home-manager is probably a better option for people who don't already have their setup which they're happy with :p
<dmedinag>
sounds great, I'll look into those :) Thanks a lot! I'll update here with my findings :p
<hexa->
fwiw: when starting sway from the tty, use "exec <sway>"
<hexa->
so when sway crashes your tty won't be left open
<leserf_>
Hi all.I do not understand where I will turn, to the developer or here?I installed NixOS on my x86 tablet, everything works, only I need an on-screen keyboard for the console, like on the Pinephone. The links have the github source code. Or is there another easier way? Https: //www.youtube.com/watch? App = desktop & v = MAG2f04_aeEEarlier I built
<leserf_>
this on Arch Linux with simple make & make install, and there were problems with consoles, ctrl + alt + F1 2 3 just didn't work already, but Xorg is there. If you run console-keyboard-basic it works too. But there is a problem with the real console.
cfricke has joined #nixos
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTF5v
leserf_75 has joined #nixos
orbekk has quit [Ping timeout: 240 seconds]
leserf_75 has quit [Remote host closed the connection]
mmohammadi9812 has quit [Ping timeout: 260 seconds]
leserf_ has quit [Remote host closed the connection]
alp has quit [Ping timeout: 272 seconds]
mmohammadi9812 has joined #nixos
orbekk has joined #nixos
redj has joined #nixos
leserf_ has joined #nixos
karantan has joined #nixos
Fare has joined #nixos
<leserf_>
I here (leserf_)
<leserf_>
I had a problem with Kiwi IRC, I logged in from a regular client, but the messages were not saved, did they answer?
<chambln>
Hey, I am getting a strange issue where almost all of my desktop applications are missing from gnome3 but only on Wayland.
<chambln>
For example firefox, libreoffice, gedit etc. are missing from the apps menu and I'm not able to launch them with Alt+F2 commands either (executable seems to be missing).
<chambln>
Can't even open gnome-terminal as a result.
<chambln>
Mysteriously torbrowser still works as normal.
<chambln>
And a few core gnome utilities like settings are still there.
<chambln>
No such issue with Gnome on Xorg.
<chambln>
Any suggestions for how to debug this? I'm out of ideas. Thanks.
sangoma has quit [Ping timeout: 260 seconds]
<pinpox>
Has there been any work on creating a graphical installer for nixos?
<pinpox>
It shouldn't be too complicted to build one with this https://calamares.io/
<pinpox>
I know, most people here wont need it. But for new users it could make the installation easier and more attractive to give it a tray
<pinpox>
*try
<simpson>
There are graphical tools for managing configuration.nix, but I don't remember where any of them are. What's your actual goal?
<pinpox>
simpson: My "goal" would be to make it easy for new users to try nixos
<manveru>
pinpox: yeah, i made one with calamares, never finished it though...
<pinpox>
manveru: Wouldn't this be something that would benefit nixOS in terms of popularity?
<manveru>
mostly because of UX issues, and it was like two years ago, so not sure if it'd be better now :)
<simpson>
pinpox: Oh. I still remember being a new user; I couldn't figure out how to get Red Hat onto CDs, I couldn't figure out how to work the graphical TUI installer, and I bricked a family computer. I don't see what's wrong with the warning, personally~
<pinpox>
manveru: the manjaro istaller (which uses calamares) works quite well
waleee-cl has joined #nixos
<pinpox>
simpson: I think you misunderstood me, I fully agree with you and the warning. Just thought it wouldn't be needed if there was an easy graphical installer that novices can use
<pinpox>
click, click, click - standard nixos install.
<simpson>
Right now it's about as hard as Gentoo, in that one must read a manual, operate a text editor, and format a disk. I can imagine automating away the middle step, but I don't want to make it easier for folks to format their disks if they don't know what they're doing.
<simpson>
pinpox: Today's novice can have that click-click-click experience in one of several cloud providers, which is incidentally where they tend to learn Linux these days!
<pinpox>
simpson: you and me know how to do all this. you and me don't need this. But if people have a easy way to get started the might dive further into nixos and stick with it
<simpson>
pinpox: Yes. I'm asking you to extend your empathy to *today's* new Linux users: By what route do they learn about Linux and try it out? I've gotten used to novice coworkers explaining to me that a production cloud Linux environment is their *first* exposure to it! And the clouds are often hovering close to the universities, too, raining free credits down on students.
growpotkin has joined #nixos
<pinpox>
simpson: I get your point, might be regional though. I have quite a few friends who got into linux with a raspi
<pinpox>
or are linux users already with something like ubuntu and would like to try nix
<pinpox>
There is a big gap between people know how to install ubuntu and people that know how to install nixos and I feel there maybe is no need to
leserf__ has joined #nixos
<pinpox>
While I don't think it's a primary objective, popularity is not a bad thing for a distro to attract developers and people who want to contribute and make it better
leserf___ has joined #nixos
leserf__ has quit [Read error: Connection reset by peer]
leserf_ has quit [Read error: No route to host]
alienpirate5 has joined #nixos
leserf_ has joined #nixos
kraem has joined #nixos
nikivi[m] has joined #nixos
Valodim[m] has joined #nixos
bennofs[m] has joined #nixos
ptotter[m] has joined #nixos
hiroshi[m] has joined #nixos
alexfmpe has joined #nixos
siraben has joined #nixos
michaelpj has joined #nixos
srid has joined #nixos
Synth[m] has joined #nixos
betrion[m] has joined #nixos
aanderse has joined #nixos
chreekat[m] has joined #nixos
maralorn has joined #nixos
unclechu has joined #nixos
jtojnar has joined #nixos
<simpson>
Ubuntu has a really big tent, if you want to look at it that way; another way to look at it is that maybe NixOS isn't that hard, but that people must *unlearn* a lot.
ngerstle[m] has joined #nixos
dxb[m] has joined #nixos
hazel[m] has joined #nixos
<simpson>
Popularity is neither good nor bad, but more is *different*; we have to change how we do things based on how many people are downstream of us.
AmitLevy[m] has joined #nixos
ryantm has joined #nixos
fadenb[m] has joined #nixos
worldofpeace has joined #nixos
mt[m] has joined #nixos
<simpson>
So it is important to be wary of Goodhart's Law when claiming that a community needs to grow.
aduialthin[m] has joined #nixos
jonringer has joined #nixos
leserf__ has joined #nixos
<pinpox>
I see. Guess there are multiple ways of going about this. In my opinion providing both installation options wouldn't hurt and I wanted to know if there has been done any work in that regard before I reinvent the wheel building my own
leserf___ has quit [Ping timeout: 260 seconds]
the_rajsun[m] has joined #nixos
yurb has joined #nixos
bohan[m] has joined #nixos
barn0 has joined #nixos
eddyb has joined #nixos
Ke has joined #nixos
<simpson>
infinisil is another person who has built something, IIRC.
<slabity>
I have `nix.package = pkgs.nixUnstable` in my configuration, and I get `nix (Nix) 3.0pre20201020_e0ca98c` when I run `nix --version`
<slabity>
But for some reason when I try to include the `nix-plugins` file into my configuration, it tries to build Nix 2.4, which fails with the following:
<slabity>
`/nix/store/7jmq4igrlp1z4rzsd74rysla182vp11g-nix-2.4pre20201102_550e11f-dev/include/nix/config.hh:7:10: fatal error: nlohmann/json_fwd.hpp: No such file or directory`
sangoma has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @cole-h to release-20.09 « home-manager: 2020-03-17 -> 2020-11-02 »: https://git.io/JTbnz
<{^_^}>
[nixpkgs] @FRidh merged pull request #102347 → [20.09] kdeApplications: Use latest qt515 by default → https://git.io/JTQbk
<{^_^}>
[nixpkgs] @FRidh pushed 10 commits to release-20.09: https://git.io/JTbnV
whatisRT has quit [Ping timeout: 240 seconds]
andresilva has joined #nixos
dxtr has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<andresilva>
after the relevant hydra build passes what is the process for updating the nixos-unstable tag? e.g. https://hydra.nixos.org/build/129495250 has finished 7 hours ago but the tag hasn't been updated yet. is this triggered on some cronjob that only runs once daily? (I am just curious here :)
<tobiasBora>
Hello, I'd like to know, I'm doing something like that in my configuration: {pkgs, ...}: let unstable = import <nixos-unstable> {}; { imports = [./myfile.nix]; }, and in myfile.nix I need to refer to unstable... How can I pass values through imports?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « libmwaw: 0.3.16 -> 0.3.17 »: https://git.io/JTb8v
<azazel>
cole-h: thanks... it's similar, but I'm not using ay external store
noudle has joined #nixos
fnlaai has joined #nixos
<LnL>
cole-h: that's such an annoying issue to fix :/
<cole-h>
🙃
<porphyrogenetos>
How do you change the build directory of a derivation for a meson/ninja project? Trying to write a package for a project that uses $src/build for something, which is the default location for meson builds before the install phase
<srhb>
porphyrogenetos: Look up sourceRoot in the nixpkgs manual (or a meson build :))
<srhb>
porphyrogenetos: Oh, or maybe I got your question backwards.
Fare has quit [Ping timeout: 264 seconds]
lordcirth__ is now known as lordcirth
<porphyrogenetos>
Looking at that, it seems to be a little off from the problem but possibly related. The issue is that meson typically puts the out of source configuration/build dir at projectroot/build, but the project im trying to package uses projectroot/build as a packaging directory for snaps and flatpaks. So I need to tell meson, ninja, and nix to use a different intermediate build directory
werner292 has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<porphyrogenetos>
its failing now at the meson configure stage because the build dir is non-empty. I assume nix and ninja might fail if I just pass a flag to meson to change to $src/bld or something like that. So hoping nix has a helper to set that portion, and if not I assume I'll need to do some magic with setting output dirs etc in all three
<srhb>
porphyrogenetos: Looking around at meson builds, I don't see anything obvious
<ma27[m]>
cole-h: it's not a problem anymore on nixUnstable though (regularly using `ssh-ng`now which is actually usable when having https://github.com/NixOS/nix/pull/4180 applied)
<ma27[m]>
didn't have time to fine the patch, otherwise I would've requested a backport %)
<{^_^}>
nix#4180 (by Ma27, 1 week ago, open): Allow substituting paths when building remotely using `ssh-ng://`
<stephank>
I was hoping to try out the aarch64 AMI builds from hydra, but `aws ec2 import-image` gives me 'Parameter architecture=arm64 has an invalid format.', and I can't figure out why. The manual says it should work, and all my googling has failed. Anyone know the right incantation?
himmAllRight17 has quit [Quit: No Ping reply in 180 seconds.]
DigitalKiwi has quit [Read error: Connection reset by peer]
<matthewcroughan_>
If grub2 or systemd-boot had a genuine code issue that prevented it from functioning, nixos would be unable to boot a previous generation, right?
<infinisil>
> builtins.match "\\[" "["
<{^_^}>
[ ]
<infinisil>
NO
<infinisil>
Why does that not work in my Nix version..
<Orbstheorem>
matthewcroughan_: The right NixOS derivation is started by the bootloader.
<Orbstheorem>
The menu you see upon boot is generated (at activation time?) for the corresponding bootloader.
<matthewcroughan_>
Orbstheorem: No, the bootloader itself is broken
<matthewcroughan_>
systemd-boot has a bug which leads you to a black screen, how does NixOS handle this?
<Orbstheorem>
If the bootloader itself it's broken NixOS cannot do anything. It has not started yet.
<infinisil>
Oh wait no it does work
<matthewcroughan_>
Orbstheorem: So, upgrading the bootloader is a risky procedure. NixOS does not help at all in this regard, right?
<infinisil>
> builtins.match "\\[foo\\]" "[foo]"
<{^_^}>
invalid regular expression '\[foo\]', at (string):345:1
<infinisil>
But this is super weird ^
<infinisil>
> builtins.match "\\[foo]" "[foo]"
<{^_^}>
[ ]
<infinisil>
Looks like you have to *not* escape ], even though you need to escape [
<Orbstheorem>
> builtins.match "\\[foo]" "[foo]"
<{^_^}>
[ ]
<Orbstheorem>
infinisil: Yes, I've been this behavour somewhere else xD
<matthewcroughan_>
NixOS and Nix cannot help with bootloader upgrades. It is still as dangerous as any other OS.
<V>
matthewcroughan_: there is no way to make that safe
red[evilred] has joined #nixos
<red[evilred]>
,locate virt-install
<V>
some code, somewhere, has to be run in order to give you the option to rollback
<{^_^}>
Found in packages: virt-manager
<matthewcroughan_>
Not true, it just hasn't been done yet.
CyberManifest has joined #nixos
<V>
okay
<V>
how do you intend on making it safe without running code
<srhb>
infinisil: EPRE is weird. But it sounds right.
<matthewcroughan_>
uefi tftp pxe
<matthewcroughan_>
recovery image over pxe, fix bootloader via that
<Orbstheorem>
matthewcroughan_: I'm not sure I get what you mean.
leserf__ has joined #nixos
<V>
that... isn't a process that can be achieved internally by nixos
<Orbstheorem>
Your statement about NixOS not being able to do anything with a broken bootloader is true.
<matthewcroughan_>
No, it's outside of nixos
<V>
I'm not sure what your point is, then
<matthewcroughan_>
I was just wondering if NixOS magically solved it, because of what Nix is supposed to be, but it cannot, it's outside of Nix' scope.
<Orbstheorem>
That's correct, it cannot.
<V>
the solution you just provided requires external hardware
<matthewcroughan_>
Only in the sense that you'd need a tftp server
<Reiser>
Trying to lustrate a host operating system, final step is moving /boot to /boot.bak, but apparantly my boot partition is busy
<Reiser>
Silly question but how can I determine why that is?
<Reiser>
It's a separate partition so I don't think It's because It's container within the same partition as /
<numkem>
I'm looking at doing tests for something I'm working from the `consul.nix` test example. Where is the source for the python library that is being used?
saschagrunert has quit [Remote host closed the connection]
<yjftsjthsd>
If I use ansible 2.10 on nix (either as the default "ansible", or as "ansible_2_10"), it can't resolve (unqualified) actions that worked before. It kinda looks like this is from ansible's move to "collections" of content, but 1. that happened in ansible 2.9, and 2. it isn't a problem if I run ansible 2.10 in a virtualenv on Ubuntu. I don't see any
<yjftsjthsd>
packages for collections in `nix search ansible`, so I don't think it just got factored out. Is this expected?
jabster28 has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
jabster28_ has joined #nixos
werner292 has joined #nixos
jabster28 has quit [Ping timeout: 264 seconds]
Fare has quit [Ping timeout: 264 seconds]
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
__monty__ has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @EuAndreh opened pull request #102668 → Add md4c, pymd4c and mdpo packages → https://git.io/JTbo2
<pumpy>
how can i find out what version of home-manager's installed? for some reason --version isn't supported wtf?
fendor has quit [Remote host closed the connection]
jabster28_ has joined #nixos
sethmdoty[m] has joined #nixos
jabster28 has quit [Ping timeout: 260 seconds]
ilmu has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @basvandijk opened pull request #102670 → mlc: init at 3.9 → https://git.io/JTbiO
<energizer>
"Building GLFW has failed. Most common problem is that you don't have x-org installed. You can install it via: `sudo apt-get install xorg-dev`." What do I need?
CyberManifest has quit [Ping timeout: 258 seconds]
Fare has quit [Ping timeout: 264 seconds]
<nicolas[m]>
Doesn't work though. Neither having the string in my config.nix nor the environment variable works
<edef>
hm, that is surprising
<nicolas[m]>
I don't think the new nix command reads the config.nix
<edef>
`nix run nixpkgs.minecraft` definitely seems to work for me
<lassulus>
minecraft from 20.03 didn't start the game for me, but from unstable/20.09 it worked
<nicolas[m]>
[edef](https://matrix.to/#/@freenode_edef:matrix.org) except I want to use the hash syntax
<nicolas[m]>
And even then it still doesn't work
<edef>
ah
<edef>
flakes are hermetic, and thus cannot read ~/.config/nixpkgs
<edef>
i'm not sure how to help with flakes-related questions (and i am personally opposed to flakes as a feature, as currently proposed and implemented)
<{^_^}>
[nixpkgs] @Ma27 pushed to release-20.09 « nixos/initrd-network-ssh: fix test »: https://git.io/JTbMi
sss2 has quit [Quit: Leaving]
CyberManifest has joined #nixos
<nicolas[m]>
I ended up adding the expression to a temporary file and using nix-env
<pushqrdx>
well i dk if am already in it but i added "i2c" to the extraGroups set in config.nix
<yjftsjthsd>
Oh, try running `id` to see if you're in the group; if not, you need to log out and back in, su to yourself, use newgrp, etc
<pushqrdx>
running groups shows that i am in i2c group though
<pushqrdx>
yes i am in i2c group, and i already restarted after the new generation
<yjftsjthsd>
Huh, that's odd then. So I know nothing of ddcutil, but have you verified that /dev/i2c-* or whatever is... probably root:i2c?
<yjftsjthsd>
i.e. make sure your group *should* have access to needed device node
<pushqrdx>
i can't see a i2c- anything under /dev, and excuse me i am a little bit of a linux dummy so i don't know what the last sentence means :D
<pushqrdx>
even though ddcutil when ran without sudo is trying to access /dev/i2c-1-20, and when ran as sudo it succeeds
<pushqrdx>
so it's for sure accessing /dev/i2c somehow i can't find a directory there though
<yjftsjthsd>
That's ... really weird, actually; nixos still has a normal-enough /dev so I'm not sure what's going on there. Any chance you've done this on a non-nixos box?
<damjan>
larou: what exactly do you mean by "write a virtual cpu on the cloud" ??
<damjan>
what are you writing the CPU in?
<larou>
dminuoso: not really sure how it works, but something happens when you start the machine, and the OS gets to see all the hardware. i guess my mistake of thinking everything at this stage was the bootloader
<larou>
damjan: distributed processes that can be called with something like machine instructions
<dminuoso>
Cant tell if you're being a markov chain.
<larou>
no, i have a specific question
<larou>
there is a gap in my understanding, i know nix must somehow arrange something with the CPU
<Yaniel>
it doesn't
<larou>
i dont know how, but if i understand how an OS gets to "see" the hardware...
<larou>
Yaniel: oh..
<damjan>
nix is just a collection of the Linux kernel, and opensource packages (and a way to organize them)
<larou>
ah, so it defers all of that to a linux
<dminuoso>
larou: Roughly the boot process works like this:
<larou>
i thought it basically wrote its own...
<dminuoso>
System boots into firmware, firmware jumps into EFI, EFI jumps into kernel
<dminuoso>
And by jump I mean "load, do some preparation, and then just transfer control to"