<veleiro>
i'm looking to wrap a nixpkgs but add a custom config as an attribute, like --config <config file in nix store> is there any such example in nixpkgs?
<veleiro>
i'm using pkgs.symlinkJoin and pkgs.makeWrapper but I'm not sure how to copy the config file to the output in symlinkJoin?
poscat has quit [Remote host closed the connection]
poscat has joined #nixos
Supersonic112 has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
gustavderdrache has joined #nixos
gustavderdrache has quit [Client Quit]
Supersonic has quit [Ping timeout: 264 seconds]
Supersonic112 is now known as Supersonic
awmv has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nix] @Ericson2314 opened pull request #4589 → Make `nix build --json` return output paths in floating CA case → https://github.com/NixOS/nix/pull/4589
<siraben>
How do I specify the binary to run by `nix run`?
<redmp>
What's the shortest way to do a monadic action for each of the cross of two lists? I came up with `sequence $ liftM2 (\a b -> print (a, b)) "abcde" [1..6]`
Dr8128 has quit [Ping timeout: 260 seconds]
<peterstorm[m]>
Anyone know if Geforce 3070 is supported in Nixos? Can't seem to get passed 'Reached target Graphical Interface' in the installer
<redmp>
wrong channel, sorry
redmp has left #nixos [#nixos]
<cole-h>
peterstorm[m]: Installer might not have a new enough nouveau -- did you try any of the other boot options (I think the one you're looking for is `nomodeset`)
<cole-h>
siraben: You can't.
<peterstorm[m]>
cole-h:
<cole-h>
You need to use `nix shell ... -c command`
<siraben>
cole-h: yeah I figured I had to do that
<peterstorm[m]>
Whoops. Yeah, I used nomodeset :(
<siraben>
but looks like the flakes output schema has support for specifying the binary as well
<samueldr>
peterstorm[m]: maybe the "new kernel" iso, but it will be the minimal iso
<samueldr>
unless you build it yourself
* samueldr
digs up a link
<cole-h>
siraben: yeah, for "app"s you can specify what it runs
<cole-h>
but that doesn't help for nixpkgs package :P
<peterstorm[m]>
ill try using the minimal iso yeah
<samueldr>
instead of "the current LTS" (which I'm not sure is true anymore since 5.10 was released) it'll be the most recent kernel released, it should be 5.11.something
<peterstorm[m]>
samueldr: How can I build it? :D
<samueldr>
you can download it, if minimal is fine
<peterstorm[m]>
oh its there for download, sorry :D
<samueldr>
if you want to build a graphical iso with the new kernel... it's a bit more involved, but possible too
<peterstorm[m]>
It should be fine. I installed using the minimal last time, but for some reason my system broke. couldnt recognize wifi or anything :(
<srhb>
peterstorm[m]: If "doesn't see my wifi" means that the adapter isn't even showing, maybe boot an older version of the installer and use lspci to find out which module is used for it, then we should be able to figure out what the installer might be missing.
waleee-cl has quit [Quit: Connection closed for inactivity]
<aforemny>
ronthecookie: You want to use `minecraft.overrideDerivation(oldAttrs: { version = "xyz"; })`. `.override` only allows you to override its inputs, not the derivation's attributes.
<ronthecookie>
aforemny: ooh thanks, didn't know that one!
<aforemny>
ronthecookie: Actually, the manual recommends using overrideAttrs instead of overrideDerivation.
<remexre>
is there a good way to efficiently compute a greatest fixpoint in nix
o1lo01ol1o has joined #nixos
<ronthecookie>
aforemny: i added this but now its angry because it didn't expect the let binding to be a function https://i.ronthecookie.me/aKDgLwH.png
BaughnLogBot has quit [Ping timeout: 245 seconds]
hyper_ch4 has quit [Ping timeout: 272 seconds]
BaughnLogBot has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<ronthecookie>
ok i avoided the problem, it seems the other way i wanted to do it didn't work because of some bad syntax design
zupo has joined #nixos
civodul has joined #nixos
tomberek has quit [Quit: Connection closed]
m0rphism1 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<levels>
Hi all, has anyone managed to work around the outdated Vagrant NixOs network integration? Since version 20.09, the older format to define network interfaces errors out (used to be a deprecation warning in 20.03). I managed to work around this myself by simply adjusting the template Vagrant is using internally - see my fork
<levels>
But now, I'm using NixOs as main OS and I should compile vagrant from source, but that seems to trigger a lot of extra work as all plugins I use will have to be compiled from source as well.
spudly- has joined #nixos
<levels>
I could simply ditch Vagrant though, I'm well aware of that, since I can now hapily use NixOps instead, still I'd like to know if anyone else has encountered this and found an easier solution than compiling from source
spudly has quit [Ping timeout: 240 seconds]
spudly- is now known as spudly
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chreekat[m]>
How invested are you in the older format?
<levels>
This is obviously only for local development and the only reason I'm using vagrant is to allow some less savvy users to still spin up the dev box
<levels>
I personally couldn't care less what format is used, all I want is to still be able for a non nix user to simply call vagrant up and be done with it ;-)
<levels>
I will propose a PR to the vagrant repo, but this will break if anyone is still using older versions of NixOs, where the attribute set format will not work
<levels>
I kind of regret that NixOs removed the compability feature they had in place in the 20.03 branch
<chreekat[m]>
Oh wait, is it Nixpkgs that's still using the old format?
<levels>
I'm no ruby / vagrant developer fyi so I don't even know where to start to have a version check built in
<levels>
Nono, it's entirely vagrant
<levels>
check the link above: their internal template used for creating the network definitions is simply stuck on the old format
<chreekat[m]>
I think I still don't understand where the old format comes into it
<levels>
exactly, hence my question here if anyone has an alternative way
<levels>
As explained, I could just build vagrant from source, but then I have to build the plugins from source as well, have to install ruby (yikes), ...
<chreekat[m]>
Reminds me of the "old != stable" debate
<chreekat[m]>
Yeah :/
chisui has quit [Ping timeout: 240 seconds]
<levels>
Well, I'll post my PR, let's see what happens;-)
<levels>
And I'll prep myself for compiling vagrant
<levels>
wouldn't surprise me I'm the only one still using Vagrant with NixOs :rofl:
<chreekat[m]>
I can't think of any quick fix - either get Nixpkgs to revert to older vagrant, or get vagrant fixed and backport the fix
<chreekat[m]>
I'm using it :)
<chreekat[m]>
For the same purpose even
<levels>
Ooof ;-)
<levels>
But then you're not using 20.09?
<chreekat[m]>
cough
<etu>
levels: I'm a daily user of vagrant :)
<levels>
chreekat[m] lmao
<etu>
levels: I'm on unstable, but for some reason I pull my vagrant from 20.09 and my chefdk package from 20.03. Pinning is amazing :p
<etu>
oh, chefdk is even 19.09 :D
<levels>
I guess that's the reason then ;-)
<levels>
(or on of the reasons)
<levels>
anyway, lets get to compiling and see how far I get, rather not go the whole way of working around this when I can fix the issue at the source
<levels>
s1341_ be a little patient, this community is amazing, I'm 100% sure someone will jump in
<levels>
I'm still in awe about srhb jumping in a few weeks ago, going as far as to check-out my repo and find the exact issue that was causing my issue :bow:
<aforemny>
Hi, I am following https://mobile.nixos.org/devices/pine64-pinephone.html , flashing mobile-nixos-boot.img to /dev/mmcblk0p1 fails with 'no space left on device'. Indeed that image is 55M big, but /dev/mmcblk0p1 is only 16M big. Am I doing something wrong?
fuzzypixelz has joined #nixos
m4ts has joined #nixos
m4tsa_ has quit [Ping timeout: 276 seconds]
<etu>
aforemny: The image is bigger than that partition and then it won't fit
<madonius[m]>
How do you people handle stuff like standby when the battery is low on a laptop?
<madonius[m]>
is there something comfortable?
mananamenos has joined #nixos
sangoma has quit [Ping timeout: 264 seconds]
<andi->
systemd automatically suspends the machine and you can also configure it to hibernate (if you have that set up)
cole-h has quit [Read error: Connection reset by peer]
<rnhmjoj-M>
technically the battery should send discharge event and udev/systemd/acpid or whatever should react on those events and suspend or hibernate the computer
<rnhmjoj-M>
in practice i have never had a laptop where this worked properly, as usual with anything hardware-related
<rnhmjoj-M>
madonius[m]: just copy-paste it in your configuration.nix or download the file and add it to the "imports" list, then define on the option in the first half of the file
meh` has joined #nixos
<sterni>
madonius[m]: in that case the best would be to save it somewhere, for example in /etc/nixos
<avn>
Folks! Have curious question.... I have a custom library, which load gstreamer and plugins (also custom), which using libcuda.so.1 -- it work on nixos, and _with_ LD_PRELOAD on other distros. A question -- how I can use it w/o LD_PRELOAD (or emulate LD_PRELOAD from library)
zimbatm_ has joined #nixos
<sterni>
madonius[m]: then you'd have imports = [ ./battery.nix ]; in your configuration.nix and then you could use the new options defined there: laptop.onLowBattery = { enable = true; treshold = 3; action = "suspend"; };
<avn>
(I thinking about dlopen("libcuda.so", RTLD_LAZY | RTLD_GLOBAL) before load gstreamer, but not sure
<madonius[m]>
sterni: thanks, it worked :)
zimbatm has quit [Ping timeout: 256 seconds]
<madonius[m]>
now I have to wait for my laptop to "die"
<{^_^}>
nix-community/vagrant-nixos-plugin#16 (by 4levels, 47 minutes ago, open): How to compile from source
<levels>
cc zimbatm_ I know you have pbbly better things to do, but I've been trying since this morning to update Vagrant's bug with the newer networking format from NixOs
<dejanr>
Hello all, i have been having troubles with new GPU Radeon 6800xt, i tried different kernel, drivers nothing works, X.org fail to start all the time https://pastebin.com/y69qqFzj
Jackneill has quit [Remote host closed the connection]
orion has joined #nixos
zupo has quit [Client Quit]
<{^_^}>
[nix] @grahamc opened pull request #4593 → (Backport #4574) distributed builds: load remote builder host key from the machines file → https://github.com/NixOS/nix/pull/4593
<adisbladis>
dejanr: That's not the latest unstable
ztrawhcse is now known as elibrokeit
<adisbladis>
5.11 is the latest kernel on unstable
jonringer has joined #nixos
<dejanr>
i have nixos-unstable channel, is it in unstable-small?
<orion>
Hi. I am trying to build a nixpkg via "nix-build -p foo", and it successfully compiles and installs. For some reason, nix-build is trying to install another derivation and I do not know why.
<orion>
How can I investigate the cause of this derivation?
<sbock>
hey, i just wanted to inform you that the linked sha256sum on the download page is for a newer iso of the gnome release than the linked iso. 20.09.3332 vs 20.09.3341. the plasma release is fine though :)
<adisbladis>
sbock: I think you've been hit by the unfortunate side effect of the redirect being a 301
<gchristensen>
srhb: have you seen this error, or something like it, with morph before? The option `networking.hostName' has conflicting definitions, in `/nix/store/ddl67nlk27q5lv5mrq8si7ppxxgwdh00-ci00h76wb09lgqf0bjjkqvva1nfvxc22-nixpukgsw/nixos/modules/virtualisation/amazon-image.nix' and `<unknown-file>'.
<gchristensen>
I guess I just need to specify something stronger than a default
<gchristensen>
maybe one of them should be an even lower default
<srhb>
gchristensen: iirc morph does essentially exactly what nixops does wrt. setting hostName from the attribute in the deployment
<gchristensen>
cool
<srhb>
gchristensen: But maybe that does have a bad priority.
<gchristensen>
I guess the only difference here is nixops creates the machine in a way that the two modules agree on exactly what the default should be
berberman has joined #nixos
<srhb>
gchristensen: Right, yes, probably morph is naively mkDefault'ing.
<gchristensen>
yeah, cool, thanks! that makes senes to me
<gchristensen>
srhb: I've been using this pattern lately of terraform + morph across a bunch of repos, of using tf to create servers, and then an `output` block creates a json block of server names, ips, and a little bit of nix expr : https://github.com/ofborg/infrastructure/blob/master/terraform/base/packet.tf#L3-L16 and then importing that in to the repo:
<gchristensen>
I really like the predictability of terraform and the mental simplicity / robustness of the integration...
<srhb>
gchristensen: That looks interesting indeed! I've not used terraform for.. Years, actually, and I was a bit scared of it back then. Like, I couldn't predict it easily leading to too much mental overhead, but maybe that's just a questio of practice.
<{^_^}>
[nixpkgs] @mweinelt pushed 180 commits to staging-next: https://git.io/JtpVF
nf has quit [Quit: Fairfarren.]
civodul has quit [Remote host closed the connection]
nf has joined #nixos
<chisui>
Hey, I wanted to add myself as a maintainer. But the PR was just closed. Currently I just want to do stuff in `home-manager` but that uses the nixpkgs maintainer list.
civodul has joined #nixos
shibboleth has joined #nixos
teasea has quit [Quit: teasea]
<sterni>
supersandro2000: ^
<chisui>
The PR was closed with the comment that I should add myself as a maintainer in the PR where I added myself as a maintainer to a package. But I didn't do that anywhere. Can I be added as a maintainer without changing a package?
<gchristensen>
chisui: usually we'd ask you to add yourself as a maintainer in the list at the same time you take maintainership of a package
<tad-lispy[m]>
Oh, and I owe karma to sterni++ :-)
<cinimod>
nix on macos
<{^_^}>
sterni's karma got increased to 3
<p_rimes>
Q: In my configuration.nix, I have a custom generic service `systemd.service."my-service@"` (it works). How can I declare some fixed instances of that (e.g. `my-service@foo`, `my-service@bar`)?
<sterni>
cinimod: alright, then run nix-channel --update to make sure your on the most recent one and try again
<sterni>
cinimod: could be that it's broken on darwin atm, it works for me on unstable, but I'm on linux
o1lo01ol1o has quit [Remote host closed the connection]
<tad-lispy[m]>
BTW I did `sudo nixos-rebuild --install-bootloader switch` and didn't help.
fresheyeball has joined #nixos
nschoe has joined #nixos
<jared-w>
Ericson2314: Do you happen to remember that youtube talk you linked to me a few weeks ago about conditional compilation, haskell, and attempting to find a solution to well typed variants or whatever? They used a funky <a,x,b> syntax and I can't find the video again for some reason
<fresheyeball>
I can't figure out how to get profiling builds for work for my Haskell project
<jared-w>
man I hate searches sometimes. Watched the video, liked it, but literally no combination of keywords was getting me there. Surely search engines should figure out by now that people want to find stuff they've already seen sometimes...
<jared-w>
Ericson2314: thanks :)
<dutchie>
jared-w: if you were logged in and haven't disabled it, you can look at https://www.youtube.com/feed/history to see your watch history
<jared-w>
dutchie: yeah I could've looked through there but I wasn't sure how far back it was... (or which account I was on when I watched it). I would've eventually caved and searched the view history though
mananamenos has quit [Quit: Leaving]
noudle has quit []
mkaito has quit [Ping timeout: 260 seconds]
saschagrunert has quit [Read error: Connection reset by peer]
mananamenos has joined #nixos
<sterni>
cinimod: it does not build with gcc?
saschagrunert has joined #nixos
domogled has quit [Quit: domogled]
blissdev has quit [Quit: Connection closed for inactivity]
sangoma has joined #nixos
dejanr has quit [Quit: WeeChat 2.8]
<cinimod>
sterni: I am assuming it tries to build with clang - I am trying to recall how to tell nix to build with gcc - something like `myShell = mkShell.override { stdenv = overrideCC stdenv gcc; };`
<hazel[m]>
and I do not want the build to be immutable, else I would be using Nix to build
<avaq>
Hi folks. I have a question. So my question is whether, using pkgs.dockerTools.buildImage, I can create a Docker image that'll run on Windows? I know quite little about cross-compilation, containerization, and stuff like that; but I'm quite handy with Nix.
<nater45>
hi, im following this https://nixos.wiki/wiki/NixOS_on_ZFS#How_to_install_NixOS_on_a_ZFS_root_filesystem guide for zfs on root, and I'm confused about the dataset layout. The diagram at the top shows rpool/local/nix, and rpool/safe/{root,home}, yet the actual commands just create rpool/root/nixos (mounted to /mnt as the root).
<nater45>
So I'm not sure which to follow. Is rpool/localnix supposed to be the /nix store directory? Or is it the / root?
<hazel[m]>
basically like. can I get just the build environment for a given package, without the sources -- just getting the environment vars, etc set during build
<__monty__>
eyJhb: Is it possible to configure the name of the Firefox program or its icon with the policy-based configuration?
Darkmatter66 has joined #nixos
ManiacOfMadness has joined #nixos
nf has quit [Quit: Fairfarren.]
nf has joined #nixos
avaq has quit [Ping timeout: 264 seconds]
mallox_ has quit [Quit: WeeChat 3.0.1]
mthst has quit [Ping timeout: 240 seconds]
mallox has joined #nixos
mallox has quit [Client Quit]
nf has quit [Quit: Fairfarren.]
nater45 has quit [Quit: Connection closed]
nf has joined #nixos
<numkem>
I have an option I've defined that is a list. I have 2 places that I'd like to append to it. When I try doing something like `services.listOption = config.services.listOption` I end up with an infinite recursion... what would be the proper way to do it?
<chisui>
Is there a library function that urlencodes string or do I have to write my own using lib.replaceChars?
<{^_^}>
[nixpkgs] @jonringer reopened pull request #114716 → [staging-next] cargo/hooks: allow hooks to be disabled, gnome-tour: disable cargoBuildHook → https://github.com/NixOS/nixpkgs/pull/114716
ardumont has quit [Ping timeout: 240 seconds]
nf has quit [Client Quit]
<sterni>
chisui: there is not and it is kind of hard to implement a correct version, because nix doesn't allow you to easily get the byte value of a character. You can do a simple implementation of this with lib.replaceChars, however, if you only allow ascii anyways
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/Jtp9S
<tpw_rules>
lopsided98: is there a way to install python packages in an environment created by nix-ros-overlay without recompiling everything?
<chisui>
sterni thanks
nf has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.9]
<srhb>
urkk: Not knowing the infrastructure, it looks like all of that r-modules/default.nix takes a pkgs argument. Presumably you'd want to override that.
<Ankhers>
How can I get openssl dev into my shell.nix?
<lopsided98>
tpw_rules: yes, I wouldn't expect adding a package to an environment to recompile anything. Could you post an example of what you are trying?
<bitmapper>
sphalerite: i think the wifi issue is caused by iommu doing funky things
<tpw_rules>
lopsided98: oh, i hadn't tried anything yet. my idea was to create another python using python3.withPackages then pass that to the distro. how would you do it?
ardumont has joined #nixos
<lopsided98>
tpw_rules: What do you mean by pass it to the distro? Do you just want the Python packages to be available in a shell along with the ROS packages?
<tpw_rules>
lopsided98: yes. and also be able to import the ROS python libraries from that same python
hailam16082008[m has joined #nixos
nhs_ has joined #nixos
v0lde[m] has joined #nixos
sangoma has quit [Ping timeout: 260 seconds]
hailam16082008[m has left #nixos [#nixos]
BaughnLogBot has quit [Ping timeout: 264 seconds]
emmanuel_erc has quit [Ping timeout: 264 seconds]
nhs has quit [Ping timeout: 240 seconds]
<supersandro2000>
Ankhers: openssl.dev
<supersandro2000>
but that is probably not what you want because it will most likely not work how you imagine it
<lopsided98>
tpw_rules: It might work if you just add them to the same shell. Some possible problems are that the wrapped Python might not pick up the ROS packages on PYTHONPATH, and the ROS packages will propagate an unwrapped Python which might conflict with the wrapped one.
<JaakkoLuttinen[m>
Any tips how I could find the file that contains the shell commands that are run when `nix-shell` is run for `shell.nix` containing Python package derivation? I'd like to debug the development mode..
BaughnLogBot has joined #nixos
<supersandro2000>
JaakkoLuttinen[m: -K should preserve the build env which contains all commands
<supersandro2000>
or set -x very early on
mthst has joined #nixos
awmv has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #114768 → remove many unused inputs; amule, python27Packages.requests: mark broken; Revert "qemu: guard desktop file removal" → https://github.com/NixOS/nixpkgs/pull/114768
<tpw_rules>
lopsided98: huh, it does work fine. i can see both the ros packages and the ones i added. and just typing "python" picks up the correct python. thanks for the encouragment, and the overlay. i am astonished at how easy ros is to work with through nix
<awmv>
Is NixOS a thing for developing software on the OS?
<tpw_rules>
no, it's an OS which uses Nix
apache8080 has joined #nixos
<awmv>
So it's for servers then because of the rollbacks?
<sterni>
it's pretty much general purpose
<tpw_rules>
many people use it as a daily driver too. i've been having great fun using it on a PC system designed to be an appliance
rj has joined #nixos
<cransom>
rollback isn't necessarily a dkestop or server feature. i use it way more on the desktop than on servers
<koluacik>
I am using xmonad managed by home-manager within NixOS, and use a shell.nix file for configuring it with IDE support (Haskell Language Server). How can I use the latest git version of xmonad and xmonad-contrib? I think I need to override the haskell libraries as described in the link, but I am confused over how to do it and whether it is the
<__monty__>
koluacik: What exactly are you having trouble with? The snipped would go in your config.nix file or in configuration.nix if you're on NixOS iirc.
<asymmetric>
i just botched my system by removing the boot.initrd.luks.devices by accident and switching.. afaict this is not recoverable just by switching back generations - is that accurate?
<asymmetric>
(i fixed the issue fwiw)
dbmikus has joined #nixos
<__monty__>
pikajude: Sounds like maybe you didn't define your overlay as a function taking "final: prev:" but then went ahead and used final in the body? "self: super:" are probably the most common arguments for overlays.
<pikajude>
the body is empty
rj has quit [Ping timeout: 268 seconds]
<pikajude>
nix is mandating the function argument names i use
<koluacik>
__monty__: I wrote the snippet into /etc/nixos/configuration.nix like this: nixpkgs.config.packageOverrides = super: ... However, sudo nixos-rebuild fails with the following: install: cannot stat '/nix/store/26zbw2cg6w0ih8gr5ab8vh670mccrd3v-ghc-8.10.4/share/man/man1/xmonad.1.gz': No such file or directory
rajivr has quit [Quit: Connection closed for inactivity]
<|beowulf|>
is there any good reason to disable hardening completely for vim? as far as I know (from years of experience building vim myself) the only flag vim is incompatible with is -D_FORTIFY_SOURCE=2.
<|beowulf|>
ah, so the hardeningDisable in default.nix doesn't actually disable any hardening?
meursault has quit [Quit: Leaving]
ddellacosta has joined #nixos
<p_rimes>
quit
p_rimes has quit [Quit: leaving]
avaq has quit [Ping timeout: 245 seconds]
shibboleth has joined #nixos
skiffr has joined #nixos
emilien has quit [Quit: Konversation terminated!]
chisui has quit [Quit: Connection closed]
mananamenos has quit [Ping timeout: 264 seconds]
sangoma has quit [Read error: Connection reset by peer]
rj has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meh` has joined #nixos
rj has joined #nixos
hiro98 has quit [Ping timeout: 276 seconds]
apache8080 has joined #nixos
chisui has joined #nixos
novafacing has joined #nixos
BukkitGerman has joined #nixos
ahmedelgabri has joined #nixos
<skiffr>
Hello there. I'm facing this error when deploying a new EC2 instance with `ec2.encrypt = true` in file system: `error: assertion ((attrs).passphrase != "") failed at /nix/store/nfq1hckbwhcmw1b1c6spwsppp1px0pc4-nixops-1.7/share/nix/nixops/auto-luks.nix:102:14`
<skiffr>
But doc says: " If left empty, a passphrase is generated automatically", so I'm a bit lost there
<NieDzejkob>
I've set xkbOptions = "caps:escape", but it stopped working once I installed fcitx. How can I remap caps lock to escape under fcitx? Various docs point me to fcitx-xkb, but I can't find how to enable it on NixOS
ahmedelgabri has quit [Ping timeout: 264 seconds]
acarrico has joined #nixos
vidbina has quit [Ping timeout: 245 seconds]
kaliumxyz has quit [Remote host closed the connection]
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
cmacrae has quit [Ping timeout: 240 seconds]
hiro98 has quit [Ping timeout: 240 seconds]
vrinek has quit [Remote host closed the connection]
domogled has joined #nixos
zupo has joined #nixos
kaliumxyz has joined #nixos
<tad-lispy[m]>
I messed up my UEFI boot partition and would like to fix it. If I format it with `mkfs.fat` and run `nixos-rebuild switch --install-bootloader` will it work?
vrinek has joined #nixos
dbmikus has quit [Ping timeout: 245 seconds]
ddellacosta has quit [Ping timeout: 240 seconds]
hsyn has quit [Remote host closed the connection]
<lordcirth>
tad-lispy[m], in what way did you mess it up? But yeah, probably
<tad-lispy[m]>
I just realized that the same partition is mounted at `/boot/efi/` in Ubuntu and `/boot/` in NixOS. Maybe that's what causing the problem?
<tomberek>
[beowulf]: the hardeningDisable in default.nix (for vim) is inherited from the common.nix
drakonis has joined #nixos
rj has quit [Ping timeout: 268 seconds]
nhs_ has quit [Ping timeout: 240 seconds]
rj has joined #nixos
lsix has joined #nixos
nhs has joined #nixos
fuiltilt has joined #nixos
<tad-lispy[m]>
😬 now i can't boot at all
qp[m] has joined #nixos
<shapr>
I installed nix on catalina (MacOS) a year ago, now I realize I don't know how to upgrade. I've tried `nix-channel --list` as both my user and root, the output is empty. Do I need to add a channel?
ahmedelgabri has joined #nixos
<shapr>
I want to get emacs 27, but whatever I have installed only has emacs26
<lordcirth>
shapr, you'll need a channel, yeah. Not familiar with OSX but nix-darwin is probably right
Qwerky has joined #nixos
<cole-h>
I wonder... is there a way to build the manual from the current set of `options`? (e.g. say I have added some module to my system's `imports = [ ... ];` and would like to see its documentation).
lsix has quit [Ping timeout: 260 seconds]
<edef>
yes
blissdev has joined #nixos
lsix has joined #nixos
<edef>
i don't remember exactly how, i mostly rely on `man configuration.nix`
<edef>
or, well
<edef>
documentation.enable is on by default, and /run/current-system/sw/share/doc/nixos/{index,options}.html are a thing
<cole-h>
ah, I can build `config.system.build.manual.manpages`
lsix has quit [Client Quit]
<cole-h>
but this may or may not contain the imported docs... checking
<tad-lispy[m]>
I'm in the rescue mode running `nixos-rebuild switch` and it fails with `unable to download 'https://cache.nixos.org/...';`. How can I skip the cache?
<tad-lispy[m]>
But now it fails on other downloads.
<tad-lispy[m]>
So i guess i need to connect to the internet.
heywoodlh has joined #nixos
<tad-lispy[m]>
I only know how to do it with nmcli 🦍 but it doesn't work.
ddellacosta has joined #nixos
<peterstorm[m]>
Yeah, my perfectly working install is doing that too... I haven’t updated or anything, and WiFi was working before, but now the interface isn’t recognized :( Changed the gfx, but that shouldn’t mess up my network?
gluonix has quit [Quit: Connection closed]
<tad-lispy[m]>
I only need to change the boot partition device. Can I somehow make it work offline?
saschagrunert has quit [Remote host closed the connection]
apache8080 has quit [Ping timeout: 245 seconds]
hiro98 has quit [Remote host closed the connection]
<rmcgibbo[m]>
Is anyone familar with mtp-probe saying "Not an MTP device" and puleaudio failing to initialize a new device when plugging in a USB headset?
<tad-lispy[m]>
How do I enable networking in the emergency shell?
fendor_ has joined #nixos
<skiffr>
Ok, found my error about encrypted volume & passphrase assertion: was due to "--dry-run" option.
<lambda-11235>
How do I remove entries from /nix/store? I was trying to cross-compile binutils, so I copied gmrun's default.nix and just changed the src. Something went wrong, and now I have a /nix/store/*-binutils-2.36.tar.x which contains gmrun's code.
<rmcgibbo[m]>
lambda-11235: Did you try `nix-store --delete`?
<rmcgibbo[m]>
But usually you don't need to. You can just leave it there, or you can `nix-collect-garbage`.
vrinek has quit [Ping timeout: 272 seconds]
<__monty__>
koluacik: \o/
<andoriyu>
is there a way to use nix-generators for Rpi Zero?
vidbina has joined #nixos
<andoriyu>
Currently it's working for AArch64, but no armv6 or armv7
<lambda-11235>
rmcgibbo[m]: That worked, but I just figured out what was happening. I didn't change the sha236, so it was downloading the tar from nix store.
mananamenos has quit [Remote host closed the connection]
mananamenos has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
vidbina has joined #nixos
<wunderbrick>
When packaging something for inclusion in nixpkgs, is there a way to use Rust nightly or is that just a no go? ofborg doesn't like when I use the official Mozilla overlay per https://github.com/NixOS/nixpkgs/pull/114777
<wunderbrick>
I'm not experienced with Rust, just wanted to get some cool widgets in nixpkgs as my first contribution.
lambda-11235 has quit [Ping timeout: 240 seconds]
<adisbladis>
wunderbrick: No rust nightly in nixpkgs
rj has quit [Ping timeout: 268 seconds]
NeoCron has quit [Quit: Leaving]
lambda-11235 has joined #nixos
<sterni>
wunderbrick: import from derivation which you are using for the overlay is not allowed in nixpkgs because it requires building and fetching stuff from the network at evaluation time
<wunderbrick>
Okay, so I'll just close the PR then until this package depends on regular old Rust then.
<adisbladis>
That too
<wunderbrick>
Thanks for clarifying!
<sterni>
(you can still use import from derivation on your local system, but you'll have to build the derivation on your local machine then as well)
<wunderbrick>
Yep, works great locally, just wanted to share. :)
<wunderbrick>
Hopefully at a later time.
<adisbladis>
wunderbrick: Maybe if it's interesting to others you could create an overlay?