<adisbladis>
judson: That's a great issue report :) Thanks
<adisbladis>
judson++
<judson>
Cheers. I was afraid my irritation was creeping in :)
bqv has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.7.1]
fresheyeball has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 268 seconds]
mbrgm_ is now known as mbrgm
<tobiasBora>
Hello, Is there any command line tool that can let me create a "user mount" (i.e. a mount that would be available to only the current program). I know bubblewrap, but I don't want all the protection mechanism it offers (namely, I want to be able to run inside a fusermount).
SomeoneSerge has quit [Ping timeout: 240 seconds]
johnw has joined #nixos
bn_work has joined #nixos
supersandro2000 has quit [Disconnected by services]
<fuzzypixelz>
I'm a bit confused. How am I supposed to get Haskell packages? Do I simple install them? Do I use stack? Do I use cabal? Will the last two even work?
<clever>
fuzzypixelz: i generally use callCabal2nix
statusfailed has joined #nixos
<clever>
fuzzypixelz: or ghcWithPackages
simba1 has quit [Ping timeout: 260 seconds]
aleph- has quit [Ping timeout: 256 seconds]
cr4y1 has quit [Ping timeout: 246 seconds]
<fuzzypixelz>
clever: is there no equivalent haskell-platform? I find myself missing "essential" things like Data.List.Split just having ghc
{^_^} has joined #nixos
<fuzzypixelz>
clever: I'm not really doing haskell developement, I just want a reasonably large haskell standard library to hack and learn
aleph- has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
ManiacOfMadness has quit [Ping timeout: 256 seconds]
Keij0 has quit [Ping timeout: 240 seconds]
Keij0 has joined #nixos
TomLad has joined #nixos
Fare has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
Guest98937 is now known as TomosLad
<TomosLad>
Hey! Just wondering if anyone has used locust the python load testing tool? nixpkgs has locustio 0.9.0 (an older version of locust) however I can't seem to build it (it fails on it's own tests)
<abathur>
I have used locust before, but iirc just via pip pre nix
<abathur>
I wish there were cache stats so you could see how many people were trying before diving in on a slog
<DigitalKiwi>
i know at least 2 because there have been bug reports and other people have made prs to update it
<DigitalKiwi>
and like...i wouldn't even be using nixos on my server if it didn't support just a few znc packages so like who knows what's a deal breaker
<DigitalKiwi>
i had to add them to nixpkgs to switch off of freebsd :)
<DigitalKiwi>
there's a stats program for archlinux...maybe nixos needs one
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JL4Xm
<esotericn>
hey all. does anyone have a good resource I can consult on building rust packages in nix? i'm having some issues with custom build commands but I'm not sure how to override them
<esotericn>
it doesn't seem to be covered in the nixpkgs docs
feep has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
<feep>
clever: hi, ping :)
bn_work has joined #nixos
vidbina has quit [Ping timeout: 260 seconds]
<feep>
back in https://logs.nix.samueldr.com/nixos/2020-10-14 dumbuser had a problem with their bash crashing ... and all I can see in the log is them spontaneously going "it worked!" "yay"
<feep>
and I ... can't see what they did to fix it >.<
* feep
has the same issue
<feep>
oh, probably runs into it in an unrelated way..
<feep>
hm, given a specific package version, is there any way to see what brought it in?
<feep>
--query --referers maybe
<feep>
there's a lot in there... doesn't really help :(
<feep>
for context, I recently switched to 20.09 and now when I try to run make in a fhs env, it uses a bash that segfaults
<{^_^}>
[nixpkgs] @peti opened pull request #107144 → Update Haskell package set to Stackage Nightly 2020-12-14 (plus other fixes) → https://git.io/JL41w
<feep>
ldd says it runs with glibc-2.30 but the env wants glibc-multi-2.31
jb55 has joined #nixos
<feep>
if I manually start it with 2.31, it works..
zakame has quit [Remote host closed the connection]
<esotericn>
hm, carnix doesn't work either.. the rabbit hole begins :P
<feep>
... I may be an idiot.
<feep>
yep, I'm an idiot, nvm
<feep>
I didn't remember to reconfigure the folder and the Makefile was hardcoded to the older bash, that's why it selected it
<{^_^}>
[nixpkgs] @SamirHafez opened pull request #107146 → rofi: Add option to symlink dmenu → https://git.io/JL4M1
zupo has quit [Read error: Connection reset by peer]
<esotericn>
trying crate2nix now, seems more promising :)
davidv7 has quit [Read error: Connection reset by peer]
davidv7 has joined #nixos
rprije has quit [Ping timeout: 240 seconds]
<esotericn>
> Support for git sources with sub modules. doh :P
<{^_^}>
error: syntax error, unexpected WITH, expecting ')', at (string):452:25
fuiltilt has quit [Quit: WeeChat 2.9]
JJJollyjim has joined #nixos
<JJJollyjim>
I have lorri.service enabled in my nixos config. After a garbage collection, my user systemd no longer is able to load the unit fille, faililng with systemd[1615]: lorri.socket: Failed to open /nix/store/lg52224jfb1qg90h38mkzlzsbpqp0f09-unit-lorri.socket/lorri.socket: No such file or directory
<JJJollyjim>
(and indeed that derivation is not present in my store)
<JJJollyjim>
how does this happen, and how can i fix it?
<JJJollyjim>
oh i see, i somehow ended up with a bad symlink in ~/.config/systemd/user/lorri.socket
<{^_^}>
[nixos-search] @garbas pushed 3 commits to fix-nix-py: https://git.io/JL4HK
<victorbjelkholm>
trying to install nixos from usb on new desktop computer, problem is it doesn't seem to find/support my wifi card that's connected via PCI-E. Would I get any different results if I try the graphical installer? Running the minimal ISO now and `ifconfig -a` doesn't show my interface, looking through `dmesg` now to find some more details
<eyJhb>
Anyone that has used NS3 with NixOS before? I am getting a Floating point exception (core dump), when I compile and run the code using NixOS, but on Ubuntu (none nix) it will compile file and run fine
isHavvyGhosting has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixos-search] @garbas pushed to fix-nix-py « adjust multi level formatting »: https://git.io/JL4QH
pbb has joined #nixos
zupo has joined #nixos
bzl has quit [Read error: Connection reset by peer]
simba1 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @mmahut opened pull request #107147 → terraform-providers.checkly: init at 0.7.1 → https://git.io/JL454
<victorbjelkholm>
to answer my own question, no, graphical installer makes no difference. Could I possible pull down the right package on a usb and install it from there to the installer?
<tejing>
sss2: it looks like your /etc/php-fpm.conf is a broken symlink, though that's pretty odd. nixos tries pretty hard not to delete anything that the running system depends on
<sss2>
no
<sss2>
wrong option
<sss2>
for fpm config -y is used
<sss2>
anyway php from nix is not acceptable, built without apparmor
<{^_^}>
[nixpkgs] @Atemu opened pull request #107148 → linux_lqx: init at 5.9.15 → https://git.io/JL4dW
<{^_^}>
[nixos-search] @garbas closed pull request #203 → Add basic support for listing texlive packages → https://git.io/JUbBM
<andi89gi>
Hey at all: "dummy noob" question - would you stay on NixOS 20.09 or change the unstable channel? I consider also to change to the latest LinuxKernel. What's your advice?
orivej has quit [Ping timeout: 260 seconds]
<adisbladis>
andi89gi: We have different channels for a reason.
<adisbladis>
The answer is "it depends"
<andi89gi>
adisbladis: ah - if you want the latest and greatest or stay on the stable version
<adisbladis>
That's one factor
meh` has joined #nixos
<adisbladis>
The other is breaking module changes and such happening on unstable
sangoma has quit [Quit: WeeChat 2.9]
<adisbladis>
But we don't backport those to stable
<adisbladis>
I think if it's a personal desktop system I'd run unstable
<adisbladis>
But if it's something more production critical, probably stick to stable
hugolgst has joined #nixos
<hugolgst>
Hello
<{^_^}>
[nixos-status] @garbas pushed to main « add nix profile to path also in pull requests »: https://git.io/JLBfq
cosimone has quit [Remote host closed the connection]
<andi89gi>
Well, my lap is for daily work (office,coding etc.) I mean actually it would be interesting to tweak/play with the latest LinuxKernel and staying on stable
<andi89gi>
@adisbladis
<adisbladis>
andi89gi: It's also perfectly fine to mix and match channels
<adisbladis>
You could run your base system off stable and pick some packages from unstable
vidbina has joined #nixos
<andi89gi>
adisbladis: true - therefore I really like NixOS; if something "breaks" or doesn't work well; I can go the last nixos-conf
<tobeportable>
yes, I do this too, 20.9 + have some specific packages using unstable or even unstable-small
* adisbladis
runs laptops/desktops straight off master
<andi89gi>
adisbladis: okay then I will try and play with my system
<adisbladis>
But I wouldn't recommend that unless you actively want to hack on nixpkgs and fix stuff
<andi89gi>
tobeportable: ah okay nice
<andi89gi>
adisbladis: Well, I want to participate on the NixOS community. But first I have to get familiar with it
<etu>
andi89gi: Running things from unstable should never make your system unbootable. Running things from master may give you a non-functioning bootloader. It doesn't stop people from trying though ;)
<endocrimes>
TBH most of the issues I run into running master come from people pushing stuff straight to it without review
<andi89gi>
etu: thx for explaining it! I am going to try it now. NixOS is running great with my AMD Ryzen 5 3500U. It is the best experience I have hat up to now
<endocrimes>
But it's rarely unbootable - regularly unbuildable tho
<{^_^}>
[nixos-search] @garbas pushed to main « switch to main branch and publish to netlify »: https://git.io/JLBJc
<etu>
endocrimes: But it *can* happen, which is why we have tests for unstable ;)
<andi89gi>
sphalerite: Have u checked out about the TMW on NixOS?
<endocrimes>
etu: for sure :)
respawn_ has quit [Quit: Leaving]
kirc1 has joined #nixos
<{^_^}>
[nixos-status] @garbas pushed to main « Add deploy information to README.md »: https://git.io/JLBUR
kirc1 has quit [Client Quit]
mounty has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixos-search] @garbas pushed to main « removing ideas from the README.md since we already have them in tickets »: https://git.io/JLBTf
DivanSantana has joined #nixos
<DivanSantana>
which pkg provides red alert openra? It seems like there is several.
<etu>
> pkgs.openra.meta.description
<{^_^}>
"Open-source re-implementation of Westwood Studios' 2D Command and Conquer games"
* etu
only found one
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JLBT6
m4ts has quit [Ping timeout: 256 seconds]
werner292 has joined #nixos
andi89gi has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andi89gi has joined #nixos
m4ts has joined #nixos
vidbina has quit [Quit: vidbina]
vidbina has joined #nixos
<buffet>
Hey, I installed termite using nix-env, then uninstalled it, and tried installing it via home-manager (using the module in configuration.nix), but I'm getting priorty conflicts for /etc/xdg/termite/config. Any idea how I could solve that?
DivanSantana has quit [Remote host closed the connection]
Swant is now known as Swant|candyeatin
Swant|candyeatin is now known as Swant
<{^_^}>
[nixos-common-styles] @garbas pushed to main « Ensure we publish production branch in netlify »: https://git.io/JLBLP
<thibm>
although, the "is still in all-packages.nix" shows something's wrong in all-packages.nix IIUC
<{^_^}>
[nixos-planet] @garbas pushed to main « install-nix-action: v8 -> v12 »: https://git.io/JLBmY
<thibm>
gchristensen: ant-dracula-theme is defined in pkgs/top-level/aliases.nix and throw this message
<gchristensen>
cool I didn't know {^_^} handled throw like that
aswanson has joined #nixos
<thibm>
that's nice. Although I would have prefixed with "error: " or something like that
<victorbjelkholm>
trying to setup my new desktop with nixos, but having issues getting nixos to recognize my wireless card. It's using the bcma kernel module, and seeing some complaints about SPROM in dmesg, together with "probe of bcma failed with error -95". Anyone knows what's going on or have any pointers to help me figure out how to solve it?
akaWolf has quit [Ping timeout: 265 seconds]
<thibm>
fuzzypixelz: it's ant-dracula-theme for 20.09 and dracula-theme for unstable on search.nixos.org. The renaming PR was merged on october 11, so everything is fine
<{^_^}>
[nixos-planet] @garbas pushed to main « set NIX_PATH in github actions »: https://git.io/JLBYt
<fuzzypixelz>
thibm, it was prefixed with error, sorry
BlessJah_ is now known as BlessJah
<fuzzypixelz>
thibm, but I'm on 20.09?
<thibm>
fuzzypixelz: I was talking about {^_^}'s output, right now it's not clear that it's an error and not the result of the evaluation
<thibm>
fuzzypixelz: hm…
<thibm>
fuzzypixelz: indeed ant-dracula-theme is defined in both all-packages.nix and aliases.nix, thus this message
<{^_^}>
[nixpkgs] @adisbladis opened pull request #107152 → emacsPackages*: Move to emacs*.pkgs → https://git.io/JLBY7
<thibm>
thibm: so there are some inconsistency here
<thibm>
I try to understand how we managed to get this state
<thibm>
the attribute rename and the alias error are in the same PR
philr has quit [Ping timeout: 268 seconds]
<fuzzypixelz>
what's even weirder is this: `undefined variable 'dracula-theme' at /etc/nixos/configuration.nix:121:2`
<thibm>
it's not weird, dracula-theme is not defined. (That's not normal though)
<thibm>
fuzzypixelz: right now, ant-dracula-theme is still defined in all-packages.nix, but it's also defined in aliases.nix to throw an error saying that's it got renamed to dracula-theme. But that's not true
<fuzzypixelz>
thibm, was there a backport or something?
kirelagin has joined #nixos
gustavderdrache has joined #nixos
<thibm>
yeah or a buggy merge. See commit cda9f4ca0c7fcb300eda46c589f906130afdf895
<{^_^}>
[nixos-homepage] @garbas pushed to master « Push to netlify on master and cron github actions »: https://git.io/JLB3o
<thibm>
fuzzypixelz: half of the changes had been backported
<thibm>
I think the right fix is to remove the alias line in aliases.nix, because the renaming will (had) break configurations
andi89gi has quit [Remote host closed the connection]
andi89gi has quit [Remote host closed the connection]
werner292 is now known as werner291
mounty has joined #nixos
<esotericn>
is anyone here using `cargo2nix` or any of the other rust nix helpers? I've been running around in circles for a while and think I've finally found my issue
<esotericn>
I have a dependency here that runs a bash `./configure` script, but the shebang isn't rewritten, it's still #!usr/bin/env bash, so it fails. if I modify the dependency to run `bash configure` instead that seems to work fine
<nf>
this means i can't set a user's password via a secret
fendor has joined #nixos
<{^_^}>
[nixos-org-configurations] @edolstra pushed 0 commits to serve-status-under-monitoring: https://git.io/JLBMt
<Mic92>
nf: the reason is that sops-nix chown secrets to users/groups created before.
<nf>
oh
<Mic92>
nf: why can you not set users passwords?
<Mic92>
nf: why can you not set users passwords?
<Mic92>
sorry double post
<nf>
because that happens in the "users" activation script, which is run after secrets are decrypted
<nf>
couldn't we use UIDs/GIDs instead of names? i think those are known at evaluation time?
<Mic92>
ok. I don't think it can cover this use case
<Mic92>
no because uids/gids are allocated in this phase as well
<Mic92>
most of them are not static
<Mic92>
You can still use hashedPassword
<nf>
ok
yoctocell has joined #nixos
<nf>
that means making brute-force attacks possible, but i guess i can live with that
asheshambasta has quit [Ping timeout: 268 seconds]
veleiro has joined #nixos
sangoma has joined #nixos
growpotkin has joined #nixos
yoctocell has quit [Remote host closed the connection]
<Ke>
if you can crack sha256 you can injection attack nix/store anyway
<Ke>
unless you disallow users doing builds
<Ke>
but nixos security model relies on uncrackable hashes
abathur has joined #nixos
<Mic92>
nf: the same argument would apply to encryption.
__red__ has quit [Ping timeout: 256 seconds]
<Ke>
well not sure, if it counts as an injection, but anyway
bridge[evilred] has quit [Ping timeout: 264 seconds]
<Ke>
you can always just create a custom pam module and plug that in
<nf>
Mic92: i guess that's true
<veleiro>
what is /nix/store/*-source.drv
<adisbladis>
veleiro: Looks like the derivations created for fetching sources
peter77 has joined #nixos
bridge[evilred] has joined #nixos
<thibm>
veleiro: for instance, fetchzip has an argument `name ? "source"`. So most fetchers set the name to "source".
__red__ has joined #nixos
red[evilred] has joined #nixos
<red[evilred]>
huh
<red[evilred]>
now I wish I logged incoming traffic
<red[evilred]>
caused systemd to core dump
<red[evilred]>
someone connected to my ssh port
<veleiro>
ah, ok
<veleiro>
if some drv fails to build, what's the course of action to take to find the culprit?
ATuin has quit [Quit: WeeChat 3.0]
<veleiro>
for me, ly-0.2-1.drv doest build because git tag 0.2.1 doesnt exist anymore
<veleiro>
and home-manager-path.drv draws in ly-0.2.1
<veleiro>
but do i just git grep the .nix files or what? there's no lead back to the .nix
<veleiro>
if .drv is like .o, the stack trace should show where in the .nix something failed
fresheyeball has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 has joined #nixos
<thibm>
veleiro: there's no lead back to the .nix. In fact, derivation are independant of nix
<veleiro>
yes, so this is just how things are? no better way to debug builds? just
<veleiro>
grep
<viric>
veleiro: the builders don't know the nix language. They 'realise' the drv to output paths.
<thibm>
grep what? The .drv? That's doable but hard indeed. You can grep the log
<viric>
nix -> drv, drv -> output paths
<thibm>
`nix log outpath` or `nix log drvpath`
<veleiro>
yeah i mean i can find immediately which .drv has an error
<viric>
nix -> drv (run as your user). drv -> output paths (run as nix builders)
<thibm>
then finding the error is usually quite easy, but you need to know yourself what to touch in the nix files, yes
<veleiro>
but i have no idea what built that drv
werner292 is now known as werner291
<thibm>
veleiro: I'd say if you not an advanced user, don't look at the drv files. Just look at the log
<thibm>
That's usually enough to debug
<veleiro>
ok i didn't know about 'nix log'
<veleiro>
i'll check it out
<veleiro>
i can fix what goes wrong usually i just find this disconnect from the
<veleiro>
stack track
<viric>
veleiro: notice that you never build a single nix file. The drv are the combination of all nix files involved. That may be the whole nixpkgs + your extra nix file.
<veleiro>
trace*
<viric>
(you can have drv coming from only one nix file, sure, but I guess that's not your case)
<veleiro>
viric: yes thats understood indeed
<lordcirth>
red[evilred], core dump of sshd?
<veleiro>
i'm just trying to find out what wants ly for building
<veleiro>
i found in nixpkgs ly has an outdated definition and fixed it
<viric>
veleiro: if you have versions of the ".nix", you could try to nix-instantiate every version until you get that which produces that very drv
<thibm>
veleiro: you can use `nix why-depends` for that
<esotericn>
does anyone here use `cargo2nix`? I'm very close to getting a large package to build but it's appending an `-l static=rdkafka` to my build that I can't figure out how to remove, I've been grepping everywhere to figure out what's adding this rustc flag and no use
<esotericn>
sorry, crate2nix
fooker has quit [Ping timeout: 260 seconds]
<veleiro>
thibm: yeah that's the one
m1cr0man has joined #nixos
sadmin has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
notakeyboardsmas has joined #nixos
<notakeyboardsmas>
how do i make absolutely sure i’m trying to build my configuration based on the latest packages?
davidv7 has quit [Quit: Konversation terminated!]
sadmin has quit [Ping timeout: 265 seconds]
<lordcirth>
notakeyboardsmas, latest from your channel? nixos-rebuild --upgrade
<notakeyboardsmas>
i’ve done `sudo nix-channel —update` and am doing `sudo nixos-rebuild switch —upgrade` but i’m still seeing a bug that should have been fixed by a merge 7 days ago
<notakeyboardsmas>
and `sudo nix-channel —list` shows me as on unstable
<lordcirth>
notakeyboardsmas, nixos-unstable, or nixpkgs-unstable?
<notakeyboardsmas>
nixos-unstable
<lordcirth>
And can you link me to the commit you are talking about?
kraem[m] has joined #nixos
fooker has joined #nixos
<notakeyboardsmas>
brb, switching devices
notakeyboardsmas has quit [Remote host closed the connection]
<notakeyboardsmas>
but when i try to build my configuration, i get an error about hass-nabucasa requiring `attrs<20.3,>=19.3`, which that commit should have removed
jophish has quit [Ping timeout: 240 seconds]
kaliumxyz has joined #nixos
<notakeyboardsmas>
it's worth noting i put a lot of effort into trying to fix this myself before it was fixed upstream, so i tried a bunch of overlay stuff etc., which i've all disabled now, but maybe somehow the cache got poisoned?
<lordcirth>
notakeyboardsmas, /nix shouldn't have conflicts, but you might have some config left in your env or configuration.nix that is applying an overlay or a different channel
<hexa->
notakeyboardsmas: what channel are you using?
<lordcirth>
AFAIK -unstable only advances when master is 100% green in hydra?
m1cr0man has quit [Ping timeout: 264 seconds]
<adisbladis>
Depending on what you mean by 100% green
zupo has joined #nixos
Dotz0cat has quit [Read error: Connection reset by peer]
<notakeyboardsmas>
well, i'll try manually applying that PR's changes in an overlay, then...
<notakeyboardsmas>
thanks for pointing that out!
kaliumxy1 has quit [Ping timeout: 268 seconds]
<lordcirth>
notakeyboardsmas, if your config fits in -unstable-small, that is 2 days old... Probably doesn't, though
<notakeyboardsmas>
yeah, seems unlikely (i would be surprised if home-assistant were in -small...)
<lordcirth>
Unrelated Q: I have a flake with multiple nixosConfiguration{}s. How can I change the nixpkgs for one of them? I tried "let nixpkgs = nixpkgs2003; in" at two different scope levels, didn't work in either
<lordcirth>
For context, I have my machines on 20.09 but I've reverted my PC to 20.03 due to possible nvidia issues
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simba1 has joined #nixos
Dotz0cat has joined #nixos
zupo has joined #nixos
meh` has joined #nixos
<lordcirth>
OH I think I got it. nezha = nixpkgs03.lib.nixosSystem {}
veleiro has quit [Ping timeout: 260 seconds]
zupo has quit [Client Quit]
Boomerang_ has quit [Ping timeout: 246 seconds]
nixy has joined #nixos
<lordcirth>
Maybe I should put IPFS in a nixos-container so it can just have it's own nixpkgs
<Ke>
unpopular opinion: redundant .extraPackages that just appends systemPackages is the most stupid thing I have seen on nixos
jophish has joined #nixos
<Ke>
just makes you panic, "wait so programs don't work on nixos"
<shapr>
I still can't figure out how to make my X11 mouse cursor larger on a 4k screen with nixos
<shapr>
I tried the hidpi setting, perhaps I need to install some cursor themes?
werner291 has joined #nixos
m1cr0man has joined #nixos
rajivr has quit [Quit: Connection closed for inactivity]
<Ke>
xset does not work?
<Ke>
xsetroot -xcf .icons/Ke/cursors/left_ptr 48
<Ke>
sorry, xsetroot
<shapr>
er, where did you get the files in your .icons ?
<shapr>
oh wait, is that an .Xresources path?
* shapr
tries
<Ke>
I think I searched /usr/share on traditional distro
<Ke>
I guess Icon theme package on nixos
<shapr>
whew, so many
<hexa->
notakeyboardsmas: home-assistant is neither in -small nor !-small
<hexa->
notakeyboardsmas: so depending on the breakage in master most stuff should be cached already
mlen has quit [Ping timeout: 258 seconds]
bfrog has joined #nixos
m1cr0man has quit [Ping timeout: 260 seconds]
<notakeyboardsmas>
@hexa- it seems like i'm getting it working by manually applying the patches in an overlay, but in any case, thanks for the pointers!
<hexa->
sure, yw
<notakeyboardsmas>
and good to know about how the channel updates work
<proofofkeags>
is there a way to "export" a nix config from nix-env
vidbina has quit [Ping timeout: 256 seconds]
camsbury has joined #nixos
gerschtli has joined #nixos
toppler has joined #nixos
lord| has quit [Ping timeout: 265 seconds]
lord| has joined #nixos
elibrokeit has quit [Quit: Taking some time off for sanity]
SomeoneSerge has joined #nixos
Boomerang has joined #nixos
vidbina has joined #nixos
thc202 has quit [Quit: thc202]
werner292 has joined #nixos
<lordcirth>
proofofkeags, it's stored in ~/.nix-profile/
werner291 has quit [Ping timeout: 272 seconds]
<proofofkeags>
manifest.nix?
cognemo has quit [Quit: cognemo]
sss2 has joined #nixos
cognemo has joined #nixos
kiltzman has joined #nixos
werner292 has quit [Ping timeout: 268 seconds]
<lordcirth>
I think so.
berberman has joined #nixos
berberman_ has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @Gaelan opened pull request #107163 → nix 2.4: include lowdown in both buildInputs and nativeBuildInputs. → https://git.io/JLR3s
Boomerang_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Boomerang has quit [Ping timeout: 268 seconds]
<tobiasBora>
pjt_tmp: ok thanks!
m4ts has quit [Ping timeout: 256 seconds]
<sphalerite>
,tell andi89gi yeah sorry I forgot to get back to you! I haven't been able to find it so far, unfortunately :( but if you want to have a go at packaging manaplus together I'd be happy to help :)
<{^_^}>
sphalerite: I'll pass that on to andi89gi
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hledger-web: set $HOME to $TMP so that the test suite to succeeds »: https://git.io/JLRs1
m4ts has joined #nixos
<matthewcroughan>
sphalerite: copying you in from #nixos-chat
<matthewcroughan>
So yeah, LinuxHackerman gchristensen, how can I provision a nixos system.
<matthewcroughan>
"<sphalerite> matthewcroughan: where does it live? What access do you have? Is there an existing OS on it?"
<matthewcroughan>
> Where does it live? | On a home network
<{^_^}>
error: syntax error, unexpected $undefined, expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):452:21
<matthewcroughan>
Lol
<matthewcroughan>
>What access do you have? Is there an existing OS on it?" No existing OS, ideally this would be like provisioning a raspberry pi.
<{^_^}>
[nixpkgs] @peti pushed 39 commits to haskell-updates: https://git.io/JLRGC
<matthewcroughan>
The access I have is physical, and to the disks, via a sata adapter.
<matthewcroughan>
My ideal setup would be to just have a disk I can flash with `dd` and boot it to have my system right there.
sangoma has quit [Read error: Connection reset by peer]
simba1 has quit [Quit: WeeChat 2.9]
<patagonicus>
matthewcroughan: Do you have experience writing nix stuff? You can build something based on the sd-image.nix file in nixpkgs.
<matthewcroughan>
patagonicus: yeah a little, but I was just wondering what exists today that people have done
<matthewcroughan>
you're suggesting I write `lib/` functions for NixOS that could be used?
<patagonicus>
No, more just creative borrowing of the things done in lib/ and using parts of it. :)
<{^_^}>
[nixpkgs] @peti pushed 38 commits to haskell-updates: https://git.io/JLRGS
<patagonicus>
Basically, sd-image.nix shows how you can build a ext4 filesystem image with a NixOS / on it. It also bunches it together with a /boot partition into a disk image.
<{^_^}>
[nixpkgs] @peti pushed 18 commits to haskell-updates: https://git.io/JLRGA
<lordcirth>
matthewcroughan, look at the arm image builds in nixpkgs
<nhs>
matthewcroughan: why don't you just do a fresh nixos install once on one rasp pi and then use the inverse of your dd command to create an iso from it
<sphalerite>
that's a very simple script that will take e.g. /dev/sdb , format it and install the nixos configuration that lies next to the expression file
<lordcirth>
nhs, that's not as clean as generating from a flake
mallox has quit [Client Quit]
<tobiasBora>
I'm curious, why is steam implemented using bubblewrap and not docker? What are the pro/cons of both solutions?
<sphalerite>
idk about the flakes bit, but this option does save generating disk images which take up a bunch of extra space
<sphalerite>
tobiasBora: first and foremost, bubblewrap doesn't need a daemon or an image.
<sphalerite>
tobiasBora: as soon as you're using docker, you need root-equivalent privileges. You don't for bubblewrap afaik.
<tobiasBora>
sphalerite: when you talk about root equivalent privileges you mean to the host or to the guest?
<sphalerite>
tobiasBora: the host.
<lordcirth>
tobiasBora, docker requires dockerd to run as root
<tobiasBora>
sphalerite: you mean more than what you get when you allow user namespaces?
<sphalerite>
and last I checked, dockerd doesn't have any sort of access control that prevents any user from running a container with --privileged and mounting the host's root filesystem into the container.
<sphalerite>
tobiasBora: that allows restricting containers further, but the user that starts the container can still become root on the host.
<bougyman>
Never seen bubblewrap. I've been using podman for my container runtime, which also doesn't require a daemon nor elevated privs.
<tobiasBora>
sphalerite: so basically, if user A is malicious, A can use docker to get root access in a way that would not have been possible only with access to namespaces?
<lordcirth>
tobiasBora, if dockerd is configured to allow A to make containers, yes, I believe so
<sphalerite>
tobiasBora: correct.
<tobiasBora>
ok thanks
cosimone has quit [Quit: cosimone]
vidbina has quit [Ping timeout: 246 seconds]
<patagonicus>
matthewcroughan: very sidestepping your question, but customizing the Nixos installer is very simple. So you could have a usb drive that boots up so you can log in via ssh (with your pubkey preinstalled) and it could already include the configs you might want to use. Could even include a script that runs on startup that automatically provisions the
<patagonicus>
machine it's plugged in to.
endformationage has joined #nixos
<{^_^}>
[nixpkgs] @peti merged pull request #107144 → Update Haskell package set to Stackage Nightly 2020-12-14 (plus other fixes) → https://git.io/JL41w
<sphalerite>
tobiasBora: not to preclude the possibility of there being design or implementation weaknesses in user namespacing that might allow that sort of thing, but docker doesn't even intend to disallow that.
<tobiasBora>
sphalerite: so do you know something that is like bubblewrap, except that you don't have that many security limitations. Like I'm fine to allow guest to use namespace. I also want guest to be able to use fusermount.
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/JLRcv
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<tobiasBora>
bougyman: I'll check, but you also need an image right?
<Gaelan>
Anyone know if it's possible to get the .drv file from a build on hydra.nixos.org? My raspberry pi is building llvm and I'm trying to figure out why it can't use the one built by hydra
<bougyman>
tobiasBora: I don't know what you mean by 'You also need an image'
<bougyman>
You mean a container image?
werner291 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2020-12-18T01:03:03Z »: https://git.io/JLRcB
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2020-12-18T01:03:03Z »: https://git.io/JLRc2
<{^_^}>
[nixpkgs] @peti pushed to master « all-cabal-hashes: update to Hackage at 2020-12-18T01:03:03Z »: https://git.io/JLRca
<sphalerite>
tobiasBora: yes, you need a container image for podman too.
<sphalerite>
tobiasBora: what is it you're trying to achieve with whatever tool it is?
<tobiasBora>
sphalerite: so basically, I'm trying to see if I can get a way to fake a ubuntu system on NixOs, like steam-run, but in a what that allows me to be closer to the host system, and run commands with more priviledges. The issues that annoys me the most is the fact that bubblewrap can't handle fuser mounts. So it means that if I try to run an appimage on steam-run, it will fail. The second issue I have
<{^_^}>
#104412 (by tobiasBora, 3 weeks ago, open): Steam-run: can't use MIT shared memory
<{^_^}>
#100655 (by nyanloutre, 9 weeks ago, open): steam: Proton 5.13 does not launch because of steam runtime
<tobiasBora>
bougyman: yeah
<tobiasBora>
sphalerite: long story short: I'd like a real quick and dirty way to run any app that would run on a normal linux quickly. I'm tired of using a slow virtual box, taking 20Go of space for doing that, and would see if I could do that directly in nix.
h0m1 has quit [Quit: WeeChat 3.0]
respawn_ has quit [Quit: Leaving]
werner291 has joined #nixos
h0m1 has joined #nixos
<tobiasBora>
And also, I want to take that opportunity to understand a bit more the internal of linux ^^
nature has quit [Ping timeout: 256 seconds]
<lordcirth>
tobiasBora, "steam-run ./foo"
<lordcirth>
after installing steam-run, of course
<tobiasBora>
lordcirth: nope, it fails if foo tries to use fusermount
<lordcirth>
Ah
<lordcirth>
What apps use that?
<tobiasBora>
lordcirth: that's my whole issue.
<sphalerite>
yeah I don't think that's possible for the general case
<tobiasBora>
lordcirth: any app that uses appimage. Last one I found was LittleWeeb.
pjt_tmp has joined #nixos
Lord_of_Life has joined #nixos
<lordcirth>
tobiasBora, does appimage-run not work?
gustavderdrache has quit [Quit: Leaving.]
<tobiasBora>
lordcirth: nope, it segfault without much messages.
<lordcirth>
weird
<lordcirth>
Should probably report a bug against appimage-run, then
tobeportable has joined #nixos
<tobiasBora>
lordcirth: apparently running appimage based on electron is hard in nix
<tobiasBora>
I think because people did not put any libraries by default
<tobiasBora>
bougyman: is there a quick way to run an app with podman? I love the way steam-run works, and I'd prefer not to write an image everytime I want to run a program
wnklmnn has joined #nixos
<tobiasBora>
lordcirth: even VM are not perfect. Like you can't use CUDA in VM.
<tobiasBora>
(at least not in virtualbox)
<sphalerite>
you don't need to write an image, you can use the standard ubuntu image or whatever
<sphalerite>
but in the end if you really want to run ubuntu stuff and have it work out of the box, your best bet is ubuntu.
guest41 has quit [Remote host closed the connection]
<tobiasBora>
sphalerite: well I don't want to always run ubuntu stuff. I just want to run things that are supposed to work in FHS distributions: appimages for example. Most of the time, nix is good, but when projects provides appimages that are supposed to be usable everywhere and that fail, even with appimage, it's a bit frustrating.
<tobiasBora>
and steam-run is not too far, only problem is bubblewrap
asbachb has quit [Remote host closed the connection]
andi89gi has joined #nixos
Cale has quit [Remote host closed the connection]
cole-h has quit [Quit: Goodbye]
sangoma has quit [Quit: WeeChat 2.9]
xcmw has joined #nixos
cosimone has joined #nixos
<andi89gi>
Hi together; I have now switched to the unstable channel. Unfortunatly I get an error during nix-env -u; 3 pkgs failed to be build
<{^_^}>
andi89gi: 1 hour, 54 seconds ago <sphalerite> yeah sorry I forgot to get back to you! I haven't been able to find it so far, unfortunately :( but if you want to have a go at packaging manaplus together I'd be happy to help :)
hnOsmium0001 has joined #nixos
<andi89gi>
sphalerite: No worries! :) Well, I would like to have a go at packaging manaplus together. It would be a good start giving sth back to the community :)
<sphalerite>
nix-env -u is kind of terrible
<sphalerite>
,imperative
<{^_^}>
nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
<{^_^}>
[nixpkgs] @sternenseemann closed pull request #106350 → ocamlPackages: add ppxlib 0.20.0 and split ppxlib versions into different attrs → https://git.io/JI0ui
<lordcirth>
How can I ignore a cached failure in "nix build" so I can use --show-trace?
<andi89gi>
sphalerite: oh, so I shouldn't use nix-env -u? maybe nix-env --upgrade?
<sphalerite>
andi89gi: it's the same thing. A declarative setup would work better.
<sphalerite>
,declarative
<{^_^}>
There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
cognemo has joined #nixos
<sphalerite>
if you're using nixos, managing everything via the nixos config (systemPackages) is also a good option
<sphalerite>
lordcirth: if you're getting to the point where builds are failing, --show-trace is no longer any use — it only applies to evaluation errors
<lordcirth>
sphalerite, no, I think it's an eval error
<sphalerite>
lordcirth: I'm also a bit confused as to what you mean by a cached failure?
<lordcirth>
sphalerite, when I run "nix build" on my project, it returns "value is a function while a set was expected". When I try to run it again with --show-trace, it prints "cached failure of attribute 'defaultPackage.x86_64-linux'"
<sphalerite>
oh, unstable flakes stuff. No idea.
<lordcirth>
I always have to fiddle with the file to get it to try again
<sphalerite>
use stable nix :p
<sphalerite>
(sorry I know that's not helpful)
<andi89gi>
sphalerite: I tweak via nixos-config
andi89gi has quit [Remote host closed the connection]
<lordcirth>
Hmm, "nix flake check" seems to always try
<sphalerite>
andi-: then you'll want to avoid using nix-env and only manage packages via systemPackages instead.
<{^_^}>
A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<sphalerite>
andi-: aw, that seems like a dup of
<sphalerite>
,declarative
<andi->
Noo /o\
<{^_^}>
There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
andi89gi has joined #nixos
<sphalerite>
oops I meant to highlight the other ani though
<sphalerite>
hah
<sphalerite>
sorry, wrong highlight then x)
<andi89gi>
sphalerite: then on every boot process it will update/uograde with thesse commands itself? system.autoUpgrade.enable = true;system.autoUpgrade.allowReboot = true;<
<andi89gi>
hahah no worries
<lordcirth>
ebbertd[m], can you pastebin your flake?
<sphalerite>
,declarative = There are multiple ways of managing a user declaratively. 1) nix-env -ir, compatible with "temporary" imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
<{^_^}>
declarative redefined, was defined as There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
<sphalerite>
andi89gi: no, that will make it update stuff periodically and reboot if necessary (e.g. when the kernel is updated)
<andi89gi>
ah
<sphalerite>
andi89gi: the interval at which it happens is defined by another option
<sphalerite>
that won't affect stuff installed via nix-env though. You'll want to avoid using nix-env generally.
Vq has joined #nixos
<andi89gi>
sphalerite: actually yes; bc the upgrade to 21.03 and Gnome 3.38 worked; but beisdes these 3 errors of pkgs - it is a bit annoying. I mean I know that I can go back to another NixOS config that works :D But this is not the solution to improve my learnign curve about NixOS
<andi89gi>
;)
<sphalerite>
nixos 21.03 isn't released yet
<Mic92>
ehmry: sphalerite has some suggestion for the mumble
<andi89gi>
hmm if I go to the Gnome settings the OSName is now NixOS 21.03 (Okapi)
<sphalerite>
yeah it's unstable
<andi89gi>
indeed I am on it :D
<andi89gi>
sphalerite: Or is it a "failure" going to unstable? :P
<sphalerite>
no, but I definitely wouldn't recommend unstable + autoUpgrade
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
the most recent major breakage on unstable was firefox removing all installed addons
<sphalerite>
that kind of stuff is likely to happen on unstable, but if you're willing to accept that it's fine (I still wouldn't recommend it with autoUpgrade though. Stick to releases for that.)
<andi89gi>
So, something like nix-env -ir ; yea actually a dummy idea to test unstable xD
<andi89gi>
sphalerite: You're on the normale stable release 20.09=
<sphalerite>
yep
<sphalerite>
maybe avoid using nix-env altogether
<sphalerite>
and only install programs via systemPackages
<andi89gi>
Can I delete the other configs on the boot process? - Indeed I am going to avoid nix-env
<sphalerite>
yes, though it makes sense to keep them for a while.
<sphalerite>
You can delete them using nixos-collect-garbage --delete-older-than 7d for example, then update the boot menu by rerunning nixos-rebuild switch or nixos-rebuild boot
<andi89gi>
Well, I mean I can keep them bc I know that the last one is unstable;and the other ones from the stable channel
<andi89gi>
*actually
camsbury has quit [Ping timeout: 260 seconds]
andi89gi has quit [Remote host closed the connection]
werner291 has quit [Ping timeout: 260 seconds]
werner291 has joined #nixos
seku has quit [Quit: Connection closed]
<lordcirth>
ebbertd[m], you should build with --show-trace and track through it until you find your own code
<lordcirth>
Most likely you are calling something with the wrong typ
<{^_^}>
[nixos-org-configurations] @garbas pushed 4 commits to remove-status-nixos-org: https://git.io/JLRz9
<Duponin>
Hi, I'm currently having fun with 389 DS (Nixpkgs: _389-ds-base) and wondering why there are no utility tools bundled with (`dsctl`, `dsconf`, `dsidm`). Unless these are renamed I don't find these in my $PATH
andi89gi has joined #nixos
<andi->
,locate dsctl
<{^_^}>
Couldn't find in any packages
<Duponin>
andi-: nothing returned
<andi->
yeah
<andi->
no ide abaou that package just thought it might be worth a sho
<Duponin>
wait, you talked to the bot ^^'
<andi->
t
<andi89gi>
sphalerite: Hmm, I have now to channels - but it is better to set up an alternative
<{^_^}>
[nixos-org-configurations] @garbas pushed to remove-status-nixos-org « eris: monitoring.n.o defined twise (after merge conflict) »: https://git.io/JLRgr
Henson has joined #nixos
<andi89gi>
Can I ignore this error "error: pyproj-2.6.0 not supported for interpreter python2.7
<andi89gi>
(use '--show-trace' to show detailed location information)"
zangi has quit [Quit: WeeChat 2.9]
<Henson>
is there I way I can make nixos-install not try to resolve cache.nixos.org so I can do an installation without a network connection, assuming I'm using an option like --system that shouldn't require anything to be downloaded? Or perhaps nixos-install only tries to reach cache.nixos.org if it needs to download something, and thus my install should fail without a network connection?
<Henson>
andi89gi: does the error prevent what you're trying to do from working?
<Henson>
andi89gi: that usually means the package is no longer written for python2.7 and either won't work or might not work
dbmikus has quit [Ping timeout: 240 seconds]
<andi89gi>
Henson: not really. ;) Python 2.6/2.7 - Are going to be EOL and not supported anylonger sooner or later
<Henson>
andi89gi: yeah, I think python2.7 almost a year ago on 2020-01-01
<Henson>
andi89gi: I see that pyproj isn't in the python27Packges set. How are you installing it and getting that error?
<andi89gi>
Henson: I have done one exeption to install broken pkgs by using nix-env -ir
<Henson>
andi89gi: ah
<andi89gi>
Sry for asking atm a lot
cosimone has quit [Read error: Connection reset by peer]
<andi89gi>
I have to learn a lot xD
<tpw_rules>
Henson: --no-net works for some commands
cosimone has joined #nixos
<Henson>
andi89gi: no worries, answering questions is one of the things we do here :-)
<Henson>
tpw_rules: thanks, I'll give that a try
nilsirl[m] has joined #nixos
<andi89gi>
Henson: thx and of course reading in Discourse or the Wiki ;) I mean the best on NixOS compared to other ones. It can not be broken.
<nilsirl[m]>
Hi, I used have docker enabled using `virtualisation.docker.enable = true`. However, I no longer need docker and have disabled it. The problem is, the directory `/var/lib/docker` is still 6G large and taking space on my disk. How can I get rid of it? Is doing `rm -r /var/lib/docker` the correct way to go about it?
nature has joined #nixos
<sss2>
how to tell init to wait for key device for luks ?
<Henson>
nilsirl[m]: I think that might be right. I installed docker on my laptop a while ago and encountered the same question. I think I tried deleting the images using the docker tools, but at the end of the day ended up having to delete /var/lib/docker anyway.
<{^_^}>
[nixpkgs] @evanjs opened pull request #107168 → nodePackages.quicktype: init at 15.0.258 → https://git.io/JLRaH
<Henson>
nilsirl[m]: removing docker from your configuration.nix file is essentially equivalent to removing the packages in Ubuntu. Then you just have to get rid of the /var/lib/docker directory, then any edited configuration files
<Henson>
nilsirl[m]: docker might also leave a hidden configuration directory in your home directory somewhere
<nilsirl[m]>
Thank you 👍️
<evanjs>
#107168 in case anybody would like a utility that helps with JSON/JSON schema/GraphQL/TypeScript -> other language serialization :D
<Fafnir[m]>
Hello, I have a NixOS system that won't boot because of a full disk. When booting from the installation media: Is there an easy way to run `nix-collect-garbage` targeting the mounted partition?
<Fafnir[m]>
This happened during package installation via nix-shell. So there is definitively something to remove.
philr has quit [Ping timeout: 268 seconds]
SomeoneSerge has quit [Ping timeout: 240 seconds]
<viric>
Fafnir[m]: chroot
oxalica1 has joined #nixos
oxalica has quit [Ping timeout: 256 seconds]
oxalica1 is now known as oxalica
<makefu>
if i remember there is nixos-enter(?) available in the installation iso
<Reiser>
I have a suspicion the nixos.org firewall/load balancer is dropping traffic from my server provider, does anyone know who I can reach out to to find out what's happening?
<simpson>
juliusdeane: Is that how libtelebot prefers to be linked? Does it participate in pkg-config or other ways of configuring preferred cflags?