<jumper149>
+ that option that you told me, didnt push it yet
<infinisil>
That looks pretty standard
<jumper149>
yeah :D
<infinisil>
jumper149: What do you get for `nix-instantiate --eval --strict '<nixpkgs/nixos>' -A config.systemd.services.mpd.serviceConfig.StateDirectory`
<infinisil>
The PR removed these rules, which were previously used to create the directories automatically
<infinisil>
But, these rules can neither be removed, nor changed, without changing nixpkgs itself
<jumper149>
Im not really sure what the outcome of that would be?
<jumper149>
I tried it and it worked?
<infinisil>
Oh
<infinisil>
Great
<jumper149>
Do I have to fear anything bad happening now?
<infinisil>
Oh actually no it's fine
<infinisil>
systemd.tmpfiles.rules only do their thing when rebuilding or rebooting, *but* these rules there only create the directory if it doesn't exist yet
<infinisil>
Meaning once it's created, the rule doesn't trigger again
cinimod has quit [Ping timeout: 245 seconds]
<jumper149>
What are the rules even doing?
<infinisil>
So if you remove /var/lib/mpd and rebuild, you should see that it has 0755 permissions. But once you start mpd it should fix this to 0775
<infinisil>
And if you don't remove /var/lib/mpd, the rules don't trigger, and the permissions stay at 0775
<infinisil>
jumper149: Just creating the /var/lib/mpd directory
m0rphism has quit [Ping timeout: 260 seconds]
CMCDragonkai1 has joined #nixos
<jumper149>
ah so d stands for directory :D I was worried it was delete
<infinisil>
Ah hehe yeah
<infinisil>
Docs for these letters are in `man tmpfiles.d` btw
Guest24343 has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos
<jumper149>
infinisil: Thank you for helping me :)))
vidbina_ has quit [Ping timeout: 264 seconds]
shibboleth has quit [Quit: shibboleth]
<infinisil>
Np :)
supersandro2000 has quit [Disconnected by services]
ahmed_elgabri has quit [Ping timeout: 272 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<veleiro>
my cmake derivations i'm trying to make are always failing at cloning a repo from github referenced within the cmake, what do i need to include?
<patagonicus>
Oh, interesting. Chrome broke for me during last nights automatic upgrade. It's now failing to load libxshmfence.so.1 - anyone seen that before? With a quick glance I couldn't find an issue on Github about it. This is on 20.09.
lawr3nce has quit [Remote host closed the connection]
<za1b1tsu>
Hi, so I notice some apps (hexchat e.g.) are not setup as desktop app. Do I have to add something in the configuration.nix or something like that?
<ixxie>
I need some help configuring a Kodi mediabox in NixOS on a Raspberry Pi; both my XServer and Wayland attempts have failed for reasons I cannot fathom, and I am not sure how to debug: https://gist.github.com/ixxie/fd51f9f2094de7c38b06f1ca11194992
<CMCDragonkai>
clever: why realpath?
<CMCDragonkai>
clever: just to get the absolute path?
<clever>
CMCDragonkai: yeah
<CMCDragonkai>
clever: putting that into the buildPhase
<clever>
yeah, anywhere before $HOME gets used
griff_ has joined #nixos
__monty__ has joined #nixos
dsrt^ has quit []
<attila_lendvai>
za1b1tsu, it takes some time for the desktop icons to show up in gnome after installation. maybe that?
<za1b1tsu>
attila_lendvai, still does not show up, does hexchat show for you?
<attila_lendvai>
za1b1tsu, yes, it's there. i've also noticed it, googled it, but then i settled to ignore and just wait it out...
<za1b1tsu>
attila_lendvai, I can't even add it to favorites... weird
nrh^ has joined #nixos
<attila_lendvai>
za1b1tsu, might even need a restart, but i think it shows up without logout/login eventually
<za1b1tsu>
I did restaruat, a couple of times
<{^_^}>
[nixpkgs] @primeos pushed to release-20.09 « google-chrome-dev: Add the new libxshmfence dependency »: https://git.io/JqIgu
<angerman>
clever: can I somehow correct "error: hash mismatch importing path '/nix/store/ran6ck2xajz77dmkxnvnpyh2547h8yw5-wheel-0.35.1-source';"?
<CMCDragonkai>
I'm trying to use rpm inside a nix-build and I keep getting
<CMCDragonkai>
error: cannot open Packages database in /var/lib/rpm
<CMCDragonkai>
error: Unable to open temp file: Permission denied
<CMCDragonkai>
cannot open Packages database in /var/lib/rpm
<CMCDragonkai>
Unable to open temp file: Permission denied
<clever>
angerman: that happens if something in /nix/store was modified after building, you must either `nix-store --delete` it, or `nix-store --repair-path` it
<clever>
CMCDragonkai: run vmTools.runInLinuxVM on the derivation
<clever>
CMCDragonkai: then it gets ran as root in a vm, and has free access to a fake /, but only the products in $out will persist
<angerman>
clever: thanks!
FreeVariable has quit [Quit: authenticating]
FreeVariable has joined #nixos
<CMCDragonkai>
clever: does that run really in a VM?
<CMCDragonkai>
clever: my derivation has to use the `rpm` package, it scalling stuff that calls it interactively
<CMCDragonkai>
clever: anyway im trying it now
mananamenos has joined #nixos
<CMCDragonkai>
clever: i got a bunch of no space left on device errors
<CMCDragonkai>
when using that
<CMCDragonkai>
memory size increase?
<clever>
CMCDragonkai: or disk size, line 404
<CMCDragonkai>
not sure
<CMCDragonkai>
what you mean
<CMCDragonkai>
how do to set this?
<clever>
its just another attr to the derivation
<clever>
so add size=8192;
<mananamenos>
hi, i've done the nixos section part https://github.com/chisui/zsh-nix-shell and installed oh-my-zsh package. However, from zsh doing `nix-shell -p hello` drops me into bash. What am i missing?
<CMCDragonkai>
add it to whree?
<CMCDragonkai>
overrideAttrs?
<clever>
mananamenos: nix-shell requires bash, because all of the functions within nixpkgs assume you have bash
<clever>
CMCDragonkai: just add it to the derivation you passed to the vm tools
<CMCDragonkai>
qemu-system-x86_64: warning: 9p: degraded performance: a reasonable high msize should be chosen on client/guest side (chosen msize is <= 8192). See https://wiki.qemu.org/Documentation/9psetup#msize for details.
<mananamenos>
clever, thanks. I can neither do this: enter tmux, nix-shell -p hello, then split another pane. The newly created tmux pane is not in nix-shell. Is there a way to do this?
<CMCDragonkai>
clever: final errors
<CMCDragonkai>
shrinking RPATHs of ELF executables and libraries in /nix/store/39gyllb6ffppkn8wpy3q2lw9p9vhx099-typescript-demo-electron-1.0.0-linux-x64.rpm
<CMCDragonkai>
/nix/store/zrh1cskgv6kc8bh7hzfii14h2nck33qv-patchelf-0.12/nix-support/setup-hook: line 7: /dev/fd/62: No such file or directory
<CMCDragonkai>
/nix/store/kxw6q8v6isaqjm702d71n2421cxamq68-make-symlinks-relative.sh: line 6: /dev/fd/62: No such file or directory
<clever>
mananamenos: you would have to run tmux inside the nix-shell
<clever>
mananamenos: thats how env vars work
<CMCDragonkai>
patchelf setuphook errors /dev/fd/62 no such file!?
<clever>
CMCDragonkai: if you run `env | grep 62` in the `buildPhase` does that path come up anywhere?
<CMCDragonkai>
clever: will need to run it again
<CMCDragonkai>
to try
griff_ has joined #nixos
<mananamenos>
clever, right, this works well. Then I suppose I'm getting rid of zsh as it does not work with nix-shell. Can the bash history be shared between nix-shells and system itself?
stree has quit [Ping timeout: 245 seconds]
<clever>
mananamenos: same rules as normal, the history gets commited to ~/.bash_history when the shell exits, and read when the shell starts
<clever>
options may exist to change that in bash, but ive not bothered looking into them
suzanne has quit [Quit: Leaving]
coniferous-cube4 has joined #nixos
<CMCDragonkai>
clever: no nothing
<CMCDragonkai>
clever: but maybe i can disable the last phase
<CMCDragonkai>
clever: cause i wont need that
<CMCDragonkai>
clever: but dont know why thats causing the error
<clever>
angerman: this lets you wrap a source (like the pipes in haskell), to create a new source, that can only consume N bytes before creating a fake eof
ddellacosta has joined #nixos
<clever>
and it somehow didnt have enough bytes
<clever>
never seen it before though, you would need to get a backtrace
<angerman>
I'll try sending from a different machine this is just getting weird.
<clever>
angerman: run it under gdb and `catch throw` to catch it
<jboy>
I've booted from the latest live ISO and I'm trying to install nixos, but even though wpa_supplicant seems to be running fine and connecting to networks, I cannot ping internal IPs, let alone resolve remote addresses. Any ideas what might be going on?
<srhb>
jboy: I usually use the nmtui interface for networkmanager instead of direct wpa supplicant because I can never remember if I need to do manual dhcp wrestling when going the low level route.
<gchristensen>
^ if anyone is up for a brief perl review :)
<srhb>
jboy: You can try restarting the dhcp client to see if that's it. I think it's called dhcpcd.
<srhb>
jboy: (systemctl status will know for sure)
mmmattyx has joined #nixos
<jboy>
thanks srhb
cognemo has quit [Quit: cognemo]
<jboy>
I'm trying nmtui now. Oh yay!
<jboy>
I can resolve addresses
<srhb>
jboy: huzzah :)
cognemo has joined #nixos
<simpson>
gchristensen: LGTM although you'll probably want somebody with more emotional investment to actually test it and make sure it does the right thing.
<gchristensen>
thanks :)
<gchristensen>
mehh, cool, tests fail
<jboy>
nixos-install ran now, srhb. thanks again!
jtcs has quit [Ping timeout: 256 seconds]
<srhb>
jboy: You're welcome, enjoy :)
<srhb>
jboy: (Remember to have wifi set up in the final system config! Been there, done that ;))
<jboy>
oh weird, the auto-generated hardware-configuration.nix didn't set up my root partition as a luks device, so I didn't get prompted for a password
<veleiro>
how do you install linux kernel headers in nixOS?
<veleiro>
just add pkgs.linuxHeaders ?
rj has joined #nixos
<clever>
,libraries veleiro
<{^_^}>
veleiro: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
graf_blutwurst has quit [Remote host closed the connection]
<veleiro>
lol
<veleiro>
true
<veleiro>
thanks for the suggestion
vidbina_ has quit [Ping timeout: 276 seconds]
stree has joined #nixos
yangm has quit [Quit: Idle for 30+ days]
flip[m] has quit [Quit: Idle for 30+ days]
gustavderdrache has joined #nixos
<ixxie>
(sorry for repeating this - im hoping someone came in who knows the answer) I'm trying to run Kodi on NixOS on a Raspberry Pi 3B; I can get neither the XServer nor Wayland configs to run: https://gist.github.com/ixxie/fd51f9f2094de7c38b06f1ca11194992
PorkySpine has left #nixos [#nixos]
sangoma has quit [Read error: Connection reset by peer]
<zalaare>
If I have `networking.firewall.enabled = false;` then should I assume that `networking.firewall.extraCommands= "ip route add <stuff here>";` will not ever be executed?
<clever>
zalaare: that looks correct
<zalaare>
clever: Okay, my test seemed to verify this, but I didn't want to create silly systemd.service file to execute at boot just to run extra ip route, iptables and ip rule crap. Oh well.
<clever>
networking.interfaces.<name>.ipv4.routes
<clever>
List of extra IPv4 static routes that will be assigned to the interface.
<clever>
zalaare: there is an option to do that for you
<zalaare>
I use systemd.networkd
<clever>
ah
ahmed_elgabri has quit [Ping timeout: 246 seconds]
<zalaare>
maybe it would still work?
<clever>
maybe, give it a try
mmmattyx has quit [Quit: Connection closed for inactivity]
<zalaare>
clever: it doesn't look I can manipulate a lookup table using networking.interfaces.<name>.ipv4.routes anyway. Guess systemd.service is the way to get around. I just have to figure out why ${pkgs.iproute2} is giving me issues now :)
ixxie has quit [Quit: Lost terminal]
ixxie has joined #nixos
lordcirth__ has joined #nixos
<shla>
how can I install latest stable channel version of nixos using nix-installer (booted from minimal os)?
<shla>
it looks like it's now installing what's available on the image and not using network to get latest packages
<clever>
shla: it installs whatever the current channel is, so you can change it with nix-channel before you nixos-install
<clever>
ixxie: check dmesg again, any firmware errors like before?
fendor has quit [Ping timeout: 245 seconds]
<shla>
clever, nix-channel --list points to nixos https://nixos.org/channels/nixos-20.09 however when I do nix-install I get kernel from November last year. after rebuilding with --upgrade I get the latest stuff
<clever>
shla: you may need to nix-channel --update before you install
rj has joined #nixos
<shla>
is there any way I can tell nixos-install to install the latest stuff without having to do an upgrade after the installation?
<clever>
shla: because its using the copy of the channel that was packaged into the iso
<shla>
oh. I see.
<shla>
so it's pointing to a particular release point in time?
<clever>
the config says 20.09, but the iso has a copy pre-fetched, and baked into it
<clever>
so it will be using whatever nixpkgs the iso itself was made from
<clever>
until you --update
<shla>
thanks!
<ixxie>
clever: same errors :(
<clever>
[root@amd-nixos:~]# ls /run/current-system/firmware
<clever>
ixxie: the firmware should be in here, check if the file it wants is present
ManiacOfMadness has joined #nixos
<ixxie>
clever: empty!
<clever>
ixxie: rebuild switch, and then check again
<ixxie>
why would rebuild boot not do the trick but rebuild switch would?
<shla>
clever, yay, it worked, thanks again!
<clever>
ixxie: if /boot isnt mounted right, the reboot undoes everything
<qbit>
hi! is anyone aware of a tool that can expand nix things at the shell level (without going full nix-shell)?
<qbit>
to allow someone to do something like: 'export SHELL_VAR=$(fancycommand "${pkgs.package.thing.stuff}")'
ahmed_elgabri has joined #nixos
<ixxie>
clever: firmware appears now! but `ip link` still shows no wifi
ardumont has joined #nixos
<clever>
ixxie: it only tries to load the firmware at boot, if you reboot, is the firmware still there?
<jared-w>
qbit: sounds like you want something like nix eval
<ixxie>
clever: rebuild is giving me `cp: error writing '/boot/old/2dk28s4fdgavw1pdxdplyr3r62kixa4s-linux-5.4.79-1.20201201-Image.tmp.4889': No space left on device`
<ixxie>
clever: is it safe to delete these old boot files?
<clever>
ixxie: mostly, but make sure it finishes copying before you reboot
domogled has quit [Client Quit]
<ixxie>
fingers crossed...
cole-h has joined #nixos
KarlJoad has joined #nixos
<clever>
ixxie: there is also a flag when creating the sdimage, to make the fat32 larger, but that needs a reinstall
<klardotsh>
howdy folks. I'm getting an error in a bootup script on an EC2 instance (where I effectively use the userdata-based config to chainload over to the "correct" system config, which requires the company cachix) that /nix/store is somehow "not in the nix store"? not even sure where to begin investigating that one, but I did verify at least that /nix/store exists and has plenty of files
<klardotsh>
domenkozar[m]: attempting to narrow it down, but this is the nix file that (after templatization by terraform) becomes the userdata of the EC2 instance: https://dpaste.org/sA7z
<klardotsh>
that bootstrapper has worked great in production for quite some time, but today (when an update to some other package on the box changed the derivation ID and forced a redeploy) things just... broke, complaining about the nix store in the logs
rj has joined #nixos
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<domenkozar[m]>
klardotsh: could it be that $NIXOS_SYSTEM_DERIVATION is not set?
<klardotsh>
ah jeez you know what, this looks like NIXOS_SYSTEM_DERIVATION never got populated
<klardotsh>
domenkozar[m]: we had teh same thought
<klardotsh>
domenkozar[m]: context here is that that derivation ID is cached as a gitlab CI artifact and those have a cleanup window that I don't remember off the top of my head. the system derivation was built Friday some time, but the deploy that uses the derivation didn't go out until this morning. this seems like a good place to start chasing stuff down
<klardotsh>
thanks for taking a look + being a bit of a rubber duck debugger
ris has joined #nixos
<domenkozar[m]>
klardotsh: no problem - maybe set a check in that script to print it's value for future debugging
zupo_ has quit [Ping timeout: 245 seconds]
johanot has quit []
johanot has joined #nixos
Grzmocimir has joined #nixos
Grzmocimir has left #nixos [#nixos]
domogled has joined #nixos
zupo has joined #nixos
tfl^ has quit []
smctwo has joined #nixos
<KarlJoad>
Does fetchFromBitbucket behave differently than other commands? I download a tarball from there, but then it fails to unpack.
<veleiro>
if i put an entry into 'networking.nat.forwardPorts = [ ];' shouldnt it appear in iptables?
nixuser has quit [Ping timeout: 245 seconds]
<mananamenos_>
hi, https://github.com/NixOS/nix/pull/3988. How do i use this? Adding something like this in .bashrc `export NIX_SHELL_PRESERVE_PROMPT="whaever.."` hasn't helped
<{^_^}>
nix#3988 (by Gabriel439, 26 weeks ago, merged): Add `nix-shell` support for preserving PS1
klardotsh has quit [Quit: WeeChat 2.9]
marusich has quit [Quit: Leaving]
<unclechu>
hey, is there any guide you could recommend of how to change cursor theme in nixos?
<jared-w>
cole-h: ah so if I just switch to nixUnstable or something, it'll work? I tried using a nix-shell with nixUnstable and then doing `--experimental-features` but that didn't work
<cole-h>
That should work too.
<jared-w>
Hmm. Perhaps it was `deploy-rs` that was being weird, then
hiro98 has quit [Remote host closed the connection]
<srhb>
jared-w: iirc deploy-rs passes on args so if you give it both necessary features I feel like it should work.
<jared-w>
srhb: well, I _thought_ it was "nix flakes isn't working on a nixos system inside a nix-shell"
<jared-w>
srhb: The real problem seems to be that deploy-rs is somehow detecting that my system "doesn't support flakes" and is trying to load a default.nix file instead of the flake.nix file
<srhb>
Indeed, I guess I'm wrong then :)
domogled has quit [Read error: Connection reset by peer]
<srhb>
jared-w: You're invoking it like this, right? deploy . -- --option experimental-features "flakes nix-command"
<jared-w>
nix --experimental-features 'nix-command flakes' run 'github:serokell/deploy-rs' -- . -- --experimental-features 'nix-command flakes' is what I was doing (`nix-shell` with nixflakes compat doesn't seem to put `deploy` on my path)
<KarlJoad>
Why could a fetchFromBitbucket fail when a fetchurl works? The download works, but the Bitbucket fetch cannot chmod during/after the unpack.
<lordcirth__>
KarlJoad, is it fetching a .tar.gz?
<srhb>
jared-w: I... feel like that should work but all the -- is throwing me
thc202 has quit [Ping timeout: 260 seconds]
<srhb>
jared-w: Maybe just clone deploy-rs and `nix-env -i .` for simplicity
<jared-w>
srhb: none of it really seems to be working. (I was able to get `deploy` in the shell by just adding it to the buildInputs in the flake.nix). I have flake show working and other flake related commands also working, it's *just* deploy-rs that seems to be choking (on the examples/system example)
apache8080 has joined #nixos
wadii has quit [Ping timeout: 246 seconds]
rj has quit [Ping timeout: 268 seconds]
smctwo has quit [Remote host closed the connection]
rj has joined #nixos
ixxie_ has quit [Quit: Lost terminal]
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JqLnr
fendor__ has joined #nixos
<jboy>
I've got a desktop with AMD Ryzen 5 PRO 4650GE and integrated AMD Radeon Graphics. Does anybody know what combination of kernelModules and kernelParams will allow me to start an X session?
fendor_ has quit [Ping timeout: 245 seconds]
<redmp>
what happens when two different flakes depend on different versions of nixpkgs in their inputs?
wadii has joined #nixos
<redmp>
does this question get answered by the way their overlays behave?
<jboy>
nevermind, after a reboot adding the `amdgpu` kernel module proves sufficient
<jared-w>
srhb: I figured it out. The flake.lock file is very out of date and consequently some attributes weren't there. Once I recreated it, things started working. (I had to further create a flake-compat default.nix for some reason, but it seems to be doing the equivalent thing that running in a nixpkgs/nix-flakes container was)
<Valodim[m]>
I was given a macbook from work. Currently dabbling with nix on it - installation was very smooth, no issues at all :)
<jared-w>
I seem to somehow be compiling the kernel from scratch, but meh
<{^_^}>
[nixpkgs] @globin pushed 101 commits to structured-attrs: https://git.io/JqLlx
wadii has quit [Ping timeout: 260 seconds]
<KarlJoad>
lordcirth__: So, I seem to have somewhat narrowed it down. It's not due to my use of the fetchFromBitbucket command, as I tested that with another repo, and it worked fine. I'm thinking its the later stages (buildPhase, etc.)
<Valodim[m]>
I was setting up home-manager, and doing that noticed nix-darwin for the first time. Anyone got a recommendation on what to look into for a comfy nix on mac environment? :)
vidbina_ has quit [Ping timeout: 260 seconds]
leotaku has quit [Ping timeout: 260 seconds]
le0taku has joined #nixos
riksteri has quit [Quit: riksteri]
artemist has quit [Ping timeout: 240 seconds]
<drozdziak1>
I'm on 20.09 which I've just updated (and I'm about to reboot) and my gpg doesn't find a pinentry for signing git commits, what might be the cause?
<drozdziak1>
I have my pinentryFlavor explicitly chosen to be "gnome3" and others don't work either
ahmed_elgabri has joined #nixos
<drozdziak1>
I get "Inappropriate ioctl for device <Pinentry>" in its logs
<drozdziak1>
It Used To Work™
jluttine has quit [Ping timeout: 240 seconds]
<drozdziak1>
The reboot helped, carrying on
attila_lendvai has quit [Ping timeout: 265 seconds]
mcornick has joined #nixos
jb55 has quit [Quit: jb55]
jb55 has joined #nixos
duende_inside2 has quit [Quit: Connection closed]
simonpe^^ has quit [Remote host closed the connection]
jluttine has joined #nixos
fendor has quit [Remote host closed the connection]
<KarlJoad>
Does fetchFromBitbucket fail to create an output directory for the unpacked source in some cases, for example when the filename has periods in it?
stree has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<KarlJoad>
This only seems to be happening with nixpkgs and buildPythonPackage. When I tested the same build using a mkDerivation in my /tmp, it downloaded and unpacked fine.