<Graypup_>
somehow when i build my crate with nix it is linking by calling rustc but when it is building in the nix builder it is calling g++ to link????
<Graypup_>
what
drakonis- has quit [Client Quit]
<Graypup_>
or is cargo quietly hiding that part because it's working properly?
<energizer>
i have a bluetooth adapter embedded in my mobo, and another one embedded in my 802.11AX wifi pcie card. `bluetoothctl list` only shows one, and i think it's the mobo one. do i need to do something special to enable bluetooth on the new wifi card?
<dxb[m]>
idk... my problem is i don't ever want to run it on a display, even for setting it up. that's why i'm using this dude's script to generate my images
<Graypup_>
oh shit it's caching
<Graypup_>
lmao
<cdknight[m]>
ah yeah that'd be nice but I have a display
<cdknight[m]>
hmm idk
<dxb[m]>
and then my config and stuff is weird when i do it that way
<dxb[m]>
i'm about to install on a pi4 and just plug it in cause this is annoying af lol
user_0x58 has quit [Read error: Connection reset by peer]
tarruda2 has quit [Ping timeout: 260 seconds]
<cdknight[m]>
yeah you can probably just clone the sd card or something afterwards
<drakonis>
znc acquired, at last.
<drakonis>
i only have some issues with certs to handle now
<dxb[m]>
well i have 2 pi 4s and 2 pi 3s in my little cluster thing, so at least 2 will need to be hooked up to a display at some point
<Graypup_>
lol it works now
<Graypup_>
got owned by a cache
<Graypup_>
11/10
<cdknight[m]>
hmm yeah then go ahead and try this but I already tried the config you sent me previouslyu
<cdknight[m]>
* hmm yeah then go ahead and try this but I already tried the config you sent me previously
<cdknight[m]>
But... I excluded the fileSystems part
<cdknight[m]>
So maybe I should go and try it again lol
<cdknight[m]>
.... time to flash the image for like the fifth time now heh
<dxb[m]>
you'll need the `/` entry
<dxb[m]>
i think you won't want to keep the binaryCaches lines
<cdknight[m]>
ah perhaps that was the issue
<cdknight[m]>
yeah and the linuxPackages_rpi
<dxb[m]>
because the pi 3b+ is supported on hydra or whatever
<cdknight[m]>
mm
tarruda2 has joined #nixos
<cdknight[m]>
you mentioned "cluster"... you're not doing kubernetes, are you
<dxb[m]>
nope... currently they're all runnind arch linux and docker swarm
<dxb[m]>
* nope... currently they're all running arch linux and docker swarm
<cdknight[m]>
ah okay
<cdknight[m]>
because I kinda wanted to run k3s on nixos, but then it's only in unstable or whatever
invokesu` has quit [Ping timeout: 265 seconds]
<dxb[m]>
i built a pretty sweet installer for arch so i could avoid ever plugging them into a display, and now it looks like i'm gonna have to 😢 lol
<cdknight[m]>
You could do the serial thing
<cdknight[m]>
I think that was mentioned on the wiki, but it's too complicated for me
<dxb[m]>
i don't have a serial cable...
<dxb[m]>
does it work over usb?
<cdknight[m]>
I have absolutely no clue
<dxb[m]>
i'll try that first actually and see
<cdknight[m]>
something like pi uart is what it is
<cdknight[m]>
you have to hook it to an arduino
<cdknight[m]>
from what im seeing on images
<cdknight[m]>
* from what I'm seeing on images
<dxb[m]>
sheeeit, no thanks
<cdknight[m]>
well it's not bad tbh but easier to just hook to a display lol
<dxb[m]>
oh, are you perhaps confusing a breadboard with an arduino?
<dxb[m]>
i know there are serial adapters you can hook up to the gpio pins
philr has joined #nixos
invokesu` has joined #nixos
<cdknight[m]>
yeah
user_0x58 has joined #nixos
<dxb[m]>
oh yeah that's an arduino
<cdknight[m]>
I think that'd be what you want
<cdknight[m]>
not this
<cdknight[m]>
because you need the "red thing"
<cdknight[m]>
yeah it'd probably be best to hook to a display, get a working nixos, and dump the image to a file or something
<dxb[m]>
well, i also want to set this up on a few rpi zero ws and i don't have a mini hdmi for those things, and only one of mine has headers anyway so headless would really be nice
<cdknight[m]>
too bad capture cards are expensive
<cdknight[m]>
hmmm nixos can also be installed over another os?
<cdknight[m]>
is that an option
<cdknight[m]>
like I think you can do it on arch
Franklex has quit [Remote host closed the connection]
<dxb[m]>
if i'm already plugging them in to a display it's not too much work to pop another one on the same cables after finishing one. probably easier than having to copy an entire image
Franklex has joined #nixos
<dxb[m]>
yeah that might be an option too
<dxb[m]>
not sure how well that works on arm
<cdknight[m]>
yeah true also hooking into a display is annoying anyway; you get plagued by kernel messages telling you bluetooth is dying
<cdknight[m]>
or undervoltage, but hopefully that isn't a problem for you
<dxb[m]>
it'd be nice if you could put your initial configuration.nix on /boot and have nixos just grab it, put it in place, and run an initial rebuild and reboot
invokesu` has quit [Ping timeout: 256 seconds]
<cdknight[m]>
yep especially also if it had an initial configuration.nix to work off of
<dxb[m]>
like if you could do that on first boot that'd be super nice
<cdknight[m]>
mm, although now I'm just trying to get it to work at all lol
<dxb[m]>
it gives you wifi on first boot, plus lets you run arbitrary scripts. i've used it to completely configure a pi, including adding itself to my docker swarm, and then sending me a chat message via a webhook when everything was set up and running
drakonis has joined #nixos
<cdknight[m]>
yes that's nice actually
<cdknight[m]>
I have never scripted an arch install before
drakonis has quit [Client Quit]
<dxb[m]>
if you've never installed arch on a pi before, it's a little different
<cdknight[m]>
yeah I have always stuck with raspbian till now
<dxb[m]>
you basically just partition your sd card and unpack the image onto the partitions and then boot
<dxb[m]>
it's not like a normal arch install where you chroot into it and install your system with pacman
drakonis has joined #nixos
<cdknight[m]>
so it just... works when you start it up?
<cdknight[m]>
you just have to make your configuration changes
<dxb[m]>
the only difference with that script is i'm not doing it on the sd card directly, i'm doing it in an image file that you write to the sd
<cdknight[m]>
that'd be much more performant, I can imagine
<dxb[m]>
yeah probably
<dxb[m]>
but then you have to worry about resizing your partitions, which you wouldn't otherwise have to do
<dxb[m]>
but that bootrunner script does that for you :)
<cdknight[m]>
cool
<cdknight[m]>
I'll check this out if I need arch linux arm
<cdknight[m]>
it'd work for other arm boards too?
kn_ has joined #nixos
<dxb[m]>
i have no idea actually
<dxb[m]>
probably
<cdknight[m]>
hmm okay because there's a greater chance I try archlinuxarm on a nonpi
<dxb[m]>
i've used it on rpi 3, 4, and zero
<dxb[m]>
* i've used it on rpi 3, 4, and zero w
<cdknight[m]>
* hmm okay because there's a greater chance I try archlinuxarm on a non-pi
<dxb[m]>
i'd be interested to find out what happens if you do try it
<kn_>
hi, anyone running gnome-boxes on nixos-unstable? i can download/create vms, but they never start; messages on standard out/error say
<cdknight[m]>
yeah I'll update you if I do try it but it'll be a while, since it's primarily since I'm considering buying another arm board
<kn_>
(gnome-boxes:14966): Boxes-WARNING **: 03:14:01.241: machine.vala:633: Failed to start NetBSD 8.1: Unable to start domain: XML error: 'startupPolicy' is only valid for 'file' type volume
<dxb[m]>
<cdknight[m] "yeah I'll update you if I do try"> which boards are you looking at?
<dxb[m]>
and i didn't realize that's what happened so i reloaded it with shit and put it back in there and started messing around, and then i shut down the sp and next time i turned it on my samples were gone. this happened like 4 or 5 times before i realized it was just a dead card
invokesu` has joined #nixos
<cdknight[m]>
I've had an important 128gb usb stick die on me once
<cdknight[m]>
it was the same, but in windows, back when I used to use it it used to say something about the USB needing repairing, then it would hang
<cdknight[m]>
then... progressively, it got worse. it would crash explorer
kn_ has joined #nixos
<cdknight[m]>
then I tried a mac and it immediately kernel panicked when I plugged it in
<cdknight[m]>
and on linux, it gave me an io error, and failed to mount, and I knew it was dead.
<DigitalKiwi>
how much ram? that's the biggest thing
<nij>
I hope even a thinkpad x200 with a 2TB HDD will do the work.
<nij>
Oh. Is 2GB ram good?
<DigitalKiwi>
i've ran nixos on the cheapest ($5) digital ocean vps with 1GB of ram but you'll want swap if you do that
<nij>
Or you need 4GB.
<DigitalKiwi>
my server runs on 2
<nij>
wah
<nij>
that sounds fantastic
<nij>
so far so good? stable enough?
<DigitalKiwi>
i would not recommend the $5 but it is possible
<DigitalKiwi>
you have to be careful with space
<nij>
How about ssd vs hdd?
<DigitalKiwi>
since 25GB will fill up fast so nix-collect-garbage vigilantly
<nij>
HDD is cheaper if I need >2TB.
<nij>
But HDD is also much slower.
<nij>
I'm worried an HDD+2GBram won't be fast enough.
<DigitalKiwi>
https://mostlyabsurd.com is on a $15 one it runs nginx, matomo, mysql, znc, all fine
<nij>
Ah.. I should be more specific.
<DigitalKiwi>
most of my machines are SSD but i have nixos on rpi with 32GB micro sd cards that only run at like 10-30MB/s with 1GB of ram...
<DigitalKiwi>
yeah what you're trying to do would help
<nij>
I want it to replace my Dropbox (embarrasingly)
<DigitalKiwi>
i think you'll be fine though
<nij>
so it should be able to up/download about less than 10GB per day
<nij>
some times maybe 1TB is I decide to stir it up
<nij>
DigitalKiwi: the rpi+32GB runs at 10MB/s? Is this upload/download speed?
<nij>
That's fast enough for me!
<DigitalKiwi>
the only time i notice slowness on HDD is like when i start kde. once it's up and running it's not going to be much difference in performance than arch
<DigitalKiwi>
that's disk write speed
<nij>
Oh..
<nij>
:(
<DigitalKiwi>
very slow :P
<nij>
Very
<DigitalKiwi>
but nixos runs on it fine
<nij>
nixos is more taxing than arch right?
<nij>
that's my impression
<DigitalKiwi>
not really
<nij>
hm
justanotheruser has joined #nixos
pylsan has quit [Ping timeout: 244 seconds]
<nij>
So if that's for replacing dropbox.. would you still recommend I run it on a machine with HDD and a 2GB ram?
<DigitalKiwi>
the symlinks cause some slowness at startup on an HDD or doing like nix-collect-garbage but running it isn't really an issue in my experience
<nij>
I edit my notes and move my files quite often. Expect 50GB changes per day.
<DigitalKiwi>
does your arch run on that same machien right now?
pmwhite has quit [Remote host closed the connection]
<nij>
DigitalKiwi: I haven't set up a server.
<DigitalKiwi>
oh
<nij>
I'm thinking of getting a new thinkpad.
<nij>
Wonder what would be the minimal requirement for my need.
<nij>
Ideally I hope nixos can do the job, cuz it really makes more sense to me than arch does.
<nij>
I hope I can gradually migrate there
<DigitalKiwi>
anyway i don't know if that hardware will meet your needs or not (i don't know either way) but i doubt nixos will effect that
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « vmpk: fix build »: https://git.io/JJ1QJ
lsix has joined #nixos
Thra11 has joined #nixos
malook1 has quit [Quit: malook1]
malook1 has joined #nixos
ScottHDev has joined #nixos
zupo has joined #nixos
<ScottHDev>
Hello, I'm trying to make a dbus server connecting on the system bus. I tried to add it's policy conf file in <package-store-path>/etc/dbus-1/system.d but I still can't have it running (The request to own the name gets denied). Do you know if there is a specific thing to do in nix to get it working.
<ScottHDev>
(The package is installed via home-manager)
<symphorien[m]>
ScottHDev: you can't add a service to the system bus with home manager as home-manager only touches your dot files and the system bus is, well, system wide
<symphorien[m]>
dbus has a "packages" nixos option iirc
<afreakk>
when i run sudo nixos-rebuild with the newest channel, it starts building qtwebkit. is there any way to check why its building that? I dont have any webkit-related packages installed at system-level afaik. I do have it on user-level though through home-manager
orivej has quit [Ping timeout: 240 seconds]
ris has joined #nixos
<symphorien[m]>
afreakk: nixos-rebuild prints the drv path of the whole system. nix-store -q --tree foo.drv should tell you the dependency chain
<afreakk>
so sudo nixos-rebuild will change versions of packages installed by a normal user?
maier has quit [Ping timeout: 240 seconds]
maier has joined #nixos
<ScottHDev>
Then, if I can only use the session bus, can I have the session bus server be running as root?
lewo` has quit [Remote host closed the connection]
<afreakk>
symphorien[m]: --tree showed qtwebkit's dependencies, i think, I tried --referrers to show why its being installed, that showed teamviewer, which maybe makes sense :)
<aforemny>
Hi, anyone got a HFP headset working on NixOS? I am wondering whether this should just work, or whether I do have to go the ofono route. The headset works fine as an A2DP sink, but it does not have HSP capabilities. pulseaudio shows the HSP/HFP profile as unavailable and does not let me switch to it.
<symphorien[m]>
afreakk I meant, ask for the dependencies of of the whole system derivation like /nix/store/81v7p1g3l513jv152bsx1fjh70szg14a-nixos-system-nlaptop-20.03.2685.977000f149b.drv
orivej has joined #nixos
zupo has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
<afreakk>
ah, symphorien[m] thats a nice view also :) would be nice to collapse etc, maybe some kinda gui for it
knupfer has joined #nixos
<symphorien[m]>
I think there is one (nix-query-tree or something like that)
realisation has joined #nixos
shad has quit [Ping timeout: 256 seconds]
dermetfan has joined #nixos
shad has joined #nixos
sputny has quit [Remote host closed the connection]
<Reventlov>
I'm reading on https://nixos.org/nixos/manual/release-notes.html : « The security.acme.directory option has been replaced by a read-only security.acme.certs.<cert>.directory option for each certificate you define. This will be a subdirectory of /var/lib/acme. »
<Reventlov>
I want to relocate the acme directory on /data/acme/, (/data/ is my "data" partition, and everything else is recreated when I recreate my VM images), is this "read only" option really read only?
<Reventlov>
(which means I can't tell acme to use my data partition) ?
realisation has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJ1N1
<infinisil>
Reventlov: Yeah it's read only
<infinisil>
You could bind mount /var/lib/acme to /data/acme though
aforemny has quit [Remote host closed the connection]
<symphorien[m]>
if it's at runtime, you probably need wrapping
fendor has quit [Ping timeout: 265 seconds]
freezeboy has joined #nixos
<freezeboy>
Hello, I have a little problem to find the reason why a program (electron based) is crashing when I start it (SIGTRAP), anyone has any experience with such a situation ?
<freezeboy>
to give more context, I have a woring expression to run an appimage, but as it builds a huge fhs, it is really big and I am trying to extract the essential pieces into a cleaner derivation
<{^_^}>
[nixpkgs] @LouisDK1 opened pull request #95005 → [wip] crossover: init at 19.02 → https://git.io/JJ1ps
LouisDK has quit [Remote host closed the connection]
zupo has joined #nixos
pniedzwiedzinski has joined #nixos
pniedzwiedzinski has quit [Remote host closed the connection]
malook has quit [Quit: malook]
<{^_^}>
[nixpkgs] @TethysSvensson opened pull request #95006 → busybox: Pull in upstream patch for CVE-2018-1000500 → https://git.io/JJ1pX
syd has quit [Quit: Connection closed]
hspak has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @fgaz opened pull request #95007 → shattered-pixel-dungeon: 0.8.1 -> 0.8.2, add test → https://git.io/JJ1hv
teto has quit [Quit: WeeChat 2.9]
sangoma has quit [Ping timeout: 265 seconds]
pmwhite has joined #nixos
<sphalerite>
my boot is broken on the latest nixos-unstable: for some reason, the btrfs kernel module isn't included in the initramfs even though it's definitely listed in boot.initrd.kernelModules (checked with nixos-option). Anyone have any idea what's going on ehre?
mallox has joined #nixos
alp has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 256 seconds]
wnklmnn has joined #nixos
Acou_Bass has quit [Ping timeout: 264 seconds]
<sphalerite>
ok, this seems to be a bug in make-modules-closure or something… and it only happens on aarch64
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
<cdknight[m]>
<dxb[m] "cdknight: have you seen this? ht"> Meh, I got a working configuration.nix except that systemd keeps throwing errors and my network config is broken
<dxb[m]>
<cdknight[m] "Meh, I got a working configurati"> i was able to get a pi zero w image running that lets me ssh in over usb… but it's running 19.09 or something and isn't getting a network connection from the laptop so i gotta figure that stuff out
stephaneyfx has joined #nixos
<cdknight[m]>
oh nice, I mean, I had to switch to kernel 4.19 for it to work
<cdknight[m]>
* oh nice, I mean, I had to switch to kernel 4.19 for it to ŏot
wnklmnn has joined #nixos
<cdknight[m]>
* oh nice, I mean, I had to switch to kernel 4.19 for it to boot
zupo has joined #nixos
<cdknight[m]>
I'm not using wifi, and all the documentation talks about wifi for raspberry pi network connections
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @dasj19 to master « evolution: 3.36.4 -> 3.36.5 »: https://git.io/JJMJ7
T-800 has joined #nixos
<{^_^}>
[nixpkgs] @Atemu closed pull request #91680 → undervolt: allow strings in options again → https://git.io/JJePz
<T-800>
is it possible in nixos to have plymouth show up in early stage 1? i have an encrypted hard drive and would like to enter it through plymouth if possible
<Pwnna>
So I followed the documentation and setup python in development mode via shell.nix
<Pwnna>
however, I can't get any of the entry_points (console_scripts) to show up
leah2 has joined #nixos
<Pwnna>
I can import my package if I opened a python console
zupo has joined #nixos
<Pwnna>
is this a known issue? I can't seem to find anything documenting this on the internet
noudle has joined #nixos
griff_ has quit [Quit: griff_]
__monty__ has joined #nixos
<Pwnna>
oh maybe i'm doing something else wrong.. I'm trying to have buildPythonPackage in default.nix and trying to callPackage ./default.nix and overrideAttrs the nativeBuildInputs so I can have some executables available during development mode
<Mic92>
Pwnna: there is overridePythonAttrs if your other package is also a python package.
<Pwnna>
i think i'm doing this wrong
<Pwnna>
basically i have a nodejs tool that I only use during development
<Pwnna>
I think I can safely just have default.nix and then have nodejs in nativeBuildInputs
<Pwnna>
rather than having nativeBuildInputs being empty in default.nix and trying to override it in shell.nix?
fresheyeball has quit [Quit: WeeChat 2.7.1]
<Mic92>
Pwnna: if you want to avoid having this build dependency in the actual build of your it might make sense to have a dedicated shell.nix. You don't nee to leave nativeBuildInputs empty in this case in default.nix
cosimone has joined #nixos
<Mic92>
If you don't care if it is downloaded during the build, one default.nix is enough
<Pwnna>
yeah
<Pwnna>
if i do care, how would i separate it tho?
<Pwnna>
I tried to do something like (callPackage ./default.nix {}).overrideAttrs (_: { nativeBuildInputs = [nodejs]; })
<Pwnna>
but this somehow stops python development mode from being activated
kleisli has joined #nixos
<Mic92>
The package is a buildPythonPackage right?
<Mic92>
you may need overridePythonAttrs instead of overrideAttrs
<Pwnna>
yes
<Pwnna>
hmm
<Pwnna>
i will have to try it a bit later. thanks for the help
<Pwnna>
it is very difficult for me to discover this tho :\
<qyliss>
there's a proposal to make overrideAttrs do the right thing for python
<qyliss>
(and other custom builder functions)
<qyliss>
so it will hopefully get better
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Pwnna>
well this is not nearly as bad as things like a python qt app
<Pwnna>
for that one i have like.. let package = package = ({ mkDerivationWith, buildPythonApplication, wrapQtAppsHook, lib, qtbase }: mkDerivationWith buildPythonApplication {postFixup = ''wrapQtApp...''}; in libsForQt5.callPackage package {}
<Pwnna>
that said i'm pretty sure im doing that wrong too
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eyJhb>
`nix.nixPath` allows to specify nixpkgs, etc. but those will only take effect, after the build
<higherorder>
however this throws "error: Cannot resolve module "file:///nix/store/w8sicl90r7nh9mbpwxd0q49hwa2zf751-source/server.ts"" (on service starts)
<higherorder>
I assume I'm misusing fetchGit but not sure how
cosimone has joined #nixos
<eyJhb>
So if you set the nixpkgs in your conf file, to something with a package not in the current nixpkgs, you have to rebuild with the new nixpkgs path added ti nix.nixPath, then you can add the package to your config
<eyJhb>
Else you will get a error. I feel like it makes sense, while I really wish it did not behave that way
<infinisil>
eyJhb: Oh yeah that's a common gotcha. But it's not a bug
<eyJhb>
Is there any way to solve the none-bug?
<infinisil>
It has to work this way, because evaluating the NixOS modules themselves requires a nixpkgs already. And if the NixOS modules specify the nixpkgs, then that's an infinite recursion
<eyJhb>
But we do like those! I am guessing you can do something pkgs import ./ something ?
nature has quit [Quit: WeeChat 2.9]
<infinisil>
eyJhb: "pkgs import ./"?
<infinisil>
Oh pkgs = import ./path/to/nixpkgs?
zaeph has joined #nixos
<eyJhb>
Yeah, I assume! That should be possible to do something like that in my main configuration, right?
<eyJhb>
Not sure it will help me however...
<etu>
You can also specify the variable nixpkgs using -I to nix-build, that way you can get it to take effect on the first build and then on all builds after it's set in the config
<infinisil>
higherorder: Does that /nix/store/.../server.ts file exist?
<eyJhb>
etu: yeah.. My main problem is, that I have some funky apply patches
<infinisil>
So while you could get a more recent version of minecraft that way, you couldn't pin the minecraft nixos module to that same nixpkgs version
<higherorder>
infinisil: eh, seems to work now. Sorry. One question, though: Do I need to interpolate ${gist}, or ${gist.outPath}? Both appeared to work
<infinisil>
higherorder: Both are the same, ${gist} is preferred
<higherorder>
infinisil: what's the magic that pulls out the outPath when interpolating ${gist}?
<infinisil>
higherorder: The Nix string coercion, pretty simple actually:
<infinisil>
> let value = { outPath = "hello!"; }; in "The value is ${value}"
<{^_^}>
"The value is hello!"
<higherorder>
infinisil: oh, so is the attribute `outPath` special-cased by Nix?
<infinisil>
higherorder: I guess it is in that regard yeah :)
realisation has quit [Ping timeout: 240 seconds]
<infinisil>
And derivations always set outPath correctly too
<higherorder>
infinisil: Thanks! A quick follow up question: in the snippet I shared I didn't specify a revision in `fetchGit`. When I re-deploy my configuration, will it fetch the latest of that repo? I just tried it and no, it appears to stick to what it fetched when I first deployed the configuration?
<infinisil>
eyJhb: There are at least 3 ways to declaratively pin nixpkgs for NixOS: Make a wrapper that sets -I nixpkgs; make a wrapper that uses a boot nixpkgs to evaluate the NixOS config once to extract the actual nixpkgs you want to use, then eval again; flakes
<infinisil>
eyJhb: Or another one: Use a nixos-rebuild alternative which supports this by default (e.g. I'm using https://github.com/Infinisil/nixus which can do that)
<infinisil>
nature: What DM/DE/WM combo are you using?
<nature>
infinisil: startx + bspwm
<nature>
infinisil: but for now I am running xinitirc in a non "nixos" way via my .zprofile, planning to use home-manager afterwards
jlslnx has joined #nixos
<nature>
infinisil: so I simply have startx.enable as a dm in configuration.nix and that's it
<infinisil>
nature: Hm, you might need to call `/run/current-system/systemd/bin/systemctl --user start graphical-session.target` before you start your WM then
<infinisil>
In your starting script
<infinisil>
And `/run/current-system/systemd/bin/systemctl --user stop graphical-session.target` after the WM exits
<DigitalKiwi>
why is dependabot making PR on my nixpkgs
<manveru>
that's the home-manager config for it :)
<infinisil>
manveru: Yeah it's working fine for me too, but they are using a bit of a special X setup which doesn't do some standard stuff which NixOS and home-manager would do
<manveru>
ah, ok
<manveru>
i didn't read that far back ^^;
<nature>
kk thanks manveru I installed nixos recently, so I haven't setup home-manager yet
<nature>
yes ^^' gonna standardize my setup soon
<manveru>
no worries, maybe it helps in future
<manveru>
home-manager finally allowed me to do some ricing :D
mallox has quit [Quit: WeeChat 2.9]
<nature>
yes sure, I'll keep your redshift setup somewhere ;)
<manveru>
the title display is a bit buggy atm... not aligned right :(
arinov has joined #nixos
<arinov>
hey guys
<arinov>
is there a way to block several preinstalled packages such as xterm?
dingenskirchen has joined #nixos
jlslnx_ has joined #nixos
Thra11 has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
jlslnx has quit [Ping timeout: 240 seconds]
<energizer>
imo the default package list should be defined in a separate list defaultPackages that can be adjusted by the user, not just added into systemPackages immediately
endformationage has joined #nixos
jlslnx_ has quit [Quit: leaving]
jlslnx has joined #nixos
jlslnx has quit [Client Quit]
<energizer>
if you want to customize the set of preinstalled packages maybe you're the person to make this change
<arinov>
energizer: i am not very experienced in nixos now
bvdw 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/JJMcC
<{^_^}>
[nixpkgs] @cpcloud opened pull request #95018 → upgrade: nomad to 0.12.1 → https://git.io/JJMci
<energizer>
arinov: actually, is xterm even in the default package set?
<energizer>
i dont think it is
<Ashy>
xorg isn't installed by default so it can't be
<arinov>
energizer: its installed in every desktop or wm profile
<qyliss>
it comes with services.xserver.enable
<arinov>
every distro i tried has the same cancer with defaults...
cosimone has quit [Quit: Quit.]
<energizer>
arinov: you can customize services.xserver if you like
<arinov>
can you give a link or something explained how?
<energizer>
but i do wonder what problem you'd be solving
<arinov>
i am solving the problem of unused second terminal
<chipb>
oh noes. the disk space.
<energizer>
arinov: is it the disk space you're worried about?
<qyliss>
arinov: if disk space is a priority NixOS in its current form may unfortunately not be for you
<arinov>
i am worried about shit in my desktop
<arinov>
xterm is unused duplicate of default DE terminals
<energizer>
arinov: are you saying it offense your aesthetic sense of minimalism? or is there some more pragmatic issue?
<energizer>
offends*
<arinov>
every desktop environment has its own integrated terminal, and every WM users prefer its own, what research did you to say xterm is really needed terminal in i3 (rxvt), KDE (Konsole), Gnome (gnome-terminal)?
<chipb>
sorry, I shouldn't have been so snide.
<chipb>
you might be surprised at the random, non-XDG stuff that expects xterm to be around.
<arinov>
chipb: i have gentoo laptop, i have no surpising xterm is here
<arinov>
it is in linux distribution 20 years
<arinov>
but i dont have it in my systems
<arinov>
so how to remove it from my installation of nixos? is it possible?
<qyliss>
it's not really possible
<qyliss>
unless you want to modify the sources
<chipb>
can't customize services.xserver?
<arinov>
i may be not understand, i am living my life to find distros and removing xterm from it
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):321:1
<chipb>
arinov: that was directed more at qyliss. I don't know how customizable it is.
<qyliss>
chipb: not really
griff_ has quit [Quit: griff_]
<qyliss>
chipb: the list of packages it activates is hardcoded. Have you looked at the source?
<chipb>
not at that yet. I'll take a gander.
<qyliss>
It shoves a bunch of stuff into environment.systemPackages, including xterm
<qyliss>
Once something's in a list in a NixOS module, it's basically impossible to get it out
<arinov>
so the idea in replacing local file with that new one?
<chipb>
personally, I think it's reasonable to include by default with X11 libs in general, but I'd also expect it to be removable if there were a need to.
<chipb>
yuck.
knupfer has joined #nixos
<symphorien[m]>
arinov yes but then you have to keep up with updates manually
<arinov>
great
<symphorien[m]>
so, in reality, I would advise against
<symphorien[m]>
alternatively, you can keep your own fork of nixpkgs
<arinov>
thanks
lit8cdw6oq has quit [Remote host closed the connection]
<symphorien[m]>
and use nixos-rebuild with `-I nixpkgs=/path/to/nixpkgs`
<{^_^}>
[nixpkgs] @SFrijters opened pull request #95019 → nixos/x11: Respect XCOMPOSECACHE/XDG_DATA_HOME if set in xsession-wrapper → https://git.io/JJMC5
<arinov>
idea is brilliant, but no
<chipb>
depending on how distasteful you find it, perhaps an overlay which reassigns the 'xterm' package to what should be "the" x terminal?
<chipb>
or is that going to conflict when "the" terminal gets included in system.environment?
<symphorien[m]>
chipb you can set priorities in case of clashes
<symphorien[m]>
but it's at the file level
<arinov>
chipb: why so many questions?
<arinov>
i dont know answers
<symphorien[m]>
so it's possible to install a fake package which contains $out/bin/xterm as a symlink to rxvt and set it to high priority
<arinov>
i just expecting one terminal emulator per desktopmanager or whatever, i just wanted to have one browser instead of 2
<arinov>
why not to installing kde with gnome automatically
<qyliss>
xterm is trivially small compared to a browser
<qyliss>
or a desktop environment
<arinov>
maybe someone will use it
<arinov>
good idea to have kde and gnome at once
<arinov>
xterm is a mark
<qyliss>
why not make ls and cat seperate packages?
<arinov>
its a symbol
<qyliss>
why not make every libc function a seperate package?
<chipb>
arinov: you are aware there's more than yourself and I in channel, right? :-P
<chipb>
I'm just trying to understand behavior myself.
<arinov>
i asked one questions
<arinov>
and as always i have no simple solution
<energizer>
qyliss: is that so bad an idea?
<symphorien[m]>
arinov may I draw your attention to the fact that nano is also hardcoded in systemPackages
<symphorien[m]>
you can't get rid of it
<arinov>
yeah
<qyliss>
energizer: yes, because it would be a big maintenance overhead with no real benefit
<arinov>
i cannot change the world, i just wanted to know have i ability to choose or not
<arinov>
so it seems i havent
<arinov>
i cant make my own nixos with one-two changes and move it everywhere i am
<typetetris>
If in flakes world, nixpkgs becomes a flake, how does one do package overrides (with dependees in nixpkgs being rebuild with the new version of the dependency)?
<chipb>
symphorien[m]: ah, the link thing's not a *terrible* choice, I guess.
<chipb>
better than aliasing the xterm package to another package at least.
<symphorien[m]>
still qualifies as sad, I think :þ
<energizer>
qyliss: i can imagine it helping incremental compilation if dependencies were more fine grained. like if naersk/snack worked at the function level instead of the package level
<chipb>
typetetris: I gather you can apply overlays all the same, they just get applied in your system (or other top-level) flake.
lsix has quit [Ping timeout: 260 seconds]
<chipb>
or hm. I guess that's a good question.
cosimone has joined #nixos
<qyliss>
energizer: oh yeah sign me up for derivations at that granularity!
rardiol has quit [Ping timeout: 264 seconds]
cosimone has quit [Remote host closed the connection]
<energizer>
or expression level :)
cosimone has joined #nixos
<typetetris>
I stand before the problem of how to package nixops master and nixops-libvirtd, so the nixops command has nixops-libvirtd loaded as a plugin, an in nixops flake is "tested/used" and together with poetry2nix so conventional python nix stuff doesn't work and its all very frustrating :(
stephaneyfx has quit [Read error: Connection reset by peer]
stephaneyfx has joined #nixos
<{^_^}>
[nixpkgs] @elliottvillars opened pull request #95020 → symbolator: init at 1.0.2 → https://git.io/JJMWZ
<aterius>
I was getting screen tearing with kwin on nvidia proprietary drivers, so I tried enabled modesetting. Does hardware.nvidia.modesetting = true; cause a wayland session to launch by default now? It seems that I get horrible mouse lag when I enable that
cosimone has quit [Remote host closed the connection]
<chipb>
are you you composing them in a flake you control and can add tests to?
<chipb>
of course, I don't know nixops, nixops-libvirtd, or their relation beyond a wild guess.
<chipb>
I'll shut up now.
<typetetris>
chipb: I don't know the flake stuff yet, just reading through it. I was just buffled, as they depend on each other and both depend on nixpkgs. But If I compose them in a flake, will that ensure, nixops-libvirtd will use nixops in the same version as dependency, that I include in my flake? That both use the same nixpkgs? How do I even access the commands from the to link them in an out-Path? Where is even the basic
<typetetris>
derivation with an out path in a flake?
<typetetris>
And nixops flake depends on nixos-unstable ... how to turn that to nixos-20.03 just to see, if that might also be sufficient?
<chipb>
I'm confused. are both already in their own flake?
jumper149 has joined #nixos
<typetetris>
yes
<typetetris>
I don't know, if that is intended
<typetetris>
But maybe I am just confused about flakes and mess that up :)
fendor_ has quit [Ping timeout: 246 seconds]
<typetetris>
okay, looks like nixops-libvirtd (a plugin for nixops) isn't a flake yet.
<typetetris>
So how to put them together ...?
__monty__ has quit [Quit: leaving]
<chipb>
to be clear, I'm not really sure myself. I'm poking at it blindly. :-)
nature has quit [Ping timeout: 244 seconds]
Kritnich has quit [Quit: Bye bye.]
<chipb>
I think a flake is meant to be a standalone, atomic domain of utility that's been put through its own testing as captured in that flake. a sort of "mini-distribution" if you will.
<chipb>
my expectation is you would install nixops from the flake, and if it has dependencies, it's sealed those up in its own domain.
<chipb>
understanding nixops-livirtd being a backend of nixops, I'd then expect it to have incorporated into that flake somehow. but that goes back to your question of "how?", right?
<typetetris>
yes
<typetetris>
as at the moment the nixops flake doesn't incorporate any plugins ...
<{^_^}>
[nixpkgs] @elliottvillars opened pull request #95022 → symbolator: init at 1.0.2 → https://git.io/JJMlv
<chipb>
yeah, I'm seeing that now.
alexherbo2 has quit [Ping timeout: 260 seconds]
<chipb>
I guess they're their own domains of concern anyhow.
<typetetris>
Actually the just have to end up in the same python env, so nixops finds the plugin ..
dermetfan has quit [Ping timeout: 260 seconds]
<bqv>
is nixops worth it, as a flake?
dingenskirchen has quit [Quit: dingenskirchen]
<typetetris>
Don't know, at the moment it annoys me
dingenskirchen has joined #nixos
<typetetris>
I would like to use it
<typetetris>
with libvirtd
<chipb>
bqv: I'd argue not given how unclear it is to integrate a plugin with it. heh.
<typetetris>
Maybe I ignore the nix stuff, that comes with them and just bundle them as python apps.
<typetetris>
But it would be sad, wouldn't it?
<chipb>
I was about to suggest you'd want a regular old python.withPackages, just from the nixpkgs locked by the nixops flake, but of course theres another layer of...er...poetry.
<bqv>
i'd want something that just takes a built system, maybe some extra config and some secrets, and does magic stuff with it
<bqv>
cause that would work with flakes and non-flakes
<bqv>
as it stands, apart from nixops, no solution works for flakes
<chipb>
in fairness, I don't think flakes are meant to have all the use cases hammered out yet.
<bqv>
sure, but you know, if any of them worked like that, there wouldn't be an issue
<chipb>
I mean, how do you install nixops now?
<bqv>
i don't use nixops either
<bqv>
don't ask why
<chipb>
ok. I won't. :-P
<chipb>
typetetris: do you already use python.withPackages somehow to integrate non-flake nixops?
<bqv>
at the moment i just ghetto my secrets, build using flakes, and copy and activate the results over ssh
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<chipb>
haha. that's about where I'm at, so...
alp has joined #nixos
m0rphism has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 246 seconds]
realisat1on has joined #nixos
realisation has quit [Ping timeout: 260 seconds]
quinn has joined #nixos
<chipb>
oh, I spotted pythonEnv in the outputs of the nixops flake.
<typetetris>
chipb: no, they are build with poetry, so you would have to use poetry2nix somehow. But it is also unclear, how to combine them afterwards. Somehow, you need a python project with both of them as dependency maybe and then somehow get the app from nixops or so.
<typetetris>
but I am not a python developer
demize has joined #nixos
<chipb>
can you overrideAttrs that to add the nixops-libvirtd?
<energizer>
error: executing SQLite statement 'insert or replace into Refs (referrer, reference) values (?, ?);': database disk image is malformed (in '/nix/var/nix/db/db.sqlite')
<energizer>
this keeps happening. i dont think there is anything wrong with the database
<typetetris>
dies with errno 13 Permission denied on /nix/store/.../nixops-1.8.0/bin/charon
lsix1 has quit [Quit: WeeChat 2.9]
<bqv>
maybe i could just take morph and rip out the building part
_habnabit has joined #nixos
<energizer>
morph is nice, tho i wish it had concurrent deployments
<energizer>
sqlite3 doesnt see anything wrong with /nix/var/nix/db/db.sqlite, but nix-shell keeps reporting "database disk image is malformed"
<chipb>
typetetris: permission denied like bin/charon is not +x?
<energizer>
what is the deal
<suzanne>
Hi, I'm trying to populate /bin/, /lib etc. from a nix flake (on nixpkgs, not on NixOS). I hoped nix-env would help, but this gives "selector 'mypkgs' matches no derivations"
<bqv>
flakes changed enough that it now requires nix profile
<chipb>
jtojnar: I don't imagine so. nix-env's unapologetically dependent on NIX_PATH, right?
<chipb>
bqv: it did before? huh.
<bqv>
yep
<suzanne>
Indeed seems like it doesn't anymore ;) but I'll try anything that groups the binaries of a bunch of packages in a single dir
<jtojnar>
I have no idea, do not really use nix-env
<chipb>
typetetris: fwiw I'm having a go at it too. I'm stumbling over getting specialArgs to pass through inputs. it seems it doesn't work how I expected. :-/
<_habnabit>
hi! so idk if this is a nixos or nixops question (i'm just barely getting started with all of this) but how do i create arbitrary files/directories? i saw environment.etc but that's only for /etc? also if there's separate ways to like ensure a file has some contents vs. ensure that a file exists (and some default contents if it doesn't) but not care about what's in it
<jtojnar>
chipb specialArgs work great for me
<suzanne>
Hm, this seems more friendly, but expects a singe defaultPackage.x86_64-linux, not sure how to supply many packages: nix profile --experimental-features 'nix-command flakes' install . --profile /tmp/test/
<chipb>
jtojnar: I don't doubt that. I'm just apparently slow. heh.
<suzanne>
(thanks bqv for the pointer to nix profile)
<chipb>
jtojnar: care to pastebin an example?
pfr has joined #nixos
evhan has joined #nixos
<typetetris>
_habnabit: If you need stuff at runtime, you could create oneshot systemd-services, which create them. That is, what I usually do.
<chipb>
I'm getting an EvalError spitting out "attribute 'specialArgs' missing" somewhere in lib/modules.nix
<_habnabit>
typetetris, hypothetically that sounds good but that sounds like it would have quoting issues :(
evhan has quit [Client Quit]
<typetetris>
_habnabit: If the files you need don't contain secrets, just put the content in `writeFile` or some such and just copy them in place with the systemd service.
<energizer>
_habnabit: for files with fixed contents, it's typical to have programs read from nix store locations instead of from their normal arbitrary locations. for variable contents like databases and so on, some nixos modules take a dataDir= or similar argument.
<_habnabit>
energizer, makes sense. how do i specify the content of a file there
<_habnabit>
typetetris, oh writeFile might be what i wanted anyway?
<typetetris>
Okay, building the gist I posted, some builder tries to uninstall nixops-1.8.0 and fails because charon isn't writable in the nixstore ...
<typetetris>
_habnabit: `writeFile` just places the file in the store. I thought you wanted it in an arbitrary locatuon.
<_habnabit>
typetetris, i'm not sure!!
<_habnabit>
in the store might be fine
<typetetris>
_habnabit: Then `writeFile` is certainly easiest.
<chipb>
jtojnar: er, is the second link using specialArgs? it seems to be just capturing the attrlist into a binding named 'inputs', or I'm *really* misunderstanding what specialArgs is supposed to do.
<chipb>
oh, that's the outer call. I think I see what you're illustrating.
evhan has joined #nixos
<Graypup_>
say I'm on nixos-19.09 and I want to give a package a newer cargo and rustc, how would I do that?
<Graypup_>
write an overlay?
<Graypup_>
specifically I have a project that imports default.nix and requires a certain version of rust, which 20.03 has but 19.09 does not
<Graypup_>
*imports nixpkgs in default.nix but takes it as a parameter
<energizer>
Graypup_: does your package take nixpkgs as an argument, or rustc/cargo?
<Graypup_>
nixpkgs
<Graypup_>
but I guess I could make those arguments too to make that use case easier
<energizer>
it's usually easier that way
<Graypup_>
the thing that's a bugger is that since I am a nix extension, I need to have the system nix version
<Graypup_>
also, how would I do that with the rustPlatform.buildRustPackage?