<peelz>
noneucat: looks like the gdm module already has a wayland option
<peelz>
even though gdm is under services.xserver.displayManager.gdm
<peelz>
the amount of refactoring required to properly integrate these changes makes my head spin
<noneucat>
the gnome stuff is well integrated i assume
<noneucat>
but the last time i checked i had to write my own services for sway and other wayland wms
<noneucat>
this may just be because wayland doesn't have a concept of sessions and it may not make sense to integrate all wayland stuff into one module
erasmas has quit [Quit: leaving]
<peelz>
right... but maybe displayManager should be independent from services.xserver
<peelz>
I think these could all be addressed by rewriting the xserver module from scratch (unfortunately that means breaking changes... lots of them)
<peelz>
or maybe deprecating the old module and replacing it with a new one, so to ease the transition?
<Lichtblick[m]>
(((XServer))) vs Chad Windows
bitmapper has joined #nixos
<peelz>
samueldr: thoughts?
pushqrdx has joined #nixos
<pushqrdx>
i am getting this error when trying to run Gala from the result of nix-build, however the same build is working just fine when the display manager is executing it
evernite has quit [Ping timeout: 272 seconds]
<pushqrdx>
Lib-GIO-ERROR **: 02:22:29.572: Settings schema 'org.gnome.mutter.wayland' does not contain a key named 'xwayland-disable-extension'
<pushqrdx>
did anyone encounter this before
<samueldr>
peelz: none at all :) haven't spent more time about that than the time it took to write on the keyboard today to you
<samueldr>
since I'm not really using the xserver configs and rely on arandr on my user account session for monitor configuration
rb2k has quit [Ping timeout: 260 seconds]
<jess>
Lichtblick[m]: hello, please stop using obviously antisemitic symbols
<peelz>
samueldr: right... any idea who I could bounce these ideas off?
anderslu1dstedt has joined #nixos
<noneucat>
pushqrdx: maybe it's picking up a schema from your path or something?
<{^_^}>
#106565 (by NorfairKing, 2 weeks ago, open): ACME Combination of rate limit and "account not registered"
<samueldr>
not 100% sure it's relevant, but it's recent enough
<clime>
hey, does nixOs have /etc?
<samueldr>
clime: yes and no and yes
<samueldr>
clime: /etc is available, it gets filled-up by the generation, except for some mutable files
<clime>
ok
<clime>
can I use configuration templates which will be copied into /etc?
<clime>
i.e. simply text file
<noneucat>
pushqrdx: if this is a runtime error, then gio picks up schemas from $XDG_DATA_DIRS; perhaps there's a schema there already from your system config that's getting picked up
<samueldr>
clime: I'm not sure I follow
<noneucat>
might not throw that error in a nix-shell
<clime>
samueldr: i saw on net that a way to e.g. tweak /etc/php.ini is with the nixOS's declarative language...
<clime>
but I don't want to have the configuration described by the language, I just want to have a php.ini template which will be copied verbatim to /etc/
<samueldr>
clime: with `environment.etc` you should be able to put files under /etc as you wish
<samueldr>
clime: since it's also somewhat mutable, you can also just put them there non-declaratively, as long as no enabled option wants to put a file there
<samueldr>
doing it mutably by just dropping files manually goes against the design of NixOS, but still, you could even if many would agree that you shouldn't :)
<clime>
i am ok with doing it immutably
<samueldr>
at least using `environment.etc` the configuration changes gets built into a gneeration
<samueldr>
while still giving you the ability to take control of the file
<clime>
ye, i have web-server containing quite a lot of existing configuration under /etc/ so I am thinking about migrating to nixOS
<samueldr>
one net bonus of having it as part of a generation is that when you migrate to a full nixos setup, if it ends up not working you're one generation rollback away from your previously working configuration
<clime>
ok
<Lichtblick[m]>
I am going to fap with my Flashlight
<bbigras>
clime: what do you mean? like when upstream (nginx) adds stuff? if you check the file history I would guess the nginx module must have been improved often over time.
<clime>
bbigras: ye, it seems like a waste of time to have the configurations described in the declarative language and keep adjusting it
<bbigras>
clime: I use the niginx module and it's pretty rare I need to edit it. In modules there's almost always an `extraConfig` or similar thing that allows you to add stuff not supported by the module.
veleiro has quit [Remote host closed the connection]
veleiro has joined #nixos
<bbigras>
I like using the nginx module with automatic let's encrypt certificates.
<clime>
it seems like it is trying to reverse-engineer configuration logic/options from nginx etc.
Lichtblick[m] was kicked from #nixos by samueldr [this behaviour is not welcomed in the NixOS community]
<{^_^}>
[nixpkgs] @lionello opened pull request #108007 → netperf: fix Darwin build → https://git.io/JLQcJ
<bbigras>
clime: I think it's a lot simpler to config nginx with the nix module. I can set 1 vhost with a couple of lines. and I like things like `recommendedProxySettings = true`. It makes my config leaner.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLQcL
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
<{^_^}>
[nixpkgs] @nima2007 opened pull request #108009 → mcrypt: patch to include stdlib.h instead of malloc.h to build on darwin → https://git.io/JLQcO
Darkmatter66_ has quit [Ping timeout: 240 seconds]
Darkmatter66 has joined #nixos
cole-h has quit [Ping timeout: 272 seconds]
<pushqrdx>
is anybody using Gala as their compositor?
<pushqrdx>
i really want to be able to run my development version using ./result/bin/gala --replace
<pushqrdx>
however i have been hitting a deadend for 2 hours now :D
<pushqrdx>
i keep getting this weird error though GLib-GIO-ERROR **: 03:38:03.215: Settings schema 'org.gnome.mutter.wayland' does not contain a key named 'xwayland-disable-extension'
<noneucat>
does it outright crash with that error?
ransom has quit [Read error: Connection reset by peer]
oida has quit [Ping timeout: 240 seconds]
<pushqrdx>
noneucat yeah
veleiro has quit [Ping timeout: 256 seconds]
jonringer has quit [Ping timeout: 260 seconds]
cyraxjoe has quit [Quit: I'm out!]
<noneucat>
are there schemas in your build? they should be under ./result/share/gsettings-schema or similar
<noneucat>
pushqrdx: that is strange, it should show up if you grep for it
<noneucat>
it was added here
<infinisil>
,dnw siraben
<{^_^}>
siraben: 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
<pushqrdx>
noneucat but how is my system building and gala working without it, like i am inside Pantheon desktop rn with gala built from the same derivation and it works
<noneucat>
how are you building your system with the new package? is it in an overlay or?
cyraxjoe has joined #nixos
<pushqrdx>
it
<siraben>
how do I add a new flake input?
<pushqrdx>
it is an overlay over all the new Pantheon desktop from master
<pushqrdx>
a nixpkgs.overlay
carthia has quit [Quit: carthia]
<noneucat>
hrmmm
<noneucat>
the gala version running as the service is not throwing the gio error?
<siraben>
`nix registry add inclusive github:input-output-hk/nix-inclusive` and `nix flake update` worked
<siraben>
hmm flakes is somewhat tricky to get started with
pjt_tmp has joined #nixos
<pushqrdx>
noneucat yeah it doesn't idk why
<pushqrdx>
desktop starts correctly but my locally built version from the same revision and same derivation is throwing that error
<bbigras>
siraben: I have been using flakes for a while and I didn't use `nix registry add` yet. You can use "github:input-output-hk/nix-inclusive" in your flake.nix file.
<siraben>
gchristensen: how do I use nix-inclusive as a flake?
<notgne2[m]>
siraben: yes, so it will evaluate the same on every system, it won't let you use `builtins.currentSystem` (or various other methods that can bring impurities)
<siraben>
notgne2: yeah I was reading that and the tweag blog posts by eelco but things like this were not covered well
<bbigras>
siraben: if you want a nice commit while you update flakes you can use `nix flake update --impure --recreate-lock-file --commit-lock-file`
<siraben>
Should I also specify nixpkgs in inputs.nixpkgs.url?
<noneucat>
pushqrdx: it will install the mutter from the channel in nix-channel, which has the old version :(
hexa- has joined #nixos
<hexa->
test
hexa- has left #nixos ["WeeChat 2.9"]
<siraben>
and will it also work with cachix?
hexa- has joined #nixos
<hexa->
test
<pushqrdx>
noneucat no it installs mutter-3.38.2
<hexa->
test
<pushqrdx>
noneucat also i just nix upgraded just less than a week ago
<pushqrdx>
noneucat and i am on the unstable channel
<pushqrdx>
noneucat nix-info is giving false info
<noneucat>
ahh really? okay
<noneucat>
is gala building with 3.38 then?
<pushqrdx>
noneucat yeah it should be, as the build input is pkgs.gnome3.mutter, which should be the same as the one i am getting when doing nix-env -iA
<hexa->
test
ece3 has joined #nixos
hexa- has left #nixos ["WeeChat 2.9"]
hexa- has joined #nixos
ece has quit [Ping timeout: 260 seconds]
<pushqrdx>
just made sure it's finding and building using 3.38.2
ece3 is now known as ece
<pushqrdx>
noneucat so i don't really know wtf is happening
pushqrdx has quit [Remote host closed the connection]
* lovesegfault
tips hat
<siraben>
nice!
<new2nix>
I'm using nixflk template repo to build an installer iso, but I need it to pull nixos-install from the unstable version of nixpkgs so that I have the impure argument available, so that I can get past an error message saying "access to path /mnt/nix/store/hash-nmd is forbidden in restricted mode".
<siraben>
now that I have a flake on a branch, how do I test building without cloning?
<new2nix>
nixflk has so many layers, i can't make sense of what its doing w.r.t. packages and flake outputs.
<siraben>
`nix build github:siraben/oxide#oxide` looks for the flake in the default directory
<siraben>
bbigras: how would I delete it safely from the nix store?
Darkmatter66 has quit [Ping timeout: 256 seconds]
<bbigras>
siraben: `nix-store --delete /path` it will only work if it's not used anywhere
<siraben>
ok so it did fetch from the cache when using nix (without flakes), hm
<clever>
and dont use --force
<siraben>
Right
<siraben>
I also have sandbox = true, will that interfere with nix flakes + cache?
<siraben>
hm, `nix build github:siraben/oxide/flake#oxide` is still building from source
<siraben>
weird
m0rphism has quit [Ping timeout: 272 seconds]
<bbigras>
I'm pretty sure I have the sandbox too. it's enabled by default I think.
<siraben>
it doesn't appear to even be querying caches
ddellacosta has joined #nixos
<siraben>
is there a way to refresh/force use of the cache
<{^_^}>
[nixpkgs] @r-burns opened pull request #108017 → llvmPackages_8.llvm: fix build with gcc 10 → https://git.io/JLQly
<new2nix>
OK, I think I figured out how to get the unstable version of nixos-install in the shell.nix for nixflk. I changed "nixos" to "master" https://github.com/nrdxp/nixflk/blob/template/compat/nixpkgs.nix#L3. I have no idea what this actually does. I might be pulling everything from unstable ¯\_(ツ)_/¯
<bbigras>
siraben: I don't know.
<siraben>
bbigras: lol, I just ran ncg -d and it worked again
<siraben>
oops, nix-collect-garbage (that's my alias)
<siraben>
curious.
lord| has quit [Ping timeout: 260 seconds]
lord| has joined #nixos
<siraben>
and replacing nix build with nix develop will put me into a development environment for that project?
<bbigras>
I guess. I only ran it on my checked out repo.
<siraben>
In terms of compatibility, what about people who don't currently use flakes, how do they build this?
<bbigras>
how they could use your project without flakes?
<donofrio>
anyone know how I can get python3 within nix?
eacameron has quit [Quit: Connection closed for inactivity]
rajivr has joined #nixos
<bbigras>
,locate bin python3
<{^_^}>
Found in packages: python3, python36, python37, python39, python36Full, python37Full, python38Full, python39Full, python3Minimal
cmk_zzz has joined #nixos
D_ has quit [Ping timeout: 256 seconds]
<donofrio>
bbigras, how do Iinstall or compile python39full (not sure if youtube-dl cares uf min or full?) but I need a version that doesn't rely on AVX
D_ has joined #nixos
<bbigras>
you can get a shell with `nix-shell -p python39Full`. or install it with `nix-env -i python39Full` or add it to your configuration.nix
<bbigras>
could you just override the youtube-dl to disable avx or something?
<{^_^}>
[nixpkgs] @NeQuissimus pushed to hardened_510 « linux-hardened: Switch to 5.10 »: https://git.io/JLQ4c
justanotheruser has joined #nixos
Darkmatter66 has joined #nixos
marusich has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
donofrio has quit [Ping timeout: 256 seconds]
<colemickens>
siraben: if you want an example, nixpkgs-wayland is flake-first but is transparently used by people that don't use flakes or know about it
<quinn>
can anyone tell me where services are actually called from, in nixpkgs (equivalent to pkgs/top-level/all-packages.nix)? i am trying to add a module of my own
<quinn>
s/services/modules
<lovesegfault>
quinn: nixos/modules/services
<quinn>
lovesegfault: so i have added a file to nixos/modules/services, but it doesn't seem like it's getting called
<fps>
lovesegfault: what do you do to keep your nix-shell builds around?
waleee-cl has quit [Quit: Connection closed for inactivity]
<lovesegfault>
fps: Well, there's lorri for that
<lovesegfault>
Although I don't use it
<new2nix>
When I run `nix-env -iA nixos.hello`, a bunch of systemd services restart, including the display manager, and nix-daemon has the error: `unexpected Nix daemon error: error: --- SysError --- nix-daemon` `writing to file: Broken pipe`.
<lovesegfault>
I keep a cachix instance and I push what I want to save there
<supersandro2000>
cached-nix-shell if you want to speed up building
<lovesegfault>
new2nix: never use nix-env
<new2nix>
how do I get more information on the error message?
<fps>
and i guess the answer to keeping them pinned to a particular version will be flakes in the future
<new2nix>
My system is broken right now, and I'm trying to understand how broken. The same thing happens with nix-shell, and nixos-rebuild
<new2nix>
I figured nix-env was a simple basic test to help root cause the issue.
<supersandro2000>
broken pipe usually means the remote builder ssh connection broke for me
<lovesegfault>
stay far away from nix-env, only use nix-shell if you want a package non-declaratively
<lovesegfault>
fps: flakes yes, or just niv
<lovesegfault>
niv is really handy
<new2nix>
what do you mean by remote builder ssh connection? I don't think I'm doing any remote builds.
<supersandro2000>
then probably your nix daemon restartet
<new2nix>
How do I determine which file had the issue? This error happens everytime I try to run nixos-rebuild
<new2nix>
Hmm, running nixos-rebuild --flake .#target dry-run reports the error "don't know how to build these paths (may be caused by read-only store access): /nix/store/hash-blah.drv""
<new2nix>
Can't chmod /nix/store, says its a read-only file system
orivej has quit [Ping timeout: 240 seconds]
<fps>
new2nix: is your root fs mounted ro?
<new2nix>
I'm not sure yet. `zfs get readonly` shows that all pools have the readonly property as off.
<new2nix>
I see the message `mounting rpool/local/nix on /nix...`, but no errors or success message for it
<{^_^}>
[nixpkgs] @kisik21 closed pull request #107524 → linux: provide a pre-made kernel signing key → https://git.io/JLXy2
Izorkin has quit [Client Quit]
Izorkin has joined #nixos
<new2nix>
The other zfs partitions get a message similar to "Mounted /home.".
mammothbane has quit [Remote host closed the connection]
kenran has joined #nixos
<new2nix>
interestingly, there are 2 entries for rpool/local/nix in `mount`. "rpool/local/nix on /nix type zfs (rw,relatime,xattr,noacl)" "rpool/local/nix on /nix/store type zfs (ro,relatime,xattr,noacl)"
kalbasit has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @Mic92 pushed to staging-next « Revert "Merge branch 'master' into staging-next" »: https://git.io/JLQ2D
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLQa1
orivej has quit [Ping timeout: 260 seconds]
<hyper_ch>
on nixos unstable something is totally broken with systemd
<ar>
hyper_ch: can you elaborate?
<hyper_ch>
well, watchfolders don't work anymore
<hyper_ch>
there's often some timeout due to systemd now
<hyper_ch>
and other things
<ar>
i'm running unstable. how can i test the watchfolders?
<hyper_ch>
ar: also new symptom:
<hyper_ch>
reboot
<hyper_ch>
Failed to talk to init daemon.
<hyper_ch>
this happens only recently
<hyper_ch>
Dec 29 15:38:44 h-b dbus-daemon[3016]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
<hyper_ch>
Dec 29 15:38:44 h-b sshd[28041]: pam_systemd(sshd:session): Failed to create session: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
<hyper_ch>
Dec 29 15:38:44 h-b systemd-logind[3126]: Failed to start session scope session-382.scope: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
<hyper_ch>
Dec 29 15:39:19 h-b dbus-daemon[3016]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
<hyper_ch>
Dec 29 15:39:19 h-b systemd-logind[3126]: Failed to stop user service 'user@0.service', ignoring: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)
<ar>
ok, updating my system now, will check if it fails to boot in a bit (will take a while because i made a change to the kernel config, and that triggers a full kernel rebuild whenever that's updated)
<hyper_ch>
the reboot command doesn't even show in journald
<lovesegfault>
hyper_ch: systemd 247 is broken, 247.2 has the fixes and is already in unstable
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<lovesegfault>
you should reboot, `sudo reboot -f`, update your channel, `nix-channel --update`, and rebuild your system `nixos-rebuild switch`
<{^_^}>
[nixpkgs] @Mic92 opened pull request #108027 → kaldi: init at 2020-12-26 → https://git.io/JLQrk
cfricke has quit [Quit: WeeChat 3.0]
aexoxea has quit [Quit: Goodbye!]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
domogled1 has joined #nixos
domogled has quit [Ping timeout: 256 seconds]
aexoxea has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #108028 → systemd-confinment: move to /var/empty → https://git.io/JLQoO
domogled1 has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 256 seconds]
evernite has joined #nixos
malook has joined #nixos
noudle has joined #nixos
nschoe has joined #nixos
orivej has joined #nixos
malook has quit [Client Quit]
cole-h has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @vbgl pushed commit from @ehmry to master « ocamlPackages.mirage-block-unix: init at 2.12.1 »: https://git.io/JLQKz
berberman_ has joined #nixos
berberman has quit [Ping timeout: 260 seconds]
fendor has joined #nixos
<Nigel[m]>
Hello, does anyone have a solution to use syncthing on a headless server? the first incarnation hard codes the gui-address to 127.0.0.1, headless needs gui-address = [ "0.0.0.0:8384" ];
<ehmry>
Nigel[m]: `services.syncthing.guiAddress`
<Nigel[m]>
perfect, did not see that in the docs I found, can I update the wiki for that?
<Nigel[m]>
Do I need: allowedTCPPorts = [ 8384 ];?
<Nigel[m]>
ehmry: Sorry, I am pointing to the wrong packages somewhere: The option `services.syncthing.services' defined in `/etc/nixos/configuration.nix' does not exist.
<ehmry>
Nigel[m]: yes, but I think the option should be in 20.09
<Nigel[m]>
Ok, to set up the machine I have taken very simple steps (remarkable for any linux install) so I basically have what this gave me: sudo nixos-generate-config --root ${nixos_mounts}
noudle has quit []
<Nigel[m]>
without the gui it all worksforme service.syncthing.enable = true ... user = "nrb"; ... dataDir = "/srv"; ... configDir ...
<Nigel[m]>
lassulus: Thank you, it is a good way to go. I wanted to avoid tunneling (have a wireguard subnet to use in due course) and seeing the syncthing service hard coded to localhost it is a bit of learning for me to find out how to generate the service file 'correctly' with Nix. [It is the first of a set of machines to be used this way moving away from debootstrap.]
domogled has quit [Ping timeout: 260 seconds]
domogled1 is now known as domogled
<Nigel[m]>
ehmry: I think you are right, probably a typo my end
andreas303 has joined #nixos
vidbina has joined #nixos
<Nigel[m]>
lassulus: ehmry gui via ssh worksforme, do you have any pointers on how to update the firewall to allow syncthing? 127.0.0.1:35068: use of closed network connection (gui) channel 8: open failed: connect failed: Connection refused (console)
<lassulus>
services.syncthing.openDefaultPorts ?
m0rphism has joined #nixos
evernite has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #103118 → buildRustPackage: add `cargoHash` for SRI hashes of vendored deps → https://git.io/JkvFR
<{^_^}>
[nixpkgs] @rnhmjoj merged pull request #107792 → [20.09] pkgs/uwsgi: fix compiling and linking the php plugin in uwsgi → https://git.io/JLy9C
<{^_^}>
[nixpkgs] @rnhmjoj pushed 5 commits to release-20.09: https://git.io/JLQ1s
<noonien>
hello folks. I've managed to get a nixos installer image running on rpi from https://github.com/Robertof/nixos-docker-sd-image-builder However when trying to `nixos-rebuild` with this configuration.nix: http://ix.io/2KoA the pi doesn't seem to fully boot anymore (the green light stops flashing). Plugging it into a monitor shows that it seems to be
<noonien>
stuck at "Starting kernel...", however, this is the case when booting the installation image as well, and that keeps working. Any tips?
<noonien>
The pi doesn't respond over wifi, nor over ethernet (to pings, ssh, nmap).
<zangi>
I have a branch in nixpkgs that contains my modifications, how do I register it to nix-channel? or should I use some other method?
<Nigel[m]>
lassulus: thank you .. I have moved to unstable, services.syncthing.openDefaultPorts seems not to affect iptables-save and syncthing connections being refused, may I ask for a sninppet of a working syncthing configuration (I need to revert my wireguard to test, else I am completely vanilla 5.4.83 NixOS x86_64 GNU/Linux)
<{^_^}>
[nixpkgs] @aanderse pushed 2 commits to release-20.09: https://git.io/JLQD7
orivej has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @mmilata opened pull request #108045 → nixos/moinmoin: fix module by switching to eventlet worker → https://git.io/JLQyL
Wharncliffe has joined #nixos
hiro98 has joined #nixos
layerex has joined #nixos
sangoma has quit [Ping timeout: 264 seconds]
hiro98 has quit [Remote host closed the connection]
skep11 has joined #nixos
<skep11>
Hi
skep11 is now known as skeptor
<skeptor>
Hi
<skeptor>
How to install packages from command line
sangoma has joined #nixos
<__monty__>
skeptor: Depends on what you're looking for. You could use nix-env but nix's benefits won't be apparent until you use declarative configuration.
<__monty__>
,declarative
<{^_^}>
There are multiple ways of managing a user declaratively. 1) nix-env -ir, compatible with "temporary" imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
nschoe has joined #nixos
<skeptor>
I want to install irssi from command line
<__monty__>
skeptor: `nix-env -iA nixpkgs.irssi` would install it imperatively, much like you'd use any other package manager. But it's not the recommended way.
<__monty__>
skeptor: `nix-shell -p irssi` would drop you in a shell with irssi available, useful for trying out new software you're not sure you want to install permanently for example.
aasg has joined #nixos
<__monty__>
skeptor: The recommended way would be to add irssi to either your home-configuration.nix (if using home-manager) or configuration.nix (if you're on NixOS or nix-darwin). Or using one of the alternative methods in the declarative configuration snippet {^_^} shared above ^
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #108046 → openldap: fix build if openssl or cyrus_sasl are overridden to null → https://git.io/JLQyy
<skeptor>
Thanks
<__monty__>
skeptor: You can read more about all of these using `man`, i.e., `man configuration.nix` or `man nix-env`.
<skeptor>
Okay
dadada_ has joined #nixos
<__monty__>
I recommend reading the entire Nix and NixOS manuals. There's tons of good information in them and it's all different enough from other distributions that you won't be able to just pick it up through osmosis.
<mconnolly>
Fairly new to NixOS and just did my first complete re-install of NixOS; pretty incredible that it works so well to set up a new system from scratch! I guess seeing is believing. (Mostly re-installed because I wanted to utilize zfs and my first attempt was on ext4 for simplicity)
noudle has joined #nixos
<{^_^}>
[nixpkgs] @vbgl pushed commit from @ehmry to master « ocamlPackages.irmin-chunk: init at 2.2.0 »: https://git.io/JLQSr
<gchristensen>
mconnolly: pretty good, right? :)
<mconnolly>
gchristensen: it's super impressive; perhaps mostly because I'm used to Gentoo where reinstalling is generally a very time-consuming or involved process
<gchristensen>
my brother just reinstalled gentoo, and, ... indeed
teto has joined #nixos
<seku>
heh, reminds me of my foolish days when i ran a fileserver with hardware raid off Gentoo. now that was fun
<seku>
xfs too iirc
<mconnolly>
I think I probably spent less than 20 minutes messing with the system to reinstall NixOS (waiting for stuff to download, databases to reload, etc. took a few hours but I just let it run overnight); as I get more familiar with it, I'm sure it'll be even easier
<mconnolly>
Oh wow, I have a soft spot for Gentoo, but I have borked my laptop enough times with it to not trust myself to manage a file server with it lol
<seku>
i was young and crazy :)
<seku>
ran an Areca card with raid6 on 12x750gigs... seagate drives
<seku>
completely borked it too :)
Chiliparrot has joined #nixos
<mconnolly>
Haha, there's a certain level of satisfaction from doing things "the hard way" and having it work; but it's a painful lesson when it doesn't
<seku>
yeah, very painful. lost my dreamcast and saturn iso collection back then
<seku>
what was it... 2005ish?
<seku>
or maybe a bit later
mikroskeem has joined #nixos
<seku>
right now im still running bsd for fileserver, but i am migrating over to nixos on the new one
<mikroskeem>
hey - any plans to update Docker to 20.xx yet?
<mikroskeem>
Docker 20.xx has CGroups v2 support
LilleCarl has quit [Quit: WeeChat 2.9]
<mconnolly>
Ouch, yeah I hear you; I was using FreeBSD for a while but it started to get a little bit painful to do web development on it after a while with the lack of Docker and all, plus my current laptop doesn't work with it; I used Ubuntu for a while because I didn't have a day to spend waiting for Gentoo to compile, but eventually when I did get some free time I decided to try out NixOS instead;
<mconnolly>
definitely a learning curve but so far I'm pretty excited
kdlv has joined #nixos
nschoe has quit [Ping timeout: 260 seconds]
<seku>
same :)
<seku>
i want to tinker a bit more tho before entrusting data to it. altho... with zfs, what can really go wrong
nschoe has joined #nixos
<hyper_ch>
lovesegfault: why update the channel? nixos-rebuild boot --upgrade should take care of it.... but that's broken because of samba now
<ishan67>
I am trying to learn opengl using C++ so I had installed glfw in my system via my nix-config file. I am still not able the compile because 'GLFW/glfw3.h' file is not found. Why is this the case?
<ishan67>
Also I have hardware.opengl.enable in my config
nly has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<ishan67>
"glxinfo | grep OpenGL" also detects my Intel card.
hiro98 has quit [Remote host closed the connection]
<lukegb>
Cadey: I have some! But it's bad so should not be emulated :p
<Cadey>
lukegb: how bad are we talking?
<lukegb>
I have GitLab CI ssh into every machine, rsync the repo (inc. secrets), then build and deploy
<lukegb>
This is dumb because the system closure is in the binary cache anyway. I'm contemplating switching to more of a pull model.
<lukegb>
This is partly because I refuse to use any of the existing tooling for managing machines because I didn't understand it at the time and am stubborn :p
<supersandro2000>
q3k[m]: I already wanted to start but a nice PR froze my machine multiple times
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JLQdt
KarlJoad has quit [Remote host closed the connection]
TheSirC[m] has quit [Quit: Idle for 30+ days]
rb2k has quit [Ping timeout: 264 seconds]
hiro98 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @JamieMagee opened pull request #108055 → pihole-ftl: init at 5.3.4 → https://git.io/JLQdR
mconnolly has joined #nixos
teto has quit [Ping timeout: 272 seconds]
<nh2>
how can I use `mkShell` such that I can also build that environment on CI? It gives me "This derivation is not meant to be built, aborting".
<tpw_rules>
what do you want to do with on CI?
<abathur>
is 'build' essential, or just causing it to be built? :) you can update the CI to run nix-shell if it makes sense in this context
<tpw_rules>
you can do: nix-build --no-out-link shell.nix -A inputDerivation
KarlJoad has joined #nixos
<KarlJoad>
Is there a way to fetch a tarball with nix, but not extract it?
<tpw_rules>
which will syntax check the shell.nix and ensure all its dependencies can be built and are available.
amir has quit [Read error: Connection reset by peer]
amir has joined #nixos
<nh2>
tpw_rules: We're using `python.withPackages`/`mkShell` to provide an environment in which to run Python scripts. I want to make sure that environment always works, so my CI builds it. With `python.withPackages` you can do `noenv = python.withPackages (...); env = noenv.env;`. Then you can `nix-shell -A env` for the shell, and `nix-build -A noenv` on CI.
<nh2>
tpw_rules: Where does the `.inputDerivation` attribute come from?
<pushqrdx>
is there anybody using Gala as their window manager/compositor and is willing to give building and running it with nix-build a try
<pushqrdx>
i have been hitting a dead end for almost 2 days now
<pushqrdx>
with this error GLib-GIO-ERROR **: 04:53:34.794: Settings schema 'org.gnome.mutter.wayland' does not contain a key named 'xwayland-disable-extension'
<clever>
nh2: the shell.nix can just (import ./.).env
<nh2>
abathur: starting the shell is not good enough, I also want to create a GC root using `--out-link`to guarantee it won't be GC'd
<pushqrdx>
the thing is, gala is working fine with the same derivation/revision through the display manager
<tpw_rules>
nh2: https://github.com/NixOS/nixpkgs/pull/95536 i don't super know how it works or how close to "always works" that will get you. i think as good as you can get without starting the shell and running commands in it
<pushqrdx>
however building the same derivation with nix-build and trying to run the result throws that error and sigtraps
<nh2>
tpw_rules: ah I see, that is newer than our nixpkgs, and seems to be exactly what I need.
<nh2>
clever: But `.env` of what? For `python.withPackages` it works fine, but I also need to add other pkgs to PATH (which the Python scripts execve()). `mkShell` only makes a shell so it's already the `.env` (the above PR tpw_rules linked seems to allow be to go back to the non-.env), and `buildEnv` doesn't have `.env`.
<clever>
nh2: the same default.nix you would have `nix-shell -A env`'d against
<nh2>
clever: I don't have a default.nix, using only expressions in the above -- the question is what is the ideal helper function to use to build a value `xxx` such that (1) it contains a python env with additional programs in PATH, (2) I can `nix-build --out-link my-gc-root` it, and (3) I can `nix-shell` its `.env`
<tpw_rules>
you can't mount the images clonezilla creates in general
SomeoneSerge has quit [Ping timeout: 240 seconds]
<donofrio>
tpw_rules, I used the xpert option and use dd
<donofrio>
one would think that would be mountable?
mschwaig1 has quit [Quit: WeeChat 2.7.1]
mschwaig has joined #nixos
<tpw_rules>
oh, yes i believe those are
<donofrio>
well in "Network" on the mac pro in basement I have 97 files all named "Mac24-2020-12-31-06-img/sda2.dd-img.**" so I'm wondeirng how do I assemble them into a dmg or iso or .dd or something that will be viewable?
<donofrio>
all from a 24'imac that has a parttion on it that first-aid cannot fix it seems so I cloned it last night (took 5 hours)
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.smart_open: 4.0.1 -> 4.1.0 »: https://git.io/JLQNt
<donofrio>
oh ok, now I need to put in my sencond 750gb hard drive that is the only plce I'd have space to cat them together with...
ransom has joined #nixos
<tpw_rules>
yeah clonezilla images are not designed to be accessed really
<tpw_rules>
are they compressed?
attila_lendvai has quit [Ping timeout: 260 seconds]
attila_lendvai has joined #nixos
<donofrio>
I don't know....not sure....I did see compression options but unsure at 2am what was default
<tpw_rules>
iirc it will put an extension on them if they are
<tpw_rules>
but if they are, you have to decompress them before catting
<tpw_rules>
like dd-img.gz.aa or whatever
<{^_^}>
[nixpkgs] @teh opened pull request #108059 → Add aiobotocore to fix s3fs → https://git.io/JLQNc
acarrico has quit [Remote host closed the connection]
<tpw_rules>
it might be best to just ask clonezilla to restore the image to your 750GB drive instead of trying to piece it back together. i'm pretty sure i'm right about those steps but if i'm not that's a lot of time to waste
<mananamenos>
makefu, how do i do this in nixos? I mean this bot command you did ,locate cin lex?
<makefu>
the tool is called nix-index, `nix-shell -p nix-index --run 'nix-index && nix-locate lex'`
<mananamenos>
:/ ive added lexicon package in my shell.nix but still get /bin/sh: lex: command not found
<Squarism>
ive managed to fetch https://github.com/well-typed/optics using fetchFromGithub. Now am i supposed to build the project (with callCabal2nix) if it doesnt contain root cabal file but instead some other types of cabal.* files im not that familiar with
<Squarism>
?
<Squarism>
How am I*
<abathur>
mananamenos: you can also use it outside of the channel by PMing {^_^} with /query or /msg
<mananamenos>
makefu, thanks, nix-index is cool
<makefu>
mananamenos: mh it seems that right now we do not have any package with a useful lex binary. maybe use flex as lex? i am unsure what your current situation is
<mananamenos>
make, great, i've changed lex to flex in the makefile and it worked ;)
<mananamenos>
thanks again!
<makefu>
nice!
<KarlJoad>
Is there a way for me to find the derivation that produced an output in the Nix store?
attila_lendvai has quit [Ping timeout: 272 seconds]
ManiacOfMadness has quit [Ping timeout: 240 seconds]
<energizer>
https://bpa.st/CD3A i have this service set up, and i can start it manually with `systemctl start copyq`, but it doesn't start automatically at login and i'm not sure why. any ideas?
robmyers has quit [Ping timeout: 260 seconds]
johs has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: cosimone]
gluegadget has quit [Ping timeout: 260 seconds]
elvishjerricco has quit [Ping timeout: 260 seconds]
mitchellh has quit [Ping timeout: 260 seconds]
kini has quit [Read error: Connection reset by peer]
<bqv>
Hey, nerds, why does nixos-manpages and nixos-manual-html etc. get built fresh every time I make a system?
<bqv>
Even if I change something that doesn't affect them at all
<mikroskeem>
it tries to give you a hint
<mikroskeem>
to r e a d
<mikroskeem>
:^)
<bqv>
(?)
<bqv>
I use the manuals all the time, hence why I have them enabled
<bqv>
But why are they so aggressively rebuilt
<bqv>
Identity under eta reduction should imply identity under building
skep has joined #nixos
<skep>
hi
bn_work has quit [Quit: Connection closed for inactivity]
<skep>
whenever is install something nix on droid
<exarkun>
bqv: Can you give an example of a change that leads to a rebuild?
<skep>
it vanish after session closed
<skep>
nix-env -i irssi
<skep>
how save a package forever in your device
<skep>
i am on nix on droid
<skep>
from #f-droid
<skep>
there is any file which i need to update
<skep>
packages aren't saving after the session ended
<skep>
any clue?
aveltras has quit [Quit: Connection closed for inactivity]
<MichaelRaskin>
bqv: I remember something about enabled options leaking into the manual build, but I have not used NixOS proper for a long time.
brettgilio has joined #nixos
justanotheruser has joined #nixos
new2nix has joined #nixos
skep has quit [Remote host closed the connection]
andreas303 has quit [Quit: andreas303]
andreas303 has joined #nixos
mananamenos has quit [Ping timeout: 272 seconds]
<new2nix>
If I have wifi working in the installer, how do I go about getting it working in the installed OS? Importing "${modulesPath}/installer/scan/not-detected.nix" works, but if I leave it out and pull in kernel modules "iwldvm" "iwlwifi", I get errors about ucode firmware.
kalbasit has quit [Remote host closed the connection]
kalbasit has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
ColonelPhantom has joined #nixos
strikerlulu has joined #nixos
akavel has joined #nixos
<akavel>
Hi! I'm trying to build a basic stdenv.mkDerivation (in a flake), and it doesn't seem to have `/usr/bin/env` inside (!) what am I missing?
justanotheruser has quit [Ping timeout: 264 seconds]
<infinisil>
akavel: Nothing, that's just how it is is the Nix sandbox
<infinisil>
Though I remember people discussing that /usr/bin/env should exist in the sandbox
<akavel>
oh; thanks; I was completely flabbergasted and thought I'm doing something dumb
strikerlulu has quit [Ping timeout: 260 seconds]
<akavel>
is there something I can do then to run scripts with /usr/bin/env hashbang?
<akavel>
in the sandbox?
<cole-h>
patchShebangs should deal with those
<cole-h>
(e.g. rewrite them into absolute store paths)
<infinisil>
energizer: Did you check examples from other home-manager services?
<bqv>
MichaelRaskin: hm, sounds likely
kdlv has quit [Quit: Leaving]
<energizer>
infinisil: oof sorry
<bqv>
exarkun: honestly at this point any file change even if it doesn't change the resultant eval (that might be cause I'm using flakes, so the entire flake source is somehow becoming an input to the manuals?)
<infinisil>
:)
<jasom>
energizer: without home-manager systemd.user.units should work; not sure about with home-manager
<bqv>
mikroskeem: so was that just unhelpful memey nonsense or do you have an actual point?
justanotheruser has joined #nixos
<aterius>
I get a lot of complains from friends trying nix from guix that declarative user package management isn't described clearly in the documentation. Is there something other than home-manager I can point them to? The nix manual mentions it briefly under changes here: https://nixos.org/manual/nix/stable/#ssec-relnotes-1.6.0 but I feel like this is probably said more explicitly elsewhere
<energizer>
aterius: home-manager is quite popular
<bqv>
exarkun: concrete example, I change an unrelated flake attribute (so something even entirely out of scope of the manual) and they still get rebuilt
<aterius>
energizer: Of course, but at the same time it's not mentioned in the docs
<aterius>
(I use HM of course, as does almost every nix user I know)
<jasom>
bqv: IIRC the documentation scrapes all of the configuration modules to get a list of options, so a changing any module causes a rebuild; not sure if that's what you're talking about
<energizer>
aterius: there was some discussion about moving hm into nixos, i'm not sure if that went anywhere
<aterius>
Yeah, I think that's a separate issue though
<aterius>
I'm wondering if there should just be a more explicit nod to declarative package management under the profiles section of the nix manual
<bqv>
energizer: its not likely, as far as I see, thank god
<energizer>
bqv: you're worried about how long it takes to get changes into nixos?
<bqv>
aterius: I'm not sure guix is much better in that regard, you know
<aterius>
bqv: Honestly, I agree with you, but this has come up about 6-7 times in my nix evangelizing
<jasom>
aterius: I think there is a lot of diversity in how userspace packages are managed, but you're right that the docs lead a person to "nix-env -i" all the things.
<bqv>
energizer: deeply, but also nixpkgs is already ridiculous in size and scope, and eelco and friends are having an uphill battle trying to fix that because everyone wants everything monorepo, so I'm very glad h-m can escape that mess
<exarkun>
bqv: Okay I don't know anything about flakes yet
<bqv>
exarkun: I'm guessing it's what jasom describes, but because my flake itself is a module argument, that somehow triggers rebuilds if I change anything at all, which is appalling, but not easy to solve
arjen-jonathan has quit [Ping timeout: 260 seconds]
<aterius>
TBH not a gold star for making it obvious either, but at least it's in the documentation
donofrio has joined #nixos
<energizer>
on a related note, i've noticed that whenever i gc and nixos-rebuild, a couple of tarballs get redownloaded "unpacking https://..." and i dont know why
<itai33[m]>
energizer: hi yeah i'm the guy complaining to mjlbach about about being confused about declarative package management in nix
<itai33[m]>
this is, i get that home manager is good and that i should probably look into that and i will
<itai33[m]>
thing*
<exarkun>
The latest haskell.nix is really annoying in how much redundant downloading/work it does
<energizer>
sure, someone should add home-manager to the nixos docs if it isn't there already
<itai33[m]>
but when i'm just poking around nix and trying stuff out, i would like to have the option of keeping all my apps in what amounts to a list file before i figure out how to use home-manager becuase i'm not entirely sure what it's deal is yet
<itai33[m]>
i think it's a good transitional phase
<itai33[m]>
better than `nix-eng -i foo`ing stuff
<bbigras>
home-manager is awesome
<aterius>
We have a declarative package management section in the nixos documentation
<aterius>
Just not in the nixpkgs documentation, it's mentioned in a foot note
nature has quit [Ping timeout: 240 seconds]
<aterius>
itai33: That doesn't apply to your difficulties though, as that refers explicitly to declarative package management with nixos
<itai33[m]>
;(
orivej has quit [Ping timeout: 260 seconds]
<bqv>
MichaelRaskin: exarkun: jasom: seems setting up documentation.nixos.extraModuleSources might be a solution
<energizer>
exarkun: those seem like reasonable ideas but i think the hashes are present
<bqv>
Just hard to tell cause nixos's modules aren't built for introspectien...
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #108081 → setup-hooks/strip: silence 'File format not recognized' errors again → https://git.io/JL7IG
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL7Ig
<itai33[m]>
it's just that i think it should be easier to find is all
<bqv>
Open a repl and type `import <nixpkgs> {}`. then open one and type `(import <nixpkgs>} {}).blender`. the former will be snail pace cause you need to eval every value. The latter just needs the names and blender's value
<akavel>
treating it as a hashtable
<akavel>
-i goes by values, -iA goes by keys
<akavel>
but now there's also `nix search`
<itai33[m]>
yeah
<akavel>
which caches the values, and gives you the keys
<itai33[m]>
it's been a while since my last bat at nixing but i recall something being odd with nix search
<itai33[m]>
like it didn't find stuff sometimes
<itai33[m]>
and that it didn't list versions of packages for some reason
<akavel>
I had issue with some weird error, but it got improved in the meantime
<akavel>
slowly, kinda plant-growing-speed slowly, but things are improving
<akavel>
in Nix world
<itai33[m]>
neat
<itai33[m]>
any idea when nix 2.4 will happen
<itai33[m]>
cause if it's soon i might wait for that before diving into the rabbit hole
<itai33[m]>
if not then fuck it
<akavel>
are some important features planned for nix 2.4?
<itai33[m]>
mjlbach told me that a bunch of cli niceties will get integrated
<aterius>
you can easily use nixUnstable via nix-env -iA nixpkgs.nixUnstable right now
<akavel>
ok; I'm not in the loop with news/community for sure
<aterius>
without waiting out the next release
<itai33[m]>
is there an unstable manaual too
<akavel>
but I started trying flakes and I love them
<aterius>
Yeah, built on hydra
<itai33[m]>
uhh
<itai33[m]>
what's hydra
<akavel>
lol heh
<akavel>
itai33[m]: so as you already see,
<akavel>
Nix is still in very early adopter phase :D
<akavel>
a.k.a. bleeding edge, a.k.a. alpha, etc. etc. :)
<akavel>
so you're more than welcome to ask questions
Rusty1 has joined #nixos
<akavel>
-> hydra is basically a huge CI system for nixpkgs
<akavel>
but you'll have to learn many things the hard way :)
<akavel>
it should get you to more or less what the "guix manifest" is or whatever was mentioned above, I hope
<itai33[m]>
thanks man, i'll try it out tomorrow morning
<itai33[m]>
it's too late to start geting into stuff now
<akavel>
before I finally went and started learning home-manager, I think I tried to build something similar on my own based on something like this gist
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.eyeD3: 0.9.5 -> 0.9.6 »: https://git.io/JL7ts
<akavel>
that's the "other manual" apart from the "main Nix one" that's also worth reading
<akavel>
it's kinda hidden in plain sight, but it took me a while to understand "Nix manual" != "Nixpkgs manual", and that the latter one has a ton of useful stuff
<pushqrdx>
what is the simples way to specify a package that is built with the standard mkdir build && cd build && cmake .. && make install?
<pushqrdx>
can nix handle this without additional configuration?
<colemickens>
If I include two python apps from different nixpkgs, I get bash: /nix/store/z8qz3gzyh99zzcfl9vgskzkjixwcb27v-vte-0.62.1/libexec/vte-urlencode-cwd: Argument list too long