<justanotheruser>
is the only difference between a flake and an override the fact that you can update a flake from command line, and has cleaner syntax?
mbrgm_ is now known as mbrgm
<justanotheruser>
it has*
codygman has quit [Read error: Connection reset by peer]
<xacktm>
how does one update the SMART database in smartmontools? running `update-smart-drivedb` gives me: /root/.nix-profile/bin/update-smart-drivedb: found none of 'curl wget lynx svn' in '/usr/local/bin:/usr/bin:/bin'
<pickfire>
Oh, how come the kernel module builds in older kernel but not in later kernel?
pr06lefs has joined #nixos
<pr06lefs>
Just compiled a project that uses libglade. putting glade in my nix-shell deps gave me /nix/store/krs1vd4s6wq8kzjx3ck8kxl6j57s656x-libglade-2.6.4-dev/include.
<pr06lefs>
however, the glade stuff is one level deeper: /nix/store/krs1vd4s6wq8kzjx3ck8kxl6j57s656x-libglade-2.6.4-dev/include/libglade-2.0
<pr06lefs>
this is a code::blocks project, so I just put that dir into the project include directories and it builds fine. obviously not a sustainable solution though.
<pumpy>
using home manager & nixos, when i modify home.nix and run home-manager switch, home-manager is removed from ~/.nix-profile/bin/. is that because my home.nix doesn't have home-manager in it or?
<pickfire>
zen kernel does not need the patch at all lol
<pickfire>
clever: Wow, zen kernel does not need rtl8822 patch at all.
<pickfire>
When I submit the pull request for rtl8822ce, how should I note that zen kernel already have it, or maybe even linuxPackages have it?
<pickfire>
latest*
pr06lefs has quit [Ping timeout: 260 seconds]
CcxWrk has quit [Remote host closed the connection]
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 260 seconds]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
mDuff has joined #nixos
<{^_^}>
[nixpkgs] @pickfire opened pull request #101317 → rtl8822ce: init at v5.9.0.3b → https://git.io/JTztj
<{^_^}>
[nixpkgs] @omasanori opened pull request #101327 → pythonPackages.rpy2: 3.2.6 -> 3.3.6, fix test etc. → https://git.io/JTzzm
ManiacOfMadness has joined #nixos
simonpe^^ has joined #nixos
<simonpe^^>
hiya, I'm cross compiling and use the buildPackages.gcc9 to get the crosscompiler - I'm looking for something like hostPackages.gcc9 that would allow me to grab the native compiler but there's no such thing
<gentauro>
I think i saw this issue before with `dotnet` (3.1.101) on NixOS: `No usable version of libssl was found. Aborted (core dumped)`. The only "help" I found on the internet was: https://sgt.hootr.club/molten-matter/dotnet-on-nix/ but installing `openssl_1_0_2` doesn't seem to fix the issue with LTS 3.1 :(
<gentauro>
anybody doing some `dotnet` dev on NixOS?
<gentauro>
also in the `buildInputs = [(with dotnetCorePackages;combinePackages [sdk_3_1 sdk_2_1])` it would help if it was allowed to use SDK's that are EOL (in order to run legacy project and then upgrade them afterwards)
<gentauro>
btw, what's is preferable to store a terminal variable: `shellHook = '' export DOTNET_CLI_TELEMETRY_OPTOUT="1" '';` or `buildPhase = '' export DOTNET_CLI_TELEMETRY_OPTOUT="1" '';` ?
<{^_^}>
[nixpkgs] @nbke opened pull request #101355 → pythonPackages.ndjson: init at 0.3.1 → https://git.io/JTzxJ
werner292 has joined #nixos
<{^_^}>
[nixpkgs] @WilliButz pushed commit from @r-ryantm to release-20.09 « atlassian-jira: 8.12.0 -> 8.13.0 »: https://git.io/JTzxY
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<efter>
i'm running `nixos-install` from an installer iso and i'd like it to use the /external/nix/store that i have on an attached drive to speed up the install (i.e. not getting everything from cache.nixos.org). Is there a correct way to do this? I'm thinking of solutions involving overlays / bind mount.
zangi has joined #nixos
ManiacOfMadness has joined #nixos
<efter>
i thought `rsync /external/nix/store/ /mnt/nix/store/` would get picked up, but afaict nixos-install only looks inside /nix/store, which i can't copy everything into as my memory isn't big enough.
zangi has quit [Read error: Connection reset by peer]
itc-ger has joined #nixos
<patagonicus>
I have three (pretty much identical) machines and I've set them all up to be remote builders for each other. I've noticed that the machine where I run a nix command doesn't build anything itself. The wiki claims that the local machine will always be included unless you set max-jobs = 0 (my config has it set to auto). Am I doing something wrong
<patagonicus>
and/or is the information on the wiki outdated?
<{^_^}>
[nixpkgs] @doronbehar opened pull request #101367 → check-meta.nix: Fix message for `nix build` users as well → https://git.io/JTgkY
<LnL>
patagonicus: yes, but the default preference is remote I think
<LnL>
patagonicus: if you play with the priority setting you can probably get what you want
<patagonicus>
Hmm. Might have to try that. I haven't checked if anything was built on the local machine, but based on the CPU usage graphs I keep from the machines it doesn't look like anything was ever built locally. And I've built the whole system (armv7, so no official binary cache).
gnidorah has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTgIy
<{^_^}>
[nixpkgs] @doronbehar opened pull request #101369 → kdeApplications: Use latest qt515 by default → https://git.io/JTgIS
meh` has joined #nixos
buovjaga has joined #nixos
<{^_^}>
[nixpkgs] @m1cr0man opened pull request #101370 → nixos/acme: Permissions and tests fixes → https://git.io/JTgLi
<buovjaga>
Is having setup.py a hard requirement for buildPythonPackage? I have a failure and I'm not sure, because it is talking about "1 dependencies couldn't be built": https://paste.simplylinux.ch/view/645fa6ac The script I am trying to package does not have setup.py
<{^_^}>
[nixpkgs] @basvandijk pushed 2 commits to release-20.09: https://git.io/JTgsG
<dxtr>
So what happened to 20.09?
eoli3n_ has quit [Ping timeout: 260 seconds]
<buovjaga>
evanjs: thanks for the help. Now there is only one small mystery: I assumed that if I have WorkingDirectory = "/home/ircbot"; I could have a bot_settings.py in there and the Python script would find it with 'import bot_settings as settings', but it is unable to. I guess this is not really a Nix-specific question, though :) Here is the final
<pumpy>
using home manager & nixos, when i modify home.nix and run home-manager switch, home-manager is removed from ~/.nix-profile/bin/. is that because my home.nix doesn't have home-manager in it or?
domogled has quit [Quit: domogled]
domogled has joined #nixos
sangoma has quit [Ping timeout: 260 seconds]
njha has quit [Ping timeout: 244 seconds]
cfricke has joined #nixos
<evanjs>
buovjaga: another option would be to define the bot_settings.py script in the expression :P
<evanjs>
e.g. `PYTHONPATH="./bot_settings.py:$PYTHONPATH" python3 ./result/bin/bot.py`
alp has joined #nixos
<evanjs>
i don't know how to best handle default values -- e.g. getting that to work without a user-specified bot_settings.py, but it seems to work when added to PYTHONPATH
<pumpy>
ok got it
<evanjs>
buovjaga: so for now, maybe you could do something like `Environment = "PYTHONPATH=/home/ircbot/bot_settings.py:$PYTHONPATH"`
<buovjaga>
ok I was going to try makeWrapperArgs = [ "/home/ircbot" ];
<buovjaga>
I will use your suggestion
<pumpy>
is it better to install home-manager systemwide in configuration.nix or in each user account?
<evanjs>
(mine feels hacky as heck but I think it would "work" :P )
fendor_ has quit [Remote host closed the connection]
amfl has quit [Ping timeout: 260 seconds]
<pumpy>
evanjs i want to keep it out of system config but it would be nice to not require every user to install it if they want it so i could make configuration.nix import it
zakame has joined #nixos
kini has quit [Remote host closed the connection]
ManiacOfMadness has quit [Ping timeout: 246 seconds]
<buovjaga>
evanjs: still has no effect, but I was able to set multiple env definitions by moving it out of serviceConfig to: environment = { PYTHONPATH = "/home/ircbot/bot_settings.py:$PYTHONPATH"; LC_ALL = "en_US.UTF-8"; };
<pumpy>
if i want to add some extra .nix configs for configuration.nix to import, what's the canonical dir to put those in?
<pumpy>
like right next to configuration.nix in /etc/nixos or is there like /usr/etc/nixos?
<buovjaga>
Maybe I will post to the forums, thanks for the help so far!
<nicolas[m]>
`nixos-rebuild` reads the `nixos-config` path in `NIX_PATH` or defaults to /etc/nixos. So you are free to put your configuration in the folder of your choice
<pumpy>
nicolas[m]++
<{^_^}>
nicolas[m]'s karma got increased to 1
<pumpy>
nicolas[m] happen to know why there's no secondary systemwide configuration like /usr/etc/nixos?
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JTg4H
<pumpy>
secondary meaning hardcoded after /etc/nixos
ericsagnes has joined #nixos
<aanderse>
can anyone on 20.09 + X11 + plasma confirm if the application okteta works? (ie. doesn't immediately crash on startup)
<evanjs>
buovjaga: sure. My usual test routine involves `systemctl cat <service>` and just trying to run what the ExecStart myself, with any required Env variables specified as well
<{^_^}>
[nixpkgs] @Preisschild opened pull request #101396 → nixos/kubernetes: add metrics port to dns addon service → https://git.io/JTg2y
eftet is now known as efter
<buovjaga>
evanjs: hey, got a reply in the forum that unfortunately Python imports are relative to source path by default. I went with your sledgehammer method of pkgs.writeTextFile and it works fine :) The bot is alive!
<buovjaga>
I'm really delighted to start grokking this Nix stuff for real thanks to you folks
Ariakenom has quit [Quit: Leaving]
lord| has quit [Read error: Connection reset by peer]
lor|d has joined #nixos
werner291 has joined #nixos
efter has quit [Ping timeout: 245 seconds]
werner291 has quit [Client Quit]
<{^_^}>
[nixpkgs] @joee opened pull request #101397 → nixos/ssmtp: minor typo fix → https://git.io/JTgVU
<{^_^}>
[nixpkgs] @nh2 opened pull request #101398 → pitivi: Fix .svg loading at startup, see #56943 #89691 → https://git.io/JTgVB
cole-h has joined #nixos
<pinpox>
What's the easiest way to find out the path of a binary in nixOS to put it in shell script? E.g. I'm trying to write something like "cat test.txt | firefox" as "${pkgs.cat}/bin/cat test.txt | ${pkgs.firefox}/bin/firefox" (just an example) and I need to find out if what packages it is (if it even is one for cat) and what path I need inside it
<lassulus>
nix-index && nix-locate bin/cat
<lassulus>
I guess you don't need to run nix-index every time
acarrico has joined #nixos
<pinpox>
Nice, thanks lassulus!
<pinpox>
Though the "nix-index" command froze my complete system and I just had to reboot by pressing the power botton to kill
<lassulus>
oh thats quite sad
<pinpox>
Guess ram went out on me
<pinpox>
no idea why
<lassulus>
It needs to eval all packages once, could take a couple of gigs
exco has joined #nixos
<pinpox>
yeah, running now. I've closed most stuff and expect it to succeed
<pinpox>
But yes, my system is quite sad
cfricke has quit [Quit: WeeChat 2.9]
<pinpox>
Though 8Gb of ram seems reasonable, even if not great
<lassulus>
that should be enough for most things
<lassulus>
nix is also memory hungry
<pinpox>
That's a nice way of saying not very optimized :D
<tpw_rules>
is there any way to get and install systemd and udev files from packages on non-nixos linux?
<pinpox>
what do the "s" and 'X' in the output mean lassulus ?
<pinpox>
installed (system) and not installed?
fendor__ is now known as fendor
<lassulus>
pinpox: uh good question
<pinpox>
didn't find it in the readme at first gance
<pinpox>
*glance
<cole-h>
s -> symlink
<cole-h>
x -> executable
<cole-h>
Probably
<pinpox>
cole-h: that makes sense. Would be nice to see if it's user installed, shell command, system-wide or just not installed at all
<cole-h>
How would it know? ;)
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTgrH
<cole-h>
Seems like a whole lotta heuristics for something the user should know themselves, no? Not to mention that different shells have different shell commands :P
<cole-h>
Well, I guess having a default packages list in NixOS can make it hard to know...
<Soft>
Basically I have written a derivation for installing a service but I would also like to install some system-wide configuration for it
<Soft>
something under etc
<samueldr>
not an overlay per se, but you can introduce options in any "configuration.nix"-like file
<samueldr>
so instead of using it "as an overlay", you could distribute it as a file to add to `imports = [];`, which in turn deals with the overlay and adding options
<samueldr>
there is no difference between the configuration.nix file, and any of the files under the nixos/ folder that define options; they use the same exact mechanisms
<samueldr>
and maybe the most important part to understand why things look different
<samueldr>
>> This is actually an abbreviated form of module that only defines options, but does not declare any. The structure of full NixOS modules is shown in Example 44.1, “Structure of NixOS Modules”.
<{^_^}>
[nixos-homepage] @garbas pushed 45 commits to master: https://git.io/JTgMX
<simpson>
jmercouris: I couldn't find docs, but retroarch requires configuration. You'd configure nixpkgs to select certain emulation cores, and then you'd get a customized retroarch with exactly those cores.
<{^_^}>
[nixos-homepage] @garbas pushed 0 commits to redesign-donate: https://git.io/JTgM1
<jdnixx>
what's the difference in practice between the master branch of nixpkgs and the unstable channel of nix?
<jdnixx>
bc I saw a fix for kdeconnect was merged last night; what would I have to do to get that update right now through nix-env or whatever?
<euank>
the difference is https://status.nixos.org/ if that page is still up to date. Basically, you have to wait for a hydra build ot pass off master before it becomes the unstable channel
<supersandro2000>
there are many ways but you could add a channel which tracks nixpkgs master and then use that in you config for that one package
<euank>
you can reference it now with sometihng like ...
<euank>
you can use `nix-env` to do it too, but I don't use nix-env, so I don't have an example off-hand. probably nix-env -E `with import (builtins.fetchTarball "https://github.../.tar.gz") {}; pkgs.foo` or such would work
andymandias has quit [Client Quit]
andymandias has joined #nixos
<srhb>
Hum, what's the logic of `toString ./foo` in flakes? It seems it'll be relative to the store-imported tree, whereas absolute paths retain their old behaviour of not being store-imported. I guess it makes sense from a purity perspective, but I'm having a hard time describing the behaviour succinctly. (especially fun in a top level flake where `toString ../.` is always `/nix/store`)
abbe has quit [Quit: “Everytime that we are together, it's always estatically palpitating!”]
<infinisil>
Having a path (=string) that points outside won't be a problem though
dbmikus has quit [Read error: Connection reset by peer]
<srhb>
infinisil: Nor can I. The interesting bit is how to explain the transition vs. the old style where these strings would be normalized according to their non-store-path
dbmikus has joined #nixos
<infinisil>
I don't think toString should behave any differently in flakes vs non-flakes
<srhb>
infinisil: (I think you even used to do this to embed normalized (string) filepath for eg. mutable configuration snippets. Like, embedding the path to writable elisp file in a (load ... ) )
<{^_^}>
[nixpkgs] @aanderse opened pull request #101411 → use libsForQt512 → https://git.io/JTgSj
<infinisil>
Ahh
kirc has joined #nixos
<srhb>
Which will still work fine with absolute paths of course
<srhb>
But now it won't work eg. across an installation barrier
<srhb>
infinisil: Yeah, like line 95 :)
<infinisil>
Hm yeah I see the problem
<srhb>
I think there's just no way around it really
fresheyeball has joined #nixos
<srhb>
Need another way to purely-ish inject "what was my original path"
<infinisil>
You would have to pass the original path as an --argstr I think
<infinisil>
Since it's inherently impure where that is
<srhb>
Yeah, something like that.
<infinisil>
I guess for your own config you could hardcode that, assuming it doesn't move around
<srhb>
But my real concern is how opaque it is when transitioning, which is why I mentioned "eval error" -- even going "up" out of the flake using `toString ../.` should be a very early eval error
<jasom>
I'm trying to use easyocr, which is a python tool tha depends on https://pypi.org/project/opencv-python/ which is a prebuild opencv python that appears distinct from the opencv4 in python packages (at least to pypi). opencv-python seems to want to download files from the internet to run. Anyone run into this? I'm thinking I might be able to patch the dependencies for easyocr to be satisfied with
<jasom>
the opencv in nix, but I'm open to other suggestions
nownpl has joined #nixos
<MtotheM>
why is the ports field empty when starting containers with `virtualisation.oci-containers.containers.<name>.ports`?
<MtotheM>
it still works. but i find it odd that i can't see the ports for anything.
<Unode>
While building locally I get the same error. "output '/nix/store/7q3hx50k458la5yssrl7mqisg98lpqij-openjfx-modular-sdk-12-14' is not allowed to refer to the following paths:
<kyren_>
hey, I upgraded some of my servers to 20.09 possibly a little early, I'm having trouble getting the acme service on my servers to work, I'm getting the JWS verification error in this PR: https://github.com/NixOS/nixpkgs/pull/91121
<DigitalKiwi>
Akira[m]: mine are in journalctl but it depends on how it's configured
<Akira[m]>
yeah I see them now
<Akira[m]>
thought they'd be in /var/log
<DigitalKiwi>
i have an empty folder at /var/log/fail2ban/
eoli3n_ has quit [Ping timeout: 272 seconds]
<supersandro2000>
ornxka: only a 4.0
<Akira[m]>
same
<supersandro2000>
it could be a 9.0 or 10.0 🙃
<Akira[m]>
I banned myself and see it it in logs, all works ^^
<{^_^}>
[nix] @Ma27 opened pull request #4180 → Allow substituting paths when building remotely using `ssh-ng://` → https://git.io/JTgNJ
exco has quit [Ping timeout: 246 seconds]
werner291 has quit [Ping timeout: 272 seconds]
camsbury has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @StefanSchroeder opened pull request #101417 → Add new meta-attributes to stdenv to permit URLs for screenshots → https://git.io/JTgN6
andresilva has joined #nixos
<supersandro2000>
Where can I find the changelog for nix 2.3.8?
<ornxka>
supersandro2000: what CVE level allows to install cryptoransom payload :p
<andresilva>
there haven't been any changes lately on xfce stuff so I'm not entirely sure what has changed that made it start failing to build
kyxie has joined #nixos
katrin has quit [Remote host closed the connection]
kreyren has quit [Remote host closed the connection]
evhan has joined #nixos
kreyren has joined #nixos
rotaerk has quit [Ping timeout: 260 seconds]
<MtotheM>
when i pass `extraOptions = ["--network=host"];` to my `virtualisation.oci-containers.containers` no ports get assigned in docker, even though i have `ports = ["8096:8096"];`. Is this a bug?
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<humancalico[m]>
I can't see any generation in the boot menu now. But `nix-env --list-generations --profile /nix/var/nix/profiles/system` works fine. Any idea why?
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
Somelauw has joined #nixos
<Somelauw>
I try `nix-store --delete /nix/store/9ycaql3dbmxhvb5n73z8znjbnjnxwgfn-qutebrowser-0.9.0` but get: error: cannot delete path ‘/nix/store/9ycaql3dbmxhvb5n73z8znjbnjnxwgfn-qutebrowser-0.9.0’ since it is still alive
<Somelauw>
why, i'm pretty sure i'm not running it currently
<Somelauw>
Why not? It's my system. If I want to save disk space I think I should be able to
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erasmas has quit [Quit: leaving]
<clever>
Somelauw: `nix-env --delete-generations 2` to delete that generation
<clever>
repeat until no more roots are remaining
<clever>
there is also `nix-collect-garbage -d` to just delete every generation and every unused path
<clever>
every unused generation*
<Somelauw>
ah, is this like a version control system?
<Somelauw>
then merging generations could be better
<Somelauw>
ok, thanks
<NemesisD>
i'm having a problem with a nixos module. i'd like to copy it to my local machine and modify it and try it out but i can't add it to my `imports` list because the options conflict with the ones from nixos. how do i get around this?