<pitch>
is it possible to work from scratch? or do i have to start with systemd? i really dislike the philosophy and usability of it.
fendor has joined #nixos
<evanjs>
Honestly it's quite manageable with NixOS, but then I've never really disliked it anyway *shrugs* but afaik, it's not possible to use NixOS without systemd entirely atm
<buckley310>
pitch, systemd is so inter-twined with nixos that you probably dont want to bother. its either systemd, or build your own alternative OS on top of nix
wavirc22 has quit [Ping timeout: 260 seconds]
<pitch>
too bad. so nixos is out of the picture for me
<pitch>
systemd defaults to too many bad practices
<adisbladis>
re systemd: I do think we're in the interesting position were we _could_ potentially make systemd optional since in theory at least we generate our own systemd units and that could be turned into something backend agnostic
<adisbladis>
Would require lots of blood, sweat and tears though
<monokrome>
evanjs: nice =^.^=
<evanjs>
I have my nixos config updated every 30 minutes (save for git conflicts) and my systems rebuild every 6 hours
<adisbladis>
And would be hard to get through and merged
<monokrome>
I AM feeling extra lazy
<samueldr>
yeah, I think efforts to make it easier to stay systemd-agnostic would be well received, but not sure about an alternative built-into nixos per-se
<buckley310>
fresheyeball, last time i checked, it was a custom header or nothing
<evanjs>
oh. hourly. close enough
<monokrome>
Does systemd-agnostic mean allowing other services to replace it?
<monokrome>
That was the hardest thing to sign onto when I adopted nix, but it's so good lol
<adisbladis>
samueldr: Maybe not. I'm not at all sure what that would look like.
<samueldr>
adisbladis: "maybe not" about changes that makes nixos more agnostic to systemd?
<buckley310>
a systemd-agnostic distro basically just means a system with sysv scripts that can be shimmed into any init system. very few benefits over straight systemd.
<samueldr>
or about those with an alternative?
<adisbladis>
maybe not to "but not sure about an alternative built-into nixos per-se"
<buckley310>
straight sysv*
<samueldr>
yeah, that was my tactful way of saying "an alternative as part of Nixpkgs/NixOS is probably not happening"
<evanjs>
samueldr++
<{^_^}>
samueldr's karma got increased to 154
<evanjs>
yeah i feel the same way, but don't have enough knowledge on systemd+alternatives to know what the possibilities really are or to be able to argue for it.
<samueldr>
at least, not with the current history
<evanjs>
all I know is that this works great for me
<adisbladis>
We'd also have to shim _a lot_ of systemd features
<adisbladis>
Like... Service management
<adisbladis>
Which sysvinit does not
<adisbladis>
do
<adisbladis>
Some reliable way to wait for services, socket activation etc etc
<adisbladis>
Looking into this made me really appreciate systemd a lot more.
growpotk- has joined #nixos
<adisbladis>
buckley310: Though it might be worth it to be able to target freebsd and other kernels
<adisbladis>
Heavy emphasis on "might be"
<buckley310>
like nixos on the freebsd kernel?
<buckley310>
debian "kfreebsd" style
<simpson>
buckley310: There's a channel for that, #freebsd-nix
<simpson>
Or, at least, there's a channel, and if there's a channel for that, then that's the channel.
AmandaC has quit [Read error: Connection reset by peer]
<samueldr>
I think it's good to keep avenues open to reduce the risks of monocultures as monocultures are generally ungood
<adisbladis>
Another idea: Using NixOS configs to generate kubernetes deployments
<pitch>
samueldr: buckley310 adisbladis thanks for your thoughts but i really dislike the lockin mechanisms taking place arround systemd and therefore i wont use it. ill look into not-OS and keep a close eye on nixOS . the backend agnostic idea sounds nice.
<keithy[m]>
I am thinking/hoping that the nix flakes initialive will provide the basis for more flexibility
<simpson>
pitch: Sure, systemd is terrible. In fact, AFAICT, there's no such thing as good software. A real shame, but that's life.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.stripe: 2.41.0 -> 2.42.0 »: https://git.io/JvLxU
<gchristensen>
pitch: no worries :) I look forward to seeing what you build! :)
<pitch>
but the problem i see is that it defaults to start any service availible as long as you dont tell it otherwise. and that a lot of software starts to rely on systemd beeing present and it takes a lot of effort to get if working on other init systems
Rusty1 has quit [Remote host closed the connection]
<simpson>
Sure. This is probably because init systems are not good as a design pattern.
<pitch>
i think poettering had a very nice vision that died somewhere on the way to providing DNS...
<simpson>
Oh well. Visions and ideas are easy; it's the code that's hard to get right.
<pitch>
s/hard/impossible
<gchristensen>
what poettering did or didn't do right is probably not an on-topic discussion here, fwiw
<evanjs>
anybody else seeing slow pasting in terminals on 20.03?
<evanjs>
like it looks like it's "typing out" half of it and then snaps to the end
jluttine has joined #nixos
<evanjs>
terminal emulators*, not ttys
M2easy2do[m] has joined #nixos
<M2easy2do[m]>
Hey Guys I am new with NixOS and i have a problem could someone help me?
<evanjs>
M2easy2do[m]: depends on what is is, and how accesible your config is if needed
infinee has quit [Quit: WeeChat 2.7]
<M2easy2do[m]>
I feel like it will be fairly easy the thing is taht i jsut installed for first time nixos i got kde working so i am now trying to switch to my prefered wm (Herbstluft), i already enabled it the only prolblem is that icant find the config file for it
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
werner291 has quit [Remote host closed the connection]
k4ra has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvLpY
<evanjs>
ughhh taffybar, y u no give me hoogle docs? are packages given to services.hoogle.packages guaranteed to show up on the resulting hoogle server?
Rusty1 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<CMCDragonkai>
How do I get nixos (with the netboot profile) to redirect its console to ttyS0?
<CMCDragonkai>
I've been trying to do it on QEMU, and when using `-vga std` it works, but when using `-nographic` with `-append console=ttyS0,115200` it fails
<CMCDragonkai>
Seems to fail at
<CMCDragonkai>
starting device mapper and LVM...
<CMCDragonkai>
kbd_mode: KDSKBMODE: Inappropriate ioctl for device
<rizary_>
getting this `anonymous function at /nix/store/vw8c32blwm2f9g7s36d0b0kdj8sqqdx8-dotfiles/pkgs-overlays/gnupg/gnupg.nix:1:1 called with unexpected argument 'bzip2', at /nix/store/nphd2dzbssa8yk68pprwdym1i8q1kd6a-source/lib/customisation.nix:69:16` while trying to `symlinkJoin` and wrap gnupg. I can't find the `bzip2`. Here is my overlays
<elux>
any i3 users here, who also use chrome? ive noticed mod+f now which i use to full-screen a window, Chrome goes into some full-screen mode and hides the toolbar, i really quite dont like it and wish they'd keep the toolbar, any suggestions?
pitch has joined #nixos
<infinisil>
rizary_: Ah, the problem is that other packages in nixpkgs use something like pkgs.gnupg.override { bzip2 = ...; }
<infinisil>
But since you changed the arguments that can be passed with an overlay this won't work anymore
dansho has quit [Remote host closed the connection]
<iqubic>
And I can enter my shell.nix just fine. But when I try to run the command `python Foo.py` nix complains that I don't have the python command installed.
dansho has joined #nixos
<wiml>
iqubic : Can you run `python3 Foo.py` ?
<iqubic>
Nope.
<infinisil>
iqubic: You need to use `mkShell { buildInputs = [ (python3.withPackages ...) ]; }`
<iqubic>
Ah. Thanks.
<infinisil>
What you have now is a shell for *building* python3.withPackages, not a shell that contains that as a package
<iqubic>
error: value is a set while a list was expected, at /nix/store/v48f3llcmb33xrb0ssmf0889imbqwjsq-nixos-20.03pre210078.90441b4b47f/nixos/pkgs/build-support/mkshell/default.nix:14:23
<iqubic>
Not sure what the issue is there.
arahael1 has joined #nixos
magnetophon has joined #nixos
dashkal has joined #nixos
jethroksy has joined #nixos
Arahael has quit [Ping timeout: 245 seconds]
wiml has quit [Quit: wiml]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
mDuff has quit [Ping timeout: 258 seconds]
<iqubic>
Anyone know how to fix this?
aw has joined #nixos
spacefrogg has joined #nixos
<magnetophon>
I'm working on a package that needs rust nightly. The previous upstream commit built with "RUSTC_BOOTSTRAP = 1;", but the current commit won't. I can't find any examples in nixpkgs using other fixes for programs that need nightly. Any pointers?
drakonis has quit [Quit: WeeChat 2.6]
bhipple has joined #nixos
<buckley310>
iqubic, replace `python3.withPackages (ps: with ps; [ numpy scipy matplotlib ])` with `[ (python3.withPackages (ps: with ps; [ numpy scipy matplotlib ])) ]`
<iqubic>
Ah. I see.
CMCDragonkai1 has joined #nixos
kvda has quit [Ping timeout: 268 seconds]
<hpfr[m]>
If anyone has a working eduroam config I’d love to see it
mexisme has quit [Ping timeout: 258 seconds]
kvda has joined #nixos
<iqubic>
buckley310: That worked.
felixfoertsch has joined #nixos
dashkal has quit [Ping timeout: 265 seconds]
<jethroksy>
hpfr[m]: what's special about eduroam that requires additional config? my school network also uses PEAP, and I connected to it via networkmanager normally
lambda-11235 has joined #nixos
felixfoertsch23 has quit [Ping timeout: 268 seconds]
<{^_^}>
magnetophon: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's in the relevant files? What's the error? This makes debugging easier and helps getting faster responses
<infinisil>
Oh also:
<infinisil>
,pointers
<{^_^}>
0x3A28213A 0x6339392C, 0x7363682E.
<infinisil>
:D
<hpfr[m]>
jethroksy: nmtui doesn't support WPA enterprise, and you're supposed to be able to declaratively configure networks with networking.wireless.networks, but I never got it to work
c382feb9 has quit [Ping timeout: 268 seconds]
<jethroksy>
hpfr[m]: yeah it doesn't, my workaround is just using nm-connection-editor /shrugs
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<hpfr[m]>
ree imperative
Supersonic112 is now known as Supersonic
<hpfr[m]>
infinisil thanks, is the -5 in the name significant?
<infinisil>
hpfr[m]: Nah, it's just the networks SSID
<hpfr[m]>
infinisil: oh, ours is just eduroam
<hpfr[m]>
I suppose it's for GHz
<infinisil>
Yeah there's also an eduroam one for 2.4Ghz
<infinisil>
Not sure why they're separate
dashkal has joined #nixos
<hpfr[m]>
infinisil also, my attempted config has eap=peap, which I found in several other distro's guides for it. yours has TTLS, any idea if that's specific to your uni
<infinisil>
No idea
<hpfr[m]>
Alright
<clever>
infinisil: i do have one sample, of how to sign into wpa with a name/pw
iyzsong has joined #nixos
dashkal has quit [Ping timeout: 268 seconds]
<rizary_>
infinisil: hmm how do find which package that override gnupg with bzip2?
<infinisil>
rizary_: Probably a ton of things do stuff like that, I think it's not realistic to fix those. Why do you want to overlay gnupg?
chagra has joined #nixos
<infinisil>
Also many packages use gnupg as a dependency. Overlaying it like that would break many of those and cause a ton of rebuilds
hyper_ch has joined #nixos
<rizary_>
Hmm I have setting up my gnupg keys in my `/secure/gnupg` but my home-manager create this `.gpg-agent.conf` and `.gpg.conf` in my home folder. So to avoid running `--options` everytime I run gpg, I want to wrap it up with `--options` by default
<infinisil>
rizary_: You can set the GNUPGHOME env var for that
dashkal has joined #nixos
<rizary_>
So when I set my GNUPGHOME to `/secure/gnupg`, does home-manager will create those 2 conf file into `/secure/gnupg`? Because I don't see those file in my `/secure/gnupg`
domogled has joined #nixos
<infinisil>
rizary_: It won't
<infinisil>
home-manager can't control anything outside of $HOME
<hpfr[m]>
if i'm using networkmanager but configuring networks with networking.wireless.networks, does networking.wireless.enable need to be true?
<infinisil>
Well it can if the permissions asign, but it shouldn't
<infinisil>
s/asign/align
<infinisil>
hpfr[m]: Oh no you can't use wpa_supplicant and networkmanager together, unless you want to use them for different network interfaces
<hpfr[m]>
I thought that might be the issue. so no declarative network config with networkmanager?
<infinisil>
hpfr[m]: It might intentionally not be declarative because of how it works, allowing you to configure new things with a nice ui, which wouldn't be possible with a declarative nixos config
<infinisil>
magnetophon: Oh, I don't see how that would work. If a codebase requires nightly rust features but it only has access to a stable rust version, there's nothing that can make this work
<infinisil>
Oh, but you probably want to update the expression nixpkgs, so nixpkgs-mozilla can't be used
<infinisil>
s/update/init s/nixpkgs/in nixpkgs
mexisme has quit [Ping timeout: 272 seconds]
marusich has joined #nixos
<infinisil>
magnetophon: Oh but if there wasn't a previous expression in nixpkgs then when did that RUSTC_BOOTSTRAP thing work?
jethroksy has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<magnetophon>
infinisil: Thanks. I saw mentions of https://github.com/mozilla/nixpkgs-mozilla online, but didn't find it in nixpkgs. Does that mean it's not wanted in there or did I miss it?
<magnetophon>
infinisil: I first build an older version (hashes are commented out), and that *did* work, but only with RUSTC_BOOTSTRAP.
<infinisil>
It can't be used because it requires IFD, multi-level IFD even
picantest has quit [Ping timeout: 265 seconds]
<rizary_>
infinisil: noted
domogled has quit [Quit: domogled]
chagra_ has joined #nixos
chagra has quit [Ping timeout: 260 seconds]
<magnetophon>
infinisil: was that at me?
mexisme has joined #nixos
<infinisil>
magnetophon: Yup
<iqubic>
How does one install things from flatpak on Nixos?
mexisme has quit [Quit: WeeChat 2.7]
<buckley310>
iqubic, do you have flatpak set up yet? do you have flathub or any other repos added yet?
<buckley310>
that page is how to set up flatpak support and the flathub repo. if you search the flathub website for apps, the app pages have the command to run to install it. and then theres `flatpak update -y` to check for updates
<iqubic>
Cool. Thanks for helpping me.
<CMCDragonkai>
what do people use IFD for?
<clever>
CMCDragonkai: callCabal2nix is one use-case
<clever>
CMCDragonkai: it will re-run cabal2nix any time your .cabal file changes
<CMCDragonkai>
how does IFD help with that?
<infinisil>
clever: That's not IFD though
<infinisil>
I think
<infinisil>
Wait no it is
<clever>
infinisil: it is, there is a derivation that runs cabal2nix for you, in a nix build, and then imports
ikwildrpepper has quit [Ping timeout: 268 seconds]
hexa- has quit [Max SendQ exceeded]
jtcs has joined #nixos
ikwildrpepper has joined #nixos
knupfer has quit [Ping timeout: 248 seconds]
hexa- has joined #nixos
veske has quit [Client Quit]
azazel has joined #nixos
tv has joined #nixos
veske has joined #nixos
zupo has joined #nixos
captn3m0 has quit [Ping timeout: 260 seconds]
Makaveli7 has joined #nixos
zarel has joined #nixos
__monty__ has joined #nixos
TwoNicToupper has left #nixos ["ERC (IRC client for Emacs 26.3)"]
zupo has quit [Ping timeout: 260 seconds]
medvid has joined #nixos
medvid_ has quit [Ping timeout: 268 seconds]
lsix has joined #nixos
zupo has joined #nixos
zupo has quit [Client Quit]
<CRTified>
Hi. I want to use goklp (a small ldap client that pulls ssh public keys from the directory) as AuthorizedKeysCommand for OpenSSH. Using ${pkgs.goklp}/bin/goklp as path to the binary leads to OpenSSHd not using it, as /nix/store is group owned by nixbld. Am I forced to e.g. write a wrapper script with `environment.etc` (that gets copied there), or is there a cleaner way?
<{^_^}>
[nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JvtLV
fusion809 has quit [Read error: Connection reset by peer]
fusion809 has joined #nixos
chagra_ has joined #nixos
gkmngrgn has joined #nixos
ixxie has quit [Ping timeout: 248 seconds]
m0rphism has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<x123_>
Any recommendation on how to properly install Perl with various CPAN packages? I am currently installing both `perl` and `perl530Packages.LWP` but LWP.pm still doesn't seem to be available to perl
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #78349 → mc: /bin/rm does not exist → https://git.io/JvtLM
<CRTified>
x123_, there is perl.withPackages, that should probably help
<CRTified>
You could try this and see if it works (I don't know perl, so this is just guessing): nix-shell -p 'perl530.withPackages (p: [ p.LWP ])'
Chiliparrot has joined #nixos
ixxie has joined #nixos
<CRTified>
okay, google_oslogin also solves that sshd permission restriction by building the command in /etc/ssh/. Guess I'll have to go with that, too
ixxie has quit [Ping timeout: 246 seconds]
<x123_>
CRTified: that works, but how would I get that into SystemWide packages?
<x123_>
Adding that to environment.systemPackages = with pkgs; [ somepackages go here ]; doesn't seem to work
<CRTified>
You probably need to wrap it in (), as the whitespace between withPackages and (p: would elsewise be ambigous when inside a list
<CRTified>
So try adding (perl530.withPackages (p: [ p.LWP ]))
<CRTified>
Or, if you do not use "with pkgs;", you'll need (pkgs.perl530.withPackages (p: [ p.LWP ]))
<x123_>
CRTified: ah, that works perfectly. Thanks!
ixxie has joined #nixos
thc202 has joined #nixos
chloekek has joined #nixos
is_null has joined #nixos
andreas303 has quit [Quit: andreas303]
andreas303 has joined #nixos
gkmngrgn has quit [Ping timeout: 265 seconds]
Shoubit has quit [Quit: Leaving]
wavirc22 has joined #nixos
Shoubit has joined #nixos
fendor has joined #nixos
andreas303 has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
ThatDocsLady has quit [Client Quit]
fenedor has joined #nixos
ThatDocsLady has joined #nixos
ixxie has quit [Ping timeout: 245 seconds]
shabius_ has quit [Read error: Connection reset by peer]
shabius_ has joined #nixos
chagra_ has quit [Ping timeout: 246 seconds]
robocopobobo has joined #nixos
o1lo01ol1o has joined #nixos
<robocopobobo>
Hi Nixer, I am not familiar with Python but I wanted to use https://github.com/Breakthrough/DVR-Scan It depends on Python, OpenCV and Numpy. If someone is great Python pro and could package it that would be amazing.
fendor has quit [Ping timeout: 268 seconds]
jgeerds has joined #nixos
<makefu>
robocopobobo: too bad the tool is not available on pypi, otherwise you could have used python-package-init from the nixpkgs-pytools package
<ikwildrpepper>
I tried with the default opencv4, but that failed opening video files, I assumed the enableFfmpeg override should fix it (haven't tested, it's compiling opencv now, slow)
<{^_^}>
[nixpkgs] @tekeri opened pull request #78351 → PBIS AD login integration → https://git.io/JvtmD
kleisli has joined #nixos
cosimone has joined #nixos
<robocopobobo>
Whoa, thank you ikwildrpepper. That is already a huge help for me.
<ikwildrpepper>
robocopobobo: it seems to work for me with the enableFfmpeg override
<ikwildrpepper>
at least, I see a progress bar and it is doing something
<ikwildrpepper>
robocopobobo: note that the expression is not PR worthy, so if you contribute it back to nixpkgs, please read the contribution guidelines ;)
<robocopobobo>
Python setup in Nix looks very robust. So little code to accomplish so much.
<ikwildrpepper>
robocopobobo: depends on whether packages are available
<ikwildrpepper>
robocopobobo: in this case all deps were (easily) available, so then it is easy ;-)
veske has quit [Quit: This computer has gone to sleep]
jgt has joined #nixos
<jgt>
how do I read in the contents of a file as a string? I'm trying: environment.etc."ejabberd.yml" = pkgs.lib.fileContents ../services/ejabberd/ejabberd.yml;
<jgt>
I also tried `builtins.readFile`, but I get the same error, which is: The option value `environment.etc.ejabberd.yml' in `<unknown-file>' is not of type `submodule
robocopobobo has quit [Remote host closed the connection]
<jgt>
or is the problem perhaps not reading the file, but something else?
Maxdamantus has quit [Ping timeout: 265 seconds]
Maxdamantus has joined #nixos
<jgt>
ah, looks like reading the file is not the problem
<{^_^}>
nixops#1015 (by nyarly, 1 year ago, open): Create a GC root for servers
magnetophon has joined #nixos
domogled has joined #nixos
<davidtwco>
Is there a way to set an environment variable to the path of the directory containing the shell.nix being used (from the shell.nix)?
<magnetophon>
Recently some Fn-key combos stopped emitting anything: none of i3, xev, evtest or acpi_listen see the keys. Some Fn combos work, some emit the wrong key but most are silent. An old generation changes nothing. Any ideas?
<magnetophon>
It's most probably not an NixoS issue, but I have no idea where to look anymore...
<ivan>
magnetophon: have you tried turning it off and letting it stay off for a little bit
KeiraT has joined #nixos
<davidtwco>
(for more context, I want to set `NIXOPS_STATE` from `shell.nix` such that it has an absolute path to the root directory where `shell.nix` is, not `./state.nixops`, which would fail if `nixops` was run from a subdirectory)
<magnetophon>
ivan: NO! the horror! What would I do whit my life instead!!! Ermmm, I mean: Thanks, lemme try that! ;)
<ivan>
magnetophon: if your battery is easily accessible you can disconnect it too
<magnetophon>
ivan: Im curious though: can you explain a bit more? Have you had that issue as well? Why might this work?
<rauno>
ikwildrpepper, so basically something like nix-store --add-root $(nixops dump-nix-paths -d deployment_name) ?
<rauno>
and probably i should clean out the olds ones ?
<rauno>
for example if i have added more than once nix-paths of a deployemnt to gcroots
magnetophon has quit [Remote host closed the connection]
<mkaito>
ikwildrpepper: maybe add the system closures as `result-*` symlinks as if you had `nix build`'d them. makes for easy cleanup too, and intuitively doesn't collect them without you deciding to.
<Rovanion>
I'm having trouble getting muli-user nix working. I ran the setup script with --daemon as a flag, but when I then run nix-env -iA something as a normal user I get the error that a number of files/folders are only readable/writeable by root; for example /nix/var/nix/{profiles,gcroots}, and /nix/var/nix/db/.
smollcato has quit [Read error: Connection reset by peer]
<magnetophon>
ivan: It worked! Many thanks! Any idea why?
<ivan>
magnetophon: just the ways of laptop keyboards
<NinjaTrappeur>
systemctl status nix-daemon.socket?
<Rovanion>
Nope, have got a process running that I don't want to cancel. Though I could try on another machine I guess.
<{^_^}>
[nixpkgs] @yorickvP opened pull request #78363 → nixos/amazon-init.nix: add git/tar/gz, fix AMI configuration → https://git.io/JvtGb
is_null has joined #nixos
<Rovanion>
NinjaTrappeur: active (running). I'll try restart the service and see if that helps.
<Rovanion>
Yup, that it did.
<Rovanion>
I think the problem was that there was a nix service running from an old installation and the installer didn't restart the service, only start it, which if the service is already running does nothing.
Rusty1 has joined #nixos
<Rovanion>
The installer script says that it runs systemctl start nix-daemon.service so that adds up.
<__monty__>
siers: Note that I wasn't telling you off in any way. This is basically exactly how you get eyes on your PR. Just try not to be obnoxious about it and to find the right people to ping and you'll have the most success.
<siers>
__monty__, nono, I know
<gchristensen>
that number is TOO stable. something must have gone wrong.
<yorick>
gchristensen: your link redirected to status.nixos.org
<yorick>
succesful queries per minute: 0
<gchristensen>
yorick: that is VERY annoying. I thought the purpose of that page was to be able to share it.
f0i has joined #nixos
<yorick>
I can still click through to it
<yorick>
gchristensen: try the share button?
<gchristensen>
there is noe
<gchristensen>
anyway, https://status.nixos.org/prometheus/graph?g0.range_input=50d&g0.expr=sum(github_prs%7Bstate%3D%22open%22%2Cstatus!%3D%22failure%22%2Crepo%3D%22NixOS%2Fnixpkgs%22%2Creview!%3D%22changes_requested%22%7D)&g0.tab=0 but again the line becomes flat in a way that indicates there is a problem with the exporter
<yorick>
gchristensen: hmm, probably need to add it to a dashboard then
<gchristensen>
well, I just thought the purpose of the "explore" page was to explore :P
<gchristensen>
and then be able to share, but I guses not
<gchristensen>
anyway. it doesn't matter
<{^_^}>
[rfcs] @worldofpeace pushed to worldofpeace-patch-1 « Update members of RFC Steering Comittee »: https://git.io/Jvtnk
<{^_^}>
[rfcs] @worldofpeace opened pull request #65 → Update members of RFC Steering Comittee → https://git.io/JvtnL
<{^_^}>
[rfcs] @Mic92 merged pull request #65 → Update members of RFC Steering Comittee → https://git.io/JvtnL
<{^_^}>
[rfcs] @Mic92 pushed commit from @worldofpeace to master « Update members of RFC Steering Comittee (#65) »: https://git.io/Jvtnt
<{^_^}>
[rfcs] @Mic92 pushed 0 commits to worldofpeace-patch-1: https://git.io/Jvtnq
waleee-cl has joined #nixos
domogled has quit [Ping timeout: 272 seconds]
<{^_^}>
[nix] @Rovanion opened pull request #3328 → installer: Handle edge case where the nix-daemon is already running on the system → https://git.io/Jvtn4
<Rovanion>
NinjaTrappeur: ^
xkapastel has joined #nixos
<gchristensen>
Rovanion++
<{^_^}>
Rovanion's karma got increased to 1
domogled has joined #nixos
<mkaito>
lol karma
<NinjaTrappeur>
Rovanion: nice! Sadly I don't thing this is the same bug I experienced :( I don't have commit rights, but apparently Graham wrote most of this script and noticed your PR :)
<nohTo>
Hey everyone! I'm getting a new laptop soon and I'm tempted to give nixos a spin. Being a big fan of functional programming, it seems to be the next logical step. But I'd like to know how desktop-suitable nixos is. Does steam for example work fine in your experience?
<__monty__>
From observing the channel steam gives trouble.
<__monty__>
Not necessarily much more than on other distros but I don't have experience.
<yorick>
steam has been working fine for me since a while
<yorick>
used to be worse
<mkaito>
steam never gave me trouble while I lived on nixos tbh
<Taneb>
Steam's been playing up for me lately but I think that might be a Gnome issue
* tlater[m]
enjoys flatpak-ing applications like steam just because it feels less dirty - not really had an issue since I switched to that, besides controllers and things being a little hard to set up
kenjis1 has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.7]
<nohTo>
tlater[m]: What does flatpak mean?
<__monty__>
Flatpak feels like a defeat on nixos though.
<tlater[m]>
nohTo: https://www.flatpak.org/ - it's in very rough terms docker for desktop applications.
<tlater[m]>
Very much not nix-ey, but having something create files in $HOME in uncontrolled ways feels so dirty...
<nohTo>
Most issues I had with steam under arch were of the "game expects random outdated library"-kind. I feel like that should be easy-ish to resolve in nix, is that true?
<nohTo>
tlater[m]: Aah ok, I see. Nice to know that's an option :)
<__monty__>
Not really. First of all the outdated library would still have to be available in nixpkgs.
<nohTo>
And if I'm unlucky and it isn't, I'd have to write my own derivation for it?
<__monty__>
If you don't ever want to package anything and your software needs aren't fairly minimal I don't think I'd recommend nix. However, you shouldn't be scared of packaging with nix. I never touched packages on ubuntu or arch but am fine with it for nixpkgs.
tertl3 has quit [Quit: Connection closed for inactivity]
<nohTo>
__monty__: Ok, I see. There are a couple of AUR things I'd like to keep and also binaries that I'd like to run. But I wouldn't mind packaging them myself and I feel like I'd much rather do it in a functional setting than writing bash scripts for it. Knowing a decent amount of Haskell but no nix, how difficult is it to get started with packaging? More than a weekend of reading into it?
<__monty__>
I'd say yes. Because documentation isn't excellent yet.
<__monty__>
Also, many derivations still use bash.
<__monty__>
Nix is not Guix.
<tlater[m]>
+1 on that - I just started learning myself and it's taken me a week or two
<tlater[m]>
Beginning to comfortably package now
<__monty__>
I didn't dive right in. And still have issues with my nixos setup.
<__monty__>
I started just using nix for haskell development on arch.
<__monty__>
And I got hooked.
ddellacosta has joined #nixos
<nohTo>
Aah, ok. That means that maybe now isn't the right time for me to start this adventure - I couldn't invest much time right now
<nohTo>
__monty__: Yeah I get that, I played around with nix a tiny bit on arch and it looks so cool! :)
<__monty__>
Then I'd recommend just going with what you know, with nix on top for haskell development (unles you use stack).
<__monty__>
,declarative nohTo
<{^_^}>
nohTo: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<__monty__>
You could try one of these methods to set up your environment on arch btw. Get a closer feel for what it would be like.
<__monty__>
Home-manager would get closest to NixOS.
<nohTo>
I was a bit afraid of doing nix on top of arch, because I don't know how pacman and nix get along.
<slabity>
Is there a way I can delete a single machine in a NixOps deployment? I am trying to switch a machine from libvirtd to ec2
<__monty__>
nohTo: Nix goes along quite well with anything because it only relies on what's in /nix/store (for the most part).
<slabity>
Normally if I want to deploy a single machine, I add `--include MachineName`, but that doesn't seem to work
<nohTo>
__monty__: Ah, so then I would set up the absolute basic system through pacman and then put whatever I can into the user environment that is handled by nix?
<slabity>
Nevermind... Just understood the difference between `delete` and `destroy` in NixOps
<tlater[m]>
nohTo: I have an arch box that I haven't converted yet. If you start playing with GUI applications IME home-manager based things will break due to driver shenanigans, at least with nvidia.
<tlater[m]>
But generally things seem to work, with a little finesse
<bennofs>
also systemd-resolved nss modules will fail, due to incompatible glibc versions
<bennofs>
(on arch, if using nix-compiled things)
<tlater[m]>
Though I don't really think that kind of setup buys you much over just going with full nixos
<tlater[m]>
If you can bear with not quite everything being perfect from day 2
<__monty__>
I'm only recommending using home-manager to install some packages. No systemd services.
<nohTo>
tlater[m]: Yes, I'm used to things not being perfect :-D
<__monty__>
tlater[m]: Are you sure you can speak about "GUI" programs and not specifically opengl programs?
<tlater[m]>
__monty__: Quite likely just opengl. I've not played enough to know in detail.
<__monty__>
I didn't have any troubles. Though I don't use too many GUI programs.
<tlater[m]>
And yes, nvidia is a pain with that...
<__monty__>
GL is an issue still with nix afaik.
veske has quit [Quit: This computer has gone to sleep]
gustavderdrache has joined #nixos
<nohTo>
In what sense is opengl problematic?
<bennofs>
opengl requires driver-specific shared libraries to be found
<simpson>
nohTo: The design of GL involves dynamically loading unpredictable libraries. A mismatch between libraries due to different vendors (say, Mesa vs nVidia) can lead to GL not working.
<bennofs>
since nix tries to avoid any dependencies on the host os, it has a hard time finding the shared library for the specific hardware
__monty__ has quit [Quit: leaving]
<nohTo>
Oh, I see. And is that a one-time headache to set up properly or is it more of a permanent crash-risk?
Naptra has quit [Quit: Leaving]
drakonis1 has joined #nixos
<slabity>
Typically the GL librariers in NixOS are symlinked here: `LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib`
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
werner291 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @siers opened pull request #78371 → nix-gitignore: update to v3.0.2 (mostly compatible changes) → https://git.io/JvtW1
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tertl3 has joined #nixos
nohTo has joined #nixos
gxt has quit [Ping timeout: 240 seconds]
domogled has quit [Read error: Connection reset by peer]
erictapen has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
domogled has quit [Ping timeout: 258 seconds]
<evanjs>
whooooah wait infinisil any idea what PR lets me query userConfig and xUserConfig now??
<evanjs>
Because it totally works on 20.03 :D
drakonis1 has quit [Quit: WeeChat 2.6]
<infinisil>
evanjs: Not sure what you mean?
<evanjs>
before I was unable to retrieve modules (at least via nixos-option or eval) that were in xUserConfig and userConfig, I think it had something to do with mkAliasDefinitions?
<evanjs>
anyway, using nixos-option now, and I can get all those values just fine
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @yurrriq to master « renderizer: init at 2.0.5 (#78326) »: https://git.io/Jvtl3
avn has joined #nixos
nohTo has quit [Quit: Leaving]
work_ has quit [Quit: Connection closed for inactivity]
domogled has joined #nixos
<sondr3>
is there a way to make a packages from a remote repo available in `pkgs` everywhere in my configuration? It's a bit annoying having to import it in every file that needs a package from it
<sondr3>
kinda like all-hies, but I want `pkgs` to inherit it
<Simerax>
is there some tutorial out there how to customize sddm under nix? i found that you apparently have to write some .nix files but i dont really know what to do. I would really appreciate a short and concise explanation on how to do something like that and not the just all of the nix documentation on how to build stuff
<evanjs>
Though it would be nice if there were more examples given there, sure
<Simerax>
evanjs: thanks for that but only setting a theme is not enough. i want to use a custom theme which is not part of the nix store
<evanjs>
If you have the path or some way of referring to the theme it shouldn’t really matter afaik
<Simerax>
no i dont think thats how that works
yobj has quit [Remote host closed the connection]
<evanjs>
*checks module* yeah I figured it was dynamic but it looks like it does statically refer to the theme under sddm-themes. eg if its not in systemPackages it won’t find it. Darn.
<buckley310>
why not add your theme to the nix store?
<buckley310>
(and systemPackages)
<evanjs>
That’s what I was thinking. Probably better than customizing/making your own mpdulr
<evanjs>
Module*. Wow
<Simerax>
buckley310: its more like i just want to try out some themes which are hosted on github by different ppl and i dont want to add these to the official store
<Simerax>
and i dont know enough about it to be able to change it
<buckley310>
nix makes pulling themes down from github to the nix store pretty easy. ill see if i can get it to work.
<Shoubit>
Simerax, you can use `fetchFromGitHub` to fetch them
<michaelpj>
Simerax: what goes wrong with my example? it's pretty elementary, but you might need to know a little about how to use e.g. fetchFromGitHub
<Shoubit>
Simerax, maybe it would help if you showed us how you're trying to use it in a gist or something
patrl has joined #nixos
<Simerax>
michaelpj: what i did is i added your sddm_themes.nix in my configuration.nix (under imports) then i tried to do "nixos-rebuild test" this fails due to "anonymous function at sddm-tehems.nix 1:1" called ith unexpected argument "config"
<evanjs>
Yeah, might help to see your configuration.nix in that case
<michaelpj>
Simerax: you can just copy it and change the url and nix will complain and tell you what sha to use. Alternatively there's the `nix-prefetch-git` tool that evanjs mentioned
<Simerax>
@evanjs thans!
<Simerax>
thanks!
<michaelpj>
I usually just put the wrong hash in because I'm lazy :D
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<{^_^}>
[nix] @globin opened pull request #3329 → structured-attrs: chown .attrs.* files to builder → https://git.io/Jvt8p
<Shoubit>
Simerax, you can also use `lib.fakeSha256` (or 512) which is just a string containing the right number of zeroes, always fails, and will let you know what the correct hash is upon building like mentioned.
<evanjs>
Shoubit++
<{^_^}>
Shoubit's karma got increased to 2
<evanjs>
knew I saw that the other day, totally forgot what it was
mexisme has quit [Ping timeout: 248 seconds]
<evanjs>
ahh I think I just need to add hp.taffybar to my hoogle.packages. It looks like the haskell package is marked as broken, but nixpkgs.taffybar is not?
ixxie has quit [Ping timeout: 265 seconds]
<Synthetica>
Simerax: It even has a fun name!
<Synthetica>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
lsix has quit [Quit: WeeChat 2.6]
patrl has joined #nixos
<evanjs>
*checks taffybar* >.> it works fine... is there a way to allow individual broken packages?
ng0_ is now known as ng0
<Taneb>
evanjs: can you override it so it isn't marked broken?
<{^_^}>
[nixpkgs] @WilliButz pushed commit from @Ma27 to release-19.09 « matrix-synapse: 1.8.0 -> 1.9.0 »: https://git.io/Jvt4z
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JvtRd
<DigitalKiwi>
if lastlog shows when people logged in; is there a command to see who is still logged in?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvtRx
<DigitalKiwi>
ps aux|cut -f 1 -d " "|sort -u
leotaku has quit [Ping timeout: 265 seconds]
<DigitalKiwi>
that might work right
<NemesisD>
does anyone have suggestions on installing nixos on a headless machine? i'm setting it up on a NUC and i don't have any monitors handy right now that are compatible
<NemesisD>
adisbladis: i used etcher to install the graphical installer (before i knew about the monitor situation) on a USB drive. 1) is the graphical installer suitable for a non-graphical install and 2) could i maybe edit a file on the usb drive to enable sshd?
<adisbladis>
That's how you make one using Nix
<adisbladis>
NemesisD: Sure it's suitable for a headless install, though you'll have to enable openssh and build a new iso and at that point you might just make a more minimal install media
dsx has joined #nixos
<adisbladis>
Also by default users dont have passwords
<adisbladis>
So you want to preconfigure the media with keys and/or passwords
<NemesisD>
ah ok says don't use it for nixos lol. well that answers that
<samueldr>
are you sure that's what this says?
<samueldr>
it's a bit thick in details, but the gist of it is weh ave nixos-* and nixpkgs-* channels, on a nixos system, use only those prefixed with nixos-*
<samueldr>
then the next word is the channel for the release, either something like nixos-XX.YY or nixos-unstable
<samueldr>
using nixos-unstable is fine on a nixos system, though it's the bleeding edge of development
<NemesisD>
the end says "If you are only using Nix as a package manager, perhaps the nixpkgs-unstable branch is better for you. This channel is very frequently updated, but does not receive the thorough testing the NixOS channels receive. DO NOT USE THIS FOR NIXOS."
<samueldr>
yeah, _nixpkgs_-unstable :)
<samueldr>
and the note "very frequently updated" could be dropped from that text, it doesn't end up being updated much more frequently than nixos-unstable in the end
<samueldr>
(though when this was written ~2 years back it could have been)
<disasm>
any good examples for running a udev rule that su's to a particular user?
<disasm>
essentially, I want to run a script as my user any time I insert a specific usb device.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever>
disasm: should be possible to just run `${pkgs.sudo}/bin/sudo -u foo ${script}`
<disasm>
ah, use sudo instead :)
drewr has quit [Ping timeout: 260 seconds]
<davidtwco>
Is there a more up-to-date way to create an unattended ISO file than the `snabblab-nixos/make-iso.nix` file? Currently got an ISO which boots, partitions and generates a valid config but fails on `nixos-install` with `chroot: failed to run comand /run/current-system/sw/bin/switch-to-configuration: no such file or directory`. I'm running the installation commands from a systemd unit.
f0i has joined #nixos
<pbb>
What exactly does nscd do in the default NixOS configuration? The comments in the config file indicate that it might have an important role, but can I disable nscd without breaking things?
<pbb>
Specifically nscd seems to have an issue on systems with a full (routing) table where it eats away all the memory
<clever>
pbb: mainly, it deals with loading libraries to make things like avahi/mdns work
<pbb>
Ok so on servers where I don't need mdns and stuff I can safely disable it?
<clever>
pbb: without nscd, you dont have dns caching, so each app has to read /etc/hosts and /etc/resolv.conf and do its own dns (via glibc)
<pbb>
That's fine with me
<pbb>
Thanks
<pbb>
clever++
<{^_^}>
clever's karma got increased to 315
<veleiro>
building docker images from a dockerfile doesn't work in nixos right?
<{^_^}>
[nixpkgs] @jonringer pushed to master « steam: use 64-bit libva »: https://git.io/JvtuO
shibboleth has joined #nixos
Nheryva has joined #nixos
civodul has joined #nixos
ng0_ has joined #nixos
ng0 has quit [Ping timeout: 265 seconds]
<veleiro>
i mean 'docker build .' wont build, you'll have to setup some nix-specific way
<veleiro>
basically docker-compose with build orders wont work
jgt has joined #nixos
<simpson>
veleiro: I have `docker build` working at home on my NixOS laptop, I think. I'm not sure what extra effort I did to set it up; there might be something in configuration.nix? But I think I just added the userspace tools to my user environment and that was enough.
<{^_^}>
[nixpkgs] @jonringer opened pull request #78388 → steam: use 64-bit libva → https://git.io/Jvtu4
<NemesisD>
adisbladis: what username would i ssh as on the installer?
palo has quit [Quit: WeeChat 2.6]
<veleiro>
and using docker-compose instead of pure nix is only to be compatible with non-nix developers
palo has joined #nixos
cosimone has joined #nixos
<jgt>
how do I configure ejabberd to come with p1_pgsql? My NixOS ejabberd setup is currently failing with: [critical] Failed to start Erlang application 'p1_pgsql': no such file or directory: p1_pgsql.app. This usually means that ejabberd or Erlang was compiled/installed incorrectly.
<jgt>
or… how do I override a nixpkgs package with a different argument? The ejabberd/default.nix above shows that withPgsql is false by default. How can I make that true?
mallox has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
<jgt>
I'll try with overrideAttrs
<clever>
jgt: you must use .override
<clever>
jgt: thats the only way to change the args on line 1
<jgt>
clever: does this look right? ejabberd = pkgs.ejabberd.override { withPgsql = true; };
ambro718 has quit [Quit: Konversation terminated!]
<clever>
jgt: probably
<jgt>
it still doesn't work, but now I wonder if the ejabberd referenced in my NixOps config is the same as pkgs.ejabberd
<clever>
jgt: how is your nixops file referencing it?
<jgt>
I'm doing something like services.ejabberd.enable = true;
<clever>
jgt: and how did you do the override in the nixops file?
<jgt>
clever: would it help if I pasted everything in a gist?