<JasonO>
how do you add indicator icons to Pantheon? I am unsure how to enable
deltab has joined #nixos
marcusr has quit [Remote host closed the connection]
fresheyeball has joined #nixos
thc202 has quit [Ping timeout: 260 seconds]
marcusr has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #110857 → treewide: Fix or comment where fetchFromGitHub fetches a commit which is not on a branch on the specified repo → https://github.com/NixOS/nixpkgs/pull/110857
pipilangstrumpf has quit [Quit: Connection closed]
notobvious has joined #nixos
<simpson>
Depending on "same", it's often possible for modules to be re-used verbatim between different machines. Maybe not an entire configuration, but most of it.
<evanjs>
So I currently am on Big Sur, have FileVault enabled, and have a read only file system (/nix). What's the best way to get a working nix installation from here?
<iktomi>
I guess I'll give it a try. I burned up a lot of hours and a lot of motivation on dead ends already so I'm not super jazzed about new things right now
niksnut has quit [Ping timeout: 264 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<exarkun>
energizer: I did see that, yea. I won't pretend to know Ruby or understand how GitLab works - but if I put `external_url` in extraGitlabRb it doesn't work.
<matthewcroughan>
simpson: that configuration.nix would be standard for all those machines, then I would have a second import for that machine in the flake, but not included/imported in the standard configuration.nix
<matthewcroughan>
simpson: if this is a bad way of doing it, let me know, because I may be missing an obviously more intuitive way
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
nhs has quit [Ping timeout: 240 seconds]
<matthewcroughan>
Wait...
n-osborne has joined #nixos
<matthewcroughan>
what does this section of the wiki mean?
<matthewcroughan>
> To switch a remote configuration, use: nixos-rebuild --flake .#mymachine
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):472:33
<energizer>
where is the documentation for pkgs.substituteAll?
Supersonic has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
nhs has joined #nixos
<energizer>
or, how do i use it
<{^_^}>
[nixpkgs] @siraben opened pull request #112717 → stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib → https://github.com/NixOS/nixpkgs/pull/112717
oldandwise has joined #nixos
nhs has quit [Ping timeout: 240 seconds]
ky0ko has quit [Read error: Connection reset by peer]
<patagonicus>
I found a small bug in nixpkgs - a typo in a recent commit, that breaks stuff for armv7l - can I just send a PR for that or should I open a bug to reference in the PR first?
blissdev_ has quit []
blissdev has joined #nixos
<evils>
PR's fine, especially if you are confident in your fix
simba1 has joined #nixos
<patagonicus>
Ok, sounds good. :)
<evils>
aren't PR's just issues with associated code?
<patagonicus>
Well, at work (some of us) like to always add a ticket number to code changes to make it easier to track stuff, but small things are the exception to that. But I wasn't sure how nixpkgs handles that.
<clever>
patagonicus: the pr is still linked by number in the merge commit
<evils>
patagonicus: my impression is a tracking issue would be approprate if an issue requires several PRs
<patagonicus>
Yeah, that sounds about right. Well, I'd change it to "if an issue might require several PRs", since sometimes you think it doesn't, but then it does. :)
<evils>
right
<patagonicus>
But this is a typo that's obvious in the original commit, if you know what to look for. I still stared at it for a decent amount of time after I knew that that commit is breaking my system …
<evils>
do tag the people involved in the original commit
<cole-h>
ronthecookie: So basically he means to either use electron_8 directly, or `callPackage asdf.nix { electron = electron_8; }` in the top-level/all-packages.nix
<evils>
inheriting from top-level should mean changing the call in top-level/all-packages.nix to something like `package = callPackage .../package { electron = electron_8; };`
<cole-h>
Jinx :D
<ronthecookie>
oh i see, thanks
ManiacOfMadness has joined #nixos
<evils>
cole-h: i think you beat me to an answer before, you again left off the trailing semicolon, no wonder you're faster :P
<cole-h>
I didn't leave it off -- it wasn't an assignment >:)
<evils>
ah
<ronthecookie>
oh wait I just realized that commit isn't formatted properly
<ronthecookie>
Oopsie
nhs has joined #nixos
<evils>
ronthecookie: if you inherit electron from top-level you'll need to change the input to electron, as suggested, you could just use electron_8 directly in the package
simba1 has quit [Ping timeout: 272 seconds]
<ronthecookie>
yeah but I am now suffering playing with git to force push my mistakes away so I don't have to bother figuring out the commit message format
<cole-h>
You'll be asked to squash all relevant commits together before your PR is merged anyways
simba1 has joined #nixos
<ronthecookie>
might aswell do it now :P
<evils>
except the commit adding yourself as a maintainer, that should be a separate commit
nhs has quit [Ping timeout: 256 seconds]
<ronthecookie>
cole-h: where can I find docs about maintainer stuff? i just assumed its like CODEOWNERS or something
<cole-h>
Right
<cole-h>
ronthecookie: The top of the maintainer-list file explains everything :)
* evils
thinks maintainer-list.nix should have a comment at the bottom reminding people to not add entries to the bottom unless they're alphabetically last
tom39291 has joined #nixos
* ronthecookie
thinks there should be a linter to sort it on the precommit hook
<patagonicus>
rembo10: Sort of. I don't think there's something for arbitrary directories, but you could use system.activationScripts, which are run every time the generation is activated (so nixos-rebuild switch or on boot). You could either use `install -d -m 0755 /foo` or `mkdir -p /foo; chmod 0755 /foo` or something like that depending on what exactly you
<patagonicus>
want to happen.
zarkone has joined #nixos
<rembo10>
patagonicus: ok, cool! thanks!
simba1 has quit [Ping timeout: 264 seconds]
<exfalso>
hi, I have a nix-shell with a number of packages, but inside the shell I'm getting "Argument list too long" for everything I run. I investigated a bit further and it seems the python dependencies bloat up PYTHONPATH to be over MAX_ARG_STRLEN (128k). Any idea on how to solve this? the shell is practically unusable, but I need the packages inside
simba1 has joined #nixos
<patagonicus>
rembo10: There's some edge cases. For example if the directory is a mount point, it will automatically be created and if you want to set the permissions, you might need to do it in a systemd.service that gets automatically started after the mount happened. But then you probably need to add extra logic to also start it on nixos-rebuild switch if the
<patagonicus>
fs has already been mounted before the switch.
<exfalso>
there's a bunch of duplication inside PYTHONPATH, each dependency seems to be added three times (??), but I don't know how to override the env, overrideDerivation/overrideAttrs doesn't work
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nhs has quit [Ping timeout: 240 seconds]
domogled has joined #nixos
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
nhs has joined #nixos
simba1 has joined #nixos
zupo has joined #nixos
nhs has quit [Ping timeout: 240 seconds]
fendor_ has joined #nixos
simba1 has quit [Ping timeout: 240 seconds]
rotaerk has quit [Ping timeout: 240 seconds]
simba1 has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
zceejkr has joined #nixos
<zceejkr>
Hello, how would one remap capslock to ctrl in NixOS? I tried services.xserver.xkbOptions = "ctrl:swapcaps", but it does not work (in GNOME).
<hyper_ch238>
sphalerite: well, been using unstable... set it up originally in july 2020 but now it refuses to renew
<sphalerite>
hyper_ch238: that looks like systemd-tmpfiles hasn't run correctly, does it work if you restart it after running systemd-tmpfiles --create ?
simba1 has joined #nixos
faffolter has quit [Client Quit]
nhs has quit [Ping timeout: 240 seconds]
faffolter has joined #nixos
<hyper_ch238>
sphalerite: run your command, then nixos-rebuild switch --> same error
<tmeusburger>
hello, I'm trying to debug python using gdb but I can't figure out how to get gdb to load the python interpreter symbols. this is the shell.nix and the test script I'm using. first I start the script, then I attach gdb. once inside gdb I run "source /nix/store/...python3.7.9/share/gdb/libpython.py". then I run "add-symbol-file /nix/store/...python3.7.9-debug/lib/debug/python3.7 0x00001000" or "set
RPGHank has quit [Quit: rpghank]
<tmeusburger>
debug-file-directory /nix/store/...python3.7.9-debug/lib/debug". regardless of the command, when I execute "py-bt" the result is always "(unable to read python frame information)". what am I doing wrong?
<tmeusburger>
forgot to paste the shell.nix and test script
mgdm has left #nixos ["WeeChat 2.9"]
<hyper_ch238>
sphalerite: also running the acme-vpn service gives same error
simba1 has quit [Ping timeout: 265 seconds]
ericsagn1 has quit [Ping timeout: 246 seconds]
HedgeMage_ has joined #nixos
zceejrk` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
simba1 has joined #nixos
Forkk has quit [Ping timeout: 264 seconds]
Forkk_ has joined #nixos
drvirgilio_ has joined #nixos
drvirgilio has quit [Ping timeout: 264 seconds]
HedgeMage has quit [Ping timeout: 264 seconds]
cheers has quit [Ping timeout: 264 seconds]
RPGHank has joined #nixos
<hyper_ch238>
sphalerite: removing everything inside the /data/acme folder and rebuilding causes nginx to fail... as well as the two acme commands also
<sphalerite>
if so, fileSystems."/var/lib/acme" = { fsType = "none"; device = "/data/acme"; options = ["bind" "nofail"]; };
<sphalerite>
huh?
<hyper_ch238>
sorry, pasted it twice ;)
hiro98 has joined #nixos
rsynnest has joined #nixos
<hyper_ch238>
the fixperms worked now, but acme-vpn fails becuase of rate limits
puffnfresh has quit [Ping timeout: 256 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
puffnfresh has joined #nixos
<attila_lendvai_>
if i import git master, and install one package... will it be built and run in the environment of the host nixos, or that of master will be reproduced locally? (seems to be the second, given the amount of dl that is happening)
RPGHank has quit [Quit: rpghank]
zupo has joined #nixos
<hyper_ch238>
sphalerite: I followed grahamc's erase my darlings with the symlink... it used to work
<hyper_ch238>
sphalerite: how would I setup a bind mount folder in nixos configuration? in the hardware configuration it's fileSystems or can I specify there just a folder?
<exarkun>
I did get it to start up but / redirects to, literally, "http://localhost/user/sign_up" and nothing I have tried changes it from "localhost" to the correct hostname
<exarkun>
and #gitlab stopped talking to me after I said I wasn't using the omnibus installer
sigmundv__ has quit [Read error: Connection reset by peer]
simba1 has joined #nixos
sigmundv__ has joined #nixos
respawn_ has joined #nixos
<srhb>
exarkun: What does that / at the end of the socket do
<srhb>
exarkun: Also the socket loks wrong to me. Maybe take a look at the nixos test :)
<exarkun>
srhb: I thought that part was probably working since nginx manages to serve up anything other than "502 Bad Gateway". But I guess looking at the tests is a reasonable idea...
<srhb>
exarkun: fwiw I was just quickly skimming a working setup which is too large and internal to share, and it differed. The test matches though :)
<exarkun>
one other specific question ... #gitlab wanted me to use `gitlab-ctl` to make config changes take effect. I don't see that in the nixos gitlab package and it also doesn't seem like it fits terribly well with nixos design. is it right that I shouldn't need to use it in nixos?
<srhb>
exarkun: For db-managed stuff I've only ever used the rake cli
<srhb>
exarkun: It's entirely possible we're not up-to-date here though, in general
<srhb>
It's not the most beautiful module in the world.
nhs has joined #nixos
<exarkun>
I suspect there's only so much of the underlying ... novelty ... that can be masked.
<srhb>
Afraid that's pretty accurate and polite. :)
<exarkun>
tyvm for your help
iqubic` has joined #nixos
<exarkun>
Sadly the gitlab tests mount the service on "localhost" so I guess you wouldn't notice if this problem exists there
<srhb>
exarkun: Doh, okay. I can probably take a more thorough look after work, I'll try to remember
iqubic has quit [Ping timeout: 264 seconds]
mizu_no_oto has joined #nixos
RPGHank has joined #nixos
<exarkun>
srhb: That would be really nice. Thank you. For what it's worth, I'm not committed to actually deploying gitlab yet... I was hoping it would be maybe kinda easy... But the more I see the more I think this is more complexity than I can really manage :/
<exarkun>
otoh if there's just one more little config quirk to overcome ...
nhs has quit [Ping timeout: 264 seconds]
<srhb>
exarkun: I used to like it. Now I don't. :)
<exarkun>
always risky, looking inside the sausage factory
<srhb>
Also the whole open core thing. There's a bunch of functionality that appears to be great, but then you realize that you need this extra feature for it to be really useful, and oh, that's under paid license :P
<RPGHank>
Since you're going to be self hosting anyway why not use Gitea or something
<exarkun>
I have 500MB of gitlab exports from another self-hosted gitlab instance that's vanishing
<srhb>
That's my current feeling as well, though I don't now how to get the other stuff I want (say issue tracking) out of band. I'd like to though.
<srhb>
ah
<exarkun>
"migrate to a new gitlab instance" was supposed to be the stupid easy option
<exarkun>
(starting to just look like the stupid option)
<RPGHank>
Sounds fun :D
simba1 has quit [Ping timeout: 240 seconds]
<srhb>
It truly is probably something obviously invisible that's blocking you, because I don't remember that that part's hard, but... Details :)
<{^_^}>
[nixpkgs] @alyssais pushed to staging-next « doc: fix XML syntax in Qt section »: https://git.io/JtKRu
<exarkun>
yea, I won't be surprised if it's one line or one flag somewhere. just ... so much scope for that one thing to hide in.
<RPGHank>
Speaking of doing things the hard way I am considering undercolting my CPU from configuration.nix
<RPGHank>
Because why not
<srhb>
rpghank: Do recommend. :)
simba1 has joined #nixos
<srhb>
At least, it was easy on intel, using undervolt.
<RPGHank>
Thats what the guys on the other chat told me before I rm -rfed /etc
<RPGHank>
Well I'm using Intel too so it can't be that hard...right?
<srhb>
Indeed, it's basically an enable option and a few knobs.
<RPGHank>
The enable part is easy enough
<RPGHank>
I am slightly worried about the knobs
<srhb>
Sure... Testing is important :P
<RPGHank>
Thing is I am testing with hardware not software so if I mess up... :/
exfalso_ has quit [Ping timeout: 256 seconds]
<srhb>
In my experience it'll just crash freeze most of the time, but don't take my word for it.
<RPGHank>
Maybe my CPU was undervolted out of the box on Windows because my experience with Windows was "crash freeze" too
<RPGHank>
/s
<RPGHank>
Well not about the crash freeze part
nhs has joined #nixos
<srhb>
:D
<RPGHank>
There appears to be no documentation about undervolting on NixOS
<RPGHank>
Maybe I should do it imperatively like a filthy normie first
<zceejrk`>
Hello, can someone help me out with an issue: I am trying to ignore my ISPs DNS, and so far what I have done is: networking.nameservers = [ "8.8.8.8" ] and networking.networkmanager.dns = "none" (I am using GNOME). But my /etc/resolv.conf still includes my ISPs DNS. As far as I understand, I have to explain to NixOS to not fetch the DNS server during dhcp. How would I do that?
zupo has quit [Client Quit]
<leo60228>
if i have a flake with a github:NixOS/nixpkgs/nixos-20.09 input and a github:NixOS/nixpkgs/master input, is there a clean way to use a package from master but take its dependencies from 20.09?
<adisbladis>
zceejrk`: If you're using gnome you're also using networkmanager I presume
<leo60228>
i can think of quite a few dirty ways, but i feel like this should at least be common *enough* for there to be a good way
<leo60228>
("complex" in terms of Nix code, not in terms of how much stuff is actually installed)
nhs has quit [Ping timeout: 272 seconds]
sangoma has joined #nixos
<leo60228>
is there a way to speed this up beyond just making my configuration simpler?
<leo60228>
there are some refactors i want to make to make adding new functionality easier, but i'm scared that'll make evaluation even slower than it already is
jonringer has joined #nixos
<hyper_ch238>
gchristensen: you still have acme working on your erase your darlings setup?
malook has joined #nixos
<adisbladis>
zceejrk`: Fwiw I have the same result you want by using unbound with configured upstreams
ahmed_elgabri has quit [Ping timeout: 272 seconds]
<leo60228>
that was one of the ideas i had, but relying on the path seemed like it shouldn't be necessary
<tpw_rules>
leo60228: exactly. except instead stablePkgs it's super of an overlay
<tpw_rules>
i mean the good thing with flakes is the path will never change unless you update the inputs :P at least in my application the inputs will never be updated without lots of testing
lsix1 has quit [Ping timeout: 264 seconds]
<tpw_rules>
if you intend to casually upgrade then maybe it would be annoying. but those paths don't change too much anyway
lsix1 has joined #nixos
whald has joined #nixos
<leo60228>
hmm maybe i could do something like `unstablePkgs.app.override (args: builtins.intersectAttrs args stablePkgs)`
<tpw_rules>
that sounds weirder and less clear to me imo
RPGHank has quit [Remote host closed the connection]
<adisbladis>
But more correct I think
simonpe^^ has joined #nixos
<tpw_rules>
that's also a fair opinion
<simonpe^^>
I'm adding a fixupOutputHooks by overriding mkDerivation and adding it to nativeBuildInputs using an overlay, thing is I want this hook to always come last of all fixupOutputHooks
<adisbladis>
Still not entirely correct though, there are things that passes arguments that are not in the top level
<simonpe^^>
as it is now it always comes first
dandart has joined #nixos
<zceejrk`>
adisblaids: thanks! I copied your config and it works now.
<adisbladis>
Cool :)
<tpw_rules>
i mean what i did was look in all-packages.nix or the source file and looked to see what attributes it needed to get them from the correct place
<adisbladis>
zceejrk`: Unbound is pretty great regardless
<zceejrk`>
Will check it out. ATM I have no idea what it is haha, but it gets the job done it seems
superherointj has joined #nixos
malook has quit [Quit: malook]
nhs has quit [Ping timeout: 265 seconds]
shah^ has joined #nixos
<zceejrk`>
abisbladis: I am using a VPN, and next thing I want to do is block all traffic that doesn't go trough the VPN (I am using OpenVPN). I found a simple guide on the Arch wiki on how to achieve this using ufw. But I can't find ufw in nixpkgs. What would be a good way to go about achieving this in NixOS?
<exarkun>
ah, well, a PR reviewer would know better than I
nhs has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @ehmry pushed to master « alephone.makeWrapper: accept extra arguments »: https://git.io/JtKgQ
<Rovanion>
When looking into "nixos test infrastructure" I'm understanding it as system integration tests done after build is complete rather than something which augments the checkPhase, am I wrong?
azdle has quit [Read error: Connection reset by peer]
<exarkun>
That's my understanding
<exarkun>
I have written a few integration tests using the (old, perl) nixos integration test library
<simpson>
Rovanion: I read the PR. We obviously don't want to *ignore* the tests for the package. But also we can't run integration tests during checkPhase.
<exarkun>
They accepted my packages as inputs
<simpson>
So what's being suggested is that you either `doCheck = false;` or alter checkPhase to only run unit tests, and then *also* add NixOS integration tests for the controller.
<simpson>
In many situations, we'll prefer to take the maintainer's word that things work, and we won't turn down contributions just because a package has hard-to-run tests. But also, it would be a lot cooler if you did add a NixOS test, and it's easier than you might think.
<Rovanion>
simpson: Right. You don't happen to have any examples on how to disable/filter go tests at hand? I think I've found the integration tests for some other prometheus exporters.
hyper_ch2 has quit [Ping timeout: 260 seconds]
<simpson>
I know very little about Go, sorry. Disabling checkPhase entirely is quite alright if there's NixOS tests, BTW! It still gets us the coverage that we want.
<simpson>
(If it seems like we're extra-picky about the Prometheus subsystem, it's because a lot of our infrastructure is dogfooding it!)
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #112717 → stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib → https://github.com/NixOS/nixpkgs/pull/112717
nhs has joined #nixos
RPGHank has joined #nixos
MichaelPfaff[m] has joined #nixos
noudle has quit []
<ehmry>
alexarice[m]: `pkgDrv // pkgSet`?
<alexarice[m]>
ehmry: That seems like a bit of hack, I'm thinking about how you would include something like `pythonPackages` in a flake
<ehmry>
I usually define my packages as a set in an overlay, and then fill `packages` somehow from that
ahmed_elgabri has quit [Ping timeout: 264 seconds]
rb2k has quit [Read error: Connection reset by peer]
rb2k has joined #nixos
<ixxie>
hmm how far are we from NixOS on Apple Silicon?
<iktomi>
hey adisbladis, I gave poetry2nix a try last night but couldn't figure out how to make all three of flakes + poetry2nix + nixos play nicely together so I'm going to try one piece at a time. Is there an example somewhere of configuring a nixos systemd unit to run in a poetry2nix env?
<rauno>
How to fix nix package building locale issues like this one in python: UnicodeEncodeError: 'ascii' codec can't encode character '\xc4' in position 98: ordinal not in ?
<rauno>
I'm thinking it's as locale issue as in nix-shell it works (building)
<rauno>
also fails with "--pure" in nix-shell
thelounge52 has quit [Ping timeout: 272 seconds]
Darkmatter66 has quit [Read error: Connection reset by peer]
<ixxie>
supersandro2000: yeah I saw several PRs related to Apple Silicon, but I have a heart time gauging whether it would result stable NixOS experience on it after they merged or not...
<ixxie>
I guess, eventually of course, but the question is how long
<supersandro2000>
but I have the feeling that it probably won't get backported to 20.09
<iktomi>
I have yarn in systemPackages, and suddenly I'm getting this error on 'yarn install'... "/bin/sh: /tmp/yarn--1613068121373-0.8249127932664861/node: Permission denied"
johnw has joined #nixos
<iktomi>
Path in that file goes to the node in in /nix, the permissions are +rwx for the user executing, it all worked yesterday... I'm flummoxed
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @Luflosi to release-20.09 « youtube-dl: 2021.02.04.1 -> 2021.02.10 »: https://git.io/JtKP8
<dsx>
How to globally allow unfree packages? export NIXPKGS_ALLOW_UNFREE=1, nixpkgs.config.allowUnfree=true (and rebuild) as well as allowUnfree = true in ~/.config/nixpkgs/config.nix doesn't seem to work
ahmed_elgabri has quit [Ping timeout: 240 seconds]
ToxicFrog has quit [Ping timeout: 265 seconds]
<charukiewicz>
dsx: Are you wrapping allowUnfree = true in an attribute set in ~/.config/nixpkgs/config.nix?
hiro98 has joined #nixos
<charukiewicz>
e.g. { allowUnfree = true; }
nhs has joined #nixos
hiro98 has quit [Remote host closed the connection]
<charukiewicz>
assuming you have no other options
<dsx>
charukiewicz: this is what is has: ~/.config/nixpkgs/config.nix?
<dsx>
err
<dsx>
{ allowUnfree = true; allowBroken = true; }
<charukiewicz>
yeah
zupo has joined #nixos
<charukiewicz>
That should work at least for packages from your channels
<dsx>
Still, nix run nixpkgs#vscode fails on unfree license
<charukiewicz>
are you installing via `nix-env`?
<dsx>
I'm on nixos
<dsx>
Home env is handled by home-manage4r
<dsx>
* home-manager
<dsx>
Regular nix-shell works just fine, by the way
<charukiewicz>
I just tried installing vscode both using nix-env and home-manager and it works after I add the aforementioned option to ~/.config/nixpkgs/config.nix
<charukiewicz>
And then each one complains when I remove allowUnfree = true
<charukiewicz>
so unless you're doing something strange in your home-manager, I think it should work
<cole-h>
dsx: Note that flakes do not care about nixpkgs.config, ~/.config/nixpkgs/config.nix, or NIXPKGS_ALLOW_UNFREE
<charukiewicz>
if you share your home.nix I can take a look
<cole-h>
In order to allow unfree, you must import nixpkgs with unfree set (e.g. `import nixpkgs { config.allowUnfree = true; }`_
<cole-h>
s/_/)/
<dsx>
cole-h: oh…
thelounge52 has joined #nixos
<dsx>
The help is very unhelpful in this case
<cole-h>
The help was written before flakes
<cole-h>
and probably won't be adjusted for flakes since flakes are still experimental and unstable :P
<CMistress>
hi all -- i am just reading up about nixos and had a question. In other Linux distros, one typically compile programs using: "./configure && make" -- can I still do that under NixOS, or must I create default.nix and use that?
<gchristensen>
you must create a default.nix
<dsx>
CMistress: depends on what's youyr plan after. If «make install», then you need default.nix
<CMistress>
Even though I might be testing locally, and never doing "sudo make install"? I had thought I'd seen nix-shell as a shortcut to allowing this sort of testing?
<gchristensen>
ah
<dsx>
If it's «./asdf» then no, you don't need that
<gchristensen>
the thing is that anything you build outside of nix my stop working when store paths are garbage collected
<gchristensen>
so if you're just developing, go ahead -- shell.nix and nix-shell is ideal
<dsx>
CMistress: But you'll thank yourself if you do ;)
fabian_a has joined #nixos
<CMistress>
Think the penny is starting to drop on this, albeit slowly.
<CMistress>
In terms of projects, is there a convention that projects are adding *.nix files to them (a la what some do with adding debian/ or rpm/ directories)? I was thinking of adding nix files to mine.
slack1256 has quit [Remote host closed the connection]
n-osborne has quit [Remote host closed the connection]
Hail_Spacecake has quit [Ping timeout: 268 seconds]
<dsx>
CMistress: /shell.nix to capture dev dependencies /default.nix and/or /flake.nix to capture build process.
<cole-h>
(I wouldn't recommend flakes to newbies)
<CMistress>
That's the thing that's meant to replace channels, yes? (I've been reading...)
<dsx>
cole-h: you're not biased enough! I'd recommend to flake all the things!
<cole-h>
As much as I like using flakes, it requires some amount of knowledge of Nix prior to using it.
superherointj has quit [Quit: Leaving]
<dsx>
Agree
<ixxie>
supersandro2000: well I am fine for unstable, just wondering if I should buy a minimac or not :P
<cole-h>
And thus don't recommend it to newbies until they get more used to Nix itself :)
rb2k has quit [Ping timeout: 272 seconds]
rb2k has joined #nixos
<jtojnar>
yeah, also flakes might still change in a way that breaks BC (which is a good thing IMO). I am willing to fix all my projects when that happens but I feel we keep shilling flakes to people without highlighting the unstable footing enough.
<colemickens>
I feel like the willingness to enforce the --experimental-features flag was a sign that there is the nerve to break things again. (this is my hope anyway)
<cole-h>
I'd hope that the "experimental" and unstable nature of flakes would prevent Eelco et al from having any reservations about breaking use cases. "We told you it was experimental and subject to change. It's changing. We told you."
<jtojnar>
yeah, I hope too
<dsx>
As long as there's clear path to unbreak stuff, go ahead
<iktomi>
Man. I am not having the best time with this app deployment. I don't even know if I want to keep any of this. Maybe I should use a Dockerfile and oci-containers
bahamas has quit [Ping timeout: 264 seconds]
<iktomi>
I can't figure out why yarn just suddenly broke
<iktomi>
:(
Qwerky has joined #nixos
<srk>
had similar fun with one deployment, ended up with podman and oci-containers for now
n-osborne has joined #nixos
<ronthecookie>
supersandro2000: whats blocking merge on my nixpkgs#112679? o-o
<iktomi>
I feel like I got within spitting distance of a working flake.nix but couldn't get a systemd service that depended on evaluating a poetry2nix expression to work
<slby[m]>
How do I specify a branch in a flake?
riksteri has quit [Quit: riksteri]
<iktomi>
slby[m] I think it's after another slash in the url
<colemickens>
jgart: I've been lazy about verifying my matrix clients, it's probably on my end. Short story, I'm busy today but made a calendar event to pop into the mumble server next week
knupfer1 is now known as knupfer
<jgart[m]>
colemickens: Ok no worries. Hope to see you in a future meetup :)
zupo has joined #nixos
knupfer has quit [Quit: knupfer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thelounge52 has joined #nixos
User14 has quit [Ping timeout: 256 seconds]
User14 has joined #nixos
<DigitalKiwi>
https://logs.nix.samueldr.com/nixos/2021-02-08#1612763560-1612764100; does anyone know how to make this command work? nix-shell doesn't like pipes i guess i don't know if there's a way around whatever it is that it doesn't like because i don't even know why it doesn't like it :(
zupo has joined #nixos
<Yaniel>
is "-" allowed in attrset attribute names?
<Yaniel>
or does the entire name have to be in quotes then
<ronthecookie>
Yaniel: i think it is allowed, unsure
<gchristensen>
> { foo-bar = "Baz"; }.foo-bar
<{^_^}>
"Baz"
praduca has joined #nixos
<praduca>
Hi to all
User14 has quit [Quit: leaving]
<praduca>
i'm getting a error when trying to upgrade, saying that libvirt is insecure
<praduca>
the problem is, i dont use libvirt, and using --show-trace only show python as something recognizable...
rb2k has quit [Ping timeout: 264 seconds]
<praduca>
colemickens Package ‘libvirt-5.9.0’ in /nix/store/2ymkvqqbgdna3wkbwnwyilq2ff21g9mf-nixos-20.09.3087.2394284537b/nixos/pkgs/development/libraries/libvirt/5.9.0.nix:128 is marked as insecure, refusing to evaluate.
voidcontext[m] has joined #nixos
<praduca>
hm wait let me check something here
<lukegb>
yeah, python2Package.libvirt is the likely culprit iirc
respawn_ has joined #nixos
<voidcontext[m]>
Hi Everyone, is there a binary cache for Raspberry Pi 4 packages? The one that’s in the Nixos Arm wiki seems to be unavailable.
ixxie has quit [Quit: Lost terminal]
<ronthecookie>
voidcontext[m]: im running a pi 4 and it seems to use some cache automatically
<zuserm>
I'm trying to get Dead Cells running and when I "steam-run ./start.sh" it reports lots of libraries missing, such as libz.so.1, so I nix-locate'd it to zlib, and added zlib, but it still reports it as missing. Any ideas?
<zuserm>
(from GOG)
gustavderdrache has quit [Quit: Leaving.]
fendor has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
mutantmell has joined #nixos
thelounge52 has quit [Ping timeout: 264 seconds]
cognemo has quit [Quit: cognemo]
fendor has joined #nixos
cognemo has joined #nixos
<veleiro>
should "production" nixos systems follow a release branch? what's the dangers in following unstable / master for building your system with
<cole-h>
unstable moves fast. Things can get broken at any time.
<veleiro>
what's the difference between release-20.09 and nixos-20.09?
zakame has quit [Ping timeout: 240 seconds]
<worldofpeace>
veleiro: when the channel constituents for 20.09 pass a bot pushes that revision to nixos-20.09
<worldofpeace>
veleiro: release-20.09 for developers to push to. nixos-20.09 isn't writable by anyone but the bot
<V>
should probably be called $version-staging and $version, although -staging has other connotations
zakame has joined #nixos
<veleiro>
thanks!
thelounge52 has joined #nixos
mzan has quit [Ping timeout: 240 seconds]
Valentin[m]1 is now known as Valle[m]
lambda-11235 has joined #nixos
thelounge52 has quit [Ping timeout: 264 seconds]
philr has joined #nixos
<DigitalKiwi>
i swear there's a conspiracy going on here; firefox opens mailto: links by opening mail.google.com in chrome, chrome downloads an xlsx file, when i click it in the download bar kdeconnect wants to know what device i want to open it on; if i say no then a tab opens in firefox and wants to open it with libreoffice, if i select my blackberry it opens it in google sheets
<DigitalKiwi>
and doessn't firefox use google by default now?
<DigitalKiwi>
i can't remember; is this just a way of telling me all paths lead to google?
simba1 has quit [Quit: WeeChat 3.0]
<DigitalKiwi>
that was really the conclusion of the sentence before it and a new thought; i can't remember if it's the default or not; anyway why is it like this D:
<lambda-11235>
Virtualbox seems to have been broken on 20.09 for a while now (over a month). Is there a way to get it working without going to unstable?
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<colemickens>
Does udhcpd work with networkd configured devices?
<colemickens>
No matter what I add to initrd modules, udhcpd just complains that none of the devices (that I have configured with networkd) exist. (It's a laptop with two usb eth adapters and a wifi adpter)
sigmundv__ has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
<CMistress>
Hi again -- thanks so much for being friendly and welcoming when I was here earlier. It makes all the difference. :) I had a question about nix-shell. Perhaps a stupid question, but if I run something like: "nix-shell -p '<nixpkgs>' tmux" -- is that actually downloading a tmux binary to my system if it's not found? Only it seems awfully fast and I'm curious about how it works.
<rmcgibbo[m]>
It's downloading the tmux binary and all of the binaries that tmux depends on, if you don't already have them. But I guess you probably do have them :)