<ekleog>
Anyone here using nextcloud? Trying to use the Talk android app or the nextcloud-client nixos package with my instance leads to an endlessly-looping “please wait” on the “connect” button -- also seeing that, or is it just me?
<ekleog>
(on my nixos-based install of nextcloud)
Pwnna has joined #nixos
psy3497 has joined #nixos
<Pwnna>
What's the diference between using python.withPackages over just straight up specifying python37Packages.numpy in buildInputs?
kleisli_ has quit [Ping timeout: 265 seconds]
<Pwnna>
and I don't quite understand propagatedBuildInputs in this context
<Pwnna>
are propagatedBuildInputs run time dependencies because nix cannot autodiscover runtime dependencies in python projects?
captjakk has quit [Remote host closed the connection]
<nix-build>
[nixpkgs] @Ekleog pushed commit from @BBBSnowball to release-20.03 « nixos/nextcloud: avoid loading imagick extension more than once »: https://git.io/Jv5AC
pbogdan has quit [Ping timeout: 264 seconds]
<ottidmes>
Pwnna: I think the difference between the two is withPackages makes them available as libraries, and directly it only makes the outputs available, i.e. its binaries.
<Pwnna>
so something like numpy doesn't really have binaries (afaik)
<Pwnna>
so it's functionally equivalent then?
h0m1 has quit [Ping timeout: 272 seconds]
<Pwnna>
I'm currently just working with nix-shell for now, but looking to build a "binary" for my project later.
<Pwnna>
also i noticed that withPackages can return something that has a .env?
<ottidmes>
No, AFAIK, numpy with only work the way you expect if you do not use it directly with buildInputs (the general one)
h0m1 has joined #nixos
<nix-build>
[nixpkgs] @OmnipotentEntity opened pull request #83909 → Per RFC45, remove all unquoted URLs → https://git.io/Jv5Ar
<Pwnna>
wait i'm not fully sure i understand what you mean
<Pwnna>
Right now I have python37Full python37Packages.numpy in my buildInputs in a shell.nix
<OmnipotentEntity>
I just dropped a huge PR, if you are free, I would appreciate any help reviewing this.
<ottidmes>
You have to use it with python.withPackages, or pythonPackages.buildPythonPackage, or any of those builders
<gchristensen>
that's a hockin' PR
<Pwnna>
wait what do you mean builder? Does withPackages return a derivation?
<OmnipotentEntity>
Pwnna, python.withPackages returns a custom version of python with the packages in its path
<ottidmes>
Pwnna: Yep, otherwise you could not use it in buildInputs
<Pwnna>
oh i thought buildInputs is a list....
<Pwnna>
looks like I gotta go back to the manual/nix pills..
<OmnipotentEntity>
buildInputs is a list
<OmnipotentEntity>
It's a list of packages.
<OmnipotentEntity>
you put python.withPackages into buildInputs
<Pwnna>
so why can I set buildInputs to python.withPackages if withPackages returns a derivation?
<nix-build>
[nixpkgs] @veprbl pushed commit from @Th0rgal to master « maintainers: Add Th0rgal (#83899) »: https://git.io/Jv5AM
<Pwnna>
ok you gotta give me a minute. still struggling to read the syntax a bit
<ottidmes>
lol, it takes forever to even open the page to your PR XD
<OmnipotentEntity>
It's a chonker
<Pwnna>
ok so what's the differnce between what you just showed me, which has jupyter (...withPackages .. [...numpy...]) and just "jupyter python37Packages.numpy"
<Pwnna>
if that made sense
<Pwnna>
That's what I have right now actually in my shell.nix
<Pwnna>
I guess you would need "jupyter python37Full python37Packages.numpy". but same idea?
<Pwnna>
clearly i'm wrong somehow i just don't get how lol
<OmnipotentEntity>
No, because python won't be able to see numpy
<OmnipotentEntity>
you can try it if you like.
<Pwnna>
but in my nix shell it works
<Pwnna>
python -c "import numpy" works
<Pwnna>
<module 'numpy' from '/nix/store/v6rdicqjk67y15s7pskn0clm4wy87asb-python3.7-numpy-1.18.1/lib/python3.7/site-packages/numpy/__init__.py'>
<OmnipotentEntity>
oh? Maybe I am mistaken in that case. I was under the impression that it wouldn't work without the withPackages stuff.
<Pwnna>
yeah i read something on the internet like that
<Pwnna>
maybe if i do a nix-build it doesn't work?
<Pwnna>
but i haven't figured out how to do that yet
<Pwnna>
but in a nix shell it definitely seems to work...
<OmnipotentEntity>
perhaps. There are shell-hooks setup when you use nix-shell that may not be setup properly when using nix-build
<Pwnna>
possibly. i'm using direnv with zsh
<Pwnna>
no shell hooks in my shell.nix file
captjakk has joined #nixos
<OmnipotentEntity>
shell hooks can be set up by the derivation as well iirc.
<Pwnna>
i guess i should probably also use callPackage there
<nix-build>
[nixos-homepage] @garbas pushed 3 commits to governance: https://git.io/Jv5AN
<nix-build>
[nixpkgs] @bcdarwin opened pull request #83910 → python3Packages.graspy: init at 0.2 → https://git.io/Jv5Ap
<Pwnna>
so is it a binary choice between withPackages and buildPythonApplication or do I use them both together somehow
<Pwnna>
I'm trying to get to a point where I can produce an "executable" similar to how python setup.py install can install an "executable"
<Pwnna>
by "executable" i mean whatever setuptools generate to create a custom command in $PATH that imports the right package and calls the function you tell it to call?
<OmnipotentEntity>
unfortunately, I am somewhat out of my depth
<ottidmes>
Pwnna: symlinks things together, its how environment.systemPackages is implemented too
teto has quit [Ping timeout: 252 seconds]
<Pwnna>
when do I use it?
<Pwnna>
again I haven't used it at all for my setup for now, but it seems like people use it all the time and I'm somehow doing this wrong?
<ottidmes>
it's actually rarely needed, for nix-shell usage, you often want mkShell instead
<Pwnna>
yeah that's what I'm doing
<ottidmes>
when you do need it, is when you need to have the need to put things together in the same directory structure and want to be able to dictate priorities
lord| has quit [Read error: Connection reset by peer]
<Pwnna>
ok so i'm going to assume since idk why i would need that that i don't need to learn it for now
lord| has joined #nixos
<Pwnna>
(python36.withPackages (ps: [ps.numpy ps.requests])).env I see the .env again in the manual and I don't get it hmm
nuncanada has quit [Read error: Connection reset by peer]
<Pwnna>
is it a good idea to pin a sha from nixpkgs if i'm using unstable
<Pwnna>
how often are breakages?
<Pwnna>
I assume somewhat often?
<psiperator[m]>
So i have a problem with using the vagrant-sshfs plugin on a nixos system. The plugin uses hardcoded paths to find a binary called sftp-server which on a nix system is inside the ssh packages libexec directory. libexec isnt (at least by default) linked into the current-system. I got it working temporarily by hand modifying the ruby gem to point to the /nix/store/<hash>/libexec but if theres a better way to do this that I
<psiperator[m]>
could either commit to nixpkgs or to the ruby gem i'm all ears
<ottidmes>
Good idea to pin? It helps with reproducibility, so yeah, you should probably do so. How often are breakages? I think somewhat often is fair to say, but this is for unstable as a whole, in my experience breakage of packages I happened to be using has been rare
<nix-build>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jv5pe
<Pwnna>
well maybe i should pin it in a comment or something
<Pwnna>
because i don't want to just be horribly out of date
<Pwnna>
or is there a way to pin to a nixos release
<Pwnna>
without actually being on nixos
<ottidmes>
not sure I follow, but nix-channel is part of Nix not NixOS, so you can use it whether you use NixOS or not, and there is also niv if you want to pin more easily
captjakk has joined #nixos
reallymemorable has joined #nixos
captjakk has quit [Ping timeout: 264 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
captjakk has joined #nixos
jumper149 has quit [Quit: WeeChat 2.7.1]
<OmnipotentEntity>
Pwnna, I was pinned to a particular revision because I needed a very specific set of package versions, and only a handful of sha hashes were available to do that.
<OmnipotentEntity>
If you don't need very specific package versions, I wouldn't bother with the effort.
<Pwnna>
yeah
<Pwnna>
i'm also wondering what's the probability that i come back in 2 month / 2 years and things breaks
<OmnipotentEntity>
well, it's just as hard then to do it as it is now. So I'd put it off personally
<OmnipotentEntity>
on the flip side if you do pin, you won't get good updates either.
reallymemorable has quit [Quit: reallymemorable]
sasycto has joined #nixos
<Pwnna>
yea
<sasycto>
I'm trying to use a java application on a relatively new install of nixos, and it seems like it's trying to create a save dialog, which is depending on a gsettings schema from gnome, but none are provided on my system (as I use i3). Is there an established way to expose a default gsettings schema to particular applications?
reallymemorable has joined #nixos
reallymemorable has quit [Client Quit]
<evils>
sasycto: i think the approach is to fix the package... for a quick fix, try running it from a `nix-shell -p gsettings-desktop-schemas`?
<Pwnna>
is there a way to package a python application along side some shell scripts and executable compiled via another language?
<sasycto>
I'm still not used to nix-shell, and I haven't finished reading the nix manual yet.
<energizer>
ldlework: systemmctl?
<sasycto>
Huh, that didn't end up working evils
ottidmes has quit [Ping timeout: 256 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
<sasycto>
I'm getting the same error, that it can't find the 'user-home-symbolic-ltr' icon, or the 'hicolor' theme.
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
felixfoertsch23 is now known as felixfoertsch
<sasycto>
I also tried having hicolor-icon-theme as one of the packages in the nix-shell, but that didn't fix it either, I suspect that those packages are not being made available to the JVM correctly.
<colemickens>
Does propagatedBuiltInputs work for binaries like, for example, making ffmpeg available to home-assistant package?
<evils>
sasycto: (un)fortunately i'm not familiar with java stuff
<nix-build>
[nixpkgs] @matthewbauer merged pull request #83891 → retroarch/cores.nix: use correct platform for darwin → https://git.io/Jv5yr
<nix-build>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jv5ho
<nix-build>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jv5hX
<colemickens>
I tried adding it to the systemd unit's path in the module, but I couldn't get it to work.
<Pwnna>
gchristensen: what do you mean?
<gchristensen>
this isn't parsed the way you want: builtins.trace ps: [ps.numpy] "foo"
<gchristensen>
this isn't parsed the way you want: builtins.trace (ps: [ps.numpy]) "foo" is
<Pwnna>
so foo is passed into the ps: [ps.numpy] function?
<Pwnna>
this syntax is still somewhat unfamiliar to me
WinchellsM has joined #nixos
<WinchellsM>
I switched to nixos-19.09 from nixos-18.09 and am getting
<cole-h>
Pwnna: It differentiates between `ps:` and `[ps.numpy]` and `(ps: [ps.numpy])`. Without the parens, you get two unrelated segments. The parens "relates" them.
<WinchellsM>
The option `boot.loader.efi.efibootmgr' defined in ... does not exist
<hyper_ch>
iiieeeks: warning: unable to download 'https://nixos.org/channels/nixos-unstable': HTTP error 302 (curl error: Couldn't resolve host name); retrying in 264 ms
<hyper_ch>
2nd attempt worked :)
<Pwnna>
so ever since I switched over to using python.withPackages I can't seem to import opencv anymore...
<Pwnna>
whereas previously just doing python37Packages.opencv4 works
<nix-build>
[nixpkgs] @cgevans opened pull request #83914 → gwyddion: support darwin → https://git.io/Jv5hA
<pjt_014>
quick question: is 20.03 gonna be released at midnight GMT tonight? Is that how it works?
<cjay->
is there a generic way to make cabal-install find C libraries on NixOS?
<evils>
pjt_014: you mean 4 hours ago?
<pjt_014>
ah.
<pjt_014>
hm.
<pjt_014>
timezones.
WinchellsM has quit [Quit: Lost terminal]
<pjt_014>
hold up it's not on the site yet though
<evils>
oh sry, thought that answered your question, no it doesn't release on the last hour of the month :P
<cole-h>
pjt_014: Nope, it'll be released when it's ready. Could even be up to the 40th of the month.
<sasycto>
Well thanks for the help anyway evils. Since this is time sensitive I guess I'll just have to work on this on another machine, but I can get it figured out in future for later.
<pjt_014>
oooh thats my 2nd fave day of the month
<Pwnna>
hmmm so I'm trying to use override on the opencv4 package in python.withPackages
<Pwnna>
but it doesn't seem to work? import cv2 gives no module found if i have a shell.nix with (nixpkgs.python37.withPackages (ps: [ ps.opencv4.override { enableFfmpeg = true; } ])).env
<cole-h>
You might also need to wrap the opencv4 override in parens
<cole-h>
To be safe, I would just wrap parens around anything related. Remember that, in a list at least, spaces are the separator. If things inside have spaces, it will treat the list like all those items are separate
mexisme has quit [Ping timeout: 246 seconds]
mexisme has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
mexisme has quit [Read error: Connection reset by peer]
raingloom has joined #nixos
mexisme has joined #nixos
Athas has quit [Ping timeout: 265 seconds]
edwtjo has quit [Ping timeout: 265 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
captjakk has quit [Remote host closed the connection]
<nix-build>
[nixpkgs] @offlinehacker opened pull request #83920 → runInLinuxVM, test-driver: disable vmx cpu feature for guest vm → https://git.io/JvdvG
jlv has joined #nixos
<jlv>
Where would I set a udev property?
<evils>
jlv: i think in services.udev in configuration.nix or a module
<pjt_014>
one other question: If I have a 'patchShebangs .' in a nix file, is that going to cover everything? Is there anything that'd be missed?
<pjt_014>
like build time deps or something?
<srhb>
pjt_014: It covers all your inputs as long as they're regular shebangs. It's usually only necessary if you need those shebangs during the build.
<pjt_014>
hey Emantor: do I need to do anything special to have a build input show up in the $PATH? I got a bug I'm working on and I've (probably) narrowed the problem down to that
<Emantor>
s1341: this could very well be because your maintainer entry is not present.
linarcx has quit [Quit: WeeChat 2.8]
<s1341>
Emantor: ok. My maintainer entry is in a different PR which has not yet been merged.$... should I add it to this PR too?
linarcx has joined #nixos
<Emantor>
s1341: attribute 's1341' missing, at /home/phoenix/.cache/nixpkgs-review/pr-83856/nixpkgs/pkgs/shells/zsh/zplug/default.nix:28:21. Yes add it, and modify the other one if it gets merged.
<nix-build>
[nixpkgs] @jluttine opened pull request #83932 → kdenlive: set run-time dep paths (fix #83885) → https://git.io/JvdUO
<s1341>
Emantor: ok... let me do that.
<cole-h>
Bot also looks like it's struggling again (see all the other PRs with red x marks that should probably be fine)
FRidh has quit [Ping timeout: 256 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has joined #nixos
mexisme has quit [Read error: Connection reset by peer]
leonardp has quit [Ping timeout: 240 seconds]
mexisme has joined #nixos
choward has quit [Quit: Ping timeout (120 seconds)]
Mrmaxmeier has quit [Quit: Ping timeout (120 seconds)]
<jluttine>
is it possible to browse nixos options somehow? there's the web page for searching the options, but i'd like to browse them as they form a tree like structure
thc202 has quit [Remote host closed the connection]
<jluttine>
is anyone using emacs+magit for nixpkgs? it takes about 5-10s to open the magit window/buffer.. i wonder if it's possible to improve that somehow
<pjt_014>
An editor that does lazy evaluation would help too
<etu>
And then have your actually stored copy as remote so you can push to your ssd :p
<etu>
I've have had worse ideas
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<adisbladis>
My completely unscientific subjective test: Maybe there was a slight improvement?
Ariakenom has joined #nixos
* sevanspowell
I'm having this issue using "callCabal2nix" in 20.03. Can anyone explain to me why, in this gist: https://gist.github.com/sevanspowell/baa3f2cbb973adf21904d2eb5a0578fa, running "make working" works and "make broken" doesn't? I haven't been able to identify any changes myself.
* sevanspowell
Sorry, posted as an action...
<sevanspowell>
Ugh, muscle memory
<ottidmes>
alexarice[m]: Thanks, but the problem apparently was that I had to make sure to use the exact same main type, I used attrsOf, but it should have been loaOf, now its working
<alexarice[m]>
ottidmes: ah that makes sense
<alexarice[m]>
I thought loaOf was deprecated
<ottidmes>
it is, hence I did not use it at first ;) for now they keep it there but let it generate a warning if used in a way that cannot be later replaced by attrsOf
<alexarice[m]>
Maybe file a bug? pretty sure it should have been removed and changed to attrsOf
leonardp has quit [Remote host closed the connection]
<ottidmes>
alexarice[m]: no, its intended, you do not want peoples code to break on upgrade without any warning, its deprecated, as in, it should not be used for new stuff, but the old stuff keeps it around a while, so that it can produce warnings and time for people to move away to the new approach
<ottidmes>
Probably something I am overseeing, but I now get: "The option `users.users.dehydrated.dirs' defined in `/cfg/shared/modules/files.nix' does not exist." yet I am not setting dirs anywhere, except indirectly through the default = {}; but how can it then not exist (would the option then not exist as well)
<ottidmes>
tilpner: I was setting the options as config... should have wrapped them in an options = { }, after seeing your code
captjakk has joined #nixos
<kenran>
in my `mkShell` call for a Haskell application, I set an environment variable to the store path of another self-written nix expression (which creates a .ini file). This is the nix expr I use `nix-build` on https://pastebin.com/2nAfAhKW. Can I add my ini-file.nix "in there" somehow to make that part of the final derivation?
<kenran>
I know this is vague, I'm still trying to understand the concepts. My goal would be to have a binary that somehow contains all the information necessary to run it "on its own", and that includes this ini file and a special environment variable.
o1lo01ol1o has joined #nixos
coco has joined #nixos
<kenran>
I don't know if that's possible. I know it's possible with what you showed me yesterday (systemd service), but in reality the ini and environment variable "belong" to the derivation I create, and not to the systemd service imho.
<ottidmes>
tilpner: what is that for? although I guess it is similar to my realUsers :P
<tilpner>
ottidmes: It's so I don't have to litter my reusable config files with "tilpner"
kleisli__ has quit [Remote host closed the connection]
<tilpner>
A means of indirection when talking about the human user
kleisli__ has joined #nixos
<adisbladis>
kenran: Either create a wrapper derivation or wrap the binary inside your "main derivation" using wrapProgram
captjakk has quit [Ping timeout: 258 seconds]
Twey has quit [Ping timeout: 256 seconds]
pjt_014 has quit [Ping timeout: 264 seconds]
<ottidmes>
tilpner: ah for that I have the admin option (your primary I guess)
yourfate has quit [Remote host closed the connection]
cartwright has quit [Ping timeout: 240 seconds]
yourfate has joined #nixos
<tilpner>
I disagree with the assumption that all human users must be admins, but my name primary is bad too, it's hard to name
<ottidmes>
tilpner: I disagree with the assumption it was meant for all human users :P its truly meant to specify the admin
<ottidmes>
tilpner: but now I am going to add a primary :P cause thinking about it, I do hard code that, although most of the time it just defaults to the admin
rauno has quit [Remote host closed the connection]
roosemberth has joined #nixos
FRidh2 has joined #nixos
FRidh has quit [Ping timeout: 264 seconds]
<xfix>
i'm not sure why systemd changes kernel.sysrq, but at least you can change it if necessary
<tilpner>
But I would have to read the changelog for that! /s
<srk>
I've set it to 1 recently to be able to trigger OOM, managed to kill my session few days ago :D
noudle has quit []
<tilpner>
srk: If you want to prohibit "control of console logging level", "debugging dumps of processes etc.", "nicing of all RT tasks", set it to 244
<tilpner>
Not like that makes much of a difference
<tilpner>
Yeah, that's why I wondered where the manpage was
chloekek has joined #nixos
<tilpner>
But if we just assume everyone has a kernel checkout, we don't have to worry about that
<ottidmes>
why would I need? enable control of keyboard (SAK, unraw), I mean it seems important to have control of your keyboard, but never lost that
<tilpner>
I'm not quite sure when unraw is necessary, but it's supposedly taking away control of the keyboard from X
salumu is now known as sMuNiX
<tilpner>
It might be fine not to whitelist it, but unlike the other categories it doesn't seem that abusable
<ottidmes>
Haha, just found out I had boot.kernel.sysctl."kernel.sysrq" = 0; in my default configuration used everywhere XD, must have been in environments (like stage1 initrd) where that was not yet set when I used sysrq last
knupfer has quit [Remote host closed the connection]
<hyper_ch>
that didn't use to work in the past. You had to use legacy mount and set it in the hardware configuration if you altered it later on
<tilpner>
I still don't understand when zfs-mount-generator is ran
<tilpner>
It exists in ${zfs}/lib/systemd/system-generator/zfs-mount-generator
<tilpner>
And it's possible systemd magically picks that up
<tilpner>
Which would explain why it's never mentioned in nixpkgs
<hyper_ch>
but if zfs autmount now is working, I can just do zfs create -o mountpoint=/VMs/newVM tank/encZFS/VMs/newVM and it will be also automounted
<tilpner>
But the other explanation is "it needs setup, and nobody did it", which would mean this is an unsafe setup and should not be recommended
<tilpner>
I'm not saying either is right, because I don't have that information yet
<tilpner>
hyper_ch: Yes, I can see that. But "it's working" is not good enough
bvdw has quit [Read error: Connection reset by peer]
<tilpner>
(Depending on what you do with that conclusion, at least)
<hyper_ch>
it means I can alter a few things for my setups :)
bvdw has joined #nixos
<aranea>
I've got a module defining an option "options.foo.type = types.attrsOf (types.submodule sub)", and another module setting "config.foo.bar = {}", but nixos-rebuild fails with "the option foo.bar [..] does not exist". What am I missing?
<tilpner>
hyper_ch: Can you show me the result of systemctl list-units --type mount?
kleisli__ has quit [Remote host closed the connection]
<aranea>
("config.foo = {}" doesn't fail, so nix is seeing the definition of the option)
kleisli__ has joined #nixos
<qy[m]>
<tilpner "Can it be installed independentl"> I think so. The daemon would have to be set up through nix, of course
mhe has joined #nixos
<infinisil>
aranea: You probably need to query nixos-option for "foo.<name>" or so
mexisme has joined #nixos
<infinisil>
aranea: Because foo.bar isn't an option, it's just a value of an option
<aranea>
Indeed. But the type checker won't let me assign anything to it.
<ottidmes>
aranea: are you sure in sub foo is defined as part of options and is defined with mkOption (I just now made the mistake of forgetting to wrap my options with options in my submodule)
<mhe>
Hi guys, I was able to add the nix package manager to a minimal arch linux install and I added gdm, gnome, gnome-desktop but there is no such thing as a gdm.service
<mhe>
I want to use nix on my LFS install and first I am testing on arch to know what I need to compile before adding nix
<aranea>
ottidmes: Ohhh, I was missing the outer "options = { ... }" part of the submodule definition. Let's see if that fixes things.
<qyliss>
mhe: the best thing to do is try compiling Nix and see what it complains is missing
<ottidmes>
infinisil: got two questions for you, I saw post some code that created a safe derivation name recently, I have written my own, but wanted to compare, you still have that around somewhere, it's hard to google
<hyper_ch>
tilpner: anything else you need to see before I destroy the vm?
<mhe>
that is a good idea but do I need a nix config to start daemons like gdm?
<aranea>
nope, that's apparently not the only problem.
mexisme has quit [Ping timeout: 272 seconds]
<tilpner>
hyper_ch: This is the simplest setup possible
<mhe>
I mean the systemctl enable command does not know of gdm.service even though I installed it with nix
<qyliss>
mhe: Nix doesn't install or manage services
<tilpner>
hyper_ch: If you want any confidence, you should try adding more datasets, and make sure systemd services depend on the data contained
<tilpner>
hyper_ch: Right now, I'm still convinced this is as dangerous as it always was
<mhe>
then how do I start gdm, powertop, ...? where to start reading how to use it?
<hyper_ch>
tilpner: made now seperate /home and users00{1..3}
<tilpner>
hyper_ch: Not just home, try /var and make sure there's a service that needs it, which is started at boot
<qyliss>
mhe: You'll need to supply your own systemd unit files. You could also try using the NixOS modules for those services, but that's a very advanced area and not supported.
<nix-build>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvd3n
<qy[m]>
<tilpner "qy: If it needs integration with"> how best to integrate it, though? i'm thinking have a guix-boostrap package that fetches and builds guix, and then hands off to guix to build itself?
<tilpner>
qy[m]: Note that I have not used guix in any way that should be mentioned. I would expect a module to setup /gnu, the daemon, and the user tools
<qy[m]>
yes, just that, naturally guix sets up it's own guix binary, so the one embedded in nix can't be the one that ends up in the profiles, because otherwise guix can't update itself
<ottidmes>
infinisil: guess I rewrite it not to be a function producing a submodule, but by passing that argument as an option
<qy[m]>
perhaps i'll give this a go, though
<tilpner>
qy[m]: Is it a problem that guix can't update itself?
<Yaniel>
does nixpkgs have a special stresstest status with github yet :D
<qy[m]>
<tilpner "qy: Is it a problem that guix ca"> hmm, i would have thought so, since if nix uses an old version of guix but then guix uses a newer version and updates the store, using the old nix version might break things?
<tilpner>
qy[m]: I don't understand. Wouldn't there only be one guix version used on the system? Or are you sharing a store with another version on a dual-installed system?
<qy[m]>
tilpner: guix has it's own store at /gnu/store
<qy[m]>
as well as it's own profiles at /var/guix
<aranea>
hrm, the minimal example I spun up to demonstrate the problem doesn't actually exhibit it. Gonna grab a coffee and then incrementally make it match my actual setup until problems arise.
<qy[m]>
it's essentially a carbon copy of nix with all the key paths renamed
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<pingiun>
does it take some time for github pull requests to become available in the channel?
wfranzini has quit [Client Quit]
<igghibu>
hi all :) trying out nixos on my desktop and I LOVE it. managed to get KDE and all running, and learning as much as I can. still very noob here tho, but I like it a lot! Now, I would like to modifiy /etc/nix/nix.conf to add a substituter and the relative key, but I'm lost. I assume that's done in configuration.nix + rebuild but I cannot find documentaion. could somone oint me in the right direction please?
<tilpner>
igghibu: Set nix.binaryCaches in your configuration.nix and rebuild
<tilpner>
If you want to remove cache.nixos.org, read the description of the option
<igghibu>
@tilpner I would like to add one on top of it
<tilpner>
Then just do nix.binaryCaches = [ "foo" ];
<tilpner>
cache.nixos.org will remain active
<igghibu>
thank you so much!!! ;)
<tilpner>
It gets more complicated if you want to set the priority in which the caches are queried
<igghibu>
one more question about files please? I know nixos is immutable but would like to chage /etc/inputrc -- that would help me understand chaging immutable files. any ointer here please?
<igghibu>
pointer*
<tilpner>
igghibu: You can define files in /etc with environment.etc, but let's check if there's a more proper way
<evils>
pingiun: yes, take a look at status.nixos.org
<igghibu>
tilpner: I tried that but it replaced the file
<igghibu>
I want to substitute two lines only
<tilpner>
igghibu: Yes, unfortunately replacement is what's supposed to happen
<tilpner>
igghibu: Replace \n with a proper newline, and format this over multiple lines
<tilpner>
igghibu: Note that this references an internal path of nixpkgs, which may change at will and break your evaluation
opthomasprime has joined #nixos
<tilpner>
igghibu: Copying that inputrc into your configuration would solve this, but then you no longer get updates for it when nixpkgs updates it
captjakk has quit [Ping timeout: 258 seconds]
<igghibu>
tilpner: I'll give it a try
<igghibu>
tilpner: the binary cache was "installed" correctly but the trusted key is missing. how do I add that too to the configuration.nix? I'm trying to search for docs but I'm still a little lost
opthomasprime has quit [Client Quit]
cosimone has joined #nixos
<tilpner>
igghibu: nix.binaryCachePublicKeys
<igghibu>
thank you sir!
<tilpner>
igghibu: Use this to get a list of all options in your terminal: man configuration.nix
<tilpner>
igghibu: Then you can search with /binaryCache
<igghibu>
tilpner: thank you! nixos is better than pr0n!
ATuin has joined #nixos
teto has joined #nixos
philr has quit [Ping timeout: 264 seconds]
<tilpner>
O.o
<igghibu>
is there a channel preferred pastebin? nix.conf has the additions but I get errors when rebuilding
<nix-build>
[nixpkgs] @ehmry opened pull request #83974 → nixos/syncthing: install desktop menu link to GUI → https://git.io/JvdGW
<igghibu>
tilpner: but I use stable. confused
igghibu has quit [Quit: Konversation terminated!]
<nix-build>
[nixpkgs] @alyssais pushed 2 commits to release-19.09: https://git.io/JvdG8
<srk>
etu: I'm now playing with emacs cause of agda-mode (with evil..)
<ekleog>
bachp: By chance, are you using a self-hosted nextcloud nixos module? (going to try the maintainers one by one) When I'm trying to use the Talk android app or the nextcloud-client nixos package with my instance, I get an endlessly-looping “please wait” on the “connect” button -- do you also see that, or is it just me?
<qy[m]>
srk: may i interest you in #nixos-emacs
<srk>
hehe, sure
<kenran>
adisbladis: sorry for the late answer, I was gone a bit. I'm still having problems understanding, mostly because the derivation I have describes a Haskell package and not some "ordinary binary".
<tilpner>
(I hope it only abort the nix snippet, otherwise there is a problem)
<kenran>
As soon as I have an "ordinary binary" (say, ${my-binary}) I could, AFAIU, `wrapProgram ${my-binary} --set SOME_ENV_VAR=${my-config-expression}`, or similar?
<igghibu>
tilpner: thank you :)
jfroche has joined #nixos
<igghibu>
tilpner: could you pastebin the /etc/inputrc chat lines please? (backlog on konversation is 10 lines only :( )
<ottidmes>
infinisil: yeah, but this time I was experimenting with indirect reuse of submodules, see the files-user.nix file
<infinisil>
I see. I guess a nicer solution would be to define a `root` option in the submodule, then assign that where the submodule is used
aveltras has joined #nixos
waleee-cl has joined #nixos
gustavderdrache has joined #nixos
<ottidmes>
infinisil: I thought of that first too, but I am unsure how to actually go about doing that nicely, since its needed at the lowest level of submodule, the one of for files, not sure how to reuse a submodule and add a default for root, without doing something almost similar, setting it through submoduleWith modules rather than specialArgs, winning you next to nothing in terms of niceness
<sphalerite>
qy[m]: there isn't. You can make one though :)
<ottidmes>
infinisil: there is a nicer way I just found out: nix-instantiate --quiet --quiet '<nixpkgs/nixos>' --attr system (keep telling it to shut up :P)
<nix-build>
[nixpkgs] @alyssais merged pull request #83531 → lib.licenses: Add Unicode License Agreement for Data Files and Software → https://git.io/JvHdE
<nix-build>
[nixpkgs] @alyssais pushed commit from @xfix to master « lib.licenses: Add Unicode License Agreement for Data Files and Software »: https://git.io/JvdWu
<nix-build>
[nixpkgs] @alyssais merged pull request #83477 → minijail: support compiling policies to BPF → https://git.io/JvdW2
<nix-build>
[nixpkgs] @alyssais pushed 4 commits to master: https://git.io/JvdWa
<__monty__>
After making changes to a module, how do I build and evaluate it to check whether the result makes sense?
igghibu has joined #nixos
<kenran>
I'm trying to understand how to create a wrapper derivation for an existing one. Suppose I have a nix derivation called `bde` which I can use in another .nix file, like so: with import <nixpkgs> {};
<kenran>
With this file, I can enter a nix-shell, start `hw` and everything works fine. But I actually don't want to build anything (except for `bde` itself). How can I then "wrap" the resulting bde binary such that the environment variable ODBCSYSINI is set to ${ini} and `ini` is created?
mallox has joined #nixos
<__monty__>
evils: Hmm, how would I run the test though?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
missionformilk has joined #nixos
glittershark has quit [Remote host closed the connection]
Emiller88 has joined #nixos
ixxie has joined #nixos
morgrimm has joined #nixos
sMuNiX has quit [Quit: WeeChat 2.7.1]
shibboleth has joined #nixos
rauno has quit [Remote host closed the connection]
<morgrimm>
Hey folks - I'm just trying to set up xmonad on NixOS. What's the lightest weight setup I can possibly run? I'd ideally like to simply run X, and then xmonad in the session, but enabling xserver/startx doesn't seem to read the session file
<morgrimm>
So I'm just enabling xmonad as the window manager in my nix config, without a display manager to go with it- is that the nix-ish way to go about it?
zupo has joined #nixos
<edef>
i don't know if we really support not having a display manager rn
<edef>
i think that's an explicitly unsupported configuration on ~anything but Arch since proper session management hit the scene
<morgrimm>
That's what I thought, except the `displayManager.defaultSession` settings seems to allow `none+xmonad` as an option
<simpson>
Indeed, most WMs aren't really designed to hold open an X session, and you're probably not fond of the classics like xterm, I'm guessing, so a DM is far and away the easiest.
cartwright has quit [Ping timeout: 240 seconds]
<simpson>
morgrimm: That would configure your DM to start an X session that is being maintained by xmonad alone, but the DM will still run. Like edef says, it's not completely bare.
codygman has quit [Ping timeout: 250 seconds]
<morgrimm>
I attempted to set up lightdm (although that sessions explicitly doesn't support `lightdm+xmonad`), but xcfe seemed to work fine.
<morgrimm>
Then again, I don't have enough experience with lightdm vs xcfe to know which one is the lighter weight option
<edef>
hm?
cfricke has quit [Ping timeout: 264 seconds]
<edef>
"lightdm+xmonad" as a session option doesn't really make sense
codygman has joined #nixos
bob23 has joined #nixos
<edef>
that's a category error
<edef>
the display manager is the thing letting you pick a session type and showing you a login screen
<simpson>
Display managers aren't desktop environments. The DM is the program which sets up X's authorization presentation; it's what asks you to login with username and password.
<morgrimm>
So I enabled `lightdm` with autoLogin, and then set `none+xmonad` as my defaultSession
<morgrimm>
and now it boots into a black screen with nothing
<hyper_ch>
(good that one can just boot into an older generation on nixos)
<morgrimm>
Yup, I'm doing that to change the config, but
<morgrimm>
I'm more interested in why that config didn't work. Do I need to configure more than just enabling lightdm with defaults for it to autoLogin?
<__monty__>
morgrimm: Fwiw, I also failed to set up a similar config. We clearly need help from someone who's succeeded running xmonad.
<__monty__>
Though in my case I think it fell back to xterm.
<Taneb>
morgrimm: I think that's what xmonad looks like by deualt
<__monty__>
qy[m]: Scheme modules? That sounds like guix more than nixos?
<__monty__>
evils: I think it'd be easier if I could simply "overlay" a nixos module. Is that possible?
<evils>
you can't use nixos modules on darwin
Ariakenom has quit [Quit: WeeChat 2.7]
<mallox>
hi, quick question: weechat shows me (<something>@<ip>) behind every username... what is that <something>?
<__monty__>
evils: No, I know. I have a system that can evaluate the module as part of a configuration (barely). I doubt it'll be able to run nixos tests, can't even run firefox.
<qy[m]>
hold up, lemme neaten this up before i try breaking it more
Izorkin has joined #nixos
mallox has quit [Quit: WeeChat 2.7.1]
FRidh has quit [Ping timeout: 250 seconds]
FRidh2 has joined #nixos
mallox has joined #nixos
mallox has quit [Client Quit]
mallox has joined #nixos
asheshambasta has joined #nixos
mallox has quit [Client Quit]
mallox has joined #nixos
mananamenos has quit [Remote host closed the connection]
__monty__ has quit [Ping timeout: 256 seconds]
mallox has quit [Client Quit]
asheshambasta has quit [Ping timeout: 272 seconds]
mallox has joined #nixos
<ottidmes>
Hmm, I am surprised about the ordering of listOf: nix eval '(with import <nixpkgs/nixos> { configuration = with import <nixpkgs/lib>; { options.list = mkOption { type = with types; listOf str; }; imports = [ { list = [ "a" ]; } { list = [ "b" ]; } ]; }; }; config.list)'
<ottidmes>
gives [ "b" "a" ]
mallox has quit [Client Quit]
__monty__ has joined #nixos
palo has joined #nixos
kleisli has quit [Remote host closed the connection]
<igghibu>
tilcreator: hey, sorry for the lag. I had lunch adn then read some more nixos manual. Still trying to "edit" inputrc. I foudn this but still not working https://bit.ly/2R2kd9O -- your commands failed because i trhink they are trying to appened new lines with existing options (in fact duplicating them) do you have time for this?
<nix-build>
[nixpkgs] @jonringer pushed commit from @drewrisinger to master « pythonPackages.qiskit-ignis: init at 0.2.0 »: https://git.io/Jvdz4
<ottidmes>
Just ran into the interesting situation where importing ./. and ./default.nix means they will be imported twice, even though they are the same file, the caching is not aware of dir defaulting to default.nix
<betaboon>
see above my question on fetchgitPrivate. pinging you as your PR removed it, if I'm not mistaken :D
<igghibu>
tilpner: cole-h, it complains about ${path} now
<igghibu>
error: undefined variable 'path' at /etc/nixos/configuration.nix:109:30
<tilpner>
No cole-h, bad cole-h
<adisbladis>
betaboon: Right. Use builtins.fetchGit
<cole-h>
:(
<tilpner>
That's not what igghibu was supposed to learn
<deni>
edef: hey. you once wrote "i have a fairly neat auto-ACME'd vault setup i should really share". I was searching the IRC logs for vault related converstaion I'm not stalking you I swear :D .... I'm curious if you wrote about this? Did you mean that you use vault as a cert provider in an acme fashion or that you're configuring the vault server with acme certificates?
<igghibu>
true but a good solution as an example can go a long way for my learning, next time I can try to figure it out
<gchristensen>
deni: /subscribe
<deni>
gchristensen: :)
<tilpner>
igghibu: Use pkgs.path instead of path
<cole-h>
tilpner: Ah, I missed those `\n`s... They were squished in there... Oops :)
<igghibu>
tilpner: thank you
<tilpner>
cole-h: And the readLine was still in there twice
<betaboon>
adisbladis: can you recall a reason why pkgs.fetchgit is still being used, then ? i understood that builtins.fetchGit fetches at eval-time, whereas pkgs.fetchgit fetches at build-time. but I'm confused now xD
<igghibu>
tilpner: it
<igghibu>
it's compiling (is that the right term?)
<edef>
deni: latter
<edef>
deni: i ended up having a lot of trouble with the way the ACME stuff is set up in systemd
<adisbladis>
betaboon: We don't allow the use of builtin fetchers in nixpkgs, we only allow fixed-output-derivations as fetchers.
<tilpner>
igghibu: It can do both. The generic term is building, but compiling can be correct too
ambro718 has joined #nixos
<adisbladis>
This is because (among other things) of how they are cached
<igghibu>
tilpner: it worked and the behavior is correct. however, there are now two config for the sme options. it works only because the new one is last
<adisbladis>
builtins.fetchGit sticks a checkout somewhere in ~./cache/nix and then adds the repo to the store
<tilpner>
igghibu: Hey, that's unfair! You wanted to append, and that's we did
<igghibu>
is there a way to replicate sed 's/' instead?
<cole-h>
tilpner: ^^;
<tilpner>
igghibu: You didn't say anything about removing lines from before
ixxie has joined #nixos
<tilpner>
igghibu: It's possible, but it's not fun
<betaboon>
adisbladis: so builtins.fetchGit is only to be used for "private" stuff, outside of nixpkgs?
<igghibu>
tilpner: can't recall my orignal question. I should have used "replace"
<igghibu>
let me check history
<tilpner>
igghibu: I recommend just copying the inputrc from nixpkgs, and modifying it as you want
<tilpner>
igghibu: Then you can remove the readFile
<adisbladis>
betaboon: Which would obviously not be good for Hydra :)
<betaboon>
but builtins.fetchGit doesnt support sha256 ? oO
<adisbladis>
betaboon: Yes, right now that's true.
<deni>
edef: ah I see....I was kind of hoping you were using vault as a certificate provider. Damn! :D I have a private domain (zerotier) that I want to set up auto ssl certs for and I can't use acme becuase the domain verification is DNS based. I can whip something up with bash (puke) but I figured it would be better to use Vault for this. cc gchristensen
<tilpner>
igghibu: Hmm, you did say "substitute two lines"
* tilpner
sigh
<adisbladis>
betaboon: It doesn't really need a sha256 because it clones in the evaluator context and adds the files to the store. It's pretty much equivalent to using a local path.
<gchristensen>
deni: you could use vault for certs still, and write a little bit of bash to get certs
<deni>
gchristensen: that's what I'm gonna end up doing...but I'm thinking they're gonna be longer lived certs in that case
<igghibu>
tilpner: sorry for the misunderstanding (language barrier here), but my orignal intention was "12:21 <igghibu> I want to substitute two lines only "
<gchristensen>
I DON'T recommend anybody copy any code out of that .nix file, but maybe there is some useful info
<igghibu>
tilpner: just seen your other message. didn't want to duplicate that statement.
<betaboon>
adisbladis: as builtins.fetchGit can be pointed at ref (eg a tag) and tags can technically be changed, that would leave me in not trusting that i deploy the same code. am i missing something ? oO
<igghibu>
tilpner: nonetheless thank you so mcuh for your help! it does work so I can live with it for now
<tilpner>
igghibu: Really, copying and editing the copy is more robust
<adisbladis>
betaboon: If you want reproducability pass `ref` with a commit-sha
<qy[m]>
there's probably a way to set the route metric
<qy[m]>
that's likely the way to do it
<deni>
gchristensen: thanks! I'll check it out. I made a promise to myself to write as little bas as possible. :D I was thinking on using terraform to to configure Vault once it's up and running. That would mean creating the CA in terraform. Creating an intermediaty CA that get's imported into Vault and that's the one used for generating new certs. (I did this type of thing for work stuff). Anyway once I
<deni>
have that I can create the certificates via terraform as well and then all that's needed is to modify the vault service file to fetch those after before starting the vault service. Hmm possibly I'll have to modify the nginx service as well. Anyway something along those lines. The downside of this is that there is no automatic refresh of certs and I would have to do it manually. Although I could
<deni>
write a system timer that checks that I guess....and triggers a restart of dependent services.
<qy[m]>
only two, it seems
<adisbladis>
gchristensen: I'm almost tempted to see if we can have a new fetchgitPrivate that just wraps builtins.fetchGit in a FOD ^_^
<qy[m]>
the guile packages are necessary
Shell has joined #nixos
<qy[m]>
curious, what's the policy on creating 7 packages in 1 PR
<adisbladis>
That's fine
<qy[m]>
given they're tiny libraries
<adisbladis>
As long as everything is related :)
qyliss has joined #nixos
<nix-build>
[nixpkgs] @bcdarwin opened pull request #84005 → python3Packages.spyder: unbreak package by removing removed "Editor" category → https://git.io/JvdgX
<simpson>
Hopefully stupid question: How might I pipe something to nix-instantiate? /dev/stdin doesn't work, and I'm guessing that I need to write a file to $TMPDIR?
<qy[m]>
oh good
<qy[m]>
i was dreading having to make 7 separate PRs
<adisbladis>
That would suck :D
<qy[m]>
totally
raingloom has quit [Ping timeout: 240 seconds]
<FRidh2>
when developing a flake, how can one locally use nix build to build an attribute of the flake?
<FRidh2>
since edition 201909 I'm having a hard time to make it work
<qy[m]>
gustavderdrache: is there similar for the state dir? (/nix/var)
<qy[m]>
i can't spot it at a glance
<gustavderdrache>
i didn't spot it when i looked
<gustavderdrache>
doesn't seem like it
<edef>
state dir is a runtime choice
<edef>
whereas the store dir affects build time
<qy[m]>
hmm
kleisli has joined #nixos
<qy[m]>
ah, ok
<nix-build>
[nixpkgs] @jtojnar pushed commit from @zowoq to release-20.03 « bubblewrap: 0.4.0 -> 0.4.1 »: https://git.io/JvdaP
<ottidmes>
ldlework: you sure they actually get imported?
<edef>
but NixOS assumes the defaults all over the place anyhow
missionformilk has quit [Ping timeout: 260 seconds]
<qy[m]>
yeah, wondered if there was any central place for that setting. guess not
leonardp has quit [Remote host closed the connection]
missionformilk has joined #nixos
morgrimm has joined #nixos
<ldlework>
ottidmes: yeah...
<ldlework>
ottidmes: the software in the other modules gets installed, but the lines they contribute to this option don't happen
<ekleog>
globin: By chance, are you using a self-hosted nextcloud nixos module? (trying the maintainers one by one, hoping not to poke too many people ^^') When I'm trying to use the Talk android app or the nextcloud-client nixos package with my instance, I get an endlessly-looping “please wait” on the “connect” button -- do you also see that, or is it just me?
<morgrimm>
Are there docs on how to declaratively use the unstable nixpkgs in your `configuration.nix`? Like, if I wanted some user packages installed from that channel instead of stable
<morgrimm>
Or is that just meant to be done imperatively
<qy[m]>
and then running "sudo nix-channel --update"
<qy[m]>
that would enable you to use "<unstable>" anywhere in your config
<ldlework>
argh how did i break this
<morgrimm>
Right, yeah okay - what would happen if I was starting a fresh system with that config then?
<morgrimm>
Would it just not install those packages until I built a first gen, added the channel, and rebuilt?
dermetfan has quit [Ping timeout: 252 seconds]
<morgrimm>
Or would it fail on building
<qy[m]>
it would fail until you added the unstable channel
<morgrimm>
So I'd have to add the channel in the install environment before installing for the first time
<qy[m]>
it would fail to evaluate entirely
<qy[m]>
the two alternatives are 1. to pin a specific revision of unstable. the problem with this is that you have to update the rev manually if you ever need to
<qy[m]>
and 2. to use fetchTarball, the problem with this is that it will fetch a new nixpkgs every time you build
<qy[m]>
in my opinion the channel mechanism is easiest for this purpose
kleisli has quit [Remote host closed the connection]
<ldlework>
i assume this is some weird lazy eval shit i'll never internalize
<pingiun>
tilpner: I found that the option is defined in nixpkgs/nixos/modules/tasks/network-interfaces.nix, but I cannot find the implementation in there
<ottidmes>
ldlework: nix eval '(with import <nixpkgs/nixos> { configuration = with import <nixpkgs/lib>; { options.text = mkOption { type = with types; lines; }; imports = [ { text = "a"; } { text = "b"; } ]; }; }; config.text)' gives "b\na"
betaboon has joined #nixos
ixxie has joined #nixos
<ldlework>
ottidmes: what are you trying to say? I mean I know how the lines option is supposed to work.
<ldlework>
I mean, in general
<ldlework>
ottidmes: look at the first version of the file, and then the secon
<ldlework>
ottidmes: maybe it's a confusion over how the default is supposed to work
<ottidmes>
ldlework: I am not sure what is failing for you, other than, stuff is not showing up
<ldlework>
does any other assignemtn override the defaults completely?
<ottidmes>
ldlework: default gets overwritten
zupo has joined #nixos
<ldlework>
ok i guess that makes sense then
<tilpner>
pingiun: Check network-interfaces-scripted.nix and network-interfaces-systemd.nix in the same directory
<tilpner>
pingiun: It depends on which you have activated
<pingiun>
systemd is when you use systemd-networkd?
<ottidmes>
ldlework: default (in option) has 1500, mkDefault has 1000, regular assignments have 100, mkForce has 50, lowest wins, if they are at the same score, they will be merged, which will succeed or fail depending on type
<nix-build>
[nixpkgs] @alyssais pushed 2 commits to master: https://git.io/Jvdr0
<pingiun>
immae: do you have any routes set up? or just addresses and default gateway?
<immae>
Just addresses and default gateway
<ldlework>
qy[m]: i guess it's time to figure out how to do virtual-machines on nixos so I can test this before inevitably bricking my laptop
<qy[m]>
is use of `rec` discouraged, out of curiosity?
<drakonis>
there's a bunch of repositories that could be converted into flakes
<pingiun>
immae: I have set stuff up using the hetzner wiki, and it works for a small while after boot but then stops working (all static config, no dhcp). do you have any idea?
<qy[m]>
ldlework: remember you can always just rollback :p
<qy[m]>
that said, when i screwed it up initially i decided to just trudge through until it worked.
<qy[m]>
i managed to botch the import of my old config, so it gave me a system that didn't even have vim installed
<qy[m]>
where my user didn't exist
<ldlework>
qy[m]: it seems like a good practice to be able to test a whole nix config in a vm
<qy[m]>
probably
linarcx has joined #nixos
<immae>
pingiun: can you maybe compare ip link / ip addr before and after boot?
<immae>
I didn’t do anything special
anirrudh has quit [Quit: Leaving]
<qy[m]>
infinisil: adisbladis: pinging you two cause i can't think of any other nix vets. should i avoid `rec` unless absolutely necessary, or is it reasonable to use it for stylistic purposes
<immae>
fe80::1 for default gateway, and manually entered addresses
cosimone has quit [Quit: Quit.]
<qyliss>
qy[m]: In general avoiding rec is good
<qyliss>
It's okay in very simple cases, like using a version in a src
aminechikhaoui has quit [Quit: Ping timeout (120 seconds)]
dominikh has quit [Read error: Connection reset by peer]
<gchristensen>
qy[m]: interesting, I wonder why package it with Nix?
aminechikhaoui has joined #nixos
o1lo01ol1o has joined #nixos
dominikh has joined #nixos
<qy[m]>
> Guix is compatible with Nix, so it is possible to share the same store between both. To do so, you must pass configure not only the same --with-store-dir value, but also the same --localstatedir value. The latter is essential because it specifies where the database that stores metadata about the store is located, among other things. The default values for Nix are --with-store-dir=/nix/store and --localstatedir=/nix/var. Note that
<qy[m]>
--disable-daemon is not required if your goal is to share the store with Nix.
<nix-build>
error: syntax error, unexpected WITH, expecting ')', at (string):293:20
<keviv>
Going through the instructions, and I'm wondering if there's any way to define my profile in a file. Like if I wanted to take my profile to a new machine for instance
<tilpner>
keviv: You can modularise your configuration at will, many people use multiple files
<tilpner>
keviv: Add keviv.nix, with the content { ... }: { }, then add it to imports in configuration.nix like this: imports = [ ./hardware-configuration.nix ./keviv.nix ];
<keviv>
Ah neat. Is configuration.nix special?
<tilpner>
keviv: Now you can keep user-specific and device-specific configuration separate
<tilpner>
keviv: It is special in the way that it's the default name, but you can call it anything you want if you tell NixOS where to find it
<ZaraChimera>
That is a neat feature. So one can create different configuration setups say one for a headless server and another for desktop application, and it is easy to clone them to new systems.
<morgrimm>
I do run nix on my macbook though, for package management
<yourfate>
ok, playing with nixos. dotfiles: do I do what I usually do and download them from my github to my home dir, or do I somehow set up a nix config file for exapmle for my zsh?
<srid>
tilpner: IP is no assigned unless I manually type `dhcpcd` from the CLI
<srid>
s/no/not/
<tilpner>
srid: journalctl -eu dhcpcd
chloekek has quit [Ping timeout: 256 seconds]
igghibu has quit [Quit: Konversation terminated!]
apx has joined #nixos
<apx>
hello
<ekleog>
fpletz: By chance, are you using a self-hosted nextcloud nixos module? (trying the maintainers one by one, hoping not to poke too many people ^^') When I'm trying to use the Talk android app or the nextcloud-client nixos package with my instance, I get an endlessly-looping “please wait” on the “connect” button -- do you also see that, or is it just me?
<qy[m]>
yourfate: download your dotfiles, at least for now. you could migrate them to a nix config later if you like
o1lo01ol1o has joined #nixos
<srid>
tilpner: -- Logs begin at Wed 2020-04-01 20:34:49 UTC, end at Wed 2020-04-01 20:40:49 UTC. --
<srid>
-- No entries --
<yourfate>
oh, and SSH private keys
<yourfate>
the public key permitted to log in for the user I specified
<yourfate>
but the user on there also needs a private key
<tilpner>
srid: Can I see your configuration.nix?
<tilpner>
srid: You need to enable dhcp per interface now
<srid>
tilpner: For some backend I must mention I'm trying to do this in a LXD container. Just trying `systemctl start dhcpcd.server` as root, and that hangs indefinitely. Here's the config: https://github.com/srid/nix-config/blob/master/machine/bare.nix
<ottidmes>
qy[m]: the NixOS challenge is to be able to completely format your main machine and be able completely rebuild it, preferrably in an as automated way as possible. I have to automate some of my backup/restore mechanisms further, but all my servers work like that, I install them with one command and I get back my fully functional server. Still want to go a bit further and make sure I don't keep stuff
<tilpner>
srid: Ahh, do you know the interface names?
<ottidmes>
around I shouldn't e.g. by reverting the file system on boot or more use of tmpfs, but I don't dare to do that yet on my main machine
<srid>
tilpner: yea. try ` networking.interfaces.eth0.useDHCP = true;` now
<srid>
*trying
<qy[m]>
ottidmes: i aspire for that too, mainly because i know one day i'll royally screw up and actually have to rely on that functionality
<qy[m]>
i've already managed to wipe my entire system configuration a few times, luckily nix is extremely resilient
<ottidmes>
qy[m]: been there done that, and been happy I was on NixOS when it happened XD
apx has quit [Ping timeout: 250 seconds]
<qy[m]>
:D
<ottidmes>
qy[m]: when I first started out with using sedutil, I made mistake at some point, bricked my drive, had to use a reset code, which causes all data loss... at the time I had it less automated, but it was still so much easier than say Arch
<srid>
tilpner: Same problem.
<srid>
tilpner: If I run `dhcpcd` directly from root CLI, it works (forks to backend), and I can access the network consequently
rsa_ has joined #nixos
<qy[m]>
ottidmes: how do you handle backing up your $HOME, out of interest
<nix-build>
nix-community/nixos-generators#42 (by asbachb, 28 weeks ago, open): [Discussion] Lxc image should contain configuration used for generation as `/etc/nixos/configuration.nix`
<srid>
I just looked in /etc/nixos/configuration.nix
<tilpner>
That doesn't mean the configuration wasn't used
<srid>
Also, trying to update nix channels fails with: error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory
<tilpner>
But you should probably verify that it was
<tilpner>
Install a random package into systemPackages, see if you can use it inside the container thing
<yourfate>
difference betwen environment.systempackages and programs.zsh.enable?
<tilpner>
yourfate: They are entirely different things
<yourfate>
so, adding zsh to system packages is different from enabling it?
<tilpner>
yourfate: If your question is actually "what's the difference between installing zsh using A or B", then it's still different, but now we can start listing differences
<yourfate>
so far I added programs I want to be available in environment.systempackages
<yourfate>
I now want to set my user shell to zsh, but I read I should enable it
<yourfate>
so far I have not enabled programs
<tilpner>
yourfate: Enabling programs via options usually means there's additional setup required to make that program work well
<tilpner>
In the case of programs.zsh, that's because it allows you to configure e.g. aliases, init, completion, and various other options, from your configuration
<yourfate>
aah
<yourfate>
but in my case, having an old fashioned .zshrc, I could just set it as my shell and be done?
<worldofpeace>
cole-h: lol, it seems to be a bug without reason
smatting has quit [Ping timeout: 256 seconds]
<excelsiora>
tilpner: thanks for trying to help yesterday. I gave up with that install and started over with the tutorial - I can ping my server now! :) But I can't ssh into it from my computer directly, I can only ssh from their LISH (linode shell) thing. :( I think maybe `networking.interfaces.eth0.useDHCP = true;` made it pingable...
<cole-h>
Seem to be a lot of those recently ^^;
<worldofpeace>
"dunno"
<morgrimm>
I'd ideally like to put my entire config on github
<aranea>
Oh, duh, I'm blind.
mallox has left #nixos ["WeeChat 2.7.1"]
<excelsiora>
morgrimm: why not do it then?
<aranea>
Well, I've found the definitions, but they're rather hard to read, so my question still stands.
yvan has joined #nixos
<morgrimm>
It might be easier to use passwordFile - I've never used git-crypt
<yorick>
how do we package go these days?
<yorick>
vgo2nix?
<morgrimm>
I guess I can `git-crypt` the password file
<morgrimm>
Or just point to a file mounted on the host instead of in VS
<cole-h>
morgrimm: Just make sure to keep that file out of the store
<ottidmes>
morgrimm: I just gitignore all secret files, never commit any of them, and sync the secret files over to the machine they are needed on
<srid>
can `nixos-rebuild switch` be told to ignore boot configuration? (it doesn't apply on lxc container anyway)
<morgrimm>
ottidmes: How do you deal with initial setup? For example, where does the secret file live, where do you place it for first login, etc
<ottidmes>
morgrimm: I SSH in the installer from a machine that has the needed files
<ottidmes>
morgrimm: and I use a custom installer (no secrets in it though, just a public key of the build machine)
ben[m] has joined #nixos
<morgrimm>
Just the keys you need to be able to ssh in, yeah?
<ottidmes>
yep
rardiol has joined #nixos
yvan has quit [Quit: WeeChat 2.7.1]
<morgrimm>
and then you place the files in like, `/etc` before `nixos-install`ing? or some path that's preserve
<morgrimm>
preserved*
yvan has joined #nixos
yvan has quit [Client Quit]
yvan has joined #nixos
<ottidmes>
I just format the drive, mount those, and place the files in the needed locations
coco has quit [Ping timeout: 258 seconds]
<qy[m]>
yorick: buildGoModule works nicely if it's a module
<morgrimm>
Do you put them in homedirs?
<morgrimm>
For stuff like user passwords?
<ottidmes>
morgrimm: nope, I keep stuff like that together in the nixos config
<qy[m]>
doesn't require any generation
<morgrimm>
Ah, gotcha
<qy[m]>
i use git-crypt. i was apprehensive at first, but it's just massively convenient compared to anything else
<ottidmes>
morgrimm: and I have some absolute paths in my config, but I limit the ones I use, and for those I create symlinks so they still work while in /mnt
<morgrimm>
qy[m]: Could you theoretically keep fish configs in their normal structure/state, and just read them into the nix config definition?
<morgrimm>
I'd rather keep some semblance of structure vs putting the entire config in one nix definition - plus, I have no clue how to set up proper vendor conf dirs and autoload dirs via nix
<qy[m]>
as in convert them to a nix config?
<ottidmes>
morgrimm: yes, I have seen others do this, if I understand you correctly, they have dotfiles directory, and then they place them through NixOS/HM config into their right locations
<qy[m]>
ah. well you could start by just putting your config.fish into nix configuration
<qy[m]>
that can then import other files from .config/fish
<qy[m]>
i imagine with vendor directories it would be an almighty pain to create home.files entries for every file
Baughn has quit [Ping timeout: 258 seconds]
Baughn has joined #nixos
<nix-build>
[nixpkgs] @rycee pushed commit from @r-ryantm to master « nethogs: 0.8.5 -> 0.8.6 »: https://git.io/JvdMi
chagra_ has quit [Read error: Connection reset by peer]
<qy[m]>
why is my texinfo in spanish...
<morgrimm>
Like, right now I have a bunch of domain separated files to keep all my functions and settings clean - and I also have some vendor conf dirs for work-related fish stuff on that onemachine
natrys has quit [Ping timeout: 256 seconds]
<morgrimm>
I could add my dotfiles as a submodule at the top level of my nixos config, and just have nixos add them for now, like ottidmes said
<qy[m]>
i don't think there's much point just dumping them into a nix file for the sake of them being in nix. i would keep them out until you can confidently create a well structured configuration for them
<qy[m]>
or that, i guess.
<morgrimm>
I mean, I get it too though. I don't want to half-ass a solution
<morgrimm>
But I also don't want to maintain duplicate dotfiles, when my personal machine is entirely nixos
<morgrimm>
and my work machine relies on normal dotfiles
<morgrimm>
Although, I believe you can use home-manager on macos
<yorick>
qy[m]: updating the hash will be problematic
<morgrimm>
Then again
<morgrimm>
I can also just... virtualize nixos
<morgrimm>
on my work machine, and use that as my primary work one lol
<qy[m]>
yorick: howso
<qy[m]>
morgrimm: fair enough
<yorick>
qy[m]: forgetting to update it causes unexpected failure, but only on other systems but your own
<yorick>
sometimes
ben[m] is now known as BenSima[m]
<ottidmes>
morgrimm: I have a few dotfiles being generated in my NixOS config with a files modules that places them in my home folders, but I still have it on my planning to store all of my dotfiles in my nixos config, but I would just keep them as files, and only use NixOS to place them in their right places, and I already have the structuring with my NixOS config to have seperate config projects working
<ottidmes>
together
<qy[m]>
yorick: huh. i see
zebrag has quit [Ping timeout: 240 seconds]
<qy[m]>
even if you build with --pure?
<yorick>
qy[m]: --pure does nothing on builds, afaik
<yorick>
you can use --check, maybe
<drakonis>
hmm, where do i go for C manpages?
<drakonis>
cant find those
aveltras has quit [Quit: Connection closed for inactivity]
<qy[m]>
back when i was a gentoo-er, it really was build once, pin, then never build again unless you're a masochist. with nix it's hard to avoid updates for specific packages :p
<pjt_014>
just to a much lesser degree
<pjt_014>
how much disk space does it need?
<qy[m]>
i might actually cancel this and switch back to large, i haven't got time to wait for webkit to compile
<qy[m]>
eh space isn't the issue, the fact that iirc webkit can take up to 8 hours to build is the issue
<pjt_014>
hm
<pjt_014>
fair
<pjt_014>
I gotta go for a bit
<MichaelRaskin>
Then there is Chromium
inkbottle has joined #nixos
wavirc22 has quit [Read error: Connection reset by peer]
codygman has quit [Read error: Connection reset by peer]
<alexgood>
Hey folks, anyone have any experience building Electron apps in Nix? I'm not looking to package this thing up, I just need to work on it so I need a shell with the various build requirements of node-gyp set up.
konobi has joined #nixos
kleisli has quit [Remote host closed the connection]
<sevanspowell>
I'm having this issue using "callCabal2nix" in 20.03. Can anyone explain to me why, in this gist: https://gist.github.com/sevanspowell/baa3f2cbb973adf21904d2eb5a0578fa, running "make working" works and "make broken" doesn't? I haven't been able to identify any changes myself. The buildInputs are empty in the broken version and contain minio in the working version.