<iceypoi>
is it possible, that nix-env ignores the -I?
drakonis1 has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
<nh2>
iceypoi: from the man page it looks like what you do should work, but try the env var way `NIX_PATH=nixpkgs=.config/.... nix-env ....` instead and see if that has the same problem
<infinisil>
iceypoi: -I nixpkgs=$PWD/.config/...
kleisli_ has quit [Ping timeout: 268 seconds]
<infinisil>
-I needs to have the absolute path, it doesn't do any path resolution on its own
<iceypoi>
nixos-rebuild does
<iceypoi>
interesting
<nh2>
infinisil: should relative paths not work? They seem to for me in general, e.g. `NIX_PATH=nixpkgs=.` is something I use often. Or are `NIX_PATH` and `-I` different here?
<infinisil>
nh2: Hmm, I'm pretty sure I tested it at some point and relative paths didn't work with -I
<nh2>
the man page does not suggest that `-I` can't do what `NIX_PATH` can
sigmundv has joined #nixos
<nh2>
infinisil: no, for me both work exactly the same way at least with `nix-shell`, I just tried it
<infinisil>
Huh yeah, with nix-instantiate --find-file it seems to work too
<nh2>
`NIX_PATH=nixpkgs=. nix-shell -p idevicerestore` and `nix-shell -I nixpkgs=. -p idevicerestore` in my latest PR turn up the same shell
<infinisil>
I bet that changed in some version
stepcut has quit [Remote host closed the connection]
<iceypoi>
nix-env -q --available -A nixpkgs.browsh -I nixpkgs=(realpath .config/nixpkgs/systems/dany-macbook-pro/nixpkgs/)
<iceypoi>
this doesn't work either, btw
<iceypoi>
nixos-rebuild was happy building it, btw
stepcut has joined #nixos
<nh2>
iceypoi: just to double-check, does `ls .config/nixpkgs/systems/dany-macbook-pro/nixpkgs/` show it to exist in your current $PWD?
stepcut has quit [Read error: Connection reset by peer]
<nh2>
== are you in your home dir?
<iceypoi>
realpath resolves it to my home dir
<iceypoi>
and ls lists contents
stepcut has joined #nixos
<iceypoi>
i'm pretty sure the path is right
pxc has quit [Ping timeout: 268 seconds]
<nh2>
iceypoi: hmm then you may have to add some verbosity flags or use strace to debug what's going on
Jetien_ has joined #nixos
<nh2>
wait 19.03 is actually released? I didn't notice because the currently-disconnected matrix.org channel still shows `NixOS stable: 18.09, beta: 19.03` in the topic :D
<day|flip>
if your running nvidia driver with latest kernel. change that to 4_19 or something. there issue with latest kernel with nvidia drivers
romildo has joined #nixos
kleisli_ has joined #nixos
<romildo>
I am packaging a software that includes a linux kernel module, and I am looking for help.
<romildo>
I am writing pkgs/os-specific/linux/deepin-anything/default.nix and want to test it. I have added it to linuxPackagesFor in all-packages.nix.
<romildo>
Usually I test normal packages with nix-build.
nD5Xjz has quit [Ping timeout: 264 seconds]
<romildo>
How would I test the building of this kernel module I am trying to build?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjm0S
nD5Xjz has joined #nixos
growpotkin has joined #nixos
<growpotkin>
I'm almost embarrassed to ask this because I know it's dead simple. Whats the super short way to make a derivation from `writeText`?
jluttine has joined #nixos
silver has joined #nixos
<growpotkin>
Do I have to write a builder thats just `mkdir $out; cp myFile $out/`?
<growpotkin>
or is it even shorter?
o1lo01ol1o has quit [Remote host closed the connection]
<gchristensen>
./myFile
jluttine has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 252 seconds]
<growpotkin>
gchristensen++
aanderse-work has joined #nixos
<{^_^}>
gchristensen's karma got increased to 105
<iceypoi>
I never got nix-env to work with -I, btw
<iceypoi>
there seems to be some kind of difference between nix-env and nixos-rebuild
Notkea has quit [Read error: Connection reset by peer]
<growpotkin>
iceypoi: yes
stepcut has joined #nixos
<growpotkin>
iceypoi: There are a few articles that cover it (I think the manual has a comprehensive section now)
Notkea has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
<growpotkin>
iceypoi: Basically NixOS and Nix/Nixpkgs are distinct programs with distinct channels/etc. We just use them so closely that we almost always forget.
<elvishjerricco>
romildo: Should just be linuxPackages.deepin-anything, right?
stepcut has joined #nixos
<growpotkin>
iceypoi: You can do a "overlay-compatibility" setup that fixes this to behave more in line with how (most of us) folks normally expect
drakonis_ has joined #nixos
<iceypoi>
growpotkin: well ok, but it does feel quite weird that even though there IS a -I flag according to man pages, it seems to be ignored
<growpotkin>
you basically add one recursive overlay into your NixOS config, add it to nixpkgs.path in your system config, and then everybody across the system should get the changes
<romildo>
elvishjerricco, thanks
<iceypoi>
growpotkin: but I wasn't even using an overlay
<growpotkin>
iceypoi: -I adds things to "NIX_PATH", but it's still all muddied around with the other package sets. Overlays help clean that up.
<iceypoi>
growpotkin: I was just trying use my forked nixpkgs
<growpotkin>
iceypoi: I used to use `-I` a lot in the past but switched to overlays when it started blowing up in my face more often.
drakonis has quit [Ping timeout: 252 seconds]
<iceypoi>
growpotkin: sounds like a good reason ;-)
<growpotkin>
iceypoi: Could you give me some more context, I don't think I know the "big picture" task you're trying to accomplish.
stepcut has quit [Ping timeout: 240 seconds]
mnoronha has joined #nixos
stepcut has joined #nixos
<iceypoi>
growpotkin: I was working on the pr #59430 just before
<iceypoi>
growpotkin: and I couldn't build the expression, because nix-env just plain refused to do anything with -I. So I just did a nixos-rebuild build instead
<iceypoi>
growpotkin: but I do not understand the root cause, maybe I'll have to go and read a bit of the nix-env sources to understand what -I actually does
<iceypoi>
growpotkin: because for nixos-rebuild, it does override
mmlb977450853050 has quit [Ping timeout: 246 seconds]
mmlb977450853050 has joined #nixos
stepcut has quit [Remote host closed the connection]
<samueldr>
iceypoi: nix-build -A browsh and ./result/bin/browsh (assuming it's the executable name) should work
mnoronha_ has joined #nixos
<samueldr>
and wouldn't need to mess with nix-env or install to the profile
mnoronha has quit [Ping timeout: 250 seconds]
day|flip has quit [Remote host closed the connection]
<iceypoi>
error: cannot auto-call a function that has an argument without a default value ('stdenv')
stepcut has joined #nixos
<iceypoi>
what am I missing?
<samueldr>
`nix-build -A browsh`, not nix-build path/to/bwosh/default.nix
<samueldr>
(assuming you're at the root of the nixpkgs checkout)
<samueldr>
,callPackage
<{^_^}>
If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<samueldr>
this is due to how dependency injection is done, through callPackage, within nixpkgs
<iceypoi>
ah, beautiful
<growpotkin>
The bot beat me to it haha
<iceypoi>
now it worked ;-)
o1lo01ol1o has joined #nixos
pxc has joined #nixos
<samueldr>
`nix build -f . browsh` for the new porcelain
stepcut has quit [Remote host closed the connection]
<samueldr>
(don't quote me on that, still not really used to it)
<{^_^}>
[nixpkgs] @thoughtpolice closed pull request #37722 → preview: add Shenandoah GC to openjdk packages by default → https://git.io/vxBRV
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
nD5Xjz has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
sb0 has quit [Quit: Leaving]
Anton-Latukha has quit [Quit: Leaving.]
o1lo01ol1o has quit [Remote host closed the connection]
<mnoronha_>
I'm reading the nix manual, and stumbled on this sentence: "(Nix is however not tied to the Nix Package collection; you could write your own Nix expressions based on it, or completely new ones.)" Could someone help me understand what it's saying?
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @risicle opened pull request #59431 → pythonPackages.pygal: fix build by patching setup.cfg to work with modern pytest → https://git.io/fjm0p
o1lo01ol1o has quit [Remote host closed the connection]
<iceypoi>
mnoronha_: that nix really is a build system
o1lo01ol1o has joined #nixos
<iceypoi>
mnoronha_: much like gnu make or the likes
sindrip has joined #nixos
<iceypoi>
mnoronha_: nixpkgs just happens to be a particular database that's commonly developed and uses nix, but you could make your own for your own projects
<samueldr>
or, nix can be used without using nixpkgs, you could create mnoronha_pkgs using nix, and different concepts as long as it maps to how nix works
<nh2>
mnoronha_: `nixpkgs` ("the Nix Package collection", https://github.com/NixOS/nixpkgs/) is a big set of tens of thousands of software packages. You can use that with nix, but you can also write your own packages, expressions, and so on
<mnoronha_>
Ah, I was thinking "it" was Nix :)
ninjin has quit [Remote host closed the connection]
<mnoronha_>
Thanks for the clarifications!
ninjin has joined #nixos
nD5Xjz has joined #nixos
Supersonic has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<nh2>
mnoronha_: indeed the sentence should be improved a bit
o1lo01ol1o has joined #nixos
nD5Xjz_ has joined #nixos
sellout- has joined #nixos
erasmus has quit [Read error: Connection reset by peer]
<romildo>
After building the package linuxPackages.deepin-anything, which install the kernel module in the store at $out/lib/modules/4.19.34/extra/vfs_monitor.ko, how do I add it to the system configuration for testing?
buffet has quit [Ping timeout: 264 seconds]
drakonis_ has quit [Ping timeout: 264 seconds]
drakonis_ has joined #nixos
<mnoronha_>
Do I have to explicitly open port 22 to have my ssh server be reachable? I seem to randomly go off the network more frequently, but not always
<samueldr>
sshd is the only service for which the firewall whitelisting is automatically handled for you
o1lo01ol1o has joined #nixos
IRC-Source_26 has joined #nixos
<IRC-Source_26>
Hi all
<IRC-Source_26>
I'm trying to figure out what is the best approach to a start up script on nixos
drakonis has quit [Ping timeout: 268 seconds]
<IRC-Source_26>
Basically if I just want a bash script to be run on login, what the best approach is
<mnoronha_>
samueldr: Do I need to have a line to enable both sshd and openssh? (I assumed they did the same thing)
<aanderse-work>
IRC-Source_26: define login?
<aanderse-work>
graphical login?
<aanderse-work>
ssh login?
<IRC-Source_26>
I've written systemd units in the past and that seemed like it could be the best approach. But, the default path is quite limited. I'm wondering if there is a way to just run it as the user with their current path
<aanderse-work>
and run on every login by every user?
<mnoronha_>
Ah that's unfortunate, was hoping that was the source of my problems :/
<samueldr>
mnoronha_: so to further refine the answer: you shouldn't need to touch the firewall for openssh
<IRC-Source_26>
fair question aanderse-work, I was really thinking graphical login, but if there is a more general approach that would work
<IRC-Source_26>
initially I was just looking for something like .xsession I suppose
ng0_ has joined #nixos
<aanderse-work>
IRC-Source_26: and to clarify, for every single regular user yeah?
ng0 has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
<IRC-Source_26>
aanderse-work: every single user would be interesting, but my use case is really just for one user
drakonis_ has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @nh2 opened pull request #59432 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/fjmEc
<aanderse-work>
in that situation i just use kdes "automatically started applications" feature
<aanderse-work>
most desktop environments have something like that
<samueldr>
nh2: what a title :)
<aanderse-work>
i know openbox does
<aanderse-work>
and like you said, some scripts you can use
stepcut has joined #nixos
<nh2>
samueldr: the effect of using `hub pull-request` and forgetting to put a first line in front of the template :D
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
IRC-Source_2684 has joined #nixos
<IRC-Source_2684>
had to reconnect
stepcut has quit [Read error: Connection reset by peer]
stepcut_ has joined #nixos
<IRC-Source_2684>
as a bit more context, I'm not using kde or openbox, just 2bwm which I don't think has an autorun utility built in
<IRC-Source_2684>
I might be able to add the startup script to the services.xserver.displayManager.session
<IRC-Source_2684>
but I was wondering if there was a better way
IRC-Source_26 has quit [Ping timeout: 255 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
fendor_ has quit [Ping timeout: 252 seconds]
mnoronha_ has quit [Ping timeout: 250 seconds]
camsbury has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos
lovesegfault has quit [Ping timeout: 240 seconds]
mnoronha_ has joined #nixos
lovesegfault has joined #nixos
iceypoi has quit [Quit: WeeChat 2.4]
ryantrinkle has quit [Ping timeout: 240 seconds]
mnoronha_ has quit [Ping timeout: 268 seconds]
camsbury has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @dywedir to master « rclone: 1.46 -> 1.47.0 using buildGoModule (#59400) »: https://git.io/fjmEg
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @marsam to master « mkcert: init at 1.3.0 (#59410) »: https://git.io/fjmE2
stepcut has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
iceypoi has joined #nixos
o1lo01ol1o has joined #nixos
slack1256 has joined #nixos
stepcut has quit [Ping timeout: 250 seconds]
camsbury has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
mnoronha_ has joined #nixos
ddellacosta has joined #nixos
erasmus has joined #nixos
elux has joined #nixos
<elux>
hi there
<elux>
any suggestions on how to do an overlay/override for the `go` pkg so i can upgrade it to the latest version? the go pkg in home-manager im using right now is a few months behind
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
artemist has joined #nixos
alexherbo2 has quit [Remote host closed the connection]
hlolli_ has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
hlolli__ has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
steve-chavez has joined #nixos
<lmarks>
elux: could you potentially use the version of the package in unstable?
romildo has quit [Quit: Leaving]
silver has quit [Read error: Connection reset by peer]
growpotkin has quit [Remote host closed the connection]
softinio has joined #nixos
softinio has quit [Remote host closed the connection]
<clever>
jophish: oh, another thing that can help here
<clever>
jophish: --arg config {}
<clever>
and maybe --arg overlays '[]'
<clever>
jophish: that forces nixpkgs to ignore your config.nix and overlays, making it more pure
cyraxjoe has joined #nixos
hlolli_ has quit [Remote host closed the connection]
lovesegfault has quit [Quit: WeeChat 2.4]
hlolli_ has joined #nixos
lovesegfault has joined #nixos
oborot has joined #nixos
<oborot>
Hey, what do I do when a program I'm trying to compile can't find a header file?
<oborot>
I'm trying to compile some binaries that need libpcap's pcap.h
<oborot>
So I installed libpcap, but it doesn't seem to be able to find it.
<oborot>
I can probably specify a path to my /nix/store where one of the 50 variants of libpcap exist and link to one of the header files... but that doesn't seem right to me.
IRC-Source_2684 has quit [Ping timeout: 250 seconds]
rauno has quit [Remote host closed the connection]
tomberek has joined #nixos
<Ashy>
i love the promise of nixos, but in the last week sometime vte based terminals have all broken in sway and now it looks like steam is broken too
<Ashy>
no configuration.nix changes other than running `sudo nixos-rebuild switch --upgrade`
<simpson>
Can you rollback to your previous profile?
<Ashy>
probably yeah, but i also want to be running the latest versions of things, at least from the nixos-19.03 channel
<mabel>
rolling back is like step #1 for debugging though
<mabel>
it's easy, just reboot and select a previous generation
<mabel>
as for steam, sometimes dotfiles can do funky things
slack1256 has quit [Read error: Connection reset by peer]
Glider_IRC_ has quit [Ping timeout: 252 seconds]
<Guest27063>
is there any way to force a build on a specific remote builder ?
<Guest27063>
like --option builders 'builder0'
psalm has joined #nixos
<symphorien>
yes it should work, but you must be a trusted user
psalm has quit [Read error: Connection reset by peer]
psalm has joined #nixos
<symphorien>
also, you can specify a requireSystemFeature for the builder
<symphorien>
only derivations requiring this system feature will be built on this builder
<Guest27063>
thing is I really want it to be oneshot remote builds
psalm has quit [Read error: Connection reset by peer]
<Guest27063>
and controlled manually
psalm_ has joined #nixos
<symphorien>
then --options builders should work
<Guest27063>
symphorien: but how can I pass the remote builder ? should it be a full spec or can I just pass a hostname/alias ?
<symphorien>
you can create a file with the same syntax as /etc/nix/machines and pass --option builders "@/path/to/file"
<symphorien>
or you must pass the full spec
psalm_ has quit [Ping timeout: 264 seconds]
<Guest27063>
symphorien: I have been trying with --option builders "@/home/teto/dotfiles/nixos.builder" but get a "stoul\nunexpected EOF reading a line" . My spec is https://paste.ubuntu.com/p/CgR8GjYFFJ/
Ralith has quit [Remote host closed the connection]
ng0_ is now known as ng0
<mabel>
lmarks: usually. it's possible to override it, but that's relatively rare
<mabel>
anyone use Kubenix here?
<mabel>
alternatively, anyone here use Hydra for CD?
<sphalerite>
lmarks: it's the nixpkgs evaluation used for the system — which is <nixpkgs> imported and applied with the `nixpkgs.*` options
<mabel>
currently, my plan is: 1. describe Hydra in Kubenix, as a pod of privileged docker containers. 2. deploy Hydra manually. 3. imbue those builders with my API secrets for my K8s cluster, and craft some builders in release.nix that will run skopeo and "kubectl apply" on the result. 4. pushes to my remote should trigger deployment
<mabel>
as a bonus, the first thing I bootstrap will be CD for my CD
domogled has quit [Quit: domogled]
<{^_^}>
[nixpkgs] @lheckemann pushed commit from @yesbox to release-19.03 « resilio-sync: 2.6.2 -> 2.6.3 »: https://git.io/fjmzi
<lmarks>
So in general it'd be better to access packages using 'pkgs' rather than import <nixpkgs> since the packages may be changed elsewhere e.g. in a different module?
<sphalerite>
yes, also because each time you apply (import <nixpkgs>) it evaluates nixpkgs anew, which can get expensive
<sphalerite>
if you do it a lot
<lmarks>
Ah
<lmarks>
Even within the same scope?
<lmarks>
I wonder whether something like 'header guards' from c/c++ makes sense here...
<sphalerite>
I don't know exactly how nix's evaluation caching works off the top of my head
<sphalerite>
aaaargh no! :p
<sphalerite>
just don't import nixpkgs yourself in your nixos config, unless you're sure you actually *want* to use a different package set
<sphalerite>
(that's useful for, e.g. using a package from unstable in a config that's otherwise on the stable channel)
zupo has joined #nixos
<sphalerite>
you can also expose an extra package set in the main one using an overlay, that way you can reuse the same one across multiple config modules
mabel has quit [Quit: WeeChat 2.4]
<lmarks>
Makes sense. I guessed something like that was the case, but was slightly confused by many examples online of people having import <nixpkgs> in modules and .nix files for their NixOS configuration.
mabel has joined #nixos
mabel has joined #nixos
mabel has quit [Changing host]
<lmarks>
sphalerite: does 'main package set' here refer to the collection of packages pulled from the channel?
<sphalerite>
lmarks: in this case I mean pkgs as passed to the modules
<sphalerite>
lmarks: it's not necessarily from the channel, since it can be set by a module using nixpkgs.pkgs, or one-off at build time by passing -I nixpkgs=…
ggpeti has joined #nixos
T_S_ has joined #nixos
<Guest27063>
how come we can create $out during installPhase and not in previous phases ? where is the code involved ?
mvnetbiz_ has joined #nixos
iyzsong has joined #nixos
fendor has joined #nixos
<MichaelRaskin>
judson: that's :silent! usually in Vim
<{^_^}>
[nixpkgs] @liff opened pull request #59451 → treemacs-magit: needs git at build time → https://git.io/fjmgk
iyzsong has quit [Ping timeout: 264 seconds]
TonyTheLion has joined #nixos
kvda has joined #nixos
ggpeti has quit [Quit: leaving]
<sphalerite>
Guest27063: you can create $out during any phase.
<lmarks>
I'm looking at the NixOS manual and in 6.1.1 it says: "For instance, the Firefox wrapper package [...] has an option to enable the Google Talk plugin. It can be set in configuration.nix as follows: nixpkgs.config.firefox.enableGoogleTalkPlugin = true;". What is 'nixpkgs' here? Should it rather be 'pkgs' (argument passed to module) ?
<user____>
Where is a good place to ask for help with the following: error: Package 'Agda Sheaves....' is marked as broken, refusing to evaluate. ?
<user____>
when running $nix-build "<nixpkgs>"
<{^_^}>
[nixpkgs] @montag451 opened pull request #59466 → humanfriendly: init at 4.18 → https://git.io/fjmaX
<arianvp>
Backlight driver stopped working after update to 19.03
<arianvp>
:/
<arianvp>
Oh wait it works
<arianvp>
Need to be in the video group. That's new
<user____>
is this the correct channel for requesting help with an error when running '$ nix-build "<nixpkgs>"', as a beginner?
<qyliss>
here!
ixxie has joined #nixos
<ixxie>
morning folks
<ixxie>
I'm looking for a way to setup a shared directory (i.e. group owned, symlinked into each users home dir) declaratively on nixos
<ixxie>
declarative group specification is easy enough
<qyliss>
You can do that with an activation script.
<ixxie>
qyliss: any example you can link?
<user____>
I am new to both nixos and irc. I apologize if I am not following proper conventions. Is there someone who can help me with a error when running nix-build?
<arianvp>
Yes
<arianvp>
Shoot
<lmarks>
user____: Just ask your question
<lmarks>
You will most likely get a helpful answer here :)
<gchristensen>
user____: I can't type much this morning, but: you're trying to build every package, when presumably you wanted to only build some packages?
<gchristensen>
when your an nix-build "<nixpkgs>" what were you trying to get out?
<user____>
Thanks! when running $ nix-build "<nixpkgs>" in a directory that contains a default.nix (trying to build a simple package of c code)
<gchristensen>
ah, just run nix-build :) `nix-build "<nixpkgs>"` is saying "build the file at "<nixpkgs>"
<arianvp>
Which means. Build every single package ever
<lmarks>
Unless you have changed NIX_PATH
<arianvp>
You can do nix-build ./default.nix instead
sigmundv has joined #nixos
<user____>
Thanks. my default.nix starts like this: "{ stdenv }: stdenv.mkDerivation { ..." is there a way to build this without adding my nix expression to nixpkgs?
<user____>
I can't figure out how to pass stdenv to the expressions i wrote in default.nix
<user____>
I don't remember exaclty, I think I am following both nix and nixpkgs manuals
<sphalerite>
user____: if you're following the manual, I'd suggest trying the nix pills instead, they're a good in-depth introduction to nix and nixpkgs
<lmarks>
Why do some package configuration options have a path that begins with 'nixpkgs.config' (e.g. nixpkgs.config.firefox.enableGoogleTalkPlugin) while others begin with 'programs' (e.g. programs.bash.enableCompletion) ?
<sphalerite>
lmarks: nixpkgs config is an old mechanism that nobody really likes and we'll hopefully one day be rid of
<lmarks>
damn
<user____>
thanks for the suggestions of "import" and nix-pills!
<lmarks>
That's extremely confusing, and doesn't seem to be anywhere in the documentation
<teto>
lmarks: the nixpkgs.config influences compilation so changing it usually involves recompiling
<teto>
while programs just setups some system wide logic
<arianvp>
user____: check out that link for a standalone working examole
<sphalerite>
lmarks: while the other options are defined by nixos modules. Usually this is only necessary for systemwide stuff
<sphalerite>
lmarks: overrides are generally preferred over nixpkgs config nowadays for stuff that doesn't need a nixos module
<lmarks>
sphalerite: I figured as much. Because they appear to have the same function. BUT then, some places tell me that in fact overlays are preferred to overrides
<immae>
hello there, I have a double question about shell.nix : I would like to write a derivation that runs a command and exits, is adding "exit 0" at the end of shellHook the right way to do it? Also, I would like to run bundix in that shell, but bundix itself calls a nix-shell, which uses shell.nix and I end up in infinite recursive calls, how can I avoid it?
<teto>
the darwin builder is kinda slow no ?
<arianvp>
Why there are multiple ways to do this is very well explained in the nix pills tutorial
<arianvp>
I can recommend it. It is a fun read
zupo_ has joined #nixos
<teto>
lmarks: overlays is the best place to override packages
<teto>
(depends on what you want to do but usally the best place)
<lmarks>
Nix Pills is not a fun read, often it makes no sense (seems to be written by a non-english speaker) and also contains things which are apparently outdated
<user____>
I am mostly working offline. Is there a convenient way to download the manuals found at nixos.org?
<emilsp>
hmm, trying to boot the aarch64 image on a raspberry pi 3, and the boot seemingly doesn't progress after uboot tries to start the kernel (stuck on line Starting kernel ...) the led flashes every once in a while, but after multiple minutes there are no updates on screen.
<tilpner>
emilsp: I don't have a Pi3, but... if you haven't already, try booting a few more times
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #59480 → nixos/fprintd: use systemd.packages → https://git.io/fjmrv
<laalf>
anyone is using nextcloud on nixos? after a fresh install i get this: : fileperms(): stat failed for /nix/store/q84rjkhpp7fm8j40jnf2hyfab8hq2vhv-nextcloud-15.0.5/data/nextcloud.log in /nix/store/q84rjkhpp7fm8j40jnf2hyfab8hq2vhv-nextcloud-15.0.5/lib/private/Log/File.php on line140
<iceypoi>
I've a razer keyboard and I'm seeing #47009 which adds support for the drivers but looks like noone has done much of anything with it for 4 months. Any chance I could somehow help out and get this pr closed off?
dwdr has quit [Read error: Connection reset by peer]
<teto>
laalf: I installed one but didn't have this pb, I just had the calendar module go away after an update :(
<laalf>
teto: that really looks like i should look at how to declaratively deploy docker images and make backups of it. also how to forward them properly
Neo-- has quit [Ping timeout: 252 seconds]
ggpeti has quit [Ping timeout: 268 seconds]
<teto>
laalf: there is a lengthy issue on nextcloud on the tracker. Bottomline is : it's not friendly to a declarative approach
<teto>
in my case, I just had to enable it again via the interface. It's just for my personal use so it doesn't matter really
<laalf>
teto: alright. they offer official docker images though.
jD91mZM2 has quit [Remote host closed the connection]
<clefru>
wucke13: yes. I'd generate the script inside of installPhase. $out is a derived from the hash of the build-description, so you can't use $out inside the nix-level build scription, as this would introduce a loop $out ---inside-write-script--> build-description ---hash--> $out
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « openmvs: mark as broken »: https://git.io/fjmos
<wucke13>
clefru: I see. How can I circumvent this? I used to write the script with some shell magick in the installPhase, but got the feedback to use writeShellScriptBin for that. Unfortunately, I don't have a clue how to resolve this circular dependcy you mentioned.
T_S_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wucke13>
I could use ../ instead of $out
<clefru>
wucke13: your shell script is fairly simple, so "cat > script << EOF\n#!/bin/sh\n${nwjs}/bin/nw $out/opt/${strippedName}\nEOF" then chmod a+rx script
xkapastel has joined #nixos
jD91mZM2 has joined #nixos
<clefru>
wucke13: yes, relative paths would work as well from what I see
<clefru>
wucke13: my line above was in the context of replacing the "cp ${runScript}/bin" in your installPhase
<wucke13>
What would be the preferable way?
<wucke13>
clefru: Yeah, that way of doing it is fairly clear to me, I was just wondering wether the writeShellScriptBin function might be used for this too
<clefru>
wucke13: depends on what ${nwjs} wants. I'd try with relative references
<wucke13>
Though, the relative approach can't work, I guess. The relative path is interpreted relative to the pwd, not the folder where the script itself resides
<clefru>
wucke13: no, I can't see how this would work within the same derivation. You could define a launcher derivation that wraps this derivation to break the cycle. That's the runScript generator for buildFHSUserEnv does it IMHO
tboston_ has quit [Ping timeout: 246 seconds]
<clefru>
but, I am not sure, frankly
<clefru>
wucke13: I wouldn't bother, and move forward with something that works to get you to your goal. You can study other approaches later
<clefru>
is there away to manage system-user units with nix in some way? I'd like to start weechat automatically under my user when the box boots
o1lo01ol1o has quit [Ping timeout: 255 seconds]
sindrip has joined #nixos
<teto>
clefru: home manager installs user units and you can add your own
<infinisil>
clefru: Either systemd.user.services (for all users) or with home-manager (for specific users)
<{^_^}>
[nixpkgs] @Ma27 opened pull request #59487 → weechat: install all outputs into the final store path → https://git.io/fjmo4
asymmetric_ has joined #nixos
alexherbo2 has quit [Remote host closed the connection]
<clefru>
teto & infinisil: thanks, I recalled that home-manager could do it, but failed to find an example. looks like systemd.user.services."foo-service" should do it, right?
<teto>
clefru: grep the code for systemd, I am sure you will find sthg (xsession for instance)
<teto>
or mbsync.nix
stepcut has quit [Remote host closed the connection]
<MichaelRaskin>
It might be nontrivial to convince ASDF to not fail on warnings — most warnings are «undefined function» and such in Common Lisp (could end up being OK, but shouldn't reach ASDF level)
wfranzini has quit [Remote host closed the connection]
<MichaelRaskin>
teto: You mean 5.x into a single expression with just src differing?
stepcut has quit [Remote host closed the connection]
wfranzini has joined #nixos
<teto>
MichaelRaskin: yes
stepcut has joined #nixos
<mog>
but MichaelRaskin you have made my day just getting it working this way, even if it is a bit complex to do out of the box
<MichaelRaskin>
Sounds good. I wasn't ever doing enough interesting stuff with Lua for that refactoring to pay off for me, but with your work around Lua, it seems nice
<mog>
i had been building it all from source before and felt it was very fragile
<sindrip>
builtins.toFile cannot refer to derivation outputs, what workarounds are there for this?
<teto>
MichaelRaskin: I don't use lua much either but having the same code in 3 different files made me itchy
<teto>
next step I would like to get rid of some of the luarocks warning as you did in the torch-distro.nix and move those packages to their generated counterpart. The global idea being to move as much as possible to generated
<hlolli__>
How could I use the command line to help me to find the path of `${gfortran}/lib`, I'm assuming that I'm missing some output, but `${gfortran.out}/lib` does not work, basically, I'd like to which output directory a derivation resolves to.
<hlolli__>
thanks sphalerite, that info should be enough, annoys me sometimes that some symbols resolve only to binary outputs, despite I'm not asking for it
<hlolli__>
nice!
wucke13 has quit [Ping timeout: 268 seconds]
asymmetric has joined #nixos
<hlolli__>
I spend 10 minutes to find out if my paths are correct, so this should give more minutes to my life :)
<monotux>
so...I can't build my nixos configuration anymore. it just eats all memory and then fills the swap. where do I start troubleshooting this?
<clefru>
gosh the archwiki is such a great treasure trove of information. not necesarily arch specific. I am still sad that we kill the original wiki. nixos.wiki isn't just the same :(
<hlolli__>
monotux, have you tried creating a swap?
<hlolli__>
ah sorry, fills your swap :S nvm
asymmetric has quit [Client Quit]
<monotux>
8 gig RAM and 16 gig swap
<monotux>
that should be enough to build my configuration
<hlolli__>
which derication is filling your swap?
asymmetric has joined #nixos
<monotux>
I'm not sure?
<monotux>
trying nixos-rebuild dry-run is enough for nix to eat my RAM
wucke13 has joined #nixos
<monotux>
18.09, tried upgrading to 19.03 but this issue prevents it
<mog>
maybe dump your configuration.nix?
<monotux>
sure
<mog>
im under similar memory constraints and not having any issues
<softinio>
infinisil: I did your PR suggestion for platformSpecific ... I get this error: attempt to call something which is not a function but a set , any thoughts?
sigmundv has quit [Ping timeout: 246 seconds]
<sphalerite>
does anyone know a tool that can resolve symlinks relative to a different root? I've found it to be a fairly common problem that I want to resolve an absolute symlink from a filesystem mounted to /mnt
<wucke13>
In a nix expression for a package, is there a beautiful way of getting a shebang for and ordinary shell? I believe there was some, but can't remember :(
sigmundv has joined #nixos
<sphalerite>
wucke13: #!${stdenv.shell} is the usual one
sigmundv__ has quit [Ping timeout: 252 seconds]
<wucke13>
sphalerite: Perfect, that was it :)
<infinisil>
softinio: Ah you need parens around the (throw "unsupported platform")
<softinio>
I was blind to it thanks
<sindrip>
I'm using (builtins.toFile "i3config" '' ... ${pkgs.kitty} '') but I am not allowed to put a package derivation inside builtins.toFile, it does not help to use an intermediary variable. What are my options (other than home-manager)?
worldofpeace has quit [Remote host closed the connection]
<sphalerite>
sindrip: use pkgs.writeText
<monotux>
infinisil: it's shared already
<samueldr>
sphalerite, wucke13: seems we're moving to `pkgs.runtimeShell` for things that are going in $out (but still stdenv.shell for build-time things)
<esmerelda>
I'm curious... How does NixOS know what systemd units to restart?
erasmus has joined #nixos
<wucke13>
esmerelda: I gues by knowing the hashes of all service files, and noticing when one of them is changed
<esmerelda>
Ahh, that makes sense. I guess it can query systemctl and make it describe the hashes of each service
<sphalerite>
esmerelda: if the store path changes, or the list of restart triggers changes, then one of the actions is performed depending on which is set (reloadIfChanged, restartIfChanged, stopIfChanged)
<esmerelda>
Ahh ok
drakonis_ has quit [Ping timeout: 240 seconds]
<esmerelda>
I'm trying to make CD for kubenix, and it's something of a similar problem to solve. I need to grab current config, check to see which elements have changed, filter the json to just include the changed elements and do kubectl replace
<{^_^}>
#56250 (by softinio, 7 weeks ago, open): vim-plugins: Added more vim plugins
linarcx has joined #nixos
<infinisil>
softinio: Did you verify that the vim plugin actually works?
jmgai has quit [Ping timeout: 255 seconds]
jtojnar has quit [Remote host closed the connection]
<softinio>
infinisil: my vim still using dotfiles .... this PR was supposed to be the stepping stone before I migrate over from dotfiles to nix for vim config
domogled has joined #nixos
<softinio>
I can verify and migrate first but will delay things by a couple of weekends
<infinisil>
Well I'm not going to merge an untested PR, but the code looks good at least
<softinio>
ok I will test and confirm and let you know
<softinio>
infinisil: going to test now thought I just migrate with just this one plugin to test that should be quick one sec
<softinio>
infinisil: will have to test later as need to do it on other laptop that I don't have with me now will let you know when done. Thx for help
<linarcx>
Gyus, anyone here install and use qt for develop applications in nixos? Which method you use? in arch and windows i just download online installer.
o1lo01ol1o has quit [Remote host closed the connection]
kleisli has quit [Ping timeout: 250 seconds]
jmgai has joined #nixos
<emilsp>
how do I specify a stdenv when running a nix-build ?
<wucke13>
I would like to have some feedback for this two PRs:
<samueldr>
adding compilers and libs to the system configuration generally won't work as expected
zupo has quit [Client Quit]
<user____>
So, I should instead be creating a derivation when I want to compile c++ code for linux?
<samueldr>
(I was looking for relevant documentation)
<eyJhb>
Can I somehow increase the size of `/run/user/1000`, seeing as "I" need to write a rather big file to it?
<samueldr>
using a nix-shell like `nix-shell -p pkgconfig -p zlib` should be sufficient; though using a shell.nix (or relevant default.nix) can be helpful instead of doing it on the CLI
<judson>
Looking into lorri, and wondering how to add it as an expression. I've tried a callPackage/fetchGit, but I get and error from lorri-vendor.drv about Cargo.lock not existing.
<judson>
It nix-env -if's fine...
<emilsp>
can I make fetchgit use my git credentials for fetching from a private repo?
<judson>
Use a git@ URL, emilsp
<judson>
Or an ssh: one.
<linarcx>
Gyus. how can i find log of nix-build and nix-env?
<sphalerite>
emilsp: it's complicated™. The easiest way to do this is to use builtins.fetchGit instead of the fetchgit from nixpkgs, which downloads stuff at evaluation time rather than in a derivation
<emilsp>
judson: ssh://git@github.com:/$org/$repo.git seems to fail with host key verification.
<emilsp>
sphalerite: hmm, where can I read the docs on fetchGit ?
<linarcx>
Guys. i installed qt create and qtbase packages. but when i want to create new project, it says that it cannot detect kits. anybody here has same issue?
<Taneb>
If I'm putting overlays in .config/nixpkgs/overlays, is there a sensible place to put extra nix files that are used by the overlays?
claymager_ has quit [Quit: Page closed]
Makaveli7 has joined #nixos
Ariakenom has quit [Quit: Leaving]
<emilsp>
this might be related to Taneb's question, but what do I do if I want to extend a certain nix package/replace it with my own definition of said package?
<Taneb>
emilsp: well, you can use an overlay
<emilsp>
heh, fair. Can I use an overlay for a specific environment ?
ggpeti has joined #nixos
<Taneb>
What do you mean by an environment here?
<emilsp>
something that I can shell into by calling nix-env
<emilsp>
my devious plan is to use a newer binutils package, burn some electricity rebuilding the entire world. But goddamnit, I need a newer linker.
<infinisil>
Taneb: You can make ~/.config/nixpkgs/overlays/foo a directory
<infinisil>
Then it uses ./default.nix as the overlay
<Taneb>
infinisil: ooh, that's perfect, thanks
<infinisil>
(at least that's what I got from reading the source, untested)
<Taneb>
Well, it lines up with the docs
Ariakenom has joined #nixos
<samueldr>
emilsp: depending on how you import nixpkgs, you can apply an overlay on it in a shell.nix
<thePirateKing>
Hi everyone, i have a very specific question, has anybody managed to use the R package knitr with Rmarkdown to successfully knit a *.Rmd file to pdf?
<asymmetric|>
i used to have 0.0.0.0/32 in allowedIPs but since the VPN doesn't work, nothing would go through
<infinisil>
emilsp: I think you'll have to copy the files manually for the first run though, my module doesn't handle that
<asymmetric|>
is there a way to debug what's going on?
<emilsp>
asymmetric|: for 0.0.0.0/32, you'd have to add a route that routes tunnel traffic to your peer, let's have a look at what networking.wireguard actually does.
<emilsp>
asymmetric|: if you check man wg, it explains that AllowedIPs is a comma-separated list of IP (v4 or v6) addresses with CIDR masks from which incoming traffic for this peer is allowed and to which outgoing traffic for this peer is directed.
<asymmetric|>
so in case i want the server to allow reaching all subnets, i should add 0.0.0.0/0 there?
<emilsp>
yes
<emilsp>
In both configs
<asymmetric|>
but this seems to allow incoming traffic from any host too
<emilsp>
What good is a route to an arbitrary IP address if you can't get any traffic back from said IP address ?
<emilsp>
This doesn't mean that any host on the specified network will be able to directly reach your peers however.
<asymmetric|>
why not? especially if i add it in both configs, and not just on the server
<emilsp>
This is more of a question for #wireguard/##networking. But could you please elaborate your concern?
<emilsp>
Are you afraid that any host on the internet will be able to ssh root@10.100.0.2/32 ?
o1lo01ol1o has quit [Remote host closed the connection]
<asymmetric|>
no, but i'm not sure i understand why the client needs to have 0.0.0.0/0
<asymmetric|>
doesn't all traffic to the client come from the server?
o1lo01ol1o has joined #nixos
<emilsp>
yes, but the tunnel interface will filter out traffic that it isn't supposed to forward before it even escapes your machine.
pereira_alex has joined #nixos
<pereira_alex>
hi .... anyone here using roccat keyboard/mouse ?
<asymmetric|>
emilsp: where can i go to learn what a "tunnel interface" is?
acarrico has joined #nixos
Ralith has joined #nixos
<emilsp>
asymmetric|: in this case it's a network interface through which packets are routed through, much like your ethernet adapter is a network interface.
<emilsp>
the wireguard kernel module creates wireguard specific network interfaces and this `AllowedIPs` thing is a feature of it.
slack1256 has joined #nixos
Jonathan_ has quit [Ping timeout: 256 seconds]
<asymmetric|>
ok, so if i add 0.0.0.0/0 anywhere, i suppose it should be the only element in the list right?
<asymmetric|>
it encompasses all the others
<emilsp>
yep.
<asymmetric|>
got it. did that and had trouble ssh'ing to the server so gonna figure out what that's about
<asymmetric|>
thanks for all your help so far emilsp :)
<emilsp>
On the server, it's only sending packets to a given peer and reciving packets from a given peer.
asymmetric has quit [Ping timeout: 240 seconds]
<pereira_alex>
i am starting on nixos by 4 or 5 hours or so. so far i have managed to make it like i wanted using declarative configuration, configuring plasma and sway desktops. but subtle bugs are preventing me from using it. plasmashell is always crashing when i change from folderview to desktop view and my roccat devices aren't detected on dbus. anyone can help ?
stepcut has joined #nixos
ggpeti has quit [Ping timeout: 252 seconds]
<emilsp>
pereira_alex: I've no experience using roccat devices, but what does dmesg say?
<pereira_alex>
emilsp: the devices work well , and i managed to configure permissions and everything using declarative ( alot of documentation reading but payed off ). its an roccateventhandler deamon, that should expose some device dbus methods, and it doesnt on nixos
<pereira_alex>
dunno why, it does so on gentoo / arch / opensuse
Neo-- has joined #nixos
day|flip has joined #nixos
fusion809 has quit [Remote host closed the connection]
wolfman154 has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
fusion809 has joined #nixos
pereira_alex has quit [Quit: Konversation terminated!]
sindrip has quit [Ping timeout: 252 seconds]
stepcut has quit [Ping timeout: 250 seconds]
pereira_alex has joined #nixos
sigmundv has quit [Ping timeout: 264 seconds]
Guest44640 is now known as eliasp
arjen-jonathan has quit [Ping timeout: 264 seconds]
* colemickens
has also experiencing crashing Plasma under similar operations.
<colemickens>
Unfortunately, my solution was to switch to a window manager, where I could conceivably have a shot at debugging/rebuilding myself :S
<linarcx>
Gyus, if i use nix-shell to initiate a project with some dependencies, and after that call: `nix-collect-garbage`, those dependencies will be delete or not?
thePirateKing has quit [Remote host closed the connection]
<pereira_alex>
symphorien: yes, the dbus itself is working ... it just has the generic methods, missing the ones for my keyboard and mouse
mounty has quit [Ping timeout: 268 seconds]
<pereira_alex>
i get no error or anything, this is so weird
<pereira_alex>
but checking in gentoo, i have specific dbus methods for my devices, and on nixos i just have the generic ones, like if the devices weren't detected
<symphorien>
maybe the package looks for device information in an FHS path like /usr/share ?
<pereira_alex>
this makes that, individually, they work properly, but then they don't "talk with each other" , and that is crucial
<pereira_alex>
symphorien: i am thinking the same .... maybe some /usr/lib or /usr/share missing
o1lo01ol1o has quit [Remote host closed the connection]
<symphorien>
the newly built package is in ./result
<ggpeti>
submit PR
Irenes has joined #nixos
<symphorien>
to test your whole system with your version of nixpkgs, first determine your current version of nixpkgs with nixos-version, checkout this revision, edit, and then nixos-rebuild -I nixpkgs=/path/to/clone test
<pereira_alex>
cloning !!
<pereira_alex>
its gonna take a while
mnoronha_ has quit [Ping timeout: 255 seconds]
<symphorien>
yes the repo is not small
<pereira_alex>
symphorien: is that gonna be user package , or system declarative package ? i have no issues in having user package until fixed upstream
<{^_^}>
[nixpkgs] @xeji pushed commit from @xrelkd to master « marisa: 0.2.4 -> 0.2.5 (#59486) »: https://git.io/fjmXV
<symphorien>
with nix-build, it is neither
<symphorien>
you just get the binaries in ./result
<pereira_alex>
oh
<pereira_alex>
i will have to add a local "channel" ?
<symphorien>
to install it in a user profile, run nix-env -i ./result
<symphorien>
but this does not work for "system-wide things" like udev rules
<pereira_alex>
symphorien: yes, can you please do a pr ? you know what you are doing, and i dont :)
<pereira_alex>
symphorien: i don't think that is an issue, the udev rules are ok, its the lib folder that is badly configured and looking for it in the wrong place
<pereira_alex>
i think it will do
kleisli has joined #nixos
<symphorien>
well given that 1/ you are the only one who can test this 2/ testing is not more complicated than doing a PR I think you could give it a try :)
<symphorien>
<pereira_alex> symphorien: i don't think that is an issue, the udev rules are ok, its the lib folder that is badly configured and looking for it in the wrong place << if only the binaries are at fault, then testing as ./result/bin/foo should be enough
<pereira_alex>
symphorien: ok , will do ... it will just take a while cloning the repo !
Iyra has joined #nixos
<pereira_alex>
really, thanks ! i was getting dishearted on this issue
<infinisil>
Iyra: If you need it to be registered in xkb itself, then something like that is probably the best way. There's also #47764, but it's not ready to merge
xkapastel has quit [Quit: Connection closed for inactivity]
johnw_ has joined #nixos
growpotkin has joined #nixos
<growpotkin>
Hey does anybody know how to "evaluate" a mkMerge in `nix repl` ?
<growpotkin>
`mkMerge` just produces an unevaluated structure for me, like a thunk I suppose.
<infinisil>
growpotkin: You'll need to call the types merge attribute
<pereira_alex>
symphorien: building ... i edited the file by hand, nix edit -f . roccat-tools said it missed arguments
<growpotkin>
infinisil: oh is that a function? would you mind giving a contextual example (if it's short, I don't expect you to drop everything to give me a tutorial haha)
<infinisil>
> (types.listOf types.int).merge null [{ value = [ 10 ]; } { value = [ 20 ]; }]
<{^_^}>
[ <CODE> <CODE> ]
<infinisil>
> :p (types.listOf types.int).merge null [{ value = [ 10 ]; } { value = [ 20 ]; }]
<{^_^}>
[ 10 20 ]
johnw has quit [Ping timeout: 268 seconds]
<growpotkin>
ty
<infinisil>
(You might have to change the null there to something more meaningful if you get a weird error)
<growpotkin>
Oh and does anybody know how to get it to evaluate strictly when it prints? `[ { ... } { ... } ]` drives me crazy lol
mnoronha_ has joined #nixos
<infinisil>
Add :p at the beginning :)
<growpotkin>
you're my hero infinisil
<growpotkin>
infinisil++
<{^_^}>
infinisil's karma got increased to 85
<pereira_alex>
ohh this was unexpected: i build the package with normal user and it went into /nix/store ... users can write in /nix/store ? isnt that dangerous ?
<Iyra>
infinisil, thanks!
<simpson>
pereira_alex: Normal users can build packages, but they do so via the Nix daemon, which acts as a deputy guarding the
<simpson>
*guarding the Nix store.
<Irenes>
pereira_alex: it's safe-ish because there's nothing privileged about /nix/store... the system config only loads things by their exact hash
<Irenes>
which includes the version and options
<Irenes>
the user can't fake the hash (unless there's some deep bug violating hermetic builds)
Anton-Latukha has quit [Quit: Leaving.]
<pereira_alex>
something is fishy : now its looking for "${out}/lib/roccat"
<symphorien>
> "a string ${placeholder "out"} end"
<{^_^}>
"a string /1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 end"
o1lo01ol1o has joined #nixos
<pereira_alex>
ok , thanks guys :) working !
<pereira_alex>
will do the PR with the two changes
<symphorien>
thanks!
<pereira_alex>
symphorien: can you guide me a little as to how make this "system default" and also remove all my other roccat-tools ?
<pereira_alex>
so it seems my nixos-version is Koi
<symphorien>
nix-collect-garbage will remove the spurious roccat-tools
fendor has quit [Ping timeout: 268 seconds]
<symphorien>
to install your fixed version: the not-so-clean but easy solution is nix-env -i ./result
o1lo01ol1o has quit [Remote host closed the connection]
<symphorien>
when the patch reaches your channel (by default, this will only happen to nixos-unstable, not 19.03) you can remove the manual package with nix-env -e.
<pereira_alex>
yep, nix-env worked
<mnoronha_>
Any likely reasons why my computer might periodically (but not always) become unreachable on my network? I didn't encounter this before installing nixos
o1lo01ol1o has joined #nixos
<pereira_alex>
symphorien: is there a "rolling release" nixos ? unstable ?
marusich has quit [Remote host closed the connection]
<pereira_alex>
is it unstable ?
<symphorien>
it is a rolling release, and it is not so unstable
Ariakenom has quit [Quit: Leaving]
<symphorien>
some package might not build for a week, sometimes
<symphorien>
and update are (unintuitively) less frequent
<pereira_alex>
yeah , i notice 19.03 is earlier and has some newer versions than unstable
<symphorien>
but apart from that is works well
<MichaelRaskin>
It is realistic to run from a master branch checkout even…
<MichaelRaskin>
Rollbacks and version mix-and-match help.
<pereira_alex>
so, do you guys just use unstable ?
<adisbladis>
pereira_alex: Presumably master has those new versions and unstable is lagging behind
<adisbladis>
pereira_alex: Personally I use a git checkout and run from master. I would not recommend this without a fair bit of experience.
<pereira_alex>
but does master has "binaries" ? or it will be like a gentoo , compiling from source ?
<adisbladis>
pereira_alex: You have more cache misses off master
<adisbladis>
So you end up building more, though nowhere near a gentoo system
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<MichaelRaskin>
I use master branch
<adisbladis>
(except nix requires you to rebuild packages under more circumstanses than gentoo, so what I just said is not _entirely_ true)
<MichaelRaskin>
Most of the time I get most of the stuff form binary cache
<symphorien>
pereira_alex: the channels test that essential things like grub and so on still work, contrary to master
<emilsp>
so, erm, how long does gcc take to get built on a fairly recent intel laptop grade quad core? I think it's a 35w or a 28w part.
<symphorien>
this is the reason for the lag, but is a nice guarantee
<mnoronha_>
Maybe this is some sort of power-saving setting? It's never unreachable/disconnected when being physically used
<infinisil>
I think nixos-unstable + adding the packages you want from master manually is the best combination
<infinisil>
Fortunately Nix makes this very easy
<pereira_alex>
ok , i think i will finish building up my system, if everything ok the go to unstable ... not even 12h on nixos, no need for such edginess
<adisbladis>
pereira_alex: Also you can mix & match a bit and run most of your system off stable
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<pereira_alex>
guys , thanks alot for all the help... if possible, just another little help , and at least I can work in nixos: I need wine for an app for work. dunno why, but even if I set WINEARCH=win64, its always a win32 instalation
random_yanek has quit [Quit: random_yanek]
<pereira_alex>
infinisil: i might do that, i have 17 years of gentoo :) as longs as I don't have to compile chromium llvm webkits , its all ok !
<MichaelRaskin>
Did you pereira_alex: maybe wineWowPackages.stable?
<Melkor333>
I would like to do `imports = [ ./hardware/${networking.hostName}.nix ];` but I only get the error `error: path './hardware/' has a trailing slash`. Is there a way to have a variable in a path?
<MichaelRaskin>
I think you can do (./hardware + "/" + networking.hostName + ".nix")
<arianvp>
tilpner: I have many scripts that rely on `nix-shell -p` working in production and those don't work now
linarcx has joined #nixos
<pereira_alex>
MichaelRaskin: i saw that, and though wow ... nixos has a special wine version for playing world of warcraft ! :)
<arianvp>
I need to roll back to 18.09 I guess. this being broken is quite a dealbreaker :(
<arianvp>
at least that's easy with NixOS :D
<arianvp>
but I think we should do a hotfix release for this. IMO
<emilsp>
infinisil: nope, just 2.31.1. I guess I'll rebuild all the things :/
alexozer has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @veprbl pushed to revert-59000-gettext-security-update-18.09 « Revert "gettext: apply patch for CVE 2018-18751 (backport 18.09)" »: https://git.io/fjm10
<tilpner>
arianvp: You could just try Nix master (what could go wrong!)
<infinisil>
emilsp: Is the PR that updated it merged?
<arianvp>
I'll poke people if we can get a nix 2.2.2 release and get that on the 19.03 channel
<infinisil>
tilpner: bootloader *could* go wrong!
<pereira_alex>
MichaelRaskin: sorry for what must be lame question, but why this doesn't work ? : nix-env -i nixos-unstable.wineWowPackages.staging
<adisbladis>
arianvp: I'm also seeing that (master, nix 2.2)
<emilsp>
How would I go about creating an overlay that replaces the nixos binnutils with a binutils that I've built myself? would it just be a regular overlay that imports my deriviation of bintuils and does the self.binutils = binutils?
<arianvp>
i guess there will be more people running into this regression during migration :P
<MichaelRaskin>
pereira_alex: -iA
<emilsp>
infinisil: the PR for binutils? No clue, but afaik, 2.31.1 is the latest thing on 19.03
<{^_^}>
[nixpkgs] @veprbl opened pull request #59525 → Revert "gettext: apply patch for CVE 2018-18751 (backport 18.09)" → https://git.io/fjm1z
<MichaelRaskin>
-i without -A is a mess, in my opinion
<tilpner>
infinisil: Well, production is broken either way, it can only get better from here! /s
wolfman154 has joined #nixos
<pereira_alex>
MichaelRaskin: thanks ! being a newbie on something sucks !
johnw_ is now known as johnw
<adisbladis>
arianvp: Go ahead an reopen imho
<adisbladis>
That bug alone should warrant a new nix release
<arianvp>
I can't I don't have permissions to reopen :P
fenedor has quit [Read error: Connection reset by peer]
ixxie has quit [Ping timeout: 240 seconds]
<tilpner>
arianvp is already asking for re-opening and a release in that sisue
<infinisil>
arianvp: You could also just override your nix with the (revert-)fix
<Melkor333>
Another question: Is it possible to create a module which changes NixOs default options? bad example: the module changes the option "boot.devSize" to 10% (default is 5%), but I can still specify a custom "boot.devSize" in my configuration without having to disable the module?
<adisbladis>
For some reason my brain registered that the issue was in nixpkgs, not in nix
<adisbladis>
Time to sleep methinks
<adisbladis>
\o
<arianvp>
infinisil: I instead forced nix back to 2.1
<arianvp>
because I dont have the patience to rebuild it :P
<infinisil>
Ah or that :)
ixxie has joined #nixos
<infinisil>
Glad this stuff is possible with nix
<arianvp>
yes. jeesh I get nightmares from my last ubuntu 14.04 - 16.04 migration still
<arianvp>
and here I am "meh i'll just rollback just this component"
<arianvp>
and it just works
<aanderse>
arianvp: i had to upgrade a debian 7 box running an ancient gitlab version to debian 9 with most recent gitlab friday night... i feel your pain ;-)
<pereira_alex>
Melkor333: don't go by me, but i think you can use: pkgs.lib.mkOverride before the new setting
<pereira_alex>
Melkor333: maybe lib.mkOverride
Neo-- has quit [Ping timeout: 250 seconds]
<arianvp>
ohwell. off to be.d
<arianvp>
hope we can get this fixed this week. but I expect we can
<arianvp>
=)
<Melkor333>
pereira_alex: Thank you, will check that lateron :)
<arianvp>
thanks for the help
<pereira_alex>
MichaelRaskin: thanks , wine wow worked !
<Melkor333>
infinisil: for the first question: I now get "The error "Module `/etc/nixos/configuration.nix' has an unsupported attribute `boot'. This is caused by assignments to the top-level attributes `config' or `options'." IF I have the "config = lib.mkIf...." in my configuration.nix.
AleXoundOS_ has joined #nixos
<Melkor333>
If I have in another file which I import, I get: "The option `config' defined in `/etc/nixos/default-config.nix' does not exist."
tboston_ has joined #nixos
winem__ has quit [Ping timeout: 250 seconds]
<colemickens>
mnoronha_: I guess after thinking about it, yeah.
linarcx has quit [Quit: WeeChat 2.4]
<colemickens>
But I think home-manager can do things like run certain things as user systemd services, etc.
<{^_^}>
#59529 (by josephsdavid, 23 seconds ago, open): Nvidia driver fails to build on linux kernels greater than 4.19
<colemickens>
Things like that, are where I'd start to worry about overall diverging too much on setup between NixOS and non-NixOS machines.
<mnoronha_>
Yep, I'm gonna stick with my current dotfile management, since the majority of systems I use aren't running NixOs
<thePirateKing>
mnoronha_, you could look into home-manager if you havent
<thePirateKing>
how i manage about half of my dotfiles
<thePirateKing>
like configuration for vim etc
<mnoronha_>
thePirateKing: Yep, that's what I was just looking at/discussing. Just to make sure i'm understanding, I'd end up encoding like my vim config in nix files if I used it, right?
stepcut has quit [Read error: Connection reset by peer]
m0rphism has quit [Ping timeout: 246 seconds]
slack1256 has quit [Remote host closed the connection]
<mabel>
question: how is it that I can do environment.etc."foo".enable = true; without "foo" ever being explicitly declared in etc?
slack1256 has joined #nixos
<mabel>
if I try to do etc = {} in nix repl, then etc."abc".enable = true; it does not parse
<gchristensen>
> { foo.bar.baz = "hi"; }
<{^_^}>
{ foo = <CODE>; }
<gchristensen>
> :P { foo.bar.baz = "hi"; }
<{^_^}>
Unknown command: P
<gchristensen>
> :p { foo.bar.baz = "hi"; }
<{^_^}>
{ foo = { bar = { baz = "hi"; }; }; }
<gchristensen>
mabel: ^ :)
<mabel>
<pikachu saying "oh!">.jpg
<gchristensen>
=)
stepcut_ has quit [Remote host closed the connection]
savolla has joined #nixos
sigmundv has joined #nixos
<emilsp>
is there a way I can get the log of a build that failed ? The last 10 lines aren't always necessarily helpful.
burne251 has joined #nixos
<mnoronha_>
`sudo vim` doesn't source my vim config, while `vim` doesn't just fine. Is this because `sudo vim` relies on whatever config is defined/implicit for the root account?
<gchristensen>
emilsp: which build?
<emilsp>
nix build -f . $package
<gchristensen>
nix-build . -A $package
<AleXoundOS_>
Hi. I try to accomplish one thing for a long time without much success. Please, help me.
<AleXoundOS_>
I try to copy binary cache from cache.nixos.org for the whole 19.03 channel in order to serve it in LAN without internet. For x86_64 cache I use the following command:
<thePirateKing>
mnoronha_, is your vim config a .vimrc or in a .nix file? With home-manager/user defined vim sudo vim follows the rules
<mnoronha_>
thePirateKing: just a `vimrc` :P
<burne251>
Not personally a nixos user but use linux as my daily driver, trying to help a friend get NixOS set up on his laptop. Get it most of the way set up, however upon login on sddm, keyboard and mouse no longer seem to work. Oddly enough, had it working earlier, but had to reinstall due to a non NixOS related issue. It works on the live iso image, anyone by chance have an idea? I scanned google pretty well but couldn't figure it
__monty__ has quit [Quit: leaving]
<thePirateKing>
burne251, does he have services.xserver.libinput.enable = true; in configuration.nix?
<thePirateKing>
that could be it
sigmundv__ has joined #nixos
<burne251>
Yes, also tried swapping it out for synaptics to no avail :/
<AleXoundOS_>
burne251, I would check Xorg logs for warnings and other info