<Guanin>
The configuration for the greeter is generated when you run 'nixos-rebuild switch', and then stored within /nix/store (and linked with "a lot of symlinks" to the right place). To keep the system as reproducible and sane as possible (pretty handwavy explanation), /nix/store (and thus the configuration) is readonly
alp has quit [Ping timeout: 258 seconds]
<juliusdeane>
So does anything that would usually go in a .conf file go in configuration.nix?
day|flip has quit [Remote host closed the connection]
<Guanin>
zacts Wait until you want to switch your hardware the first time - I switched on my laptop to NixOS and decided to move my desktop, too. Got the system running in basically 5 minutes + waiting time for nixos-install, and it was really awesome having an identical setup available that easy
jgt has quit [Ping timeout: 258 seconds]
<zacts>
oh nice! yeah.
juliusdeane has quit [Quit: ERC (IRC client for Emacs 26.1)]
<zacts>
I also like the idea of the git filesystem. I wonder if it could be combined with NixOS in any way.
<zacts>
just thoughts..... don't know the specifics of what that idea might be, but it seems like these kinds of things might go well together.
<zacts>
but indeed, NixOS is very cool so far.
mexisme has quit [Ping timeout: 245 seconds]
<Guanin>
zacts git is not really suited for large files (maybe with git-lfs or git-annex), but if you manage as much as possible through /etc/nixos, you could put that inside a git repo, and use btrfs+snapper (or lvm with a systemd timer or anything else that can make snapshots) for /home and call it a day
<zacts>
oh cool
<Guanin>
(Oh well, and if you have anything database related, you probably also want /var)
<zacts>
Guanin: yeah, I think I was thinking of bup and git-annex
<pie__>
I have nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/pathstuff/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<samueldr>
name-less entries will be looked at too
WhittlesJr has joined #nixos
<samueldr>
>> will cause Nix to look for paths relative to /home/eelco/Dev and /etc/nixos, in that order
<samueldr>
for that example
<pie__>
ok ill check again but something was unhappy...
Matthieu_ has joined #nixos
<samueldr>
though, to be noted, I do have a custom nix path in my configuration, but I *think* that bit should be relatively standard
<pie__>
ok maybe the problem is that its only looking at root channels
<pie__>
why doesnt it have my user channels in there too...?
<pie__>
nix-channel --list does list one thing
<pie__>
which is the one i want
<pie__>
so i ifugred it would work without messing with any env vars
<WhittlesJr>
Anyone know what could cause `nvidia-settings` to rebuild? I can't find anything suspicious in my config, but with `services.xserver.videoDrivers = [ "nvidia" ];` it tries and fails to build `nvidia-persistenced` no matter what channel. It fails at `/build/source/_out/Linux_x86_64/gen-manpage-opts: Permission denied`. Switching no "nouveau" works.
<samueldr>
which is... not particularly great if you add your first channel
<samueldr>
I think?
hio has quit [Quit: Connection closed for inactivity]
<samueldr>
(this is in a file sourced by /etc/profile)
<samueldr>
pie__: does `echo $__NIXOS_SET_ENVIRONMENT_DONE` echoes 1?
<pie__>
samueldr, yea
<pie__>
i just tried NIX_PATH=~/.nix-defexpr/channels/unstable:$NIX_PATH nix-shell default.nix -A shell
<pie__>
im doing import <unstable> {}
<samueldr>
drop unstable from that path you prepended
<pie__>
error: file 'unstable' was not found in the Nix search path (add it using $NIX_PATH or -I)
<pie__>
oh ok
<pie__>
(tired)
<pie__>
much better
<samueldr>
it looks in nameless entries in NIX_PATH for files named whatever for <whatever>
<samueldr>
were channels added to your own channels list recently, pie__?
<samueldr>
like, did you have none before your login?
<pie__>
no i added it a while ago and have logged in since
<samueldr>
I think it's the conditional prepend that might have hit you...
<samueldr>
ah
<samueldr>
weird
xvnvx has joined #nixos
G0ld3nChi1d has quit [Quit: Leaving]
xvnvx has quit [Client Quit]
sb0 has quit [Quit: Leaving]
<drakonis>
i need some advice on how to use a custom glibc
<drakonis>
for a package
jgt has joined #nixos
rtjure has joined #nixos
Matthieu_ has quit [Ping timeout: 246 seconds]
jgt has quit [Ping timeout: 258 seconds]
jasongrossman has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
<Ralith>
sounds like a stdenv mangling thing
vidbina has quit [Ping timeout: 246 seconds]
vidbina has joined #nixos
vidbina has quit [Ping timeout: 272 seconds]
ericsagnes has joined #nixos
ericsagnes has quit [Ping timeout: 258 seconds]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
adamantium has joined #nixos
nD5Xjz_ has quit [Ping timeout: 248 seconds]
nD5Xjz has joined #nixos
mac10688 has joined #nixos
fusion809 has joined #nixos
inquisitiv3 has quit [Ping timeout: 248 seconds]
jgt has joined #nixos
jgt has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
nminix has joined #nixos
alex`` has quit [Ping timeout: 248 seconds]
alex`` has joined #nixos
<mac10688>
I know people rave about using nixos for haskell development, but does it benefit other languages as well? Like node, purescript or even c# with the monoframework?
<{^_^}>
[nixpkgs] @thoughtpolice opened pull request #63181 → bmake: init at 20121212 → https://git.io/fjaIk
<samueldr>
yes
<samueldr>
at least, in my experience working with ruby and javascript ecosystem stuff
o1lo01ol1o has joined #nixos
<samueldr>
nix and nixpkgs (not necessarily nixos) completes well the principles of lockfiles for dependencies, but at a system level instead of at a language level
<mac10688>
ok cool. I have nixos the operating setup sufficiently on my machine but now I'm trying to learn how to utilize the packaging system
<mac10688>
the opearting system*
mexisme has joined #nixos
ericsagnes has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
mexisme has quit [Ping timeout: 252 seconds]
toppler has quit [Ping timeout: 258 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
toppler has joined #nixos
<mac10688>
I wonder what the key difference is between a nix-env and something like a python virtual environment
<dckc-ho>
I'm trying to use idris-containers, but the version in nixpkgs is too old, so I want to define the current one in shell.nix. I'm getting undefined variable 'build-idris-package'. How do I get from import nixpkgs {} to build-idris-package?
<chagra>
i've been trying to replicate my current arch setup on a nixos vm as an exercise to further understand how it works but i've been having an issue, trying to compile suckless's st returns the two errors /bin/sh: pkg-conf and c99 are missing. I thought i got all the the base packages for compiling set up, am i missing something or does this have to do with how nix doesn't use /bin/?
<chagra>
is how it is formulated
fendor_ has joined #nixos
<chagra>
the error : /bin/sh: c99: command not found
<Ashy>
chagra: i came from arch too, haven't looked back since i first tried it
<Ashy>
running nixos on my desktop and thinkpad now
<inquisitiv3>
Is there a way to import a non-Nix file into a Nix file? I want to manage my XMonad config file with Home manager, but at the same time I want to edit the file in my usual Haskell environment
<chagra>
Ashy: i'm very musch considering doing the same too. Those nix pills had quite the effect on me. I'm just seeing if i could still have a similar workflow here and If that is the case i'll switch asap. Any tips or thoughts about what kind of preconceived notions i should reconsider, knowing that arch functions completely different?
m0rphism has joined #nixos
jgt has joined #nixos
kim0 has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
ashkitten has quit [Ping timeout: 248 seconds]
Soo_Slow has quit [Remote host closed the connection]
ashkitten has joined #nixos
<symphorien>
inquisitiv3: use the path without quotes. It will copy the file into the store and automatically be replaced by the store path as a string
<symphorien>
There is also builtins.readFile to obtain the file content as a string
<Ashy>
chagra: i think the main thing is to stop thinking about installing things globally
<Ashy>
chagra: especially for dev tools, define a default.nix for each dev project and fire up a nix-shell when you're working on that project
<Ashy>
chagra: it ends up being kinda like python virtualenvs but for anything in nixpkgs instead of just pip libraries
<Gopal[m]>
I was looking for a way to automate firefox profile deployment
<clever>
Gopal[m]: but i have used profiles in firefox, before switching to nixos
<Gopal[m]>
(with nix, obviously)
<Gopal[m]>
thing is I've had a terrible experience with KDE on NixOS (with an nvidia card) so I'm using KDE on OpenSUSE where the experience is brilliant but doing things the imperative way no longer feels right.
<clever>
Gopal[m]: youve tasted the koolaid, and cant go back!
<Gopal[m]>
:(
<clever>
Gopal[m]: i prefer xfce, and havent had any issues
<Gopal[m]>
I think this is the 4th or 5th time I've quit nix lol
<marek>
clever: ah I see, tricky :)
<Gopal[m]>
clever: I like XFCE but blur and those desktop effects, boi
<Gopal[m]>
also I really like the plasma set of apps
<Gopal[m]>
but that's no problem since I'd prefer my home computer to be user friendly. I already use NixOS on my primary laptop and on all my servers. I'm just looking for ways to improve user experience. :P
<MichaelRaskin>
I guess the problem is drinking two incompatible flavours of Kool-Aid
<Gopal[m]>
wdym?
<dfordivam>
Hi.. my nix-env is not working. It tries to read a '/nix/store/...env-manifest.nix', but the file is empty..
<clever>
dfordivam: try nix-env --rollback
<dfordivam>
clever: Thanks! worked!
<MichaelRaskin>
Gopal: the declarative system configuration kool-aid and GPU-processed desktop effects kool-aid
<clever>
dfordivam: i suspect you had an improper shutdown the last time you did something with nix-env, and the manifest.nix got corrupted
<clever>
dfordivam: `nix-store --verify --check-contents` should confirm that
<MichaelRaskin>
(I guess it is feasible to configure user-friendly KDE on NixOS, but I have no idea as I use StumpWM)
<Gopal[m]>
<MichaelRaskin "Gopal: the declarative system co"> how are they incompatible?
<MichaelRaskin>
Well, you say you had a terrible experience with KDE
knupfer has joined #nixos
<Gopal[m]>
<MichaelRaskin "(I guess it is feasible to confi"> the desktop configuration is not much of a problem but the experience is really bad with nvidia card
<Gopal[m]>
idk why
<Gopal[m]>
<MichaelRaskin "Well, you say you had a terrible"> not at all. I'm using KDE right now on OpenSUSE which is brilliant. Before that I was using KDE on arch which was nearly as good.
<Gopal[m]>
same system, same nvidia card
<MichaelRaskin>
Well, when I say «configure» I included making it use Nvidia card properly
<MichaelRaskin>
I wonder whether you used the same driver (nvidia vs nouveau), and whether it was of a similar version. (Between OpenSUSE-Arch-NixOS)
<Gopal[m]>
`nvidia` on all of them
<Gopal[m]>
no `nouveau`
<clever>
Gopal[m]: what about driver version? `modinfo nvidia`
<Gopal[m]>
<MichaelRaskin "I wonder whether you used the sa"> I think it was the same version on NixOS and Arch. On OpenSUSE, I'm using the latest version: 43x.xx
<MichaelRaskin>
Hm
<Gopal[m]>
`430.26` on OpenSUSE
<Gopal[m]>
I was on `nixos-unstable` btw and I was experiencing all kinds of visual glitches
[Leary] has joined #nixos
<MichaelRaskin>
(of course, in addition to using StumpWM, I mainly use built-in Intel and use Nouveau for discrete nvidia because of better Xrandr etc. support)
<Gopal[m]>
VLC would randomly have video corruption, sometimes black screen. Desktop effects like gliding and desktop cube would cause KWin crashes
<Gopal[m]>
And my laptop's (which is the system in reference here) fans were always on even with TLP enabled
Lears has quit [Ping timeout: 248 seconds]
<Gopal[m]>
<MichaelRaskin "(of course, in addition to using"> I use awesomewm on my primary laptop and I don't think I have any complaints there.
<Gopal[m]>
but sadly, the KDE experience on NixOS really blew for me
<{^_^}>
[nixpkgs] @michaelpj opened pull request #63204 → localtime: use upstream unit, fix polkit rules → https://git.io/fjaY8
<Ashy>
Gopal[m]: torvalds has a nice quote related to nvidia that likely applies...
<Gopal[m]>
<Ashy "Gopal: torvalds has a nice quote"> don't get me wrong
<Gopal[m]>
I dislike Nvidia just as much
nminix has quit [Remote host closed the connection]
<m1cr0man>
Morning folks! Yesterday I was working on building a node package, and got pointed towards node2nix. Got all that working and my package to build but I needed to add an override for a dependency (sharp) to add libvips to the build environment. I followed the guide on the node2nix readme but it doesn't seem to have an effect. I instead added it to globalBuildInputs in default.nix and that worked. Here's my override.nix https://gist.github.com
<clever>
Miyu-saki: would probably want to map over config.users.extraUsers, check to see if isNormalUser is set, and then generate some nginx config to enable what you want
<Miyu-saki>
clever: Nonono, I mean on Freenode.
<Miyu-saki>
That's called a vhost, right?
<clever>
Miyu-saki: oh, those, i got it from gchristensen
<Miyu-saki>
Oh okay. Thanks. I just realized that that exists, and I want to have one, but idk who can have one.
<clever>
Miyu-saki: i dont remember what the rules where either, but gchristensen probably does
<{^_^}>
[nixpkgs] @rycee pushed to master « maintainers: add GPG key for rycee »: https://git.io/fjaYr
init_6 has quit []
fendor__ has joined #nixos
jasongrossman has joined #nixos
fendor_ has quit [Ping timeout: 248 seconds]
<m1cr0man>
^ Fixed my issue. Overriding the package im building rather than its dependency :)
ryantrinkle has joined #nixos
<kraem>
i'm having trouble understanding nix attribute names while installing nodejs. In my `configuration.nix` i've set `environment.systemPackages = with pkgs; [ nodejs_latest ];` which installs nodejs 12 but i can't define nodejs-12_x which `nix-env -qaP` tells me the attribute name should be. The nix-env command doesn't even tell me that nodejs_latest exists, I found that out by running `nix search nodejs`. what
<kraem>
command should i be running to search for nixos packages?
<{^_^}>
[nixpkgs] @bjornfor merged pull request #62969 → nixos-generate-config: add dm-snapshot module if LVM is detected → https://git.io/fjgCU
<{^_^}>
[nixpkgs] @bjornfor pushed to master « nixos-generate-config: add dm-snapshot module if LVM is detected »: https://git.io/fjaOc
<pbb>
after updating to latest nixpkgs master (including kernel 5.1.9 -> 5.1.10 my ethernet interface was renamed from enp2s0 to eno0. what could cause this and I guess it is not intended?
<ar>
>what could cause this - predictable interface names
<pbb>
they are supposed to be predictable
<ar>
"supposed" is the keyword here
thc202 has joined #nixos
<pbb>
this change was not predictable. if this was a server with static ip configuration it would not become reachable again
<pbb>
if this change affects other users they should be warned before
<clever>
i know that enp2s0 is the 2nd pci bus, 0th slot
<clever>
but i dont know what makes something eno0
<clever>
ahh, i'm not used to a pci but having over 9 slots
<clever>
pbb: this gist has all of my NIC's and what the mapping is
<clever>
ens9 is the only odd one out
<pbb>
from the systemd page on predictable interface names: "Names incorporating Firmware/BIOS provided index numbers for on-board devices (example: eno1)"
<clever>
thats what i was vaguely remembering as well
<clever>
but then, why did it not use that from the start?
<pbb>
exactly
<pbb>
I think I also changed from systemd 239 to 242
<pbb>
maybe this changed it?
qqlq_ has joined #nixos
qqlq has quit [Ping timeout: 258 seconds]
<clever>
in a way, the old hack was better in this reguard
<clever>
it would dynamicly generate udev rules, the first time a device is seen, and just bind the mac to whatever name the kernel gave it
<clever>
so eth0 is forever eth0
<Miyu-saki>
On that topic, would be kinda cool to have a bisect mechanic on NixOS.
<pbb>
yes
<clever>
Miyu-saki: it is fairly simply to just bisect nixpkgs with nixos-rebuild -I nixpkgs=
<pbb>
clever: that would not persist across reinstalls
<Miyu-saki>
clever: Yeah, I'm thinking more of bisectable packages.
<clever>
pbb: yeah, thats the main limitation, and i guess what systemd was trying to fix
<clever>
Miyu-saki: once you know which pkg, create an overlay that sets src = /home/clever/apps/systemd;
<{^_^}>
[nixpkgs] @NeQuissimus pushed commit from @r-ryantm to master « ammonite: 1.6.7 -> 1.6.8 »: https://git.io/fjaOB
<clever>
and then bisect another level deeper
<Miyu-saki>
Hm, fair enough, yeah.
<Miyu-saki>
Oh wait hold up.
<Miyu-saki>
You can `git bisect` with src = <git-repo>
<Miyu-saki>
The only problem I see with this is patches being desynced.
<clever>
but if you know a specific nixpkgs commit broke it, from going from rev1->rev2
<clever>
then you also know what changes happened to patches (if any)
<Miyu-saki>
clever: Yep, but it changes the whole NixOS "stack", which in second thought, might actually be favorable.
toppler has joined #nixos
<Miyu-saki>
Like, I'm basically talking the difference between debugging NixOS vs debugging a certain package in NixOS.
<clever>
yeah, it depends on how you need to reproduce the issue
<clever>
if you dont know how to ask systemd to just name a give card, you may have to just boot the new systemd
<clever>
and reboot for every bisect
oida has joined #nixos
o1lo01ol1o has joined #nixos
<stranger___>
Mic92: yes, i've tested it. to test it yourself you're likely need 5th to 7th generation intel cpu, I only have 6th and 7th here, so can't say what about 8th+, probably you'll need recent kernel
schmittlauch[m] has joined #nixos
<schmittlauch[m]>
ohai
<{^_^}>
[nixpkgs] @bjornfor pushed 3 commits to release-19.03: https://git.io/fjaOz
<schmittlauch[m]>
How can I write a shell.nix file for dropping me into an environment with the *build dependencies* of a certain package without building it (like `nix-shell "<nixpkgs>" -A hello`), but also putting some other tools into the path?
<clever>
schmittlauch[m]: let pkgs = import <nixpkgs> {}; in pkgs.hello.overrideAttrs (old: { buildInputs = old.buildInputs ++ [ pkgs.gdb ]; })
<clever>
thats basically `nix-shell '<nixpkgs>' -A hello` but also including gdb
rfold has quit [Ping timeout: 245 seconds]
<schmittlauch[m]>
ah nice, I'll try it
<schmittlauch[m]>
btw, what does the .all attribute of a package stand for? e.g. pkgs.hello.all
<lem0n4de>
Hi, How can I install dotnet packages with nix? And also how can I use Paket? Started a nix-shell with dotnet-sdk and Paket but I can not seem to use binary of it.
<clacke_movim>
Has anyone tried using Darling* to build Nix/Darwin stuff on NixOS or Nix/Linux? * http://darlinghq.org/
<ToxicFrog>
.NET Core SDK (reflecting any global.json):
<simpson>
clacke_movim: Ooh, interesting. It seems like only the "sandbox" portion is currently packaged? And not for Linux. I wonder how it works and how to get it packaged.
<clacke_movim>
simpson: Then you already know more than me. :-) I might look into packaging more of it down the line. Running build servers on actual macOS machines is a hassle, when Apple breaks Nix with every major update.
<simpson>
clacke_movim: This was a learnable moment for me, too. I imagine that a first step is figuring out what parts of the build can be done on Linux, and updating the existing derivations. matthewbauer is listed as a maintainer, so maybe they can help.
lacesz_ has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
vidbina has joined #nixos
<lem0n4de>
ToxicFrog: Yeah, dotnet works but I can not use 'paket.exe'
<ToxicFrog>
You should be able to run it manually with `mono /nix/store/...Paket.../lib/dotnet/Paket/tools/paket.exe`, I think.
<lem0n4de>
ToxicFrog: Running 'mono /nix/store/..paket.exe' gives an error with 'File does not contain a valid CIL image.'. Running it as 'dotnet ...paket.exe' errors 'The library 'libhostpolicy.so' required to execute the application was not found '
drakonis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @jtojnar to master « doc: describe pname »: https://git.io/fjanc
<Miyu-saki>
samueldr: Right. I get the stateful part. From what I understand though, most NixOS installations have their users managed by NixOS, and their passwords being stateful.
<samueldr>
I, too, would guess that is about right
<Miyu-saki>
Also, seems like this is the "correct" way to invoke the tests.
<Miyu-saki>
`[myrl@myrl:/etc/nixos/nixpkgs/nixos]$ nix-build release.nix -A tests.ipv6.x86_64-linux`
<Miyu-saki>
OTOH, I still am a bit lost on how to use `nix-build tests/login.nix -A result`
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<PyroLagus>
,
<{^_^}>
Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu help libraries unstable unfree library escape'' declarative escape" overlay pr profiling ping ask pinning howoldis imperative which-channel -a xy wololo callpackage exec fancy-uninstall nixlang++ pills cache channels haskell home-manager ifd loot paste stateversion stuck tias timer runtimedeps cloak dontask error nur upgrade botsnack jdwhat
BoipiSigre has quit [Quit: Konversation terminated!]
<emacsomancer>
is it feasible to use nix kernels on foreign distros?
<maurer>
emacsomancer: It might be unwise to use the default kernel as built by nixos, but using nix to build a kernel, possibly with some of the same machinery, should be able to produce a kernel for another distro just fine