shibboleth has quit [Remote host closed the connection]
rajivr has joined #nixos
<aanderse>
[jackdk](https://matrix.to/#/@freenode_jackdk:matrix.org): still need to tell the service to actually use the user
ddellacosta has quit [Ping timeout: 240 seconds]
<jackdk>
aanderse: the service runs as root, same as Amazon Linux 2 images on EC2. The ssm-user user is what Session Manager uses to provide a session when you connect through the AWS Management Console.
<infinisil>
nicolas[m]1: Nix can transform the latter statically into `{ foo = { bar = null; baz = null; }; }`, but it can't do the same with the former
<infinisil>
Because it doesn't know that both evaluate to "foo" at (I think) parsing time
h0m2 has joined #nixos
<jackdk>
manveru: any chance you can look at #99520 while it's cached in my head? ofborg has succeeded
<{^_^}>
dynamic attribute 'foo' at (string):325:3 already defined at (string):325:29
maxfield has quit [Quit: maxfield]
<infinisil>
And this doesn't work because it can't know anymore with anything more complicated than just a string
CMCDragonkai1 has joined #nixos
maxfield has joined #nixos
<infinisil>
The semantics of Nix can be rather peculiar
<nicolas[m]1>
So it's an purely a parse-time construct
<infinisil>
nicolas[m]1: Yeah
<infinisil>
nicolas[m]1: Actually you can verify this with `nix-instantiate --parse -E '<expression>'`
<nicolas[m]1>
Thanks
<nicolas[m]1>
Another question for you: is it possible to handle merging `mkOptionDefault` and other such things (mkOverride, etc.) when defining an option?
<nicolas[m]1>
I'd like to override the default behavior of merging definitions values
<infinisil>
`either` isn't necessary here, because coercedTo accepts both types already
<infinisil>
The options `default` attribute is already being set like `config = mkOptionDefault opt.default`. If you don't want the top-level mkOptionDefault, you need to set your defaults in the `config` section
<nicolas[m]1>
I'm aware that the priority on `foo.flags` and `foo.value` is different
<infinisil>
And your toAttr coercion doesn't define a flags default. But you can set `default = []` for the flags option to have one
<infinisil>
But maybe you should play around with priorities a bit. Only the definitions with the highest priority are merged together. And that works recursively
<infinisil>
> mergeDefs (types.attrsOf types.str) [ (mkDefault { x = 0; y = 1; }) { z = 2; } ]
<{^_^}>
- In `some-file.nix': 2
<infinisil>
> mergeDefs (types.attrsOf types.int) [ (mkDefault { x = 0; y = 1; }) { z = 2; } ]
<infinisil>
> mergeDefs (types.attrsOf types.int) [ { x = mkDefault 0; y = mkDefault 1; } { z = 2; } ]
<{^_^}>
{ highestPrio = 100; mergedValue = { x = 0; y = 1; z = 2; }; }
Guest86032 has quit [Quit: issued !quit command]
<infinisil>
> mergeDefs (types.attrsOf types.int) [ (mkForce { z = 2; }) (mkForce { y = 1; z = mkForce 3; }}) ]
<{^_^}>
error: syntax error, unexpected '}', expecting ')', at (string):325:94
<infinisil>
> mergeDefs (types.attrsOf types.int) [ (mkForce { z = 2; }) (mkForce { y = 1; z = mkForce 3; }) ]
<{^_^}>
{ highestPrio = 50; mergedValue = { y = 1; z = 3; }; }
<infinisil>
nicolas[m]1: ^
<nicolas[m]1>
Thanks for the answer
jani1234 has joined #nixos
cjpbirkb1 has quit [Quit: Goodbye, take care]
maxfield has quit [Quit: maxfield]
jmeredith has quit [Quit: Connection closed for inactivity]
maxfield has joined #nixos
<siraben>
What's the recommended approach to incremental builds in, say, C++ in Nix?
<ashkitten>
you can't
<ashkitten>
that would mean impurities
<drakonis>
it is possible to do impure builds though
<siraben>
What about using Bazel?
<simpson>
You can break up your system into multiple components and compile each of them as independent libraries. C++ doesn't afford per-module compilation in a way that we can use.
<simpson>
(This is very much a language design issue and requires language toolchain support.)
<ashkitten>
implying we have that for other langs? 👀
<simpson>
I implemented it out-of-tree for Monte, so it's definitely possible. It really does depend on what's required to build a module; Monte doesn't have header files or other contextual build inputs.
<drakonis>
tazjin has done it as well
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
<drakonis>
tweag seems to be interested in that too
<nicolas[m]1>
AFAIK this is what is also done for Erlang packages
<clever>
pjt_tmp: this script will run nixos-generate-config, then overwrite configuration.nix, and it assumes a generated.nix and hardware-configuration.nix are nearby
<clever>
pjt_tmp: justdoit.nix itself, is a nixos module you would add to the ISO, then you simply boot, and run `justdoit` in a shell, and bam, /dev/sda has been wiped and installed
<clever>
wave goodbye to any data you might have had on there!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ericsagnes has quit [Ping timeout: 272 seconds]
endformationage has quit [Quit: WeeChat 2.9]
ym555 has joined #nixos
ericsagnes has joined #nixos
IDoBeNewHere has joined #nixos
<IDoBeNewHere>
Hello, everyone. Apologies if this is a known issue, but I cannot seem to find a solution with my rudimentary Googling skills. Here's my config: https://termbin.com/64are
<IDoBeNewHere>
I just installed nixOS in a VM and it boots to a black screen after login. Sometimes the cursor is there, sometimes not.
Heirlung has quit [Ping timeout: 272 seconds]
Heirlung has joined #nixos
habbasi[m] has joined #nixos
<habbasi[m]>
I'm "IDoBeNewHere". Just joined from a different place -- Don't think KiwiIRC is the best.
IDoBeNewHere has quit [Remote host closed the connection]
<srhb>
habbasi[m]: That's after graphical login, yes?
Heirlung has joined #nixos
<habbasi[m]>
That's correct. After a graphical login that looks like it has the KDE theme.
<srhb>
Odd.
sangoma has joined #nixos
<habbasi[m]>
If the config looks okay, I can maybe just re-build, if there's a command to do that.
<srhb>
habbasi[m]: You can, though that's unlikely to make a difference unless you changed versions (that's sort of the promise of NixOS) -- the command is nixos-rebuild switch (probably followed by a reboot or restart of display-manager)
<srhb>
habbasi[m]: To me this sounds more like a plasma issue (you sometimes see the cursor)
<habbasi[m]>
Is there a way to pin plasma to a known working version?
<{^_^}>
[nixpkgs] @worldofpeace pushed 160 commits to gnome-3.38: https://git.io/JU5rj
<srhb>
habbasi[m]: Yes, (and more easily all of nixpkgs) but I think it's more likely to be some interop with your VM -- the version you're on (likely 20.03 stable?) is already known working on most setups.
<habbasi[m]>
20.03 stable yes, but I think it's the config, as the graphical installer booted fine.
nature has joined #nixos
<srhb>
That sounds realistic then. However, I don't know plasma well enough to guess at what you're missing that the installer has, sorry.
<habbasi[m]>
That's okay, thanks for taking a shot at it. <3
<srhb>
habbasi[m]: You could try just upgrading to the 20.09 beta.
<srhb>
habbasi[m]: Might be faster to check than going through all the differences
<habbasi[m]>
Is there a command to do that within nixOS?
<{^_^}>
[nixpkgs] @aborsu opened pull request #99541 → nixos/jenkins: switch to openjdk11 as openjdk14 is not supported → https://git.io/JU5Su
<simonpe^^>
why is it not possible to cross compile an entire nixos build for aarch64 but I can cross compile individual packages?
ardumont_ has joined #nixos
<simonpe^^>
why is qemu required? how can I help making this better? I'm quite experienced with embedded linux but from a yocto perspective
joey has joined #nixos
<ehmry>
simonpe^^: you can cross compile the whole build, you need to pass in `{ localSystem and crossSystem }` to `nixpkgs.config` (or something like that)
<simonpe^^>
ehmry: according to the raspberry pi documentation cross compiling requires binfmt-wrapper and qemu
maxfield_ has joined #nixos
sigmundv_ has joined #nixos
Ashy_ has joined #nixos
kmplsv1 has joined #nixos
<simonpe^^>
alternatively an arm buildserver to run it on
<ehmry>
what the documentation says doesn't matter, you have to look at the code
sdier_ has joined #nixos
<ehmry>
just assume the wiki is going to be wrong
<ehmry>
I mean that for any subject, not arm specifically
<ehmry>
there may be some specific things that need to be build using qemu, but generally you can cross-compile
<simonpe^^>
ok so I'm getting `error: a 'aarch64-linux' with features {} is required to build '/nix/store/6ip...-etc-fstab.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
inferenc1rules has joined #nixos
<simonpe^^>
before I disabled boot.emulatedSystems = [ 'aarch64-linux' ] it would build but through emulation and it was insanely slow, on top of that gcc segfaulted in the end of building the kernel
pinpox has quit [Ping timeout: 240 seconds]
maxfield has quit [Quit: maxfield]
kmplsv has quit [Ping timeout: 240 seconds]
ardumont has quit [Ping timeout: 240 seconds]
sdier has quit [Ping timeout: 240 seconds]
Ashy has quit [Ping timeout: 240 seconds]
inferencerules has quit [Ping timeout: 240 seconds]
fooker has joined #nixos
fooker has quit [Ping timeout: 240 seconds]
sdier_ is now known as sdier
luigy has quit [Ping timeout: 240 seconds]
luelista has quit [Ping timeout: 240 seconds]
Pwnna has quit [Quit: Bye]
luelista has joined #nixos
<ehmry>
that seems like the cross-compile isn't configured correctly, fstab is probably just a trivial `writeText` derivation
Pwnna has joined #nixos
luigy has joined #nixos
<simonpe^^>
it might be, do you mind looking at my example?
<ehmry>
simonpe^^: np, or improve the documentation
orivej has joined #nixos
<ehmry>
I have an arm laptop so I have to deal with this sort stuff, but I can assure you that nixos arm works
<ehmry>
and works quite well
<simonpe^^>
ehmry: the problem is I don't really understand the cross compilation system of nix properly, I use nix to build arm containers for an embedded arm device at work but there it "just works" by setting crossSystem.config = "aarch64-unknown-linux-gnu"
<simonpe^^>
but we use yocto to build the OS to run the containers on
<simonpe^^>
but I feel that this example repo of mine could be added somewhere to the wiki so others don't have to start from scratch
<simonpe^^>
possibly ported to flakes
<ehmry>
idk, I haven't used containers. you may still need aarch64-linux build emulation, but that should kick in very rarely
maxfield has quit [Quit: maxfield]
maxfield has joined #nixos
tazjin has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simonpe^^>
oh, how would I figure out what's included in the base nixos install? Do you know where that's defined and how I could override it?
zupo has joined #nixos
<simonpe^^>
I mean, coming from yocto where you pretty much can slim down the image to about 6MB in size I want to evaluate how I could achieve something similar with nixos
ericsagnes has joined #nixos
tazjin_ has joined #nixos
meh` has joined #nixos
tazjin has quit [Ping timeout: 272 seconds]
hl_ has joined #nixos
<{^_^}>
[nixpkgs] @ttuegel opened pull request #99542 → [20.09] kdenetworking-filesharing: move to top level → https://git.io/JU5Q5
tazjin_ is now known as tazjin
zupo has quit [Ping timeout: 240 seconds]
ManiacOfMadness has quit [Ping timeout: 265 seconds]
<meh`>
is there any script/darkmagic currently that automates converting another Linux install to NixOS?
<meh`>
trying to transplant NixOS on an LXC VPS thingy that only comes with Ubuntu
<MichaelRaskin>
Well, there is NIXOS_LUSTRATE
<srhb>
meh`: There are lots of them. I think one of the kexec-variants are easy to use, without too many details
<meh`>
srhb, I noticed, I was looking for some advice on which one to try first instead of doing a linear search for one that works :P
<meh`>
MichaelRaskin, I think I did try with that and things exploded in weird ways, but I don't remember what was happening, just found the time to get back on this
<hl_>
hey guys, how are you?
sigmundv_ has quit [Ping timeout: 258 seconds]
<srhb>
meh`: I think kexec is the simplest one, because you get to work from a blank slate rather than having to keep your OS in place. But I've done it from arch before using just the regular installer tools.
<MichaelRaskin>
Oh, sorry
<MichaelRaskin>
It's LXC, not KVM, so another set of fun
<meh`>
srhb, wouldn't that need a VM and not an LXC?
<meh`>
MichaelRaskin, yep
<srhb>
oh... right
<srhb>
Yeah, it would. Meh :)
<meh`>
I'm regretting getting this VPS thingy, I ain't gonna manage an Ubuntu server
<MichaelRaskin>
Just install Nix and nix-build the unit files for what you want to have
<MichaelRaskin>
Let this Ubuntu install handle start-up and IP address, should be up to task for _that_ part
akaWolf has quit [Read error: Connection reset by peer]
<meh`>
MichaelRaskin, tell me more about the nix-build stuff?
<meh`>
any references?
akaWolf has joined #nixos
rprije has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
In an extreme case, write your configuration.nix and nix-build -I nixos-config=/path/to/configuration.nix '<nixpkgs/nixos>' -o nixos
<MichaelRaskin>
The output contains some unit files that you can just symlink wherever the carrier Ubuntu expects them·
<meh`>
oof, that sounds very hacky, but sort of worky
<MichaelRaskin>
I mean, later you can learn what -A to pass to get _just_ the unit files (although most of the stuff will be built anyway via dependencies)
hanetzer- has quit [Changing host]
hanetzer- has joined #nixos
hanetzer- is now known as hanetzer
hanetzer is now known as hanetzer-
hanetzer- is now known as hanetzer
<enteee>
I am struggling installing any plugins for current nixops @ master. is there any doc for the new plugin system?
akaWolf has quit [Read error: Connection reset by peer]
akaWolf has joined #nixos
waleee-cl has joined #nixos
maxfield has quit [Quit: maxfield]
maxfield has joined #nixos
meh` has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @risicle opened pull request #99543 → [20.09] pythonPackages.hidapi: fix build on darwin → https://git.io/JU5Fs
guest74637 has quit [Remote host closed the connection]
guest74637 has joined #nixos
guest74637 has quit [Max SendQ exceeded]
sputny has quit [Remote host closed the connection]
sputny has joined #nixos
<simonpe^^>
I'm having some probelms building cairo for aarch64 with nixpkgs-unstable, its configure script can't find `fontutil` and I can't find any derivation providing that tool
ElNomReal has quit [Remote host closed the connection]
<simonpe^^>
I'm trying to write an overlay that adds something to the `nativeBuildInputs`
<{^_^}>
[nixos-homepage] @garbas pushed to redesign-download « Implementing h2 headers on download page »: https://git.io/JUdkQ
grobi has quit [Quit: WeeChat 2.8]
<{^_^}>
[nixpkgs] @06kellyjac opened pull request #99557 → Conftest version → https://git.io/JUdkA
<simonpe^^>
I think I've found a bug in the xserver service definition; it adds some keyboard validation stuff to the system.extraPackages that doesn't work under certain circumstances. How I can override the service.extraDependencies of the xserver service?
<simonpe^^>
s/extraPackages/extraDependencies
maxfield has quit [Quit: maxfield]
maxfield has joined #nixos
<pie_>
infinisil: ok maybe thats the same exact issue i run into every time i do this
<pie_>
i still remember it working :(
sangoma has quit [Ping timeout: 240 seconds]
<pie_>
oh you know what, maybe most of the time i was using it with default.nix-es
<{^_^}>
[nixpkgs] @erictapen opened pull request #99558 → [20.03] python.pkgs.fontforge: disable with Python 2 → https://git.io/JUdIz
fendor has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
jani1234 has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<romildo>
I am co-maintainer of some packages in nixpkgs. Another maintainer is tstrobel, which I am failing to find on github. Can/Should I safely remove him from the maintainer list?
maxfield has quit [Quit: maxfield]
bbarker has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pinpox>
So lets say I have a small program I wrote (single binary), how would I create a nixos package for it and install it from my configuration.nix?
<pinpox>
Not worth contributing to nixpkgs, just some custom personal helpers usefull to me
<meh`>
pinpox, I'd just shove it in an overlay
<pinpox>
meh`: Ok, I have not worked with overlays, will look into it.
<pinpox>
Thougth i might be able to put all my custom pkgs in a repo and add it as source somehow
<meh`>
that would be an overlay :P
<pinpox>
:D
<pinpox>
Nice, I'm on the right track then I suppose
<{^_^}>
[nixpkgs] @Ekleog opened pull request #99564 → matrix-synapse module: fix documentation and add release notes → https://git.io/JUdmR
maddo has joined #nixos
<pinpox>
meh`: Judging by the name "overlay" I can replace packages from nixpkgs with customized ones aswell?
<meh`>
pinpox, yep!
<pinpox>
sweet
<pinpox>
Thanks for the hint, I'll go do some wiki-reading
<meh`>
good luck! :D
<{^_^}>
[nixpkgs] @fishi0x01 opened pull request #99565 → vsh: init at 0.7.2 → https://git.io/JUdmi
<pinpox>
meh`: do you have any simple overlays publicly available I could take as example?
Soo_Slow has joined #nixos
d3vnu11 has joined #nixos
d3vnu11 has quit [Remote host closed the connection]
<meh`>
pinpox, nothing public, I'm always lazy and just shove it in the configuration.nix directly
<infinisil>
Though you don't really need overlays to include your package in a nixos system
<meh`>
^ that too, I'm no expert, so take my word with a grain of lazy
<infinisil>
Just `environment.systemPackages = [ (import ./path/to/package) ]` would work, assuming you have a working default.nix in that path
ddellacosta has joined #nixos
cinimod has joined #nixos
<pinpox>
infinisil: That looks actually way easier
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @FRidh opened pull request #99567 → Revert "python3Packages.localzone: Use dnspython_1" → https://git.io/JUdOX
<{^_^}>
[nixpkgs] @mweinelt opened pull request #99568 → python3Packages.localzone: revert dnspython downgrade and mark as broken → https://git.io/JUdO1
<{^_^}>
[nixpkgs] @risicle pushed 2 commits to release-20.09: https://git.io/JUdZc
davidv7 has joined #nixos
domogled has quit [Ping timeout: 246 seconds]
<evernite>
Hey, I would like to set OnFailure=send-mail%n for all systemd services to send me notifications when a Units fail. I've tried what user <Streetwalrus> posted a few years back with no success.
alexherbo2 has joined #nixos
<Streetwalrus>
yeah, I did try, as far as I can tell there is no good way to do this
cfricke has joined #nixos
<Streetwalrus>
what would be really useful is if systemd had a global option for it, otherwise it's possible to write a service that monitors things over dbus, but I haven't really looked into it
ekleog has quit [Quit: back soon]
hl_ has joined #nixos
ekleog has joined #nixos
<evernite>
Streetwalrus: Thanks. Yeah a global option wold be great. I found a github project "joonty/systemd_mon" which uses dbus, but its not quite what I was looking for.
cfricke has quit [Quit: WeeChat 2.9]
<evernite>
Streetwalrus: My main objective is to have an OnFailure= for a borgbackup job. Do you know if there is a good way to just override the systemd borgbackup module?
<xensky>
the instructions for manual binary patching (https://nixos.wiki/wiki/Packaging/Binaries#Manual_Method) aren't working for me. i set the interpreter, ldd'd for the missing libs, located packages that have those libs, made a library path, and set-rpath'd the executable. it still complains that the libs aren't found. i'm not sure why it's not working.
<{^_^}>
[nixpkgs] @jonringer pushed 2 commits to release-20.09: https://git.io/JUdCY
alexherbo2 has joined #nixos
<{^_^}>
[nixpkgs] @gytis-ivaskevicius opened pull request #99574 → Add 'environment.opt' (similar to 'environment.etc') → https://git.io/JUdCZ
<evernite>
infinisil: Thanks alot! This is exactly what I was looking for!
<infinisil>
Though I guess it actually doesn't set it for *all* services. Only the ones that have been defined with NixOS (which are most)
<Unode>
hi all, I vaguely recall tooling to add pypi packages to nixpkgs. I'm not referring to pip2nix or pypi2nix but some import script that was also used to keep nixpkgs up to date. Am I daydreaming? I can't seem to find that code in nixpkgs right now.
<Unode>
I'd like to add a package to the list but want to avoid adding it manually if there's "another way"
<oblomov>
when using vlc to play an mp4 video, the sound I get consist entirely of a series of very rapid clicks. Vlc says that the audio is encoded as "A52 audio (aka AC3) (ac-3)" but I'm not finding the appropriate codec, nor any info on this problem except tangential problems like https://github.com/NixOS/nixpkgs/issues/25502
<{^_^}>
#25502 (by izuk, 3 years ago, closed): plex: EasyAudioEncoder binary has the wrong linker
<oblomov>
so, should I install different codecs for ac-3 audio?
<{^_^}>
[nixpkgs] @deliciouslytyped opened pull request #99578 → rr: 5.3.0 +> 9ff37581 in rr-unstable add unstable until a new release is made → https://git.io/JUdR2
ddellacosta has joined #nixos
sphalerite has quit [Quit: boot, boot, boot, boot, reboot the outdated server]
alexherbo2 has quit [Ping timeout: 260 seconds]
nschoe has quit [Remote host closed the connection]
alexherbo2 has joined #nixos
<{^_^}>
[nixpkgs] @eliasp opened pull request #99579 → nixos/restic: correct location of cache directory → https://git.io/JUd0v
<dave8>
symphorien[m] thanks, that worked, i wanted to try services.xserver.resolutions in the same manner and searched for it. then i wrote in the config:
Izorkin has quit [Ping timeout: 260 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<dave8>
services.xserver.resolutions = [{"x": 1980, "y": 1200}], but i get the error that it is not expecting :
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
sputny has quit [Remote host closed the connection]
<clever>
dave8: sets must be key = value; pairs, not key : value,
jani1234 has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
sputny has joined #nixos
<sphalerite>
clever: hah, the option documentation is wrong.
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<clever>
Example: [ { x = 1600; y = 1200; } { x = 1024; y = 786; } ]
<clever>
sphalerite: on my end, the example value is proper nix
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
zacts has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @vcunat pushed to master « Re-Revert "xorg: mark fonts with proprietary licences as unfree" »: https://git.io/JUdaW
jani1234 has quit [Ping timeout: 240 seconds]
<sphalerite>
clever: on search.nixos.org though
<xensky>
i'm trying to nix-shell with libs to patchelf an executable, but it can't find the libs. stuff like libX11, libXcursor, etc. but i can clearly see that nixpkgs has used them to build things, so how do i access them?
<dave8>
is anybody familiar using nixos and i3 and putting a certain resolution at the start?
cizra has joined #nixos
<{^_^}>
[nixpkgs] @NinjaTrappeur pushed 0 commits to nin-fix-plasma-workspace-stable: https://git.io/JUdVe
<cizra>
Hello! I need to rescue a broken system - I need to add a kernel module to initrd. I have a NiOS installer on USB here, and I can nixos-enter into the target - yet I can't run nixos-rebuild switch because "error: writing to file: Operation not permitted". What's it lacking?
<cole-h>
sudo, probably
<cizra>
After chrooting, I'm root by default.
<MichaelRaskin>
What about nixos-rebuild boot, BTW?
<cole-h>
Oh, may be a problem with namespaces in the ISO
<cole-h>
`Nix tries to set up some Linux kernel namespaces, which could fail with "error: writing to file: Operation not permitted".`
<cizra>
MichaelRaskin: same
maxfield has joined #nixos
<cizra>
cole-h: That sounds plausible.
<MichaelRaskin>
cole-h++
<{^_^}>
cole-h's karma got increased to 95.99999999999996
<cizra>
For the time being, I'll unhose my system by removing the lvmcache thingy that required an extra module, add the module, then readd cache.
mekster has quit [Read error: Connection reset by peer]
cizra has quit [Quit: Lost terminal]
magnetophon has quit [Read error: Connection reset by peer]
cizra has joined #nixos
sputny has quit [Quit: sputny]
sputny has joined #nixos
magnetophon has joined #nixos
MrShatteredMirro has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
magnetophon has joined #nixos
zupo has joined #nixos
xelxebar has quit [Remote host closed the connection]
bk1603 has joined #nixos
xelxebar has joined #nixos
<scott>
is it possible to make a src derivation that doesn't check its output hash? i'm trying to do something a bit unusual outside of nixpkgs. my only issue with builtins.fetchurl is that it downloads at eval time instead of build time
<pinpox>
I think I found a bug in the borgbackup package, could someone verify this before I submit an issue: This is the script generated by my config: https://termbin.com/2fy85 . The location "::$archiveName$archiveSuffix" should contain a user@host part before the "::" shoudn't it?
<pinpox>
Administrators may place a configuration file in the Thunderbird installation folder. This is mainly intended for companies who install Thunderbird on their employees' computers and want to enable easy account setup without having to set up a configuration server.
<pinpox>
maybe this can be used?
<hl_>
hey guys
magnetophon has joined #nixos
<Reiser>
I have a nix expression in a file that is a derivation, I thought I could just throw this into environment.systemPackages [ ./myderivation.nix ]; but It's complaining that it is not of type "package", I'm struggling to find the right documentation on what I'm missing here
<Reiser>
I'm guessing I need to wrap my derivation in something extra
zacts has joined #nixos
<infinisil>
Reiser: What you gave is a path
<infinisil>
You probably want to import that path though
<infinisil>
So `(import ./myderivation.nix)`
<Reiser>
Oh, oh of course, argh, so obvious when you say it
<infinisil>
:)
magnetophon has quit [Read error: Connection reset by peer]
<Reiser>
Actually still complaining with the same error though :)
<tmciver>
pinpox: That may work. Thanks.
<Reiser>
The package is laid out as: `{ pkgs ? import <nixpkgs> {}, ... }: derivation {}`
ericsagnes has joined #nixos
magnetophon has joined #nixos
<pinpox>
tmciver: If you get it working, would you mind sharing? I'm interested in this aswell
<notgne2>
`pkgs.callPackage` is basically `import` but the last argument is merged with `pkgs`
<Reiser>
Ahhhh, so the short version is, the packages in systemPackages are supposed to already be an actual derivation
maxfield has quit [Quit: maxfield]
<Reiser>
For some reason I assumed they were being called with pkgs by some root thing
<Reiser>
Got it
<notgne2>
it's only really needed if your derivation was like `{ someDependency, ... }: derivation {}`, but `pkgs.pkgs` exists too, so callPackage will work equally to what infinisil (chat.freenode.net) said
maxfield has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
<Reiser>
That makes sense
magnetophon has joined #nixos
magnetophon has quit [Read error: Connection reset by peer]
<jdnixx>
wow nvm. I guess it was literally because of that syntax error inmy configuration.nix
ReqGame has quit [Ping timeout: 240 seconds]
Izorkin has quit [Ping timeout: 240 seconds]
Izorkin has joined #nixos
domogled has joined #nixos
<samueldr>
I guess that core dumping is not great though
zupo has joined #nixos
NinjaTrappeur has joined #nixos
<jdnixx>
yeah so I think it does still happen with some other options
<jdnixx>
lemme see
noudle has quit []
<{^_^}>
[nixpkgs] @SFrijters opened pull request #99589 → maestral-gui: Fix Qt5 version again → https://git.io/JUd1S
<jdnixx>
oooh is it normal to get core dumping when you try to query with `nixos-options` for things that aren't enabled at all?
bk1603 has quit [Ping timeout: 240 seconds]
<jdnixx>
ok I might be crazy. nvm again. I can't find anything that core dumps for me anymore...... but while I'm at it might as well ask why might i have nix 2.3.7 if I installed originally with the unstable iso
<sphalerite>
jdnixx: because nix 2.3.7 is the latest version
__monty__ has quit [Quit: leaving]
<sphalerite>
jdnixx: nixos-unstable is not to be confused with nix unstable :) you can use unstable nix on both nixos-unstable and nixos versions, by setting nix.package = pkgs.nixUnstable
noudle has joined #nixos
<jdnixx>
ahhhhhhhhhh wow gotcha
<jdnixx>
I thought it was like 2.4 or 3.0 or something
<{^_^}>
[nixpkgs] @santicalcagno opened pull request #99591 → fbpanel: fix build by adding gdk-pixbuf-xlib → https://git.io/JUdML
domogled has quit [Remote host closed the connection]
<notgne2>
solene: I had a similar thing with a SNSV C302, after some searching I found this config file by somebody else which worked perfectly, it can probably be adapted for your usage too
<notgne2>
though be very careful because misconfiguration can actually set your laptop on fire sometimes, this almost happened to me
<sphalerite>
jdnixx: I think the next release will be 3.0, but that's still a way off.
<cole-h>
s/I think//
<cole-h>
Building from master already gets you 3.0prexyz
<cole-h>
:D
<notgne2>
solene: it's a bit confusing at first, but honestly nixos is the only reason my old laptop had sound at all, getting it to work and maintaining it on any mutable distro was more more effort than I was willing to put in
grobi has quit [Quit: WeeChat 2.8]
<sphalerite>
solene: oh boy, that stuff is "fun"… nixpkgs doesn't support swapping out ucm files well, they're linked directly into the alsaucm package which means that swapping them out requires rebuilding everything that depends on alsa.
<notgne2>
sphalerite (chat.freenode.net): I don't think the config I used needed any extra rebuilds, though honestly I have no idea how it worked either, I just copy pasted and fixed some URLs
<notgne2>
I guess it uses replaceRuntimeDependencies though I don't know what that's for
maddo has quit [Remote host closed the connection]
joehh1 has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @ezemtsov opened pull request #99598 → iconnconfig: init at 0.5.2-beta → https://git.io/JUd5j
guest74637 has quit [Ping timeout: 240 seconds]
m0rphism has quit [Ping timeout: 246 seconds]
Soo_Slow has quit [Ping timeout: 246 seconds]
Rusty1 has joined #nixos
dave8 has joined #nixos
<dave8>
i want to install nixos on another partition of mine. The next step i have to type is "nixos-install". But how does my system know on which partition this should be installed or should i boot into the partition first?
<notgne2>
dave8: it will use what's in your `hardware-configuration.nix` iirc, I don't remember how that gets generated
<V>
dave8: nixos-install does not partition anything for you. it's like on Arch, you have to set that up yourself
ym555 has quit [Ping timeout: 256 seconds]
<V>
there's nixos-generate-config (w/ --show-hardware-config) that autodetects what partition scheme you have, etc
<V>
but you have to explicitly specify in your config which filesystems you have and on which devices/partitions they can be found
<dave8>
i am just afraid i will override my own system
<V>
nixos-install installs a full NixOS system in /mnt
<dave8>
okay thanks
<V>
so, mount whatever partition you want to contain NixOS on /mnt, put your configration.nix in /mnt/etc/nixos
<V>
it'll install a bootloader in your ESP or where specified by boot.loader.grub.device if you're using GRUB (unless you pass --no-bootloader)
<V>
check out the manpage
romildo has joined #nixos
bbarker has quit [Remote host closed the connection]
<dave8>
thanks V, one problem i have is i need to do "sudo nixos-install" ,but root cannot find the path for nix-build or nixos-install. Is this problem known?
<V>
what's `which nixos-install` give you?
romildo has quit [Client Quit]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<dave8>
V its shows: /home/dave/.nix-profile/bin/nixos-install
<V>
then that would be why
<V>
you only have it installed locally for your user
<V>
I'm confused, though. running `sudo nixos-install` should find that b/c sudo inherits your PATH
<V>
or did you actually change to the user root
<{^_^}>
[nixpkgs] @worldofpeace pushed 7 commits to gnome-3.38: https://git.io/JUdF4
<dave8>
V i tried both. but now i made a multiuser installation
<dave8>
but now i miss pathes for both. maybe because i use zsh
dave8 has quit [Remote host closed the connection]
dave8 has joined #nixos
<evanjs>
So I'm failing to build a project that depends on sysinfo (rust crate). So far, I've tried using crate2nix and cargo2nix, but both fail to compile the crate. as far as I know, it has no other dependencies... 🤔
<evanjs>
with crate2nix, I get "error: extern location for sysinfo does not exist: /nix/store/gnf8swaz40pglcy8kr41ikha1qk8522i-rust_sysinfo-0.15.3-lib/lib/libsysinfo-8254a9e06f.rlib", and with cargo2nix, the crate fails to compile altogether
<dave8>
i still fail to install because the root user cant see the path
<dave8>
anyone any idea?
<dave8>
i am trying to install from my linux partition to another partition