KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
<astylian>
bbigras, awesome, thanks a lot!!!
<bbigras>
astylian: there's probably also a lot of interesting stuff in https://nixos.org/manual/nixos/stable/index.html . also when there's a new nixos release, the release notes often mention new cool options.
KarlJoad has joined #nixos
<bbigras>
astylian: you're welcome ๐
donofrio has joined #nixos
<astylian>
bbigras, is there any easy way to find the new options after a release?
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<peelz>
KarlJoad: huh... it says "windows cannot be dragged between X screens" at the top
<{^_^}>
[nixpkgs] @NeQuissimus pushed commit from @TredwellGit to master ยซ firmwareLinuxNonfree: 2020-11-18 -> 2020-12-18 ยป: https://git.io/JLHLH
<KarlJoad>
I just got the config written correctly, and I get to a graphical session, with both monitors working, but they are separate screens (meaning no sharing of windows).
<{^_^}>
[nixpkgs] @NeQuissimus merged pull request #107351 โ Bump rtl8821cu for Linux 5.10 support โ https://git.io/JLHL5
<{^_^}>
[nixpkgs] @NeQuissimus pushed commit from @srid to master ยซ Bump rtl8821cu for Linux 5.10 support ยป: https://git.io/JLHLd
<astylian>
bbigras, I have added virtualisation.docker.enableOnBoot = false; and then I run systemctl status docker, and its says 'Unit docker.service could not be found'
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107928 โ ocamlPackages.mirage-console: 3.0.2 -> 4.0.0 and add -unix package โ https://git.io/JLHtf
<bbigras>
astylian: you also need `virtualisation.docker.enable = true;`
<bbigras>
and you might want to add yourself to the "docker" group
<lovesegfault>
energizer: not much, like ~512MB out of my 32GB of ram on my laptop
aveltras has quit [Quit: Connection closed for inactivity]
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
<astylian>
bbigras, ok that seems to work. (I had added my user in the group before, thx) can you explain me a bit how it works? When is the docker installation happening?
<bbigras>
astylian: the docker files are installed when you switch to the configuration. The docker daemon is not running until you run the docker command. `systemctl status docker` says `TriggeredBy: โ docker.socket`.
<bbigras>
astylian: maybe you could also consider using podman. I heard it's a docker drop-in replacement without a daemon.
<astylian>
bbigras, I am using lxc some times, I haven't try podman yet...
<astylian>
bbigras, but when is the installation happening, how the nixos knows when I switch my configuration to install docker?
donofrio has quit [Remote host closed the connection]
alanz has quit [Read error: Connection reset by peer]
wpcarro_ has quit [Ping timeout: 260 seconds]
alanz has joined #nixos
bn_work has quit [Ping timeout: 260 seconds]
<bbigras>
astylian: not sure what you mean but when you run `sudo nixos-rebuild switch` your config files are parsed and the nix tools will download the docker files and add them to the nix store.
<peelz>
KarlJoad: honestly I have no idea. Xorg is a mess and the X configuration is beyond human comprehension. Let me know if you get it to work :)
r0bby has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107929 โ ocamlPackages.syslog-message: init at 1.1.0 โ https://git.io/JLHtV
rajivr has quit [Quit: Connection closed for inactivity]
r0bby has joined #nixos
wpcarro_ has joined #nixos
bn_work has joined #nixos
growpotkin has joined #nixos
<KarlJoad>
peelz: Will do. Getting the fun issue now where when I'm graphical, one monitor works, but when in console, the other one works. Not both simultaneously.
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 43 commits to staging-next: https://git.io/JLHqE
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 44 commits to staging: https://git.io/JLHqu
<lordcirth>
How can I raise the default ulimit -n (number of open file descriptors) across the whole system? I tried systemd.extraConfig = ''LimitNOFILE=infinity''; didn't seem to do anything
mbrgm_ has joined #nixos
rajivr has joined #nixos
<lordcirth>
1024 seems really low
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
eacameron has quit [Quit: Connection closed for inactivity]
donofrio has joined #nixos
astylian has quit [Remote host closed the connection]
astylian has joined #nixos
astylian has quit [Remote host closed the connection]
astylian has joined #nixos
<donofrio>
I have a volume that will not mount (boot volume "disk0s2" 639.3gb) what would I do to "heal it" (note first aid don't even want to touch it)
<energizer>
it doesn't complain when building, but doesnt seem to work either. maybe i need to reboot
<siraben>
How do I resolve `experimental Nix feature 'nix-command' is disabled; use '--experimental-features nix-command' to override`?
<siraben>
`nix build --experimental-features nix-command flakes` doesn't seem to let me enable both
carthia has quit [Remote host closed the connection]
<energizer>
you probably have to pass it twice
<infinisil>
energizer: Something like that yeah, check `systemctl --user status teardeer/tealdeer.timer` and `journalctl --user -u tealdeer/tealdeer.timer` for debugging
<energizer>
yeah i looked at those, i think they didn't reload properly
<infinisil>
Also, I think sometimes I needed `systemctl --user daemon-reload`
nDuff has quit [Ping timeout: 246 seconds]
<energizer>
after daemon-reload and systemctl --user restart tealdeer.timer i think it's working
<siraben>
What's good practice here? Because if I move them to their own respective repos and track nixpkgs with niv, then it seems like it would get messy
<siraben>
Messy in that each project has their own rev of nixpkgs instead of being synchronized
ghasshee has joined #nixos
kateskips has joined #nixos
m0rphism has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @jonringer merged pull request #107806 โ smesh, pythonPackages.{pythonocc-core,cadquery}: Fix building on darwin โ https://git.io/JLSIm
<{^_^}>
[nixpkgs] @lovesegfault pushed 2 commits to master: https://git.io/JLHGV
donofrio has joined #nixos
<KarlJoad>
Is anyone here using 2 separate discrete GPUs with 2 monitors on 1 X screen? If so, would you mind sharing your config?
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
<energizer>
KarlJoad: im curious what's the benefit of using one gpu per monitor?
buckley310 has joined #nixos
<KarlJoad>
energizer: I don't really think there is. I just want to use both GPUs, as they're both in the case right now.
<KarlJoad>
energizer: The weird thing is, I get the exact behavior I want on a more traditional Linux Desktop distro. But, I can't seem to make it work with NixOS.
tgamblin-llnl has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
meh` has quit [Ping timeout: 264 seconds]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
buckley310 has quit [Quit: Connection closed for inactivity]
grabb0id has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @nima2007 opened pull request #107943 โ librepo: Build with zchunk support on darwin โ https://git.io/JLHWF
<fps>
hi, to build the nvidia drivers with a rt-preempt patched kernel (from musnix) i had to apply this diff to pkgs/os-specific/linux/nvidia-x11: https://paste.debian.net/1178815/
<fps>
now i wonder how to best make this user configurable
orivej has quit [Ping timeout: 246 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Ping timeout: 272 seconds]
aswanson has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 46 commits to staging-next: https://git.io/JLHlI
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 47 commits to staging: https://git.io/JLHlL
kaliumxy1 has quit [Remote host closed the connection]
kaliumxyz has joined #nixos
tgamblin-llnl has joined #nixos
tgamblin-llnl has quit [Client Quit]
tgamblin-llnl has joined #nixos
tgamblin-llnl has quit [Client Quit]
tgamblin-llnl has joined #nixos
tgamblin-llnl has quit [Client Quit]
Darkmatter66 has joined #nixos
<sephi[m]>
Is there a way to use only some files from a directory as src? Iโm trying to package a website with a Django backend and uses webpack to build the JS files. Iโm using mach-nix to create a derivation for the Python part, and node2nix for the webpack part. My node2nix derivation uses `src = ./.`, which means the derivation gets rebuilt for every change in the directory (even in a Python file). Ideally Iโd like to only kee
<sephi[m]>
`package.json` and `package-lock.json` as src for my node2nix derivation.
hyper_ch4 has joined #nixos
hyper_ch2 has quit [Read error: Connection reset by peer]
tgamblin-llnl has joined #nixos
tgamblin-llnl has quit [Client Quit]
<energizer>
sephi[m]: poetry + poetry2nix
tgamblin-llnl has joined #nixos
tgamblin-llnl has quit [Client Quit]
tsrt^ has quit [Ping timeout: 240 seconds]
tgamblin-llnl has joined #nixos
tsrt^ has joined #nixos
<sephi[m]>
energizer: my problem is actually about the node part, not the Python part. Iโm not sure how poetry would help me solve it?
tgamblin-llnl has quit [Client Quit]
<energizer>
oh. nevermind then
medvid_ has quit [Ping timeout: 264 seconds]
tgamblin-llnl has joined #nixos
berber has quit [Quit: Ping timeout (120 seconds)]
gueorgui has quit [Ping timeout: 264 seconds]
berber has joined #nixos
tgamblin-llnl has quit [Client Quit]
gueorgui has joined #nixos
qwerty has quit [Excess Flood]
boegel has quit [Quit: No Ping reply in 180 seconds.]
caffery has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
brettgilio has quit [Ping timeout: 240 seconds]
caffery has joined #nixos
brettgilio has joined #nixos
<pie_>
when did nixpkgs get ghc 8.10? it doesnt seem to be part of 20.09 yet and my build of llvm segfaulted on nixos-unstable...
<pie_>
not sure if the segfault was a machine problem or its broken?
wesleyac has joined #nixos
<pie_>
well im lost, sometimes i van get niv to give me ghc 8.10 with some nixos branch other times its 8.6.5 or something
<pie_>
i switched it to nixos-unstable and told it to update and its sill 8.6.5
<wesleyac>
anyone here know about getting android-studio/react-native set up? running into a problem where the version of the sdk directory that's in /nix/store has not accepted the license agreement, and thus refuses to run :/ following along with https://nixos.wiki/wiki/Android#gradlew
arinov_ has joined #nixos
<pie_>
ok what. ghc says its 8.6.5 but when i check the nix repl its reported as 8.10
<{^_^}>
[nixpkgs] @JamieMagee opened pull request #107956 โ pythonPackages.python-tado: init at 0.9.0 โ https://git.io/JLHgD
<pie_>
oh let me guess this doesnt invoke -A on the shell set nix-shell nix/shell.nix -A nixpkgs.ghc -v
<wesleyac>
well i figured out my problem, nixpkgs doesn't have sdk version 29, but that's the version i need. i wonder how painful it's going to be to package it :/
ericsagn1 has joined #nixos
Kozova1 has joined #nixos
ericsagnes has quit [Ping timeout: 258 seconds]
dxtr has quit [Ping timeout: 258 seconds]
gentauro has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
gentauro has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
sangoma has quit [Read error: Connection reset by peer]
<reactormonk>
I'm getting error: executing SQLite query 'select id, hash, registrationTime, deriver, narSize, ultimate, sigs, ca from ValidPaths where path = ?;': disk I/O error (in '/nix/var/nix/db/db.sqlite') # but my FS doesn't have any error logs relating to it
<makefu>
Nigel[m]: really depends on the bug but normally you create an account and edit it directly :) if there are any issues with it someone will revert or update the page as all changes are announced in #nixos-wiki . you can also join this channel and ask more in-depth questions
mconnolly has joined #nixos
<Nigel[m]>
OK, can fix in the wiki.. There is a missing ip route rule in the configuration - I may need help to triage that
orivej has joined #nixos
grabb0id_ has quit [Ping timeout: 256 seconds]
joesventek has joined #nixos
dstzd has joined #nixos
davidv7 has joined #nixos
joesventek has quit [Client Quit]
dstzd has quit [Remote host closed the connection]
<wesleyac>
in case anyone has the misfortune to stumble upon the irc logs trying to get android stuff working, pinning nixpkgs to https://github.com/NixOS/nixpkgs/pull/89775 works for now, once that lands everything should just be happy
<collares>
hi folks! sorry for pinging, but would anyone be willing to merge an emacs2nix version bump in https://github.com/NixOS/nixpkgs/pull/107839 ? it would unblock emacs-overlay users
<{^_^}>
#107839 (by collares, 1 day ago, open): emacs2nix: update to fix locale issues and a missing elpa package
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107971 โ ocamlPackages.mirage: reintroduce dev output โ https://git.io/JLHS6
<{^_^}>
[nixpkgs] @rb2k opened pull request #107972 โ librepo: enable zchunk support on darwin โ https://git.io/JLHSi
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master ยซ ocamlPackages.syslog-message: init at 1.1.0 ยป: https://git.io/JLH9l
leibniz[m] has joined #nixos
<leibniz[m]>
I'm considering Xubuntu 20.04, debian and NixOS for my next OS. I've been using Xubuntu 18.04 with i3wm for a year. Any good intro material? Good YouTube pitch for NixOS?
fendor has quit [Ping timeout: 256 seconds]
<leibniz[m]>
(Debian+nix) vs NixOS
<Yaniel>
NixOS is basically "worst case you'll have to reboot into the previous configuration"
<Yaniel>
no clutter from old packages in /etc and other places that eventually get full of junk on debian based distros
<Yaniel>
well, most traditional distros
<dyazz>
And it's very reproducible, I share most of my config between my laptop and my desktop
malook has joined #nixos
<leibniz[m]>
Yaniel: I have a markdown-based log file in my dotfiles. Whatever I do with my OS, and I mean whatever!, I add a line into that explaining it, so if something acts up, I know what package/binary to blame.
<leibniz[m]>
And there are ~10 apps that I use most often and care about (vim/fzf/i3/thunar/etc) and I decided that I build them myself.
<leibniz[m]>
Now, I can continue this approach with debian...I guess that nix config is my manual dotfile
<Yaniel>
if you're into tinkering and trying out stuff straight from git it's also easy to do that for anything on the system with nixos (and again very low risk + effortless cleanup)
<Yaniel>
leibniz[m]: are you also going through every file a program created when you uninstall it and make sure it gets removed?
<leibniz[m]>
Yaniel: how nixos manages that? I saw somewhere that the filesystem is the price for it
<Yaniel>
nixos just symlinks everything that needs to exist into place at boot
<noonien>
leibniz[m]: I don't recommend running nix with another distro, you can, but you won't get the full nixos experience. NixOS does have a learning curve, and it will be difficult to do some things that you're used to on debian/ubuntu. But you can always fire up a docker repo.
<leibniz[m]>
I can try nixos in vbox, right?
<noonien>
Personally, when I use nix outside of nixos, is just to build stuff. I'm not fond of nix-env at all.
<Yaniel>
sure
<tejing>
leibniz[m]: nixos doesn't follow the FHS, instead each package gets its own file or directory under /nix/store. in a way that's a price, as you generally need some extra work to package a program for nix, because you have to wrangle control over where it expects files to be
<noonien>
Yes, I would actually recommend that!
malook has quit [Ping timeout: 260 seconds]
<leibniz[m]>
Alpine has a really nice YT pitch. Does NixOS have anything similar?
<Yaniel>
noonien: nix-env use is discouraged anyway
<noonien>
After you've finished your configuration.nix. You can just use that directly on your PC.
<Yaniel>
in favour of nix-shell and systemPackages
<tejing>
but that work has mostly already been done for you with nixpkgs
<noonien>
Same ^
oxalica has quit [Quit: oxalica]
astylian has quit [Remote host closed the connection]
<noonien>
(regarding nix-shell and systemPackages)
<noonien>
I'm not very fond of home-manager either, but in all fairness, I haven't given it a try yet.
<leibniz[m]>
So I use pipx for python venv apps and pyenv for python versions. I can still do them in nixOS right?
<dyazz>
You can directly use the nix-shell instead of venv
<noonien>
Probably yes. Most of the stuff just works. But packaging them for nix is usually nice.
<Yaniel>
you should use nix-shell instead yes
<dyazz>
You declare in a file the package needed for your env, and nix build a shell environment with everything loaded
<tejing>
the main warning i'd give is make sure you're prepared to install *everything* through nix, since on nixos, using non-packaged software is... difficult. A binary or script that would work on a FHS-compliant system will almost never even run at all on nixos. Fortunately even highly customized things are quite doable with nix, so it works out fine.
<noonien>
Some other packaging systems have some difficulty integrating into nix. Some python packages can make your life hard, but MOST of the time you'll be just fine. And you can just run a venv if you want to.
qwerty has quit [Ping timeout: 240 seconds]
<leibniz[m]>
tejing: Is there a list of pre-packaged apps for nixos? (to see which ones are done by community)
<noonien>
tejing: I don't agree. You can package FHS software for nix pretty easily. And binaries and scripts work just fine in a shell that you have required dependencies in.
<noonien>
leibniz[m]: all packages in nixos are done by the community
<leibniz[m]>
I usually build locally and add the binary to path. I lose manpages and stuff.
<leibniz[m]>
And NixOS is a "source-based distro" like gentoo right?
<Yaniel>
nixos is source based but supports fetching cached build artifacts from a build server to save time
<noonien>
You can package yourself, adding your own packages to nixos releases is as easy as submitting a PR to nixpkgs. If you just want to package them for yourself, you don't never need to create a PR.
<tejing>
noonien: yeah, the extra packaging work is pretty minimal, sometimes basically zero, and there are simple enough workarounds for the binaries and scripts too, but for a user new to nixos, the fact that you can't just run a linux binary tends to be a confusing surprise, so I think it's worth mentioning
<noonien>
leibniz[m]: Kinda, I don't think gentoo offers build caches. Nor is it pure (which makes caching basically impossible)
<noonien>
tejing: agreed
<noonien>
Sometimes when i'm lazy, i just fire up a docker container
<Yaniel>
(well technically there are some packages that take a prebuilt .deb, unpack it and patch what is needed before arranging everything into the nix store)
<Yaniel>
(but where sources are available nixpkgs tends to favour those over prebuilt binaries... or provide both options)
<tejing>
leibniz[m]: I'm sure there's a list of what's in nixpkgs somewhere on the web, but I just use the command line stuff in nixos, so I don't know where to point you toward
<leibniz[m]>
Why is there a stability staging when users can just run a previous snapshot?
<noonien>
just for having a stable build
<Yaniel>
nixpkgs-unstable might not even build
<noonien>
you can use packages from unstable on stable nixos
philr_ has quit [Ping timeout: 272 seconds]
<noonien>
you can use any packages from anywhere, nixpkgs is just a git repo, it's no different from any other git repo, except for the fact that it has a lot of packages
eacameron has joined #nixos
<noonien>
you can even run your own fork of nixpkgs, or just some packages
<noonien>
this might seem a bit confusing perhaps, but all of nixos packaging infrastructure is open source, because it's all just nix code.
<noonien>
unlike any other distro (with few exceptions, like guix probably)
<tejing>
leibniz[m]: one thing that sounds like it would be a big advantage for you specifically is that customized/local packages are first class citizens in nix. The only thing that's really different about them is that there's no cached copy to download so you have to build it locally
<leibniz[m]>
wow..what the hell...guys things you say is really exciting...I don't know why every single /g/ poster or HN commenter is not talking about nixos (or are they)...
<Yaniel>
they're too busy using arch (btw)
<noonien>
yeah, they've all got memed by arch (which is horrible btw)
<Yaniel>
well it *is* good at keeping you busy :P
<tejing>
that, and nixos has pretty bad documentation. be prepared to just go reading the nixpkgs source code if you want to go off the yellow brick road
<gchristensen>
a lot of people, (including nixos users) like arch, and they're our friends -- we don't need to yuck on their yum or dig on their choices
donofrio has quit [Ping timeout: 268 seconds]
<noonien>
i switched from ubuntu (after running it for 12 years) to nixos, because of the flexibility it gives me, and also INSANELY great stability
<noonien>
i mean, nixos is more stable for me than ubuntu
oxalica has quit [Quit: oxalica]
<Yaniel>
fwiw about customized packages, I needed a patched openocd for risc-v tinkering so I just replaced the source URL: https://paste.rs/6Ic
<noonien>
idk, most arch users, including irl friends, i've met, have an overinflated ego because of arch. imho, arch has made them think they understand than they think.
<noonien>
but, that's offtopic
oxalica has joined #nixos
<noonien>
more than they do*
<Yaniel>
(that's a fragment from my local configuration.nix)
<gchristensen>
noonien: it is important that we as a community respect and be kind to people and users of other systems
<leibniz[m]>
noonien: I do a lot of embedded dev. There is this bug on Xubuntu 18 that on connecting to USB CDC of target, if target resets, the whole OS freezes. I mean this is a freeze you have not seen probably. First the mouse, then cpu runs 100% then ran, then freaking WiFi gets disconnected. I have to raise the elelphant and do a hard reboot to get out of it.
<q3k[m]>
Mic92: o/
<leibniz[m]>
What's the status of "hardware interfacing" in NixOS?
<Yaniel>
gchristensen: true, and tbf I often hit the arch wiki for nixos questions :P
<noonien>
gchristensen: it's just an observation i've made, perhaps i'm wrong. and perhaps you are right, but I'm not of the opinion that disrespecting someone is the same as not respecting them.
<Yaniel>
leibniz[m]: which level of the OS does that freeze happen on?
<gchristensen>
Yaniel: yeah! their wiki is so good!
<Yaniel>
because as mentioned, overriding packages (including the kernel) is easy so if it's fixed in a newer version or in git somewhere you can just run with that
<simpson>
noonien: IDK, most people, including IRL people, have an overinflated sense of self. Period. No additional qualifiers. I suspect that it is tribalism, not an actual useful scientific insight, which colors your perception.
<leibniz[m]>
Yaniel: I'm not sure. Couldn't pinpoint the reason of it. systemd log just prints that usb is not connected then nothing
<noonien>
leibniz[m]: i do embedded as well, nix has helped a lot, especially with pinning dependencies
<leibniz[m]>
noonien: You see, Zephyr, freeRTOS, and others have instructions and *support* only for Ubuntus
<noonien>
simpson: agree
<simpson>
leibniz[m]: Kernel bugs are likely to transfer between distros, but also tend to be transient depending on kernel version. NixOS mostly can help here by automating the tweak-build-reboot cycle of kernels. (Although, for fairness, I've not actually done much kernel development in the past few years of NixOS. I'm speculating a bit.)
<noonien>
leibniz[m]: hehe, this is where your unix foo comes in handy. but in case that doesn't work, you can just fire up a docker with ubuntu
<tejing>
leibniz[m]: at the end of the day, nixos is still linux, but if there's a patch or workaround to fix an issue like that in linux, then in nixos you can codify that you want to apply that fix in your configuration.nix and have it coexist nicely with updates and such
Diagon has quit [Ping timeout: 240 seconds]
<leibniz[m]>
simpson: man, if I do nixos as my main setup, you'll be hearing more condescension from me than a veggie. :D
spinlock[m] has quit [Quit: Idle for 30+ days]
hleb[m] has quit [Quit: Idle for 30+ days]
<tejing>
one of the things I actually love most about nixos is the ability to tweak stuff deep in the os without losing track of what you tweaked
<noonien>
leibniz[m]: nix/nixos can be pretty frustrating, maybe more than any other distro, because it requires you to package everything you make, which i think is a good thing, because packaging for nix is usualy not that hard. after those frustrations are over, you'll be in builder's paradise
<tejing>
I never used to mess with some stuff, not because I didn't know how, but because I knew I'd forget what I did and it would mysteriously revert later or something
<simpson>
noonien: Or, rather, it makes folks realize that most upstream package authors don't actually package their released tarballs much. Packaging turns out to be an effortful thing.
<simpson>
(But, that said, we can usually leverage most packaging tools, including language-specific packaging toolchains. Only the most impure systems are unable to be reused.)
<noonien>
(i'm trying not yo overhype nixos for you, even though it is really hype, it's only great if you learn to work with it)
<Yaniel>
yeah, getting started with nixos was... slow
<leibniz[m]>
Yaniel: in your snippet, why you changed your openOCD in system level? You could just build and put the binary somewhere and add to path.
<noonien>
leibniz[m]: better to get it running in a VM, than running nix on your existing distro, I suggest you start with that, and ask here if you have any questions that you can't get answers to
<Yaniel>
leibniz[m]: and rebuild it manually every time the system updates
<Yaniel>
sounds like fun
<Yaniel>
so I chose to let the system take care of it instead
donofrio has joined #nixos
<leibniz[m]>
Yaniel: but now you are losing the upstream master openOCD.
<noonien>
leibniz[m]: hehe, that's something nix/nixos/nixpkgs is awesome at, you can install packages system wide, or you can just get them in scope for a single shell with the same amount of effort
<Yaniel>
I don't use upstream openOCD
<leibniz[m]>
And why is there a need to rebuild after system update
<Yaniel>
but if I had to, I could also do this in a shell.nix for per-project openOCD builds
<noonien>
i just use openocd in my project shell.nix, I don't have it installed system-wide
<Yaniel>
well one thing that occasionally changes is the location of the elf interpreter
<Yaniel>
which... tends to break all binaries
<tejing>
leibniz[m]: like I said, be prepared to do everything through nix. mixing non-nix-managed programs into nixos is generally a pointlessly difficult road to walk
<leibniz[m]>
noonien: do you do embedded linux stuff or lower level MCU dev (RTOS, baremetal) stuff?
arinov_ has joined #nixos
<Yaniel>
(since the elf interpreter is in the nix store like everything else, when it updates, its hash and therefore path changes)
<noonien>
leibniz[m]: in most cases, you won't need to rebuild packages, they're build by the nixos continous integration system that runs on hydra at https://hydra.nixos.org/. nix only builds packages that don't have their build cached, this usually means custom software or packages with modified sources or dependencies.
<noonien>
leibniz[m]: mostly lower level
<noonien>
mostly baremetal
ddellacosta has quit [Ping timeout: 256 seconds]
<noonien>
but i am installing nixos on a rpi and using that for my 3d printer, that counts as linux stuff! :D
<simpson>
But, that said, e.g. I have a setup that rebuilds PulseAudio and some dependent packages every nixos-rebuild. It just happens; I don't have to think about it or do any post-rebuild steps.
donofrio has quit [Ping timeout: 265 seconds]
<simpson>
Part of the power of Nix is that, once configured, Nix builds tend to not change much. They're not perfectly reproducible by default, but get quite close.
<leibniz[m]>
do VPS providers provide nixos option?
fendor_ is now known as fendor
<leibniz[m]>
Can I magically have the "server" snapshot of my webapp on my laptop or now I'm thinking in dreams?
<noonien>
hehe, i think some do, but most probably don't. that doesn't mean you can't run nixos on them
<tejing>
generally not standardly, but you can install nixos by infecting another distro, so you can generally make it work whatever the case
<Yaniel>
leibniz[m]: as far as the snapshot is a matter of configuration, yes
<noonien>
i've installed nixos on scaleway with a script from a user here. by booting into ubuntu first.
<Yaniel>
you'll still have to ship over persistent data somehow (if the server stores any)
<noonien>
it basically kexecs into an nixos that just formats the disks, and then installs nixos instead of what exesting distro was already installed. all live.
<leibniz[m]>
In Ubuntu, I can supposedly upgrade from 16 to 18 to 20 without reinstalling but people are saying that is a lie. I guess NixOS doesn't really have this problem? (or is it not perfect)
<noonien>
nixos doesn't have this problem, no.
orivej has joined #nixos
<noonien>
it's just another build. you can switch back to the old one if something doesn't work (which is not usually the case)
<noonien>
there is no extra garbage left around from the old instalation.
rb2k has quit [Ping timeout: 258 seconds]
<tejing>
leibnix[m]: there's no fundamental difference between an upgrade and a clean install with nixos. every new version is installed from scratch, it just happens to share most of the same store paths with previous versions. One nice side benefit of this is no dependency hell when you don't update for too long
<leibniz[m]>
This is future imo
<leibniz[m]>
Still, the server problem is irky. The infest solution is hacky.
<noonien>
the only caveat that nixos can't properly deal it is with data from old software. for example, lets say nixos version A, and nixos v B uses different mysql versions, their storage format might differ, so upgrading might not work. nixos deals with this by specifying a state version in your configuration. for example `system.stateVersion = "20.03";`.
<noonien>
this tells your nixos instantion to work with data from that specific version.
<dyazz>
You can just use zfs snapshot for your server
<noonien>
also, you can, for example, create EC2 images with nixpkgs just with nix. with any configuration you provide it.
<leibniz[m]>
Thanks for all your helps guys. :D
<noonien>
anytime
<tejing>
well it's no surprise we like to talk about the wonders of nixos, we're hanging out in the #nixos channel after all :-)
<simpson>
leibniz[m]: Isn't the Cloud itself hacky? After all, it's Somebody Else's Computer. In a better-defined environment, say an OCI-compatible container host, then Nix in containers is a reasonable-enough thing.
<simpson>
TBH using Nix itself to *make* the container is even better, and it makes `FROM nixos/nix` look hacky!
rb2k has joined #nixos
<noonien>
ah! i run nix-containers on my server. basically configuring containers in my server configuration. it's nix all the way down!
<leibniz[m]>
If you disconnect the target, it still listens for reconnection
<noonien>
i just cat the dev, maybe socat
<noonien>
can do reconnections with a `while true; do cat /dev/tty..; done`
donofrio has joined #nixos
<noonien>
i'll give tio a try though
<leibniz[m]>
noonien: how do you set baudrate?
teto has quit [Ping timeout: 268 seconds]
<noonien>
i usually prefer using the least amount of software i can
<noonien>
leibniz[m]: the devices i work with usually have usb peripherals, so the serial connection is actually emulated over usb, this doesn't need the baudrate to be set.
<leibniz[m]>
CDC profile
<noonien>
yup
respawn_ has quit [Quit: Leaving]
<noonien>
you do sometimes need to turn echo off, so the hardware doesn't get what data it sends, echoed back. but if you have a decent comms protocol setup, you don't need this. but, in that case, AFAIR, i use either minicom or socat
arinov_ has joined #nixos
cfricke has joined #nixos
<noonien>
iirc, i just get pipe and tee minicom output to a file, so i can also have log of the comms, if they're text
<noonien>
i don't even have minicom installed, i've made myself a `nix-run` binary that finds the binary i want executed and makes it available (without installing it system-wide, or putting you in a shell)
orivej has quit [Ping timeout: 240 seconds]
<noonien>
this is it's latest incarnation: http://ix.io/2EHh i've got to package it at some point
<noonien>
also, there's already a nix-run in nixpkgs, but i prefer mine
<leibniz[m]>
noonien: bare-metal in nix
orivej has joined #nixos
kalbasit has joined #nixos
<noonien>
i build my firmware images with nix, yes
<noonien>
don't know, haven't watched them personally. i recommend the nixos manual, that should get you through installing in a VM, then, the nix and nixpkgs manuals, and then i usually have a clone of nixpkgs i grep a lot into. the manuals are very easy to read and understand.
<noonien>
there used to be a dropdown to chose between nix/nixos/nixpkgs manuals, but i can't find it anymore, now i just edit the url to go to the manual i want
donofrio has quit [Ping timeout: 256 seconds]
<leibniz[m]>
noonien: ๐
<{^_^}>
[nixpkgs] @prusnak merged pull request #107972 โ librepo: enable zchunk support on darwin โ https://git.io/JLHSi
<lukegb>
hpfr: I think it just sets up a timer for upstream's fstrim.service
gustavderdrache has joined #nixos
<hpfr>
lukegb: do you know if upstream detects HDD's? I don't see anything in the man page
<lukegb>
But fstrim itself should only run if the device exports DISCARD, which might not be exclusive to SSDs
<hpfr>
yeah I just saw that on the arch wiki
<hpfr>
> The service executes fstrim(8) on all mounted filesystems on devices that support the discard operation.
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):461:1
<noonien>
hpfr: https://wiki.archlinux.org/index.php/Solid_state_drive#Periodic_TRIM says "The util-linux package provides fstrim.service and fstrim.timer systemd unit files. Enabling the timer will activate the service weekly. The service executes fstrim(8) on all mounted filesystems on devices that support the discard operation. "
<viric>
lsblk -D tells what devices support discard
arinov_ has quit [Ping timeout: 272 seconds]
donofrio has joined #nixos
<hpfr>
thanks viric, my hard drives show up with `lsblk -D`
chloekek has left #nixos ["Leaving"]
<lukegb>
I don't know if it's the case but e.g. thin-provisioned VM disks even on HDDs could reasonably support discard, for instance
<viric>
hpfr: well, I mean they shouldn't list as 0B
<hpfr>
although both DISC-GRAN and DISC-MAX columns have values of 0B rather than the SSD's which are 512B and 2T
<hpfr>
viric: you mean they should list as 0B?
<viric>
If they appear with 0B in DISC-GRAN, they don't support discard
<hpfr>
ah yeah arch wiki says that too lol
<hpfr>
> And check the values of DISC-GRAN (discard granularity) and DISC-MAX (discard max bytes) columns. Non-zero values indicate TRIM support.
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):461:1
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master ยซ ocamlPackages.mirage: reintroduce dev output ยป: https://git.io/JLH59
est31 has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
<oxalica>
Hello, I'm trying home-manager with nix flakes and found it's used as nixosModule. Does it mean that I can only use `sudo nixos-rebuild` to update my home configurations and cannot `switch` at user-level anymore?
<Reventlov>
I want to package something (a go package) that has some static files that Iย also need to ship; how should I do that ?
<Reventlov>
Right now I just use a buildGoModule, but maybe there is something nice to copy such files
asbachb has quit [Remote host closed the connection]
evernite has joined #nixos
KarlJoad has joined #nixos
<simpson>
It looks like both preInstall and postInstall hooks are available for Go modules; I'm reading pkgs/development/go-modules/generic/default.nix
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed to master ยซ Remove mac9, is dead. Add wireguard public keys and IPs for new mac mini's (m1). ยป: https://git.io/JLHAe
ericsagnes has joined #nixos
rb2k has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @lukegb opened pull request #107980 โ Add Nix packages for Grafana plugins and allow declarative installation โ https://git.io/JLHAm
Dr8128 has quit [Ping timeout: 264 seconds]
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main ยซ Automated team sync results. ยป: https://git.io/JLHAn
<{^_^}>
[nixpkgs] @talyz opened pull request #107981 โ [20.09] webkitgtk: Add `/run/opengl-driver` to bubblewrap bind mounts โ https://git.io/JLHAl
bitmapper has quit [Quit: Connection closed for inactivity]
ddellacosta has joined #nixos
saschagrunert has quit [Client Quit]
dyazz has quit [Ping timeout: 260 seconds]
<strikerlulu>
:Lichtblick: is the config available ? mine just crashes when second client joins and i see videobridge not available in browser's console log...
<strikerlulu>
semicolon should be after or before name to mention in irc ?
<Lichtblick[m]>
Hm strange
<Lichtblick[m]>
For me it does work
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 49 commits to staging-next: https://git.io/JLHpT
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 50 commits to staging: https://git.io/JLHpk
nehsou^ has quit []
<strikerlulu>
sorry colon
Lord_of_Life has quit [Read error: Connection reset by peer]
attila_lendvai has quit [Ping timeout: 268 seconds]
veleiro has joined #nixos
aither has joined #nixos
o1lo01ol1o has joined #nixos
attila_lendvai has joined #nixos
strikerlulu has joined #nixos
snajpa has joined #nixos
<strikerlulu>
:Lichtblick which all port you had to open ?
Lord_of_Life_ has joined #nixos
<Lichtblick[m]>
4545
v0|d has joined #nixos
<strikerlulu>
only 4545 ? UDP ?
da_dada has quit [Quit: WeeChat 3.0]
zeorin has joined #nixos
<Lichtblick[m]>
Tcp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<strikerlulu>
i don't see it in `ss -plnt | grep 4545`
<zeorin>
Hey all. I'm busy with a fresh install of Nixos 20.09, just installed it on my laptop (I already have it running on my desktop). I managed to set up the disks and install using the (mostly) default configuration.nix that is generated for me. After getting that to boot and log in I wanted to set it up the same as my desktop.
<zeorin>
But when I now try to rebuild Nixos, I get the following error:
<zeorin>
error: executing 'git' : No such file or directory
<zeorin>
error: program 'git' failed with exit code 1
<strikerlulu>
nix-env -iA nixos.git ?
<zeorin>
That wouldn't install it for root, though, just add it to my user profile
o1lo01ol1o has quit [Remote host closed the connection]
nDuff has quit [Ping timeout: 240 seconds]
Cale has quit [Remote host closed the connection]
pushqrdx has joined #nixos
<{^_^}>
[nix] @corngood opened pull request #4411 โ Fix insufficent attribute capacity in user profile โ https://git.io/JLQJq
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master ยซ Update flake.lock and blogs.xml [ci skip] ยป: https://git.io/JLQJO
sangoma has joined #nixos
<Reventlov>
betaboon: nice
<betaboon>
Reventlov: just tested it with a hackrf in hackrf_sweep mode. works fine
dyazz has joined #nixos
<supersandro2000>
I am going to test some new really cool modifications to nixpkgs-review. It will be more automated and informative. If you notice something really off which I did not catch please let me know asap.
<{^_^}>
[nixpkgs] @talyz merged pull request #107839 โ emacs2nix: update to fix locale issues and a missing elpa package โ https://git.io/JLS8y
<tobiasBora>
Hello, I'm using go in a nix-shell, but I'm not sure how I should install new applications. For example, I tried to install "air", with "go mod init" and "go get -u github.com/cosmtrek/air", but then the "air" executable cannot be found.
vidbina has joined #nixos
<tobiasBora>
and neither GOROOT nor GOPATH are defined
<{^_^}>
[nixpkgs] @jraygauthier closed pull request #48932 โ nixos/xrdp: allow extra keymap files to be installed โ https://git.io/fxX6I
<tobiasBora>
ok, so looks like the file is installed in ~/go/bin/air... Will try to see if I can install it as a module
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
<{^_^}>
[nixpkgs] @jakeisnt opened pull request #107993 โ mopidy-scrobbler: init at 2.0.1 #93400 โ https://git.io/JLQTg
Baughn has joined #nixos
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master ยซ Update flake.lock and blogs.xml [ci skip] ยป: https://git.io/JLQT9
Jackneill has quit [Ping timeout: 260 seconds]
<tobiasBora>
cool, creating a derivation for it works!
<peelz>
KarlJoad: it looks like you can use different video devices through the metamode directive. You have to specify it like this: GPU-<GUID>.GPU-<ID>.<PORT>
<peelz>
KarlJoad: you can find the GPU GUIDs/IDs in the nvidia-settings gui
Thra11 has quit [Quit: WeeChat 3.0]
donofrio has quit [Ping timeout: 260 seconds]
genevino has quit [Quit: Great minds discuss ideas. Average minds discuss events. Small minds discuss people.]
genevino has quit [Quit: Great minds discuss ideas. Average minds discuss events. Small minds discuss people.]
<pie_>
so if i have two binaries with two different glibc directories in their RPATH, can I do something with env vars to force one of them to take a certain search path?
<Orbstheorem>
Hmm
<pie_>
i dont want to patch or override
<Orbstheorem>
It wasn't there before (even though I'm using resolvconf) and not it is
<Orbstheorem>
/shrug
<pie_>
LD_PRELOAD works but i have to individually list .so
armin has joined #nixos
leo60228- has joined #nixos
<pie_>
wait...*tries LD_LIBRARY_PATH*
collares has quit [Quit: Lost terminal]
leo60228 has quit [Read error: Connection reset by peer]
<pie_>
hm ok that worked.
<Lichtblick[m]>
rm -rm /
<Lichtblick[m]>
Or delete system32
fendor has quit [Remote host closed the connection]
<{^_^}>
Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
LilleCarl has quit [Read error: Connection reset by peer]
LilleCarl has joined #nixos
abathur has quit [Quit: abathur]
<peelz>
notgne2[m]: mind sharing what your xserver config looks like? :P
endocrimes has quit [Ping timeout: 272 seconds]
<notgne2[m]>
from the NixOS config or the generated files
<peelz>
from the nixos config
endocrimes_ has quit [Client Quit]
<peelz>
when I set up my nix config for my nvidia machine, I had to write the "metamodes" directive manually through the services.xserver.screenSection option.
endocrimes has joined #nixos
Dr8128 has quit [Ping timeout: 256 seconds]
<peelz>
I was just wondering how other nvidia users configured their xserver (given that there's no nvidia-specific options)
<notgne2[m]>
(I can't find where I enabled a display manager either, maybe nixos does it by default)
<dyazz>
services.xserver.videoDrivers = ["nvidia"] should do the trick
<peelz>
Oh right I forgot most people use DEs
<notgne2[m]>
I've just managed my monitors ad-hoc with arandr, they're generally in the right place already, the last time I messed with modes was when I had a sceptre monitor that required hacking with modes to get rid of the blur
<Lichtblick[m]>
NixOS is bloated
<notgne2[m]>
I mean I'm using i3, I have it configured from home-manager
<peelz>
ah
<peelz>
notgne2[m]: what DM do you use and which monitor does it show up on?
attila_lendvai has quit [Ping timeout: 260 seconds]
<notgne2[m]>
I don't know which one I use (I can't find where it's enabled in my config and don't recognize the difference), it shows up on both monitors and wraps the mouse across them correctly
<peelz>
interesting
<peelz>
so what did you have to configure with arandr?
<notgne2[m]>
about 30% of the time when I boot my machine my right monitor is turned off
<peelz>
lol
maddo has quit [Remote host closed the connection]
<peelz>
my problem with the xserver module is that it generates Device and Screen sections for each driver in the videoDrivers list
<peelz>
which is very... odd
<peelz>
from my understanding, it will match any gpu device from the "nvidia" driver. So if you have two nvidia gpus, either one will be used (depending on the PCI enumeration order I'm guessing)
<Lichtblick[m]>
Use a potato instead it cannot have such problems
<peelz>
very helpful
<notgne2[m]>
potato > nvidia tbh
<peelz>
but yeah the problem with the xserver module isn't specific to nvidia
ddellacosta has quit [Ping timeout: 260 seconds]
<samueldr>
notgne2[m]: don't engage with the obvious troll, please :)
<Lichtblick[m]>
But he is right. You can even run your clock with a potato
garbas has quit [Quit: WeeChat 2.9]
<Lichtblick[m]>
It is God's holy energy source...it is climate friendly
<simpson>
peelz: I'm not sure what would be preferable to do there. FWIW I don't think that it's possible to have DRI for both Mesa and non-Mesa drivers at once, which complicates a general-case solution.
garbas has joined #nixos
<simpson>
Lichtblick[m]: Noodles, not potatoes. However, The Flying Spaghetti Monster's noodly energy is, like a boiled potato, from lightly salted water.
pushqrdx has joined #nixos
<peelz>
simpson: I don't own a machine with AMD/Intel graphics unfortunately... so I have no idea how a standard X mesa configuration looks like
<samueldr>
simpson: please don't either
<notgne2[m]>
I have a bunch of non-nvidia machines, but they all run wayland
<simpson>
peelz: Usually it's all autodetected. Multi-monitor setups with multiple GPUs are one of the rare times when an explicit configuration is needed.
<simpson>
samueldr: Please feel free to do the needful; I don't have permissions.
<peelz>
well it can only autodetect so much
<peelz>
what if you want a monitor to be rotated... or adjust its position relative to other monitors
<peelz>
monitor ordering, etc
<peelz>
how would you do that declaratively (through the xserver module)
<simpson>
I have had some really bad experiences, so I usually have a script which calls xrandr with my desired parameters, and run that *after* logging in with my desired user. The display manager only has the one screen.
<peelz>
afaik everything that can be done through the xrandr binary can be done through the X config :p
<simpson>
I probably would go through what you're going through right now, if I had a setup where I wanted everything permanently multi-monitor.
<simpson>
Ugh. Sorry. Never mind.
simpson has left #nixos ["WeeChat 1.0.1"]
<peelz>
uh what lol
Rusty1 has joined #nixos
<{^_^}>
[nixpkgs] @andir opened pull request #107999 โ lib/systems/platforms: treat missing cpu version as generic pcBase โ https://git.io/JLQOP
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main ยซ Automated team sync results. ยป: https://git.io/JLQOy
<notgne2[m]>
as stupid as it might sound I generally prefer xrandr scripts over xorg configs because (in my experience) xorg is extremely fragile and I'd rather be left with 1 monitor or w/e than a broken system when I inevitably fuck something up
<Lichtblick[m]>
Rusty1 Mashallah
<peelz>
notgne2[m]: right... but if the Xorg config complexity is handled through the xserver module, it's a lot less likely that the user will screw up :)
mallox has quit [Quit: WeeChat 3.0]
<peelz>
the nixos xserver configuration in its current state is quite broken
nature has quit [Ping timeout: 264 seconds]
<Lichtblick[m]>
Don't use any graphics. My PC does only Morse Code
<peelz>
although it would be quite complicated to devise a driver-agnostic xserver module
isgy[m] has joined #nixos
<notgne2[m]>
well if any system can do it, it would be NixOS
isgy[m] is now known as tgys[m]
<peelz>
what is "it"?
<notgne2[m]>
creating higher abstractions to create agnosticism for underlying modules/drivers
<notgne2[m]>
(same goes for service-manager agnosticism but that suggestion can sometimes start a fight)
<peelz>
ah right
<peelz>
I feel like I'm opening a can of worms here :P
<Lichtblick[m]>
Proteins
<Lichtblick[m]>
Yummy
<peelz>
notgne2[m]: do you have a multi-gpu amd machine?
<samueldr>
peelz: it might also be a situation where no one got enought round tuits together to fix what works just enough that it's not that much of an issue :)
<notgne2[m]>
I've never done a multi-gpu setup besides when I had an AMD card and used my Nvidia for processing and VM passthrough exclusively
<notgne2[m]>
oh wait that's not true
<notgne2[m]>
I had 2 quadro cards once
<notgne2[m]>
I honestly have no memory of how I made that work, I just remember it didn't work very well at all
<peelz>
lol
<peelz>
samueldr: perhaps... although after seeing how powerful nix is, it makes me wish the xserver module was just a little more flexible :P
<samueldr>
understandable
<samueldr>
it might also require a bit more round tuits than expected, if it is desired to not break existing setups