<gchristensen>
(no Nix build can specify ownership)
<DigitalKiwi>
if the nix store is read only how does it get modified :(
<skrzyp>
DigitalKiwi: it gets r/w for a moment when Nix operations are applied, I think
<DigitalKiwi>
this is a serious question despite sounding trollish
<gchristensen>
Nix's root daemon re-mounts the specific store path which is being written to as writable during the build, in a namespace specific to th ebuild
<DigitalKiwi>
ohh
iyzsong has joined #nixos
zeta_0 has joined #nixos
zeta_0 has left #nixos [#nixos]
<skrzyp>
that's quite clever, but does namespace separation guarantee that no other process can write to /nix/store during the build?
<DigitalKiwi>
and finally, if nix is pure how does it do IO?~ :P
<gchristensen>
Nix doesn't do IO exactly
<gchristensen>
if you can guarantee the hash of something you are allowed to provide instructions to get it, so in this case Nix considers the hash and the thing to be interchangeable
iyzsong-x has joined #nixos
iyzsong has quit [Ping timeout: 276 seconds]
<ToxicFrog>
I'm writing a nixpkgs expression. The program being installed needs to be wrapped in a script that, on each run, copies or symlinks some stuff from $out into the user's home directory before actually running the program. What's the best way to do this? writeScriptBin something that takes $out as an argument and then install that in $out/bin?
vld has joined #nixos
work_ has joined #nixos
<skrzyp>
Do you really want to automatically pollute the user's $HOME without any consent?
<ToxicFrog>
skrzyp: this is a game that's hard-coded to write save files into the same directory as the binary, on the assumption that you'll just untar it to ~/Games/ or similar. Ofc this doesn't work on nix because you need to patchelf.
<ToxicFrog>
So the launcher script copies the configuration files (user editable) and symlinks the binary, game data files, etc into ~/.share/ and then invokes it from there.
<ToxicFrog>
Running it from the nix store results in a game that cannot be configured and crashes when you attempt to save, which is not particularly useful.
<skrzyp>
ToxicFrog: if you run a game from directory where the actual binary is symlinked into, does it follow the link?
<ToxicFrog>
skrzyp: no. It writes the saves to $(dirname $0), not $(dirname $(readlink $0))
<ToxicFrog>
To be clear, I know this approach works because I am already using it in prod; I'm just trying to clean up the .nix a bit.
<skrzyp>
yeah, that's probably the way to go I think - would be hacky of course, but at least won't pop into users' homedir
iqubic has joined #nixos
<skrzyp>
I personally hate when software does that, especially with .-files which you can't reloate without hacking. And I have all XDG_* dirs moved into non-dot starting dirs, as well as any other dotfile. Except the ".profile" for compatibility, but it's a symlink.
vld has quit [Ping timeout: 240 seconds]
<infinisil>
ToxicFrog: Oh, potentially you could be really tricky: Use makeWrapper to change argv0 to something not in /nix/store
<skrzyp>
Not many people do that, but I suppose it would also affect anyone else who cares about not having additional ~/omgwtfbbq from 3rd party
<skrzyp>
infinisil: ouch
<skrzyp>
but right, that might work :D
<infinisil>
Oh wait, that doesn't work
<infinisil>
--argv0 of makeWrapper can just change the resulting binary name
felixfoertsch23 has joined #nixos
<ToxicFrog>
skrzyp: this at least doens't hard-code them to any particular location, it just wants to plop them down next to the binary. So you can put them in ~/.local, ~/Games/, ~/opt/, basically anywhere you have write access
<infinisil>
If there's a way to actually pass a different arvg0 then this could work
<ToxicFrog>
Even /tmp, although save files that evaporate when the system reboots are of limited use
<skrzyp>
ahh, didn't knew about the actual implementation in nixpkgs being limited
felixfoertsch has quit [Ping timeout: 245 seconds]
<ToxicFrog>
infinisil: overwriting argv0 doesn't actually help though? It looks for both the game data (large, read-only) and the player saves and configuration (small, read-write) in the same directory (next to the binary)
sfrigon has joined #nixos
sfrigon has left #nixos [#nixos]
<infinisil>
ToxicFrog: But if argv0 is something like /home/user
<ToxicFrog>
So I'm going to have to symlink the game data files (graphics, sound/music, level files, etc) into there anyways
<infinisil>
Hm
<ToxicFrog>
At which point I might as well symlink the game binary as well and invoke it through the symlink rather than futzing around with passing a hacked argv0 to the binary in /nix/store
<infinisil>
(apparently exec -a can set a different argv0)
<ToxicFrog>
skrzyp: yes, that's what I'm doing!
<ToxicFrog>
I'm already doing that! I just want help writing the wrapper script in the cleanest way in the .nix!
<skrzyp>
Eey, wait! It's just me at 4AM.
<skrzyp>
Don't get nervous here :D
<infinisil>
Oooor, alternatively, use bubblewrap to wrap the binary such that the necessary paths get bind-mounted to outside the nix store, then no patching or home directory linking might be possible
<skrzyp>
infinisil: ooh I didn't know that bubblewrap can do that without the whole Flatpak stuff around it.
iqubic has quit [Read error: Connection reset by peer]
iqubic has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<juxiemaotu>
i wanna to deploy a proxy server on
<juxiemaotu>
i wanno to deply a sever on a nixos machine which use MBR . when i deploying, it prompt :
smatting has joined #nixos
<juxiemaotu>
Failed assertions:
<juxiemaotu>
- The ‘fileSystems’ option does not specify your root file system.
<infinisil>
juxiemaotu: You probably didn't run nixos-generate-config or forgot to include hardware-configuration.nix
iqubic` has joined #nixos
<bdju>
My undervolt.service is "inactive (dead)" and remains no after restarting it. How do I figure out why? I was just hitting over 90C watching videos in mpv and then noticed my undervolt wasn't working.
<juxiemaotu>
you mean this config should be write in nixops config file?
<bdju>
s/remains no/remains so
iqubic has quit [Ping timeout: 250 seconds]
lord| has joined #nixos
<infinisil>
juxiemaotu: Yeah, even nixops needs a hardware-configuration.nix
smatting has quit [Ping timeout: 250 seconds]
<infinisil>
for normal nixos machines at least
cryptomonad has joined #nixos
iqubic` has quit [Client Quit]
<{^_^}>
[nixpkgs] @Ma27 pushed to master « fixup! Merge pull request #74422 from r-ryantm/auto-update/ibus-typing-booster »: https://git.io/JeQUf
<juxiemaotu>
great, it go to work.
<juxiemaotu>
i think i am not understand what nixops really do.
<juxiemaotu>
it just like a remote configuration.nix.
<juxiemaotu>
all right?
<juxiemaotu>
so i need config everthing what i wan that machine to be.
iqubic has joined #nixos
<juxiemaotu>
but there will be another question. i had intalled nixos on the target machine. Those configuations could be lost or not ?
<emily>
can anyone tell me how to use https://github.com/edolstra/dwarffs/blob/master/flake.nix with a non-flakes nix? the overlay is easy to figure out how to add but I'm not sure how to merge `nixosModules.dwarffs` into my config
<emily>
(it seems this is the only way to use dwarffs now?)
<Guest32>
Hello, I'm running Arch but my system just crashed from an update, so I'm considering wiping and installing Nix.
cinimod`` has quit [Ping timeout: 276 seconds]
<Guest32>
Does anyone know if Nix is reasonably stable and reliable at this point?
<Guest32>
Could I use it for my "daily driver," so to speak?
<selfsymmetric-mu>
Guest32: I do, for my personal and work computers. It's as stable or more stable as Arch in my experience.
cinimod`` has joined #nixos
<selfsymmetric-mu>
The first install is just as difficult as for Arch, but the second install is a breeze, since you can just build your configuration file again.
mla has joined #nixos
mla has quit [Client Quit]
<Guest32>
It uses systemd-boot, right?
<Guest32>
Is there a way to customize the bootloader like you can on Arch?
<selfsymmetric-mu>
Sure. There's a whole `boot.loader` options tree you can customize.
<cinimod``>
@zeta_0: how are those links related to nix?
<ddima>
cinimod``: which notion of improvement would you be looking for? From top of head (and somewhat out of context due to gist), I'd think that having a folder with a default.nix exposing all the overlayed packages/derivations is nicer than having it in a let block, that way you could more easily add more packages to the overlay without requiring changes. but as said, depends on what notion you're thinking of
<ddima>
here.
<cinimod``>
ddima: I wonder if rather than over-writing (overlaying) the complete derivation, I could / should just overlay bits of it?
<ddima>
cinimod``: ok, I dont know the delta to the original derivation from the top of my head, obviously, but there are a few mechanisms for doing this ofc. one would would be just overriding parameters, another could be more deeply changing the structure of the derivation using overrideAttrs or `//`. so if you are only, lets say, chainging one entry in `cmakeFlags` I'd say yeah, its probably nicer to just
<ddima>
override that (or sth like enabling lapack), but if its a more substantial change that needs to touch pieces all over the place overriding will become increasingly cumbersome so having a full copy might make more sense.
<ddima>
in the end, as long as we're not talking about upstreaming it, you can ofc do whatever feels more comfortable. with 1 such thing it doesnt matter, if you have a full copy of 20 derivations, it will of course become increasingly hard to keep them moving with the versions and all that.
slack1256 has joined #nixos
<ddima>
cinimod``: looking at the diff, which touches like 80% of the whole expression, I'd say, it probably is just fine to generally keep it as a copy like that. At the same time, it might be worthwhile considering trying to upstream most of it, if applicable (if dev.2 will ever become release).
tmaekawa has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 276 seconds]
DigitalKiwi has quit [Quit: quite.]
vld has joined #nixos
cryptomonad has quit [Remote host closed the connection]
lunik1 has quit [Ping timeout: 268 seconds]
lunik14 has joined #nixos
wavirc22 has joined #nixos
vld has quit [Ping timeout: 240 seconds]
DigitalKiwi has joined #nixos
vld has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
vld has quit [Ping timeout: 268 seconds]
wavirc22 has quit [Quit: wavirc22]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
DigitalKiwi has quit [Quit: quite.]
DigitalKiwi has joined #nixos
slack1256 has quit [Ping timeout: 250 seconds]
wavirc22 has joined #nixos
drakonis has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
<cinimod``>
ddima: I won't upstream all of it as here I am using mpi which maybe most folks won't want to do
wavirc22 has quit [Quit: wavirc22]
drakonis1 has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #75640 → mavproxy: init at 1.8.17 → https://git.io/JeQT1
wavirc22 has joined #nixos
drakonis1 has quit [Client Quit]
<rotaerk>
when my touchpad stopped responding, I checked dmesg and found this http://ix.io/24lD
<rotaerk>
I think I need to switch away from noveau
wavirc22 has quit [Quit: wavirc22]
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
juxiemaotu has quit [Remote host closed the connection]
wavirc22 has joined #nixos
juxiemaotu has joined #nixos
ShaRose has quit [Read error: Connection reset by peer]
<rotaerk>
of course... when I set services.xserver.videoDrivers = [ "nvidia" ], now it won't start X
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 276 seconds]
<rotaerk>
found a thread suggesting I make that [ "intel" "nvidia" ]. I did, and now X starts...
<rotaerk>
I keep getting a "kvm: disabled by bios" message in dmesg ... why? I don't think I'm doing any kind of virtualization, so why does it care if it's disabled
<rotaerk>
ah, hardware-configuration.nix is loading kvm-intel
<{^_^}>
[nixpkgs] @jonringer pushed commit from @marsam to master « fluent-bit: 1.3.2 -> 1.3.4 »: https://git.io/JeQkT
<juxiemaotu>
clever: got it , and for nixos is nixos-option command, all right?
gsals[m] has joined #nixos
<clever>
juxiemaotu: `nix show-config` lets you read the nix.conf file, while nixos-option lets you read any nixos config, some of the options also control nix.conf
drakonis has quit [Quit: WeeChat 2.6]
<juxiemaotu>
on nixos, is there a nix.conf by default,if i am not make one manually
<juxiemaotu>
?
<clever>
juxiemaotu: nixos will automatically update nix.conf, based on certain nixos config flags
<{^_^}>
[nixpkgs] @jonringer pushed commit from @duijf to master « hivemind: 1.0.4 -> 1.0.6 »: https://git.io/JeQk3
<{^_^}>
[nixpkgs] @jonringer merged pull request #75639 → mpd: fix-build on darwin → https://git.io/JeQUc
<{^_^}>
[nixpkgs] @jonringer pushed commit from @marsam to master « mpd: fix-build on darwin »: https://git.io/JeQkG
work_ has quit [Quit: Connection closed for inactivity]
<clever>
juxiemaotu: yeah
<rotaerk>
hmm, hardware-configuration.nix has boot.kernelModules = [ "kvm-intel" ]; But I have no need for virtualization, and I have it disabled at the bios level, so it throws errors
<rotaerk>
is there anything wrong with removing it from the kernelModules list from configuration.nix?
<clever>
rotaerk: no harm in removing it
<rotaerk>
how can I reference the version of boot.kernelModules that was imported from hardware-configuration.nix, so I can do boot.kernelModules = remove "kvm-intel" blah
<jco>
however sudo nixos-rebuild switch yields to error: The option `programs.git' defined in `/etc/nixos/nixos-config/profiles/home-manager.nix' does not exist.
jjzmajic has quit [Remote host closed the connection]
<tilpner>
Oh :D
<uros>
hey guys! installing nixos for the first time, and I have a really noob question: when setting environment.systemPackages, should i write python3.7-coulour, or nixos.python37Packages.colour? if the latter, is nixos.<foo> needed before every package?
<tilpner>
uros: No, use pkgs.python37Packages.colour
<tilpner>
...or pkgs.python3Packages.colour, or pkgs.python3.pkgs.colour
iqubic` has joined #nixos
<tilpner>
uros: And you don't need to type pkgs. for every entry
<tilpner>
> with pkgs; [ hello ]
<{^_^}>
[ <CODE> ]
<tilpner>
uros: This makes every item from pkgs available in the following expression
gkmngrgn has joined #nixos
<uros>
thank you so much!
iqubic has quit [Ping timeout: 245 seconds]
<uros>
how does pkgs.python3.pkgs.colour work? just interested in the mechanism
<tilpner>
uros: Oh, and I just checked: colour doesn't have binaries
<tilpner>
So there's no point putting it into systemPackages
<tilpner>
You don't install libraries system-wide
<uros>
tilpner: and how do I ensure they're present on the system? sorry if it's a dumb question. on arch/void, I just have an install script, so i can actually startx without issuing all the commands manually
<tilpner>
uros: What do you need it for?
<uros>
tilpner: is there another option I should be setting?
<raboof>
tilpner: (I much appreciate the pointer btw, though that particular docbook problem I happened to have seen before ;) )
<uros>
tilpner: I use it to set the colours in my qtile config which are extracted from pywal json files
<uros>
tilpner: it lets me do come transformations on the shades and such fairly easily
orivej has joined #nixos
<tilpner>
Uh oh
<tilpner>
I don't know qtile. My first guess is that you need an overlay to alter the qtile package to overrideAttrs pythonPath
<tilpner>
Install that overlay, rebuild, and see if your qtile config can now access colour
<tilpner>
This overlay may explode on you whenever qtile upgrades from python 3.7
<uros>
tilpner: Does this work by effectively making it a dependency? for context (in case it helps) qtile is configured through a config.py script, which it sources at start up. I'm using colour in it to set the "theme"
vld has joined #nixos
<{^_^}>
[nixpkgs] @jorsn opened pull request #75645 → Vim plugins.deoplete khard → https://git.io/JeQtS
<tilpner>
uros: Yes, that would add colour to the runtime closure of (now) pkgs.qtile, which I assume is used by the NixOS module for services.xserver.windowManager.qtile.enable
bvdw has quit [Read error: Connection reset by peer]
<tilpner>
Excuse for the wording, yes, it's a dependency now
bvdw has joined #nixos
<tilpner>
Although...
<tilpner>
How has this ever worked?
<uros>
tilpner: ahh, I see. thanks! just one more noob question. where would self: super: {...` go? inside environment.systemPackages? it's probably best if I do some reading on this. any sources you'd point me to?
<tilpner>
,overlays
<{^_^}>
tilpner: Did you mean overlay?
<{^_^}>
Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
vld has quit [Ping timeout: 250 seconds]
<tilpner>
But hold on, I'm less sure the overlay is correct now
<uros>
tilpner: I was always a tad fragile. I would pull in the packages i needed from the AUR in my install script. Those would always be tied to the current version of python i was running, which would be the same one qtile was running on
<uros>
It*
suchar has joined #nixos
<tilpner>
uros: I don't quite understand why the qtile maintainer put --run 'export QTILE_SAVED_PYTHONPATH=$PYTHONPATH' in there
<tilpner>
uros: Either that's single-quoted to use an external PYTHONPATH, or it's supposed to be double-quoted (to use pythonPath), and was just always broken?
<tilpner>
In eb3d20761169696f78bfd40afb92ab099c7507a3 orivej converted it from double-quotes to single-quotes
bahamas has joined #nixos
bahamas has joined #nixos
<tilpner>
Oh, I think I got it. This is done to not leak dependencies to the config you mentioned
ng0 has joined #nixos
<uros>
tilpner: and I'm assuming because of the encapsulation that nix does, it wouldn't be able to find a globally installed nix dependency (sorry for using the word again, I don't know the lingo yet)
<uros>
it's quite a mindset change, sorry if i'm being slow
<tilpner>
No reason to be sorry, nixpkgs is weird
captn3m0 has joined #nixos
<tilpner>
So now I'm suspecting that qtile may be meant for use with a global PYTHONPATH
hmpffff has joined #nixos
<uros>
seems to make sense. there's no way anyone packaging it could know what people will be importing in their config.py
<tilpner>
orivej: Could you confirm this?
<bahamas>
is there a way to install a package in `nix-shell` while at the same time overriding something about the package? in this particular case, I want to install ghc with the time package. the issue is that I want to use a different version of time, which nix needs to build and the build fails
fendor has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<betawaffle>
when i'm a nix repl, and i evaluate a path (e.g. ./foo), it prints as an absolute path as i would expect. but when I interpolate it into a string, it gets transformed into the path to that thing in the nix store. what's the difference between the two in the context of the nix repl?
<betawaffle>
my question is really, why isn't the path converted to the nix store version in both cases?
<ToxicFrog>
Trying to `nixos-rebuild` generates a bunch of "mkdir: cannot create directory '/homeless-shelter': Permission denied" and then errors out. What causes this, and how do I fix it?
apeli has joined #nixos
<ToxicFrog>
...ok, making a seemingly unrelated change to one of my derivations fixed it
<ToxicFrog>
Weird
xkapastel has quit [Quit: Connection closed for inactivity]
<betaboon>
how do people handle services that use the `configFile` pattern when deploying with nixops ?
<DigitalKiwi>
ToxicFrog: when i've had homeless-shelter errors it's usually from something trying to write to $HOME during a build sometimes setting HOME to $TMPDIR fixes
fusion809 has joined #nixos
<ToxicFrog>
DigitalKiwi: aha. Knowing that makes it clear what was happening. Thanks.
eon` has joined #nixos
<DigitalKiwi>
yay :D
gkmngrgn has quit [Ping timeout: 268 seconds]
eon` has quit [Ping timeout: 246 seconds]
erictapen has joined #nixos
uros has quit [Remote host closed the connection]
apeli has quit [Ping timeout: 276 seconds]
<ddima>
betaboon: It's a bit confusing, but strings can have a context. When a string is in any way merged with a path, like interpolation or concat, it transfers this into into the string context and so nix now knows its a "path string", while a "bare" path still remains a path type and they render differently. Maybe this clarifies a bit: https://gist.github.com/d-goldin/dd022b2264337a7d739e1fa8f7315f86
apeli has joined #nixos
<tilpner>
betawaffle: ^
<betaboon>
ddima: I'm just looking at nixops `deployment.keys` option would that be a feasible approach ?
<betawaffle>
i want to build coreboot firmware for my apu2 using nix, instead of that ^
<betawaffle>
btw, i haven't even been able to get that to work yet
detran has quit [Ping timeout: 268 seconds]
Jackneill has joined #nixos
Jackneill has quit [Remote host closed the connection]
civodul has joined #nixos
noudle has joined #nixos
<wrl>
so, I'm trying to use get linux 5.4 working on my system. i've got boot.kernelPackages = pkgs.linuxPackages_5_4; in configuration.nix but when i nixos-rebuild switch, i get "attribute linuxPackages_5_4 missing"
<wrl>
the packages are listed on the nixos.org package list, so i'm not sure what i'm doing wrong here
<ddima>
or also `nix repl '<nixpkgs/nixos>' -> config.networking.hostName` (or `:l <nixpkgs/nixos>`)
primeos has joined #nixos
<dirkx__>
aanderse: looking at your advice -- changed name to pname; but am now getting a `error: derivation name missing' on a simple nix-build $NIXPKGS -A mod_ca. What is the best way to debug/trace this down ?
bvdw has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « qbittorrent: 4.1.9.1 -> 4.2.0 (#75360) »: https://git.io/JeQGg
<aranea>
ddima: Yeah, that's what I actually did. I just hadn't realized I could just load nixos/. :)
mcbeth has joined #nixos
iqubic` has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
NGravity has joined #nixos
<dirkx__>
is there a command to reset the entire store / to be sure you do not have some cruft of earlier builds ? I had a disk full error; and am starting to wonder if something is in an odd state.
<qyliss>
Have you tried 'sudo nix-collect-garbage -d'
<qyliss>
That will remove everything left over in the store that you don't need any more, including previous generations of your system and user profiles
<dirkx__>
Hmm - after a disk full error (and recoveering by freeing a few gig)-- nix-store --verify --check-contents --repair -- now gives me "error: executing SQLite statement 'delete from ValidPaths where path = ?;': constraint failed (in '/nix/var/nix/db/db.sqlite')"
<dirkx__>
qyliss: thanks - that is nice to know. Meanwhile suspect thigns are rather corrupted - so will simply reset the freebsd-jail it is living in; it lives on zfs so no sweat.
<qyliss>
If you think things are corrupt you can also try 'nix-store --verify --repair --check-contents', which will check the saved hash of each store path matches its contents, and if not rebuild if possible
<qyliss>
But maybe easier to just throw it away if it's easy enough for you :)
<zeta_0>
qyliss: ok,give me one second, then i'll show you the pastebin
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #75358 → mumble: build with pulseaudio support on linux and add petabyteboy to maintainers → https://git.io/JeSPi
<qyliss>
dirkx__: does 'lib.attrNames mod_ca' include buildInputs?
<{^_^}>
[nixpkgs] @flokli opened pull request #75657 → gtkwave: build with gtk3 → https://git.io/JeQZf
<betawaffle>
erictapen: ok, so here's my first question. what do i do about git submodules in the nix world?
<ashkitten>
the past few times i've upgraded my system i've been getting `error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused`
<betawaffle>
coreboot has submodules
<dirkx__>
qyliss: I am certainly not setting that -- lemme check.
<dirkx__>
qyliss: thanks for that hint -- found how dlib is doing it. that should work.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dirkx__>
aanderse: how important is it to not inherit in meta -- fine to inherit things like maintainers, licenses, etc -- or should I copy / make these hardcoded as much as posisble ?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mexisme_ has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @primeos opened pull request #75660 → rav1e: init at 0.1.0 → https://git.io/JeQZ2
scasc has joined #nixos
doublex has quit [Read error: Connection reset by peer]
doublex has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #66516 → Add `python3Packages.ckcc-protocol` package, and list it as a dependency for `electrum`. → https://git.io/fj5kg
<zeta_0>
rycee: i am not sure if the syntax it correct or not?
kenran has joined #nixos
zupo has joined #nixos
<dirkx__>
Why is nix-env -f $NIXPKGS -q -a XXX --xml --meta always showing me an empty <meta name="maintainers" type="strings"></meta> block ? Even for packages that have it filled out ?
<rycee>
zeta_0: Yeah, that looks better.
kenran has quit [Remote host closed the connection]
jgeerds has joined #nixos
<zeta_0>
rycee: cool, i am going to try another rebuild, i'll let you know if it works or not
cinimod`` has joined #nixos
<{^_^}>
[nixpkgs] @adisbladis merged pull request #75618 → emacsMacport: Rename emacsVersion attribute to version → https://git.io/JeHxq
<erictapen>
betawaffle: I guess that clone is unnecessary most of the time, but maybe you want to give `master` as the $1 to the script? then you'd want to have the upstream sources.
<betawaffle>
$1 in my case is v4.11.0.1
<rycee>
zeta_0: I'm on the phone. But `a = { b = 1; }; { c = 2; };` is not valid Nix syntax.
<erictapen>
betawaffle: mh that tag seems to be not present at upstream, but it looks like a rather dangerous way to specify modified sources. What if upstream introduces that tag as well? Anyway, for your case it should be fine to only fetch the pcengines fork.
<erictapen>
betawaffle: you are planning to bring this into nixpkgs, right?
<betawaffle>
no idea, this is for me. but i'm open to bringing it into nixpkgs if anyone wants it
Guest54 has joined #nixos
<Guest54>
Is there a way to do EFISTUB on NixOS, or is systemd-boot recommended?
<betawaffle>
there are definitely a number of nix users that have apu2s
<erictapen>
betawaffle: yeah I have (and love) one too ;)
<betawaffle>
i got an apu2e4 the other day, and successfully flashed the latest firmware. now i'm itching to build it myself :P
<erictapen>
betawaffle: personally I'd call it coreboot-pce-apu2 but I think this only matters if you create a PR and then people'll give you opinions on it
<erictapen>
betawaffle: ^^
<betawaffle>
ok cool, will use that name
<betawaffle>
my ultimate plan is to let the user customize it with a nixos module
phreedom has quit [Remote host closed the connection]
<zeta_0>
rycee: i'm confused, which parts are: a, b, and c ?
<Guest54>
Is there a way to do EFISTUB on NixOS, or is systemd-boot recommended?
<zeta_0>
rycee: it's hard keeping tracking of all those semi-colons and braces
lsix has joined #nixos
vld has joined #nixos
domogled has quit [Quit: domogled]
domogled has joined #nixos
vld has quit [Ping timeout: 276 seconds]
cosimone has joined #nixos
AstroBadger has quit [Read error: Connection reset by peer]
turion has joined #nixos
AstroBadger has joined #nixos
<{^_^}>
[nixpkgs] @petabyteboy opened pull request #75664 → tipp10: init at 3.1.0 → https://git.io/JeQn9
<dirkx_>
does anyone know a good indent.pro file for nixos defaults.nix files ? Mine seem to not do the [ correct in the non ‘=‘ following cases
ddellacosta has joined #nixos
<betawaffle>
erictapen: woo, first build error! how do i fix stuff like "/nix/store/506nnycf7nk22x7n07mjjjl2g8nifpda-bash-4.4-p23/bin/bash: util/xcompile/xcompile: /usr/bin/env: bad interpreter: No such file or directory"
<betawaffle>
it's trying to use /usr/bin/env, which we don't want, obviously
<betawaffle>
i assume it's something involving one of the substitute* helpers?
<erictapen>
betawaffle: could you run nix-build with --keep-faild and look at the sources in the build directory? I'd be interested what interpreter is actually used in utils/xcompile/xcompile
<betawaffle>
#!/usr/bin/env bash
<erictapen>
betawaffle: weird
<betawaffle>
note, that i haven't set up any dependencies for this build yet
<erictapen>
betawaffle: normally they get replaced quite fine as it happenend in your case. the sources end up with the right interpreters, weird that that still fails.
<betawaffle>
ok, well let me try --keep-failed
<betawaffle>
(i was looking at the original sources)
<erictapen>
betawaffle: ah cool! what was the problem? I just verified, that it was'nt specific to that file.
<betawaffle>
i added patchShebangs . to postPatch
<betawaffle>
and it fixed a bunch of stuff
<erictapen>
great
<erictapen>
betawaffle: yeah that next error message looks complicated (and I really should log off^^). good luck with that!
<betawaffle>
thanks!
mexisme_ has joined #nixos
erictapen has quit [Quit: leaving]
o1lo01ol1o has joined #nixos
<sshow>
I found my LC_TIME place too ! i18n.extraLocaleSettings
mexisme_ has quit [Ping timeout: 246 seconds]
m_ has joined #nixos
<dirkx>
andre: no - I only did the 6 easy redwax modules — the others I'll do in another batch — as they are much more complex to test if we do not have the base ones.
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
m_ is now known as mehlon
<dirkx>
andre: macports & freebsd ports and derivatives you have them all - but it has a curses-menu or you need to provide a config file. Not as clean as nixos isolated/minimal modules.
cinimod`` has quit [Ping timeout: 265 seconds]
zupo has quit [Ping timeout: 240 seconds]
<mehlon>
hey there
<mehlon>
I recently just installed nixos on both my laptop and pc, it's pretty good!
jophish has quit [Remote host closed the connection]
<mehlon>
now, is there some way to more conveniently install packages? nix-env -i is discouraged and slow, and doing nix-env -iA nixos.package every time is a little annoying
<dminuoso>
mehlon: `nix-env -iA nixos.package`
zupo has joined #nixos
<dminuoso>
mehlon: Or modify your /etc/nixos/configuration.nix
<mehlon>
I see
<dminuoso>
mehlon: The latter is probably the more sensible approach.
<dminuoso>
mehlon: As it fits more nicely into the declarative system specification approach
<mehlon>
I was thinking something like a dynamic config file that is updated whenever you install something
<mehlon>
I think that doesn't exist yet but it would be nice
<mehlon>
then you could quickly install things from the command line and then remove them from the config or something like that
<selfsymmetric-mu>
That is _wonderful_ idea.
<selfsymmetric-mu>
Anyone know if that's been suggested before? Maybe there's a tracking issue?
growpotkin has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
turion has quit [Ping timeout: 246 seconds]
zeta_0 has joined #nixos
logzet has quit [Ping timeout: 245 seconds]
<dirkx>
mehlon: we capture on some of the pre-CI machiens such a list with a simple periodic `nix-env -q'
zupo has joined #nixos
<betawaffle>
hmm, there's no nix package that has gcc-ada / gnat?
o1lo01ol1o has quit [Remote host closed the connection]
zeta_0 has quit [Client Quit]
<selfsymmetric-mu>
,locate gcc-ada
<selfsymmetric-mu>
,locate gnat
lsix has quit [Quit: WeeChat 2.6]
<{^_^}>
Couldn't find in any packages
<{^_^}>
Found in packages: vim, glib.dev, vimHugeX, gnatsd.bin, vimPlugins.ale, bash-completion, neovim-unwrapped
<manveru>
,locate bin gnat
<{^_^}>
Found in packages: gnatsd.bin
<mehlon>
it would probably only take a shell script and maybe an overlay?
<mehlon>
or something like that
<qyliss>
gnat was removed from nixpkgs I believe, because it was too hard to build
<qyliss>
You can probably find the issue about it
<pingiun[m]>
which package provides the `nix` command?
<pingiun[m]>
I want to use it in a builder
<mehlon>
nix itself, right?
<qyliss>
,locate bin nix
<{^_^}>
Found in packages: nixFlakes, nixStable, nixUnstable
<qyliss>
But you can't really use Nix inside Nix (yet? I think?)
<mehlon>
I saw there's that Nix is actually available in Guix
<mehlon>
but not the other way around!
<DigitalKiwi>
mehlon: https://gist.github.com/Kiwi/e7c60ce4684fd47513ade73024694c80 this could be better and as stated nix-env isn't the best way (I use it for things I don't want to use nix-shell but am not ready to update configuration.nix (eventually I move everything there and nix-env -e))
<charukiewicz>
How can I specify a system version that doesn't rely on the defined nix-channel?
<manveru>
mehlon: just wrote that in a few minutes, but based on this you could implement what you want i guess :)
<evils>
mehlon: i don't think so
<mehlon>
ah nevermind
o1lo01ol1o has joined #nixos
<mehlon>
right, so can I somehow enable an ssh server without also updating the whole system?
acarrico has joined #nixos
Taneb has quit [Quit: I seem to have stopped.]
<mehlon>
because I'm trying to, yknow, remotely update the system
Taneb has joined #nixos
<manveru>
ssh should run by default, unless you turned it off
<mehlon>
I'm using the armv7 image for rpi
<evils>
i want to do something like `makeWrapper ${kicad-base}/bin/kicad $out/bin/kicad`
<manveru>
evils: grep for `wrapProgram`
<manveru>
you might have to symlink it to `$out/bin/kicad` first though
kraem has quit [Ping timeout: 252 seconds]
<evils>
manveru: i started with wrapProgram, and i'm trying to split kicad's building from its wrapping, looks like wrapProgram doesn't take symlinks
philr has joined #nixos
<DigitalKiwi>
manveru double points if you add a pkgs.writeShellScriptBin for your nix-install
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<manveru>
DigitalKiwi: i'd maybe just make it a profile instead, to avoid dealing with nixos-rebuild or home-manager in this case
<manveru>
i'm sure someone wrote something like this before, just too lazy to search :P
<DigitalKiwi>
i screwed up my path somehow i used to have ~/bin in it but now it's not :/
<DigitalKiwi>
manveru: did you see my gist
<manveru>
nope
<manveru>
ah, ok
<manveru>
i avoid `nix-env -iA` as much as possible... just ends up in a mess
<betawaffle>
darn... but i can't build coreboot without gnat :(
<qyliss>
I build coreboot in a container
vld has joined #nixos
<betawaffle>
with nix, or by hand?
jgt has joined #nixos
<qyliss>
By hand
<betawaffle>
well i'm trying to build it with nix. i can build it by hand just fine
zupo has joined #nixos
<DigitalKiwi>
manveru: i avoid nixos-rebuild as much as possible because it breaks everything temporarily (mouse, internet, xorg, plasma...) :P so I move things from nix-env to my configuration when it's convenient
mexisme_ has joined #nixos
<betawaffle>
DigitalKiwi: that's not good...
o1lo01ol1o has joined #nixos
<manveru>
DigitalKiwi: then just make a declarative profile for it?
<qyliss>
betawaffle: then you'll first have to fix gnat in Nixpkgs, or otherwise build it yourself, which is not going to be easy
o1lo01ol1o has quit [Remote host closed the connection]
<betawaffle>
because it requires itself to build?
<DigitalKiwi>
manveru: what do you mean?
vld has quit [Ping timeout: 250 seconds]
tim-hilt has joined #nixos
o1lo01ol1o has joined #nixos
<DigitalKiwi>
betawaffle: what's not good
<betawaffle>
that nixos-rebuild breaks things for you
<qyliss>
betawaffle: because it isn't in nixpkgs
<DigitalKiwi>
restarting services tends to kill processes, when those services include bluetooth and internet and changing things that kde is running...
jgt has quit [Ping timeout: 276 seconds]
cinimod`` has quit [Ping timeout: 276 seconds]
averell has quit [Remote host closed the connection]
scasc has quit [Ping timeout: 268 seconds]
<DigitalKiwi>
manveru: most of the things in my nix-env are packages that i fix that haven't made it to nixos-unstable yet
<manveru>
DigitalKiwi: i use `niv` and `home-manager` for that
<DigitalKiwi>
hurry up evils all i have are kicad and wire-desktop and i can get rid of wire-desktop by now :P
<DigitalKiwi>
never heard of niv, never cared enough to use home-manager
<evils>
DigitalKiwi: go read all the documentation and all the existing packages and tell me how to split the building of kicad from the wrapping
<evils>
DigitalKiwi: or use an overlay?
* DigitalKiwi
suddenly has an urge to go cut some wooden lambda
<DigitalKiwi>
and overlays annoy me
<mehlon>
so I'm on nixos stable, but can I use the gnunet service from unstable?
o1lo01ol1o has quit [Remote host closed the connection]
<charukiewicz>
I'm trying to build a system on my local machine and then deploy it to a target server with nix-copy-closure. For some reason the local nix-build produces a system with version 19.09pre-git, even though the latest seems to be 19.09.1589.57b7b019812 (Loris). Why is this happening?
<selfsymmetric-mu>
DigitalKiwi: Yeah, I never use overlays. I don't care for global settings that affect other variables at a distance.
o1lo01ol1o has joined #nixos
<selfsymmetric-mu>
I prefer my definitions local, denotational, and declarative.
Guest54 has quit [Ping timeout: 276 seconds]
<manveru>
i use niv because i have tons of projects each with pinned versions, trying to update them manually just takes too much time :P
<manveru>
eventually flakes will fix that, but until then that's my weapon of choice
<zeta_0>
error: The option value `home-manager.users.zeta.programs.git.extraConfig.url.git://github.com/ghc/packages-' in `/etc/nixos/configuration.nix' is not of type `boolean or signed integer or string'.
<zeta_0>
building the system configuration...
<earldouglas>
Recently I'm getting `ERROR ... main: execvp(*argv, argv): No such file or directory` on multiple programs. Could something be wrong with my Nix store, e.g. bad links?
<{^_^}>
[nix] @edolstra pushed to master « Fix progress bar »: https://git.io/JeQWY
<zeta_0>
rycee: i know i have the wrong version in imports towards the top of the file, do i even need that import because i also have home-manager installed toward the bottom of the file?
<jwinnie>
You can `guix import nixpkgs` in GuixSD
<mehlon>
unfortunately I can't run guix on my laptop
<mehlon>
no wifi drivers
<duairc>
clever: You seem to have a lot of experience with Hydra. I'm trying to set up my first hydra build, and I get the error "command `git rev-parse master' failed with exit status 32768". It might have something to do with submodules?
<clever>
duairc: what do you have set as the value under build inputs?
<jwinnie>
It's what happens when you're a free software purist
<duairc>
clever: Ah, of course
<matthuszagh>
mehlon: you can override the kernel but of course that's more work
<matthuszagh>
there's a post about how to do this if you're curious
<duairc>
Okay, hmmm, maybe that's not the problem then
<clever>
duairc: one sec
<duairc>
Well, the current evaluation hasn't failed yet, so let's see
<clever>
duairc: run `sudo -u hydra -i` and then `hydra-eval-jobset <project> <jobset>` if you want to see cleaner logs
<duairc>
clever: Thanks for that, that's good to know
<duairc>
It seems to have gotten further than the last time
zeta_0 has quit [Quit: doing a rebuild]
<jwinnie>
When will Nix get KDE 5.17?
<jwinnie>
I'm on unstable but it's still 5.16
<mehlon>
matthuszagh: yeah I'd need to download the kernel first....
<mehlon>
using wifi..
<mehlon>
:)
o1lo01ol1o has quit [Remote host closed the connection]
<mehlon>
I guess the more sensible option is to just wait and use nix for now
<clever>
duairc: what did you give hydra as the nix expr?
<duairc>
The default.nix of one my projects
<clever>
duairc: ah, that should be fine
<matthuszagh>
mehlon: it's been a while since i did this but i think you can set it up with another system so you don't need wifi at first...
o1lo01ol1o has joined #nixos
<mehlon>
yeah I know but ehh its a laptop its not meant for compiling kernels I think
<duairc>
clever: It seems to work now. It looks like it was just tripping up on nixpkgs pointing to nixos/nixpkgs-channels instead of nixos/nixpkgs, maybe because nixpkgs-channels doesn't have a master branch.
<duairc>
It's not a big deal anyway, I use a pinned nixpkgs within my project, it just needs <nixpkgs> to bootstrap
orivej has quit [Ping timeout: 240 seconds]
<clever>
duairc: builtins.fetchTarball can be used to bootstrap
<matthuszagh>
in any event i tried both and i very much recommend nix. guix doesn't support some hardware configurations. for instance i'm using a btrfs filesystem across two drives and guix didn't have support for this yet
<matthuszagh>
couldn't have been easier with nix
<matthuszagh>
but yeah the side-by-side thing might be worth a go
smatting has quit [Ping timeout: 246 seconds]
<duairc>
clever: Yeah, I know, that would probably be better
<duairc>
It's actually building everything! This is great
<duairc>
Can I use hydra as a binary cache?
<clever>
duairc: yep, it already serves a binary cache over its http ui
<gyroninja>
What is the correct way to setup gpg? Just adding the gnupg package makes it complain about `No pinentry`. I can mitigate it by using --pinentry-mode loopback, but I would prefer to actually get it working by default.
<clever>
duairc: line 52 tells hydra how to sign what it serves
<duairc>
Okay, cool
smatting has joined #nixos
<duairc>
I'm not sure how signing/verifying packages works in NixOS, but I can probably do my own research about that, you've given me some great pointers
<duairc>
clever: I really appreciate you getting back to me so quickly, you've saved me an awful load of time. Sorry to call you out directly to help me with this but your name was the one that kept popping up when trying to search about this!
<clever>
duairc: just fill in the url of your hydra, and its public key, the `man nix-store` says how to make a keypair
<duairc>
clever: Okay, great, that's not so bad
<infinisil>
gyroninja: Use gpg-agent
<infinisil>
programs.gnupg.agent.enable = true
jwinnie has quit [Ping timeout: 250 seconds]
<gyroninja>
infinisil: that did not seem to work
<matthuszagh>
after reading a bit about runtime enviro variables, it looks like the way to do this is to set the variable in mkShell and invoke with nix-shell. is this accurate? So runtime variables cannot be set in mkDerivation?
<gyroninja>
wait nvm
<duairc>
Great, they're just Ed25519 keys, I can reuse my terraform module that generates wireguard keys for this
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
chloekek has joined #nixos
<gyroninja>
Yeah, it does not seem to be working
cinimod`` has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
gyroninja: Does gpg-agent run? Check with `systemctl --user status gpg-agent`
o1lo01ol1o has joined #nixos
<infinisil>
Hm no
Henson has joined #nixos
<infinisil>
`systemctl --user status gpg-agent.socket` maybe
<gyroninja>
Yes, gpg-agent is running
<infinisil>
So what exactly doesn't work, what error do you get when you run what?
<gyroninja>
For example `gpg --decrypt <filename>` fails with `gpg: public key decryption failed: No pinentry`, but `gpg --pinentry-mode loopback --decrypt <filename>` asks for my passphrase and works
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
jwinnie has joined #nixos
<gyroninja>
do I need to specify a pinentry program spearately? I assumed the derivation would have included one.
<infinisil>
gyroninja: Does gpg-agent have any logs when you do the former?
torque has joined #nixos
<jwinnie>
I've enabled Plymouth but it doesn't show up when I boot
o1lo01ol1o has quit [Remote host closed the connection]
<jwinnie>
It suppresses the console messages but it doesn't show any graphics
matthuszagh has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
smatting has quit [Ping timeout: 276 seconds]
o1lo01ol1o has joined #nixos
lovesegfault has joined #nixos
<gyroninja>
Intensity: Relevant error from the log `can't connect to the PIN entry module '/nix/store/ipmxk3zi2nx5zj69zhz1k7yn72s0nn5f-gnupg-2.2.17/bin/pinentry': IPC connect call failed`
<lovesegfault>
infinisil: I think this failure is spurious
<lovesegfault>
Could someone manually restart it?
jwinnie has joined #nixos
<infinisil>
lovesegfault: Just restarted it :)
<lovesegfault>
infinisil: <3
<lovesegfault>
thank you
vld has quit [Ping timeout: 276 seconds]
is_null has joined #nixos
<Laarlf>
can someone point me to examples on how to throw services into containers? especially webservices and minecraft would interest me. i think i dont quite understand container networking
<gyroninja>
infinisil: okay that fixed it. Thanks
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil>
:)
zeta_0 has joined #nixos
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #75670 → bless: init at 0.6.2 → https://git.io/JeQlh
<jwinnie>
It really bothers me that Okular Kirigami is packaged together with Okular
<jwinnie>
This is on both Arch and Nix
<jwinnie>
I don't need two PDF viewers!
<selfsymmetric-mu>
What if one breaks and the manual to fix it is a PDF?
<selfsymmetric-mu>
This is why I have two of everything installed.