<pie_>
it had the same issue, which kind of gave me the epiphany that i was screwind with my bashrc, well also a push from reading on the internet something about sshh and bashrc
Ralith_ has quit [Ping timeout: 264 seconds]
<colemickens>
oh well, not going to spend too much time, plasma 5.13 looks great and I'm going to try switching back again.
rprije has quit [Ping timeout: 240 seconds]
Ralith_ has joined #nixos
rprije has joined #nixos
<samueldr>
I just had warm fuzzies thinking about how it's nice to just show our configuration files to know how stuff is setup :)
<colemickens>
yes, x100
<colemickens>
When packaging something new should I prefer fetchFromGithub over fetchTarball (w/ hash)?
<pie_>
im gonna go crash (sleep :P)
nschoe has quit [Read error: Connection reset by peer]
thetet has quit [Ping timeout: 256 seconds]
pie_ has quit [Ping timeout: 240 seconds]
semilattice has joined #nixos
<samueldr>
colemickens: use what upstream releases
<samueldr>
git != release tarballs
<samueldr>
some projets will e.g. run autotools or some other preparation scripts before making a tarball
<samueldr>
uh, autogen or one of those
<colemickens>
Good point. Though I hate that.
<{^_^}>
[nixpkgs] @Ericson2314 pushed to staging Β« compiler-rt 5: Fix double space Β»: https://git.io/vhPap
<samueldr>
the big idea being, use it as close to what upstream does
<colemickens>
Well, I hate when they do some translation and don't document it anywhere and then I need to build a specific revision that wasn't "released".
<colemickens>
anyway, makes sense
acarrico has joined #nixos
guest-35gcfv has quit [Quit: Page closed]
Lev50 has quit [Quit: This computer has gone to sleep]
jperras has joined #nixos
andreabedini has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
aarvar has quit [Ping timeout: 245 seconds]
Sonarpulse has quit [Ping timeout: 256 seconds]
goibhniu has quit [Quit: Leaving.]
blankhart has quit [Quit: WeeChat 1.9.1]
ericsagn1 has joined #nixos
judson has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 276 seconds]
semilattice has quit [Ping timeout: 255 seconds]
semilattice_ has joined #nixos
silver has quit [Read error: Connection reset by peer]
page has quit [Ping timeout: 240 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzzβ¦]
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPrl
<judson>
Nope. Finally set videoDrivers to include nv and nouveau, rebuilt rebooted. No dice with Zoom. It still complains glibc-2.26-131/lib/libc.so.6: version `GLIBC_2.27' not found
<nh2[m]>
just `-A haskellPackages` gives me an error about Elm being marked as broken
hamishmack has quit [Client Quit]
acarrico has quit [Ping timeout: 264 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
<rotaerk>
nh2[m], what if you build `-A haskellPackages.Elm' ?
<rotaerk>
same error?
<rotaerk>
if so, maybe you just *can't* build all of them, because not all can be built
<rotaerk>
(why would you want to, anyway?)
<nh2[m]>
rotaerk: yes, same error. How can build all those that aren't broken? I want to do this because I'm running the musl cross toolchain and I want to measure how many packages compile successfully
<manveru>
Judson: did you install zoom via your configuration.nix?
tmaekawa has joined #nixos
<manveru>
damn, i should really sleep :P
<{^_^}>
[nixpkgs] @yegortimoshenko pushed commit from @lsix to release-18.03 Β« libgcrypt: 1.8.2 -> 1.8.3 Β»: https://git.io/vhPr9
sorixelle has joined #nixos
<manveru>
Judson: i found that for GL stuff, you must make sure it's using exactly the same libraries as your graphic driver... so installing via `nix-env` or `home-manager` is broken
<nh2[m]>
which looks right but somehow it can't load it when it's called during the build
<judson>
That got the Zoom client working. Eventually I'll remember...
<rotaerk>
I was just thinking maybe you could filter out the broken ones, but then of course they would have dependencies and dependents and all hell breaks loose
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPoc
<nh2[m]>
rotaerk: tried now, but then I get some `assertion failed` in openjdk which is very unrelated to my haskell :D -- I think I'll postpone this testing of all packages a couple days
<rotaerk>
heh
<catern>
help, why is my resolution on NixOS with the nvidia proprietary drivers, stuck at a weird not-the-resolution-I-want
<catern>
and even if I open nvidia-settings, and change the resolution, and hit apply, it does nothing
<samueldr>
catern: bigger than 1080p on non-dual-dvi cable?
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPo6
<rotaerk>
there does *not* appear to be a pypi one there
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
<imalison>
rotaerk: Yeah I looked there and didnt see one, but I find it hard to believe that people are doing a manual download to figure out that sha256 for every pypi package there
<rotaerk>
but there is a nix function called fetchPypi
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPoM
Mr_Keyser_Soze has joined #nixos
<rotaerk>
imalison, oh, yeah that's a pain
<gchristensen>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<stepcut>
when I tried to do nix-shell -p 'pkgs.haskell.packages.ghcjs.ghcWithPackages (p: with p; [ vector ])' I get an error, ghcjs-pkg: Couldn't open database /nix/store/il2rhydf6s3m9m3nbsw40b7ryxl7217q-ghcjs-with-packages/lib/ghcjs-8.2.0.1/package.conf.d for modification: /nix/store/il2rhydf6s3m9m3nbsw40b7ryxl7217q-ghcjs-with-packages/lib/ghcjs-8.2.0.1/package.conf.d: getDirectoryContents:openDirStream: does not exist (No such
<stepcut>
file or directory)
pacmeister has quit [Ping timeout: 276 seconds]
slack1256 has quit [Remote host closed the connection]
tertle||eltret has joined #nixos
johnw has quit [Read error: Connection reset by peer]
nekroze has quit [Quit: Lost terminal]
johnw has joined #nixos
joshie has quit [Quit: No Ping reply in 180 seconds.]
<cocreature>
hm although your error message seems different
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzzβ¦]
tzemanovic has quit [Remote host closed the connection]
reinzelmann has joined #nixos
asuryawanshi has joined #nixos
blankhart has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
tzemanovic has joined #nixos
semilattice has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
karlguy_ has joined #nixos
woodson has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
karlguy has quit [Ping timeout: 264 seconds]
asuryawanshi has quit [Ping timeout: 264 seconds]
andreabedini has joined #nixos
Sonarpulse has quit [Ping timeout: 245 seconds]
testuser_ has joined #nixos
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Changing host]
hyper_ch2 has joined #nixos
<tg>
trying to upgrade from 17.09 to 18.03.. `nixos-rebuild build` seems to hang with `download-from-binary-cache.pl --query` waiting for stdin.. any ideas what's going on?
xAFFE has joined #nixos
<tg>
ok maybe i'm just impatient, seems to be doing *something*
bluej774 has quit [Quit: Leaving]
slack1256 has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzzβ¦]
tzemanovic has quit []
robstr has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
blankhart has quit [Quit: WeeChat 1.9.1]
asuryawanshi has joined #nixos
jensens has joined #nixos
jperras has joined #nixos
{^_^} has quit [Remote host closed the connection]
imalison has quit [Remote host closed the connection]
tzemanovic has joined #nixos
johanot has joined #nixos
JasonGrossman has joined #nixos
ThatDocsLady has joined #nixos
<aminechikhaoui>
colemickens: I'm not sure what kind of docs you're looking for. But creating an s3 binary cache is as easy as doing nix copy --to s3://foo <store_paths>
tzemanovic has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
work_ has joined #nixos
jackdk has quit [Ping timeout: 256 seconds]
reinzelmann has quit [Ping timeout: 240 seconds]
johanot has quit [Quit: Leaving.]
tertle||eltret has quit [Quit: Connection closed for inactivity]
johanot has joined #nixos
yenzenz has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzzβ¦]
jensens has quit [Ping timeout: 264 seconds]
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 268 seconds]
johanot has quit [Quit: Leaving.]
reinzelmann has joined #nixos
Guest21370 has joined #nixos
woodson has quit [Ping timeout: 268 seconds]
tzemanovic has joined #nixos
andymandias has quit [Ping timeout: 264 seconds]
charlesh` has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 256 seconds]
mahalel_ has joined #nixos
mahalel_ has quit [Read error: Connection reset by peer]
mahalel_ has joined #nixos
hamishmack has joined #nixos
sanscoeu_ has joined #nixos
seku has quit [Ping timeout: 256 seconds]
johanot has joined #nixos
xy2_ has joined #nixos
sanscoeur has quit [Ping timeout: 265 seconds]
Guest21370 has quit [Ping timeout: 264 seconds]
tzemanovic has joined #nixos
johanot has quit [Client Quit]
yenzenz has quit [Ping timeout: 268 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzzβ¦]
johanot has joined #nixos
crmlt has joined #nixos
rprije has joined #nixos
mahalel_ has left #nixos [#nixos]
tzemanovic has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
hamishmack has joined #nixos
johanot1 has joined #nixos
jperras has joined #nixos
fendor has joined #nixos
alex`` has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
taharqa has joined #nixos
tzemanovic has quit [Read error: Connection timed out]
johanot1 has quit [Quit: Leaving.]
Neo--- has joined #nixos
Neo-- has joined #nixos
johanot has quit [Ping timeout: 240 seconds]
crmlt has quit [Quit: Lost terminal]
tzemanovic has joined #nixos
johanot has joined #nixos
betaboon has joined #nixos
<betaboon>
hello #nixos, i have a question regarding pythonPackages, fetchgit and setuptools_scm: I am evaluating using setuptools_scm to retrieve the package version from git-tags. but the make_deterministic_repo of nix-prefetch-git destroys all the information required for that to work. any ideas on how to get around that problem ?
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
andymandias has joined #nixos
<LnL>
tg: the 1.11 -> 2.0 upgrade might look a bit weird while partially updated
Neo--- has quit [Ping timeout: 260 seconds]
tzemanovic has quit [Ping timeout: 260 seconds]
<ben>
betaboon: is nix-prefetch-git --leave-dotGit better?
<tg>
LnL: ah it's actually doing things now, but initally was not seeing any output for a long time not even with --verbose hence i was wondering what was going on.. but strace showed me it's busy and now it's installing all the packages since..
<LnL>
yeah, while upgrading you'll be using a 2.0 client with a 1.11 daemon
<LnL>
that works fine, but output handling might be a bit strange
orivej has quit [Ping timeout: 245 seconds]
<ben>
i see, that seems fairly bad
<betaboon>
ben: it is done for good reason. but currently it is standing in my way
<Taneb>
If I'm making a fixed output derivation from files I already have on my disk, how can I figure out the hash for them?
Neo-- has joined #nixos
Neo--- has joined #nixos
<Taneb>
sha256sum gets me something too long
<ben>
nix-prefetch-url file:///foo/bar?
<Taneb>
ben: I'll give it a go
lonokhov has joined #nixos
<ben>
or maybe: nix-hash --type sha256 --to-base32 $(sha256sum /foo/bar | head -c 64)
<JasonGrossman>
ben's solution works for me
<tilpner>
Taneb - nix-hash --flat --type sha256 --base32 foo should work too
masse has quit [Ping timeout: 240 seconds]
mkoenig has joined #nixos
<Taneb>
nix-prefetch-url ran out of memory (it's a very large file :()
<ben>
tilpner: duh, now i feel silly
Ariakenom has quit [Ping timeout: 276 seconds]
jtojnar has quit [Read error: Connection reset by peer]
ma27 has quit [Quit: WeeChat 2.0]
jtojnar has joined #nixos
<Taneb>
ben: that worked prefectly
mkoenig_ has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
simukis has joined #nixos
rardiol1 has left #nixos [#nixos]
Guest21370 has quit [Ping timeout: 276 seconds]
dje4321_ has joined #nixos
<betaboon>
ben: it seems like deepClone atleast preservers the tags up to some point. but still not good enough for setuptools_scm
thetet has joined #nixos
rardiol1 has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
jensens has joined #nixos
ma27 has joined #nixos
Neo-- has quit [Remote host closed the connection]
Neo--- has quit [Read error: Connection reset by peer]
thetet has quit [Ping timeout: 256 seconds]
averell has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
dje4321_ has quit [Ping timeout: 260 seconds]
andymandias has quit [Ping timeout: 248 seconds]
thetet has joined #nixos
averell has joined #nixos
ericsagn1 has quit [Ping timeout: 260 seconds]
NightTrain has joined #nixos
thetet has left #nixos [#nixos]
andymandias has joined #nixos
averell has quit [Ping timeout: 245 seconds]
TonyTheLion has joined #nixos
silver has joined #nixos
justbeingglad1 has joined #nixos
TonyTheL1on has quit [Quit: leaving]
rprije has quit [Ping timeout: 260 seconds]
averell has joined #nixos
knupfer has joined #nixos
isidore has joined #nixos
<pie_>
if i have key files and stuff, is it acceptable if i make them root readable only and put them in /etc/nixos then readFile them into my configuration?
isidore has quit [Client Quit]
<tilpner>
pie_ - Yes, but you have to be really careful they don't end up in the store somehow
<pie_>
uh
<pie_>
ok idk what to do then
kreetx has joined #nixos
<tilpner>
I think the safest option is to never let your config have access to your secrets
<tilpner>
Instead configure services to read them at runtime from a safe directory that's not the store
Guest21370 has joined #nixos
<tilpner>
But that's hard-ish, because it means you can't generate configuration files with Nix, if the service doesn't explicitly support this case
SemiHonest has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<tilpner>
Are there any attempts to generate security profiles to forbid applications from reading files outside their runtime closure?
reinzelmann has quit [Ping timeout: 265 seconds]
Ariakenom has joined #nixos
<pie_>
i know ive seen *stuff* about people wanting to do suff abu secrets but idk if it ever got anywhere
jensens has quit [Ping timeout: 240 seconds]
<pie_>
though im only now noticing i only readfile-d public key stuff, and did the path thing for the private keys, so i dont actually have a problem at the moment, but still good to know
<pie_>
what should i pay attention to for "make sure directories dont end up in the store"
<pie_>
tilpner, might also be useful to just have some kind of check feature for forbidden files
johanot1 has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
xy2_ has quit [Ping timeout: 260 seconds]
<manveru>
well, if you reference the file in your nix config, and just the path, it'll end up in the nix store
<pie_>
lol physically separated from each other by cutting segments out of the hard disk platter so that it resembles a ceiling fan.
<pie_>
oh wait is this satire
<johanot1>
:D
work_ has quit [Quit: Connection closed for inactivity]
<pie_>
im guessing its wrong to want to do this because PURE FUNCTIONAL, but can i do something like networking = {a = ...; b = ...;} and then later networking = {c = ...}
<pie_>
basically im just trying to group stuff a bit
nschoe has quit [Ping timeout: 255 seconds]
xy2_ has joined #nixos
<pie_>
basically i want to merge networking.defaultGateway = "192.168.0.1"; networking.nameservers = [ "192.168.0.1" ]; into something like networking.{defaultGateway = ...; nameservers = ...;} and be able to add more stuff later
karlguy_ has quit [Remote host closed the connection]
<fendor>
how can i set a different color scheme for neovim?
<pie_>
i understand that it may not reflect the actual config due to mutability but i still find that odd
<manveru>
you can use it like this: `nix-instantiate --show-trace --json --eval ./nixos-options.nix --strict --argstr query options.nix.sshServe`
<tilpner>
manveru - I don't think that helps here
<manveru>
well, you can query config (current system config) or options (available config)
<manveru>
since it also uses <nixos-config> in the background
<LnL>
manveru: isn't that the same as the nixos-option command?
<manveru>
LnL: yeah, just without the bash
<tilpner>
manveru - But pie_ wants to query a running system, not what nixos-config describes
<manveru>
ah...
<manveru>
yeah, that's impossible :(
<pie_>
i mean technically the config should be in the store no?
<tilpner>
No
<pie_>
its only used to generate /etc?
<pie_>
how do you roll back generations then?
<gchristensen>
did you put pkgconfig in your build inputs?
<gchristensen>
oops
<gchristensen>
nixos-option does it
<manveru>
generations are symlinks
<gchristensen>
nixos-option nix.useSandbox
<LnL>
nope, your current system might not even have used '<nixos-config>'
<pie_>
i mean how do you get your old configuration.nix when you roll back
<gchristensen>
oh oops
<manveru>
you don't
<LnL>
pie_: git?
<LnL>
:p
<pie_>
wut
<pie_>
you dont? til.
<gchristensen>
pie_: the rollback doeesn't need the configuration.nix
<manveru>
rollback rolls back the system, not your config
<gchristensen>
the rollback is saying "go back to this other pre-built thing"
<pie_>
uh that seems kind of bad?
<gchristensen>
well, you should probably track your config in git
<manveru>
like, when you use `nix build`, you get a symlink to the result, but not all the .nix files involved in making it
<LnL>
yeah, you can rollback but you can't reconstruct the original expression back from that
<tilpner>
pie_ - I save each generations config with tx0.co/1f , so that I can inspect what config built the system I booted
iyzsong has joined #nixos
<gchristensen>
it is hard to know what files are involved in calculating the system, so it is very hard to capture all the files neeeded to rollback
<pie_>
but wouldnt nix know when evaluating it?
NightTrain has quit [Ping timeout: 240 seconds]
<johanot1>
project for the summer: NixOS decompiler :P
<pie_>
i mean just to mea at least it sounds like the actual config exrpession would be useful/important to save
rsa_ has joined #nixos
<tilpner>
There's an option for that
<pie_>
johnazoidberg, hah
<tilpner>
It's off by default though
<gchristensen>
because it doesn't work in all cases
<pie_>
* johanot1
<tilpner>
And it doesn't cover imports
<manveru>
system.copySystemConfiguration
<tilpner>
The paste I sent you works better
<tilpner>
(For my case. But it doesn't get everything either)
<pie_>
are there any plans to get this to work better? :P
<pie_>
when would it fail
<tilpner>
When I reference files outside of /cfg
<tilpner>
(In your case, outside of /etc/nixos)
<manveru>
i guess you could parse all the derivations and input files, but that'd also copy half of nixpkgs for your config
<pie_>
manveru, well why would you need to do that though
<manveru>
it's kinda hard to determine what's your config and what's nixos config
<pie_>
i mean ok sure, maybe 1 copy of nixpkgs in store and then just refer to the head
<pie_>
or whatever
rsa has quit [Ping timeout: 256 seconds]
<manveru>
well, i think it'd be a cool project anyway
alex`` has quit [Quit: WeeChat 2.1]
<gchristensen>
pie_: well my configuratino.nix imports /home/grahamc/grahams-config.nix and /var/lib/foo/config.nix and (builtins.getEnv "SECRET_EXTRA_CONFIG") too
<pie_>
johanot1, i thing decompilers are really cool but im not even sure how youd begin to do that :P
<tilpner>
Oh, and it makes your config world-readable
<tilpner>
Which is really great for hiding secrets
<pie_>
hehe
<gchristensen>
and don't forget all my extra modules in the NIXOS_EXTRA_MODULE_PATH env var
<pie_>
ok i suppose you have a point on that last point
<pie_>
i dont want to suggest adding a __private attribute :p
<pie_>
OBJECT ORIENTED NIX HUEHEUHEUHEU
rsa has joined #nixos
<pie_>
which would just mean dont add this to store
rsa_ has quit [Ping timeout: 240 seconds]
<manveru>
you could maybe wrap `nixos-rebuild switch` in a strace
<manveru>
lemme try that :D
<tilpner>
Noooo
<pie_>
would need to get inherited by any readers
<pie_>
i mean __private
<pie_>
manveru, lol, i mean cmon, just information theory-wise the nix interpreter obviously has the information ot save the config
<manveru>
yeah, but that's C++...
<manveru>
i mean cmon, who'd ever touch that
<gchristensen>
manveru: there is another way, but it won't work with NIOS_EXTRA_MODULE_PATH b/c it won't capture that
<gchristensen>
or the other getEnv imports
<pie_>
manveru, tru
<gchristensen>
would it rewrite a dynamic import path (getEnv) too use a static path?
<gchristensen>
does it now rewrite that in the capatured expression to be the value of MY_SECRET_CONFIG at the time of eval, or just capture the file it imported and not that you have eto set MY_SECRET_CONFIG to use it properly
<pie_>
i mean if we establish that there may be mutable stuff in /etc that gets ignored...if we ACCEPT this, then i suppose it might limit the utility but mean we should accept mutable portions
<pie_>
then again i guess that would be bad because false expectations
<johanot1>
pie_: Decompile steps.. 1. Reconstruct pkgs attribute names from /run/current-system .. Thats doable to some extend. 2: Reconstruct module options values from scattered config files and systemd unit configs... Less doable :D
<pie_>
"nix reverse" kekeke
<pie_>
"nix regenerate"
<gchristensen>
pie_: and now you know why system.copySystemConfiguration defaults to false
<pie_>
"nix magic"
<pie_>
gchristensen, alternatively, immutable /etc, and a secure store? :D
<johanot1>
"nix reduce-entropy"
<pie_>
^^^
<pie_>
immutable /etc would have problems for some programs though
<gchristensen>
manveru: nix-instantiate can tell you the files it looked at
<manveru>
uh, sorry, that strace-out shouldn't be there
<pie_>
tinc drops some configuration files in /etc during runtime that it aquires from other nodes, it would be interesting to patch it to drop .nix files that could be included later on a regen run or something
<gchristensen>
manveru: nix-instantiate -v '<nixpkgs>' -A hello
<manveru>
gchristensen: and how does that work with nixos-rebuild?
steell has joined #nixos
<pie_>
immutable /etc, a new directory somewhere with human readable generated config deltas or something, which you can then choose to pull in
<pie_>
neat idea or overcomplicated? :p
<pie_>
i guess that if it still applies at runtime though it would kind of be just a second /etc though...
<manveru>
usually much easier to restore a system if you have at least that much :)
<gchristensen>
one thing I've played with is requiring my nixos system to have its files in a clean & pushed commit before it'll allow itself to be evaluated
<manveru>
in my config the only thing i rely on is usually nixpkgs and /etc/hostname
<infinisil>
gchristensen: ah and you test stuff by creating a new branch?
<gchristensen>
that'd be an idea, for sure
<gchristensen>
but for personal stuff I don't care
sorixelle has joined #nixos
<manveru>
i'm writing a new wordpress services drv atm
<gchristensen>
neat
<manveru>
working with nixos-shell is pretty fun :)
<pie_>
the reason why i was asking abot this query stuff is if you group stuff by topic in your configuration
<pie_>
not everything may be in the same place
thetet has joined #nixos
reinzelmann has quit [Quit: Leaving]
thetet has left #nixos [#nixos]
sir_guy_carleton has joined #nixos
<manveru>
gchristensen: not sure you'd like it... it won't do plugins and themes purely declarative anymore, got a customer that wants to manage them themselves
<gchristensen>
eh, needs are needs
steell has quit [Ping timeout: 268 seconds]
<gchristensen>
I don't like hosting wordpress, certainly. did plenty of that back in the day.
<manveru>
likewise...
<gchristensen>
probably the second worst death-march job of my career
johanot has joined #nixos
<manveru>
i proposed a ton of alternatives, but well, that's all he knows :|
<manveru>
and their new UX actually isn't repulsive anymore
<gchristensen>
to be clear, WP is pretty good, actually. the plugins are where you get in trouble, and if you leave it out of date you'll get in trouble
<broccoli>
top
<manveru>
yeah, i'll just wait until he settles on a list of plugins/themes and then automate that part
<manveru>
shouldn't be too hard
<manveru>
what surprised me is that wordpress actually sshs into its own server to modify stuff
<manveru>
like... what year is this
<etu>
manveru: Doesn't wordpress do crazy shit like asking you for your FTP-password so it can go outloading an plugin for you?
<manveru>
i'm constantly getting flashbacks to 2005
mkoenig has quit [Ping timeout: 240 seconds]
<etu>
manveru: I heard about someone (might have been adisbladis[m]) who made a "hardened wordpress install" which really was wordpress on a server that wasn't exposed to the internet and then a "wget --mirror" of that page :p
asuryawa_ has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<pie_>
can anyone explain "The simplest way is to us the networing module. But it has some minor flaws on package updates. " https://nixos.wiki/wiki/Tinc
<pie_>
god fuck that, makes my noscript sad :( <gchristensen> and notice many large deployments use a javascript-based comment thing
<pie_>
alternatively, yay lighter web pages?
<gchristensen>
I'm not saying what you use or would choose to use
jperras has quit [Ping timeout: 245 seconds]
<etu>
pie_: You're probably better off without comments anyways tbh
<manveru>
comments are hardly every useful
<manveru>
*y
<pie_>
yeah i was waiting for someone to say that haha
<mupf>
Hey guys, I found an outdated package and tried to contact it's maintainer. Unfortunately the email is invalid. What's the way to go in a situation like this?
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
<manveru>
mupf: looks like we found a new maintainer :D
asuryawa_ has quit [Remote host closed the connection]
<das-g[m]>
Is it expected that `nixos-rebuild` takes very long after setting `nixpkgs.config.virtualbox.enableExtensionPack = true;`? (From the terminal output, it seems like the whole of VirtualBox is being re-compiled.)
<hyper_ch2>
das: yes
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
ar has left #nixos [#nixos]
jerengie[m] has left #nixos ["User left"]
asuryawanshi has quit [Ping timeout: 256 seconds]
hyper_ch2 has quit [Quit: Page closed]
steell has joined #nixos
jtojnar has quit [Quit: jtojnar]
<philippD>
How do I make files available at a specific location when installing?
jtojnar has joined #nixos
<manveru>
philippD: can you be a bit more specific? :)
<organixpear>
Well I got my wine game running yesterday. I just had to read the user contributed manual to find out about enabling 32bit dri...really like nixos
<srhb>
philippD: the simplest way in this case might be let eisvogel = callPackage ./eisvogel.nix {}; in ...
<pie_>
organixpear, yeah i ran into that too i think xD
<srhb>
philippD: There's other solutions as well, like overlays, that you might want to look up in the manual at some point.
<pie_>
organixpear, better than having to try rebuilding on debian last i did that heh
<pie_>
^orhtogonal to the dri think
<pie_>
*orthogonal, thing
<srhb>
philippD: With eisvogel defined like that, MAGIC_GOES_HERE would become something like ${eisvogel}/eisvogel.latex
<pie_>
so, if im changing the networking configuration on a remote node, is there some way to make it do a timed fallback if the change cuts me off?
jtojnar has quit [Quit: jtojnar]
<pie_>
i.e. restore to the old config
<manveru>
i think someone implemented that
steell has quit [Ping timeout: 264 seconds]
<infinisil>
Oh yes, I remember somebody explaining that in a talk at nixcon
<pie_>
oh cool
knupfer has joined #nixos
<pie_>
though i figure something like rebuild switch; sleep 500; whatever the revert thing is; might work?
<srhb>
infinisil, pie: I believe basvandijk had something like that
<cransom>
does anyone use hydra with the s3backup plugin with credentials fetched from metadata rather than supplying id + secret key?
<kreetx>
I'm trying to get a linux build slave in docker working from macos, I run this command: nix build '(with import <nixpkgs> { system = "i686-linux"; }; runCommand "foo" {} "uname > $out")' --builders 'ssh://nix-docker-build-slave i686-linux'
<kreetx>
the error is: error: a 'i686-linux' is required to build '/nix/store/lw0h1abpfmy1q9j78rf0qvf568wi6mr6-foo.drv', but I am a 'x86_64-darwin'
<clever>
kreetx: i think you need to be root for --builders to work
<clever>
kreetx: or in the trusted users of the local nix.conf
johanot1 has quit [Quit: Leaving.]
semihonest has quit [Quit: WeeChat 2.1]
<kreetx>
clever: root in macos I take it?
<clever>
kreetx: yes
agile has joined #nixos
Ariakenom has quit [Ping timeout: 256 seconds]
semihonest has joined #nixos
<kreetx>
clever: I think I need to do something to make nix visible for root because sudo'ing the same command got me this: error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:14
<kreetx>
but I think it simply means the bash env is not set up
<clever>
kreetx: thats $NIX_PATH being cleared
semihonest has quit [Client Quit]
<kreetx>
clever: how do you mean?
halfbit has quit [Ping timeout: 245 seconds]
<clever>
kreetx: sudo is configured to sanitize things
<clever>
without $NIX_PATH, nix cant find <nixpkgs>
camsbury has quit [Ping timeout: 245 seconds]
<infinisil>
kreetx: Try adding -i to the sudo command
<Myrl-saki>
Ugh, how does `fileSystem =` set the .mount? I want to make it mount with a+rwx.
<Myrl-saki>
I've been trying to follow the code path for like 20 minutes already.
<infinisil>
Myrl-saki: Permissions have nothing to do with mounting I'm pretty sure
<clever>
Myrl-saki: after you mount, it will use the permissions of the root directory of whatever you mounted
<clever>
which you can just chmod normally
<Myrl-saki>
clever: Hmm
<Myrl-saki>
Okay. I'm a bit more confused now.
<Myrl-saki>
Oh wait no.
<Myrl-saki>
drwx------ 4 98 root 4096 Jun 8 23:56 mongodb
<Myrl-saki>
98 is a uid, I believe.
camsbury has joined #nixos
<infinisil>
Yea
<infinisil>
chown?
<Myrl-saki>
But /var/db itself is u+rwx.
<clever>
Myrl-saki: use stat instead of ls
<Myrl-saki>
I think a race condition happneed on my program.
<Myrl-saki>
clever: Oh cool. TIL. Thanks.
<clever>
Myrl-saki: did you flag the service as requiring the mounts for its own data dir?
<Myrl-saki>
clever: Nope.
<Myrl-saki>
That's what I was thinking of doing after.
<tilpner>
How could one get the runtime closure of a package in Nix?
<infinisil>
tilpner: nix-store -qR of a derivation output
sbdchd has joined #nixos
<tilpner>
infinisil - I thought recursive Nix wasn't allowed?
<infinisil>
Ah you want it inside a derivation
<Myrl-saki>
Yeah, it works after I chowned it.
<sbdchd>
Hello, I am wondering how to best import a function from a package. E.g., I can do `with python36Packages' and have access to fetchPypi, but what would I do if I just want to have access to `fetchPypi` and not all of the python packages
<infinisil>
tilpner: Have a look at nixpkgs/nixos/lib/make-system-tarball.nix
<Myrl-saki>
clever: I think I need to chown /var/db/mongodb, but I'm not sure if I should add that to the preStart of mongodb or the postStart of the mount.
<sbdchd>
ideally i would have something like `with buildPythonPackage, fetchPypi from python36Packages`
<infinisil>
tilpner: Seems to be something in the direction you want, but I don't know more than that
jmackie has joined #nixos
<jmackie>
Does anyone connect to a Cisco VPN for work? And if so, how do you do it?
migy has quit [Quit: migy]
migy has joined #nixos
<tilpner>
infinisil - That lead me to pkgs/build-support/closure-info.nix. Thanks! :)
<infinisil>
jmackie: I don't because of some DNS problems, but there's `networking.vpnc.services` which puts them into /etc/vpnc, then you can call `sudo vpnc <name>` to start it (add --debug=1 or --debug=2 for debugging)
<Myrl-saki>
Like system.build.fileSystems = fileSystems;
fader has joined #nixos
fader is now known as et4te
<Myrl-saki>
mountConfig = mkOption {
stepcut has joined #nixos
<Myrl-saki>
default = {};
<Myrl-saki>
example = { DirectoryMode = "0775"; };
<Myrl-saki>
Apparently there's this.
<kreetx>
clever: infinisil: thanks for the help! just fyi if the next macos user comes along: the root's shell was 'sh' and had no $NIX_PATH, just running/starting bash fixed this. I got my docker image 'nix-docker-build-slave' from LnL7 (which you probably know), and its setup scrip sets up a ssh host with name, user, key and port 3022. Maybe all these could be somehow set in the 'nix build ..' command, but I just
<kreetx>
copied my users .ssh/config to /var/root/.ssh. And now it finally built! :)
<et4te>
I'm trying to build amdgpu-pro driver on NixOS but can't seem to change which kernel is chosen. I've looked through the code but can't find why it keeps picking version 4.9 instead of the one I specified in the configuration.nix. If I remove "amdgpu-pro" from videoDrivers then it uses latest kernel instead. Anyone have any idea how to force it to build with a different kernel version?
mkoenig has joined #nixos
<infinisil>
Myrl-saki: Huh yeah, I didn't know systemd could do that. Probably translates to just a chmod after the mount
<Myrl-saki>
infinisil: Yeah.
<Myrl-saki>
Accepts octal, even.
<infinisil>
Oh wait
<infinisil>
Myrl-saki: "Directories of mount points (and any parent directories) are automatically created if needed. This option specifies the file system access mode used when creating these directories. Takes an access mode in octal notation. Defaults to 0755."
<Myrl-saki>
Yeah.
<LnL>
kreetx: yeah you need to configure ssh for root, my instructions where written before the installer for darwin was updated to use the nix-daemon
<Myrl-saki>
Not what I want either.
<Myrl-saki>
infinisil: There's no "owner" either. :/
mkoenig_ has quit [Ping timeout: 256 seconds]
<infinisil>
Myrl-saki: You could just run a chmod after the mount
<infinisil>
and chown
<LnL>
kreetx: I don't think you can configure the port with --option builders, same with known_hosts
<Myrl-saki>
infinisil: That's what I'm trying to do.
<Myrl-saki>
infinisil: I'm thinking of either adding it to the postStart of local-fs.target
<Myrl-saki>
infinisil: Or the preStart of mongodb.
<Myrl-saki>
infinisil: My first goal was to add it to the postStart of the mount, but that doesn't really seem possible anymore.
<Myrl-saki>
Or of course, use the `root` user.
Sonarpulse has joined #nixos
<infinisil>
PartOf and After should work
<infinisil>
Create a new service that chmods, and set PartOf = [ "....mount" ] and After = [ "....mount" ];
<Myrl-saki>
infinisil: My problem is that `mounts` is an loa, I don't think the merge would happen that
<Myrl-saki>
infinisil: Oh, didn't know you could do that, actually.
<Myrl-saki>
infinisil: Cool. Thanks. I'll take a look at that after.
<Myrl-saki>
Way better than messing around with preStart.
<infinisil>
:)
<infinisil>
Well since the service is really what needs it, I think preStart would make more sense
<infinisil>
Or a service that runs before the db
Guest21370 has quit [Ping timeout: 260 seconds]
<infinisil>
As in, use PartOf,Before = [ "mongodb.service" ]; instead
tmaekawa has joined #nixos
<Myrl-saki>
Alternatively, I think I should just rune everything as root, as every machine is single-application.
<Myrl-saki>
s/rune/run/
<kreetx>
LnL: thanks for the images! On connecting with ssh: I didn't even want to know if the --builders syntax supports port, but just bravely copied the .ssh/ and crossed my firgers :p. I never do anything elaborate in macos' root and that's why it's in this entirely unconfigured state..
sanscoeu_ has quit [Remote host closed the connection]
<Myrl-saki>
Any thoughts on that?
<Myrl-saki>
Security implications, etc.
<pie_>
manveru, the thing you linked looks pretty good but its got that part with the ????
kreisys has quit [Remote host closed the connection]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<pie_>
manveru, otherwise, do i just import this?
johanot has quit [Remote host closed the connection]
<LnL>
kreetx: yeah, with the daemon you go through root
<charlesh`>
still trying to package some closed-source game to nixos. Do you think it's okay to write a script wrapper for the game that copy the game data to $HOME so you have write permission and the game won't meh you
<charlesh`>
?
tmaekawa has quit [Quit: tmaekawa]
stepcut has quit [Remote host closed the connection]
thc202 has quit [Remote host closed the connection]
stepcut has joined #nixos
jmackie has quit [Quit: Page closed]
<Myrl-saki>
How to make resources access a machine's config?
<Myrl-saki>
(nixops)
<Myrl-saki>
Oh wait, ignore that.
<Myrl-saki>
Okay, don't ignore that.
thc202 has joined #nixos
ixxie_ has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
<Myrl-saki>
I tried {machines, ...}:
<gchristensen>
{ nodes, ... }
<Myrl-saki>
Oh.
<Myrl-saki>
gchristensen: Thanks.
roberth has quit [Ping timeout: 276 seconds]
stepcut has quit [Ping timeout: 264 seconds]
<ixxie_>
yo
<philippD>
Is it possible to disable tests for a haskellPackages.callPackage call?
<Myrl-saki>
Okay, uh.. I have this. inherit (nodes.mongodb.deployment.ec2) zone;
<Myrl-saki>
Where mongodb is the name of the machine.
<Myrl-saki>
It says `deployment` doesn't exist. I tried `.config.deployment` too.
<Myrl-saki>
error: attribute 'config' missing, at /////network-ec2.nix:59:14
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<Dezgeg>
03
<Dezgeg>
oops
<et4te>
gchristensen: this works but when I set xserver.videoDrivers = [ "amdgpu-pro" ]; the kernel version gets changed to 4_9 and the drivers try to build against this ...
<philippD>
srhb: thanks
seanparsons has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
<et4te>
gchristensen: but since I'm trying to upgrade the driver used and it needs to build against 4.13 at least - I need this to be configurable. In the package default.nix there isn't any variable I could find which I could override or change to force the kernel version to be higher.
johanot has joined #nixos
kreetx has quit [Ping timeout: 260 seconds]
matthewbauer has joined #nixos
<et4te>
its inherited by the config (the params have kernel ? null) inherited somewhere... then in all-packages.nix, no trace of specifying the kernel version either as far as I could see.
<Myrl-saki>
Uh.
jD91mZM2 has joined #nixos
<et4te>
looking throuhg nixpkgs doesn't help either, can't find where this 4_9 version is being chosen from (using master branch of nixpkgs to build against, modified package for 18.10 driver instead of the older 17.40)
<gchristensen>
et4te: can you share your full config?
<nyanloutre[m]>
hello, I would like to migrate a nixos installation. Is it possible to use nixos-install from an already installed system ?
<WilliamHamilton>
hi, I'm forced to use an eclipse plugin that I have locally, but I can't install it via the eclipse menu, because that server seems to be down. Is there a way to copy the jars in the plugin directory?
<et4te>
gchristensen: kinda hard to do that atm because the machine graphics drivers don't work and I don't have IRC setup on there
<gchristensen>
and `enabled` looked super promising
ixxie_ has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos
<infinisil>
nyanloutre[m]: Totally
<infinisil>
nyanloutre[m]: In fact, the live cd is really just a nixos system
ixxie_ has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
<charlesh`>
Got a problem, I have some source code in one place (grabbed by fetchurl) and one additional script in the same dir as default.nix. How do I add my script in the unpacked directory of the sources ?
winem_ has quit [Ping timeout: 256 seconds]
iyzsong has quit [Ping timeout: 245 seconds]
<charlesh`>
Ah maybe if I set sourceRoot I can access my script with ../myscript.sh ?
<et4te>
gchristensen: cool man thanks for the tip. It looks like its building ... if it succeeds I can contribute a pull req to master for people with Vega graphics cards
<gchristensen>
great!
<et4te>
I have a canyon hades, would be cool for NixOS to be supported :)
<infinisil>
charlesh`: you could just do `prePatch = "cp ${./otherfile} otherfile"`
<charlesh`>
oh yeah the ${ } syntax. That's it, thanks
ixxie_ has quit [Ping timeout: 260 seconds]
<philippD>
Ok, I give up. I just don't know how to use haskell.lib.dontCheck. I have tried to understand the nix files in the nixpkgs repo and read the manual, but I can't make sense of this. https://gist.github.com/chisui/311bb6d68746d67c888dee59e7af3f62
knupfer has quit [Ping timeout: 265 seconds]
kreetx has joined #nixos
<bkchr[m]>
philippD: what is your problem?
erasmas has joined #nixos
<philippD>
bkchr[m]: I'm trying to disable tests while building pkgs.haskellPackages.pandoc-include-code. They currently don't seem to run but I need that filter.
kreetx has quit [Ping timeout: 260 seconds]
ixxie has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
asymmetric has joined #nixos
<{^_^}>
[nixpkgs] @erosennin opened pull request #42071 β ktorrent: fix build with Qt 5.11 β https://git.io/vhXwM
<WilliamHamilton>
I gather the problem is the missing libXtst.so.6, but I installed libXtst
ixxie_ has quit [Ping timeout: 256 seconds]
ixxie has joined #nixos
asuryawanshi has joined #nixos
<bkchr[m]>
philippD: Good question. But I think `callPackage` is only required for packages in "extra" files
knupfer has joined #nixos
lonokhov has quit [Quit: WeeChat 2.0]
kreetx has quit [Ping timeout: 256 seconds]
kreetx has joined #nixos
stepcut has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
woodson has joined #nixos
ixxie has joined #nixos
halfbit has joined #nixos
<infinisil>
,callPackage
<{^_^}>
If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
stepcut has quit [Remote host closed the connection]
<infinisil>
philippD: It's only needed for those kinda files ^^
johanot has quit [Ping timeout: 248 seconds]
<philippD>
infinisil: Thanks. That's still kind of hard to find out since it's defined in pkgs/development/haskell-modules/hackage-packages.nix
ixxie_ has joined #nixos
<hodapp>
blargh. I think I started having OpenGL issues since I upgraded to 18.03 on my Thinkpad T410 (Intel graphics only), but I got rid of my old configuration because I didn't realize the issue until weeks/months later
joeyh has joined #nixos
<infinisil>
philippD: It's really just: if you have such a file, use callPackage. And if you just refer to an attribute like haskellPackages.hello then you don't need it, because that's not even a file
organixpear has quit [Remote host closed the connection]
halfbit has quit [Ping timeout: 240 seconds]
ixxie has quit [Ping timeout: 268 seconds]
<hodapp>
it will work upon a full reboot, but as soon as I switch screens around with xrandr or something it will just flicker the first frame and never update or let me interact (anytime OpenGL is involved)
<joeyh>
does nixos have a process for handling embargoed security issues? Would like to get in touch with whoever about one
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
ixxie has quit [Ping timeout: 248 seconds]
tv2 has quit [Quit: WeeChat 2.0]
tv has joined #nixos
sanscoeur has quit [Remote host closed the connection]
<gchristensen>
joeyh: we'll sort that out right away, thank you
alexteves_ has quit [Remote host closed the connection]
<gchristensen>
actually, sorry -- we can't get on that list yet as we are not part of the private list. however, we do have a team and are working to be on the distro list.
ixxie has joined #nixos
nuncanada2 has joined #nixos
sanscoeur has joined #nixos
<joeyh>
gchristensen: see your inbox
<gchristensen>
ok
<joeyh>
I picked you because you're lucky 1st listed
karlguy_ has quit [Remote host closed the connection]
karlguy_ has joined #nixos
tos9 has joined #nixos
<tos9>
Hi. I see neovim 0.3 is merged in https://github.com/NixOS/nixpkgs (3 days ago), but when I nix-env -i neovim I get 0.2.2 still, even though I have nixos-unstable as my channel -- how do I see why that is?
<Taneb>
tos9: have you updated your channel?
<tos9>
Taneb: Yes
<tos9>
(I ran nix-channel --update)
<Taneb>
Well, that's one obvious thing ruled out
alex`` has joined #nixos
<tos9>
The Hydra website is incredibly slow :/ -- I assume one other explanation is "it hasn't been built by that yet"?
<Taneb>
I think it would prefer building from source to that, but I could be wrong
<gchristensen>
run nix-shell -p nix-info --run nix-info
<gchristensen>
,nix-info = run and share the output from: nix-shell -p nix-info --run nix-info
<lo_mlatu>
1:26 δΈε <lo_mlatu> how can I avoid the `name collision` warning every time I use `nix-env`οΌ
tschotscho has joined #nixos
johanot has quit [Ping timeout: 256 seconds]
<pie_>
ok so i decided to just patch the .nix file. now im unsure how to handle default setting: i added from line 78, and changed 153 and 161
<tschotscho>
Is there a standard way of declaring alternative dependencies in nixpkgs? In my case i don't care whether to use gnused or busybox, so this choice could be exposed to the user.
<pie_>
last i looked nix is bad at exposing choices like that and people just choose something.....but i dont really know
<pie_>
if you're going to take a parameter though it will be through the arguments
<pie_>
i think the keyword you want is optional dependencies
<hodapp>
laptop users: what models are you using on NixOS that have no trouble with OpenGL?
<hodapp>
and perhaps support a docking station
<tschotscho>
Yes, but how to restrict the choice to the options i know are ok? Otherwise one could also specify e.g. flightgear but this clearly does not work here.
foldingcookie has quit [Remote host closed the connection]
johanot has joined #nixos
<gerschtli>
hey, does anyone has experience with nixos on raspberry pi 3 b+ with ARMv7?
<maurer>
hodapp: I'm uaing a P50, no trouble with OGL, but I can't make bumblebee work, so switching between nvidia/integrated uses reboot
<hodapp>
darn
<tschotscho>
Everything I found about optional dependencies only refers to biased binary choices. But given there was a third sed this would not suffice.
<hodapp>
my integrated Intel was working fine until it wasn't
<hodapp>
but it's fine upon a fresh reboot. xrandr/switching monitor setup causes problems.
<pie_>
tschotscho, well i mean it looks to me like what usually happens is setting a flag, not passing a package to use...
<pie_>
tschotscho, mkOption seems to have the possibility of something like type = types.enum [ "tun" "tap" ]; but im not sure if that helps
reinzelmann has joined #nixos
elasticdog has quit [Ping timeout: 276 seconds]
<tschotscho>
pie_, can mkOption be used in packages in a way that makes sense? My understanding of packages vs modules is not so good yet.
Sonarpulse has quit [Ping timeout: 260 seconds]
<pie_>
i have no idea...i think mkoptions is used for config stuff so i dont think that is even good for arguments
<tschotscho>
Of course, the choice must somehow be biased, because there would be a default option.
<gerschtli>
tschotscho: why not use an enum as type and map the enum value to a package? if i understand your problem correct..
<tschotscho>
gerschtli: yes, i had this idea, but how can i require a type for a package argument? I think this is the same problem as with mkOption, isn't it?
<{^_^}>
[nixpkgs] @peti pushed to release-18.03 Β« git-annex: update from version 6.20180227 to 6.20180529 Β»: https://git.io/vhX9g
<gerschtli>
tschotscho: you want an option with mkOption and the value provided through this option should be a package? is that right? then use type = types.package
<infinisil>
tschotscho: I don't think this should be enforced
<tschotscho>
getschtli: Of course i can check the type via assert or meta.broken or something like that. But then, how does anyone know about the options? Or, does anyone know about any optional dependency at all?
elasticdog has joined #nixos
<infinisil>
tschotscho: Users should be able to pass in whatever they want, e.g. a modified version of sed or their own sed, and you can't reasonably detect that
joko has quit [Ping timeout: 268 seconds]
joko has joined #nixos
<infinisil>
The users will have to expect it to just not work when they pass the hello package as the sed dependency
<tschotscho>
infinisil: You have a point there, but then they could override the type or create their own modified expression.
<infinisil>
Is that something bad?
igo95862 has quit [Quit: igo95862]
<tschotscho>
infinisil: The advantage of such a constraint (in real world) would be that the package maintainer can check which available versions of sed work, which needs investigation and/or testing of the program, because e.g. gnused has more features than posix sed.
<tschotscho>
infinisil: Users being able to create a modified expression... is no problem, it's only an alternative way to achieve the same, even if the maintainer specify constraints.
<infinisil>
Ah, then I'd just do some loose warnings based on the dependency name
stanibanani has joined #nixos
<infinisil>
> builtins.parseDrvName gnused.name
<{^_^}>
{ name = "gnused"; version = "4.5"; }
<pie_>
ok so i think im now trying to do the typical thing where i want configuration.nix to specify how to use stuff from a local repo, but i dont know what to read for this. help?
<infinisil>
tschotscho: ^^
knupfer has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @cwhy opened pull request #42074 β Fix the problem of it not compling in macOS β https://git.io/vhXHI
<gchristensen>
LnL: should we be fixing these packages in a more systemic way? I also have a public GPG key (id: 1A4F63A13A4649B632F65EE141BC28FE99089D72, fingerprint: 1A4F 63A1 3A46 49B6 32F6 5EE1 41BC 28FE 9908 9D72).
<tschotscho>
pie_: ? I don't think i understand your previous post correctly. configuration.nix is not used outside NixOS but dependencies should be specified in the package.
<infinisil>
pie_: I don't get what you're trying to do either
<LnL>
gchristensen: that looks really strange to me
<pie_>
yeah i guess. but I dont want to need to pass -I
<pie_>
ah it was called NIX_PATH i think
<tschotscho>
pie_: ah, so a new issue. let pkgs = /my/sources/nixpkgs?
<tschotscho>
this would then be hardcoded
<pie_>
yeah
<infinisil>
> option "nix.nixPath"
<pie_>
but i think i figured out how to google it now
<{^_^}>
"The default Nix expression search path, used by the Nix\nevaluator to look up paths enclosed in angle brackets\n(e.g. <literal><nixpkgs></literal>).\n"
<pie_>
infinisil, thanks
<gerschtli>
you could also use NIX_PATH and add "nixpkgs=/path/to/nixpkgs" with a colon separated before or after NIX_PATH, dont know the right ordering
<pie_>
well, ideally id be replacing it so it doesnt matter, but since there's a config option for it...
<hodapp>
huh, seems meshlab build is broken on 18.03
<tschotscho>
I think my problem now reduces to the general problem of exposing options to users. But the alternatives should then probably be specified in the long description. Thanks, all!
<hodapp>
I am trying to figure out the actual *error* in the build but I'm sort of falling asleep halfway through
crmlt has joined #nixos
Lev50 has joined #nixos
<infinisil>
tschotscho: The module system is usable outside of NixOS, but unfortunately there's nothing in nixpkgs to automatically create a man pages of those options like `man configuration.nix`
<infinisil>
s/a//
<{^_^}>
[nixpkgs] @Chiiruno opened pull request #42075 β lutris: init at 0.4.18 β https://git.io/vhXQq
<hodapp>
given that there are no binaries for this, is it already known that the meshlab build is failing?
i0-dfn has quit [Remote host closed the connection]
<pie_>
can i use overlays to override services?
<gerschtli>
pie_: AFAIK no, but why do you want to do this via overlays?
mkoenig has joined #nixos
mkoenig_ has quit [Ping timeout: 256 seconds]
<pie_>
gerschtli, no specific reason
<pie_>
the alternative is patches in a local repo yes?
<pie_>
i guess if i override nixpath i cant use channels anymore
<gerschtli>
you can still override in your configuration.nix
<pie_>
yeah thats what im doing
<pie_>
though i guess channels arent really ideal anyway
<hodapp>
is there a page that I can see the results of current builds in Hydra?
<pie_>
i could probably write a script that fetches the latest rev, shoves it in a file, and have my configuration.nix import that or something
<hodapp>
google is not helping
<pie_>
hodapp, i think there is but i cant remember where :D
<infinisil>
pie_: You can prevent the inclusion of certain nixos modules, then import a modified version yourself
tos9 has left #nixos [#nixos]
<hodapp>
oh, meshlab is just alreadyh marked as broken
<pie_>
someone told me i have to use modules to do this but i havent gotten to trying to figure that out yet: if i have multiple config files and i might want to disable modules in more than on place for overriding, then what do i do?
<clever>
pie_: configuration.nix is just a nixos module, and the imports field has a list of paths to more modules, so you can create a tree of modules that refer to eachother
<pie_>
right but i mean if i end up wanting to do disabledModules in in two files (so they should get merged)
<LnL>
you have to disable each file explicitly
<infinisil>
clever: packaging chrome?
<clever>
infinisil: building chrome with a custom patch to stop it from crashing in about 5mins
<clever>
pie_: nixos should merge that value between all files
<pie_>
clever, as you can see i am finally starting to learn some nix :p
<clever>
:D
<pie_>
clever, reinstalled another machine i wasnt using and im trying to go full declarative on it
roconnor has quit [Remote host closed the connection]
<pie_>
clever, did oyu ever get civ6 or what was it running lol?
roconnor has joined #nixos
<clever>
pie_: nope
<hodapp>
isn't civ one of those games that if clever got it running you'd know because you'd not hear from him for 7 months?
<clever>
lol
<pie_>
heh
<hodapp>
hm. I still need to play through Riven
asuryawanshi has quit [Remote host closed the connection]
<hodapp>
I have purposely avoided Civilization because I've heard it's very dangerous
stanibanani has quit [Ping timeout: 268 seconds]
<hodapp>
already know from my childhood that I can sink many many hours into games like Sim City and Dune II and Warcraft
<MichaelRaskin>
Who needs fancy graphics. We have freeciv and xconq
asuryawanshi has joined #nixos
<hodapp>
I need fancy OpenGL graphics on my laptop
<hodapp>
and for some reason only WebGL works right
<pie_>
ive been doing some opus magnum to procrastinate from studying :(
<pie_>
after i spent several days on and off trying to figure out why it wouldnt run in wine and noone else reporting any issues
<pie_>
...turns out i just needed a new wine prefix (fucking wine .... <3)
<hodapp>
the crazy thing I just found out is that ScummVM can now run a bunch of other games
<pie_>
nix for WINE when
matthewbauer has quit [Read error: Connection reset by peer]
* pie_
needs some sort of NIX ALL THE THINGS sticker
orivej has joined #nixos
<hodapp>
ScummVM sat in my brain as "that thing that can play Monkey Island and some other similar things, like Beneath a Steel Sky" until this year when I realized it could play Myst, Riven, 7th Guest, and Return to Zork, among other things
<pie_>
clever, i poked the guys in nix-dev for a syntax feature i thought might be nice, what do you think : https://bpaste.net/show/fb184e879edf
matthewbauer has joined #nixos
<hl>
yeah, scummvm is a dumping ground for 2D engine reimplementations
<hl>
...also this is the second time someone's mentioned scummvm and riven in IRC today, weird
<pie_>
so for disabledModules do i need to pass a path or can i pass services.tinc? i think i saw somewhere it should accept something like that as well
<clever>
pie_: those 2 blocks of code appear to do almost the same thing
<pie_>
or is that only for packages
<clever>
pie_: it has to be a string representing the path to the module, check the example i pasted above
<pie_>
clever, they do, its the .{} based assignment, for grouping. pretty much just aesthetic i guess
<pie_>
ok makes sense
<pie_>
yeah i was looking at youre example :)
<pie_>
*your >_>
matthewbauer has quit [Read error: Connection reset by peer]
<infinisil>
Replace the "." on line 18 with a "=" and it's valid nix syntax that does what you want
<pie_>
oh this isnt the example i fixed...the point would have been you can define disjunct sets like this, so you could so networking.interfaces.{a="b";j="k"} and later networking.interfaces.{c="d";e="f";}
<pie_>
or something like that
<pie_>
obviously you arent allowed to assign to overlapping sets because of immutability
<infinisil>
mkMerge is there for that
<infinisil>
mkMerge takes a list of assignments and combines them
<infinisil>
with proper merging and recursion and stuff
<pie_>
ok but then youd have to keep references around and just makes it noisier?
<infinisil>
references?
<pie_>
i mean idk how mkmerge works but im guessing youd have to pass sets as its arguments
<infinisil>
Yeah, it is noisier
<infinisil>
There is a language proposal which might help with that
<pie_>
this would basically just be syntactic sugar for networking.interfaces.a="b"; networking.interfaces.j="k";
<pie_>
(well obviously again thats an example not sufficient to *necessitate* it)
<infinisil>
Ah I see what you mean
<infinisil>
> p { x.y = 10; x.z = 20; }
<{^_^}>
"{ x = { y = 10; z = 20; }; }"
<pie_>
\o/ sorry for the bad explanation
<infinisil>
This works, but the other way doesn't:
<infinisil>
> p { x = { y = 10; }; x = { z = 20; }; }
<{^_^}>
error: attribute 'x' at (string):149:22 already defined at (string):149:5
<pie_>
yeah kind of like that i guess, but that forces you to define everything in the same assignment
<pie_>
ah, yes
<infinisil>
Yeah, with attributes set this could indeed work
<infinisil>
The problem is when the right hand side is no attribute set
<hodapp>
hmmm, any examples for applying a patch outside of sourceRoot?
<pie_>
infinisil, what do you mean
<pie_>
(presumably this syntax would only be for sets :P, so im obviously missing what you mena)
<hodapp>
meshlab has ../vcglib hardcoded all over the place, so the build puts that there relative to $src (I guess)
<infinisil>
> p { x = (x: 1) "foo"; x = { z = 20; }; }
<{^_^}>
error: attribute 'x' at (string):149:23 already defined at (string):149:5
<pie_>
infinisil, that should probably error
<infinisil>
Yeah
<hodapp>
but I need to patch ../vcglib, but it's not ../vcglib until buildPhase (it's vcglib-${vcblibRev} prior)
<infinisil>
pie_: I think it should work if all right hand side values are attribute sets, but apparently that's not implemented
<pie_>
infinisil, i dont think there need to be any semantic changes (the syntactic sugar view seems suficient? not saying no problems will crop up, i just dont see any obvious issues yet)
sbdchd has quit [Remote host closed the connection]
<pie_>
infinisil, what do you mean not implemented?
andymandias has joined #nixos
<infinisil>
(Never mind that)
<pie_>
:D
sbdchd has joined #nixos
<infinisil>
But yeah, I can't see a program that would give incorrect behaviour with this new feature
roconnor has quit [Ping timeout: 265 seconds]
<infinisil>
Would only make now-erroring programs work
roconnor has joined #nixos
<pie_>
didnt even think of that. well youd still have to rewrite them with the syntax :p
<pie_>
im not able to implement this though so its all just wishful thinking xD
<pie_>
unless someone wants to
<infinisil>
Why rewrite?
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
<pie_>
i mean, its new syntax so if someone has colliding assigments it wont be automatically fixed?
<infinisil>
Ohh you still think of this weird . syntax?
<pie_>
yeah, i dont know what you were thinking of then :D
<hodapp>
hm. I guess I could paste the patch into default.nix and use ../vcglib-${vcglibRev} rather than vcglib
<pie_>
you mena automatically merging disjunct sets?
johanot has quit [Ping timeout: 248 seconds]
<infinisil>
pie_: The compiler should easily allow this: { x = { y = 10; }; x = { z = 20; }; }
<pie_>
well i guesss that could also work
andymandias_ has joined #nixos
<infinisil>
Just a matter of some program analysis
<pie_>
but isnt it kind of implicit that those sets dont have additional elements?
<pie_>
i.e. the sets are exactly {y} and exactly {z}
<infinisil>
Yeah, and?
andymandias has quit [Ping timeout: 260 seconds]
<pie_>
merging them would mean sometihng else
<pie_>
you no longer have immutability (?)
<infinisil>
Ah, you mean to merge them, I think this could only work with attrsets on the language level. The module system has lots of other types which require different merging, but that merging behaviour is encoded in nixpkgs, not on the language level
<pie_>
(?) because i guess technically it really isnt so different than networking.interfaces.a="b"; networking.interfaces.j="k";
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/vhXA4
<infinisil>
pie_: It's in fact the same
<pie_>
infinisil, its funny because i was saying that too
slack1256 has quit [Remote host closed the connection]
<hodapp>
but why does this use 'name = "vcglib-${vcglibRev}" in fetchFromGitHub, and then during buildPhase rename that to just "vcglib"? I don't see anything prior to buildphase that relies on that name
lo_mlatu has quit [Quit: Connection closed for inactivity]
<pie_>
i guess i think of it differently because { ... } means the entire set is finished and defined, whereas doing stuff like a.b=c doesnt feel like that as much
<pie_>
im not sure.
johanot has joined #nixos
<clever>
pie_: a.b = { c = 3; }; is identical to a = { b = { c = 3; }; }; };
<pie_>
s/because .. means/ because i feel like ... means
<clever>
and its also identical to a.b.c = 3;
<clever>
a."b.c" = 3; will also look similar in some outputs, but is logically a different option
<pie_>
i guess what im trying to say is do doing a.b=c; a.d=e; but not being able to do a = {b = c} ; a = { d = e } ; is fine i think
<pie_>
i havent quite been able to figure out why i think that.
johanot has quit [Read error: Connection reset by peer]
<pie_>
ok lets look at it the other way around, what if you want some {} assignment to be immutable?
<pie_>
(after having applied the change to the set assignment semantics)
Mateon2 has joined #nixos
woodson has joined #nixos
phdoerfler has joined #nixos
<infinisil>
there ain't no mutations
<infinisil>
not sure where that's coming from
<acarrico>
Has anyone tried cloning a nixos system?
roconnor has quit [Read error: Connection reset by peer]
roconnor_ has joined #nixos
<acarrico>
I did so, from one usb thumb drive to another.
<acarrico>
I used tar for the boot partiton, and btrfs send for root.
<pie_>
acarrico, not sure what you mean, i think it worked fine for me at some point
<pie_>
i just dd-d the disk over
<acarrico>
I updated the UUIDs in the config.
camsbury has quit [Ping timeout: 240 seconds]
<pie_>
the one issue i did have was another time i needed to fix the graphics driver settings
<pie_>
also brb
<acarrico>
Didn't use DD, because it would try to copy too much space.
johanot has joined #nixos
<acarrico>
After the clone, I mounted the file systems at /mnt/ and /mnt/boot.
<acarrico>
And did nixos-install.
<acarrico>
This didn't work.
<acarrico>
It didn't update the fstab.
<acarrico>
pie_: Hey there.
<acarrico>
I could manually update the fstab, but wondering what else might be off.
<acarrico>
(the ssh keys are stale and refer to the old hostname also).
andymandias_ has quit [Ping timeout: 264 seconds]
<acarrico>
Seems like mabe nixos-install is reluctant to overwrite things in fstab?
<acarrico>
err. I mean in /etc/ ?
phdoerfler has quit [Quit: Leaving.]
phdoerfler has joined #nixos
<acarrico>
Also nixos-install still did a bunch of downloading, so I'm wondering if it would be better to run nixos rebuild on the /mnt somehow.
<acarrico>
Intead of trying to use nixos-install.
Sonarpulse has joined #nixos
roconnor_ has quit [Ping timeout: 264 seconds]
<acarrico>
Anyway, seems like this is an under documented process.
pie_ has quit [Ping timeout: 260 seconds]
fresheyeball has joined #nixos
<fresheyeball>
hey
<fresheyeball>
is there a way to setup all the deps needed for a nix-shell without entering the shell?
<ThatPako>
Are there any docs explaining how to write a wrapper creating a derivation which also modifies the build command so dependencies are loaded by the compiler?
<infinisil>
ThatPako: Can you be a bit more specific?
shad has quit [Quit: No Ping reply in 180 seconds.]
<ThatPako>
basically I want the function to get all the dependencies, check if they provide a package and if so append that to the include path of the command called to compile the program
shad has joined #nixos
<pie__>
clever, i think i just ran into the issue where nixPath only works after already having done a successful build
<clever>
ThatPako: the stdenv already automates all of that
<pie__>
well actually...i guess i could manually set the env var for the initial bootstrap
<clever>
pie__: yeah, all nix.nixPath does is set the value of NIX_PATH at runtime, it has no effects on the current build
<ThatPako>
clever: how? I don't think the stdenv can handle emojicode by default :/
<clever>
ThatPako: and then hooks like this can integrate into it
shad has quit [Client Quit]
<ThatPako>
that bintools example looks like chinese to me (mostly) :/
matthewbauer has joined #nixos
<ThatPako>
Where is $targetOffset coming from?
shad has joined #nixos
<pie__>
clever, ok so configuration.nix takes the parameters { config, pkgs, ... }: , which kind of doesnt make sense if i try to override the nixpkgs used in configuration.nix?
<clever>
/home/clever/apps/nixpkgs/pkgs/stdenv/generic/setup.sh: for targetOffset in "${allPlatOffsets[@]}"; do
<clever>
ThatPako: it appears to be a var within setup.sh
<ThatPako>
hm...
<infinisil>
I think you just want to add to buildInputs
matthewbauer has quit [Read error: Connection reset by peer]
<clever>
pie__: you can override the nixpkgs itself, with nixpkgs.pkgs = import ...; but you cant override the modules that nixos is using so easily
<pie__>
but that uses nixops so i dont really know about that
<ThatPako>
how would I get the stuff out of setup.sh? I don't see the LDFLAGS being used anywhere in default.nix
<pie__>
clever, hm
matthewbauer has joined #nixos
<clever>
ThatPako: cc-wrapper will obey NIX_LDFLAGS_LINK and a few others
<pie__>
clever, looks like changing the env var is the only okayish option
<pie__>
which is kind of disappointing
<ThatPako>
clever: do I need that role stuff then?
sbdchd has quit [Remote host closed the connection]
<clever>
dont think so
<pie__>
but it looks like it works, so theres that.
<pie__>
error: infinite recursion encountered, at /etc/nixos/nixpkgs/nixos/modules/services/networking/tinc.nix:138:29
<pie__>
oh dear xD
<ThatPako>
Is it possible to use exported env var in my build phase too?
<clever>
ThatPako: yeah
<pie__>
ahh i did a self reference in a let
<clever>
ThatPako: all of setup.sh, your build phase, and the setup-hooks are just sourced into a single bash
<clever>
so they can mutate the state and effect eachother
<ThatPako>
ohh, I see
myshoe has quit [Quit: Lost terminal]
shad has quit [Quit: No Ping reply in 180 seconds.]
atu has quit [Ping timeout: 264 seconds]
shad has joined #nixos
<ThatPako>
clever: um... How would I get that function into my "scope" when executing a .nix file in my project? Right now I just `import` the default.nix that builds the emojicode compiler. Can I add the function there?
toby1851 has quit [Ping timeout: 256 seconds]
aarvar has quit [Ping timeout: 240 seconds]
michiell2 has quit [Ping timeout: 276 seconds]
<hyper_ch>
clever: I can't get kexec to properly "build" anymore
shad has quit [Quit: No Ping reply in 180 seconds.]
<clever>
hyper_ch: is it giving an error?
<Taneb>
Is there a recommended way to write nix derivations for executables which call other executables
<Taneb>
So I want to a) make sure the other executables exist
<Taneb>
And b) make sure I can find them
<clever>
Taneb: if possible, embed the paths to those executables into the binary
<sir_guy_carleton>
according to the NixOS manual, NixOS has a special config options for controlling test VMs for test VMs
<clever>
Taneb: nix will then ensure they always exist
<pie__>
should i fix this?: "trace: warning: The option `system.stateVersion' defined in `/etc/nixos/configuration.nix' has been renamed to `system.nixos.stateVersion'.
<clever>
pie__: yes
<clever>
hyper_ch: do you want network manager in the image?
<hyper_ch>
preferrably yes...
hoshineko has quit [Ping timeout: 264 seconds]
* pie__
waits for whole system rebuild
<clever>
hyper_ch: which nixpkgs channel are you using?
<sir_guy_carleton>
clever: okay thanks
<hyper_ch>
clever: unstable
<clever>
hyper_ch: nixos or nixpkgs?
<hyper_ch>
nixos
<clever>
hyper_ch: does network manager build on that nixpkgs?
<pie_>
something is really messed up with my power stuff, machine crashes often when im not on AC power. either that or something else is correlated with ti
<clever>
hyper_ch: that is a different package from what is failing
sanscoeur has joined #nixos
<hyper_ch>
clever: I'm trying on two machines and both fail
<hyper_ch>
the other one: nix-store -qR /run/current-system | grep NetworkManager-iodine --> no result
<clever>
hyper_ch: try building just the failing network-manager derivation with nix-build
<hyper_ch>
no idea how to do that
<hyper_ch>
but why does it even require gtk?
<clever>
hyper_ch: first, look at the name of the derivation: NetworkManager-iodine
pie__ has quit [Ping timeout: 240 seconds]
<clever>
hyper_ch: then poke around in nixpkgs and find networkmanager_iodine
<clever>
hyper_ch: nix-build '<nixpkgs>' -A networkmanager_iodine
<clever>
then read the nix expressions for it, it has a withGnome ? true option
<hyper_ch>
hmmm, actually not sure if I even need network manager... I made a note that it's mainly for easy wifi setup... but on a server...
<clever>
hyper_ch: then disable it with the normal nixos options, in the configuration.nix used by kexec
phdoerfler1 has quit [Read error: Connection reset by peer]
phdoerfler has joined #nixos
<hyper_ch>
but it used to work just like that
logzet has quit [Remote host closed the connection]
JasonGrossman has quit [Ping timeout: 245 seconds]
<andi->
You can easily fill disks... As soon as I stopped storing my vacation videos on disks and decided that I'll never watch them again I could get rid of 80% of my disks..
<hyper_ch>
I need those 100TB SSDs
<woffs>
My 12y old 60GB laptop disk still works well. :)
igo95862 has quit [Quit: igo95862]
<pie_>
i have bad luck or something :p
<andi->
I have a pair of 500G disks that are approaching 10y.
<maurer>
Since I have a work laptop, I'm running two nmve 1TB SSDs in zfs mirror mode
<woffs>
it's hdparm and luck in my case
<maurer>
god I would never have paid for this myself
<maurer>
but it's very nice
<maurer>
I find 1TB to be sufficient storage for local use though
<hyper_ch>
why would you never have paid for it yourself?
<maurer>
hyper_ch: 1TB nvme drives are expensive!
<hyper_ch>
they ain't that expensive anymore
<maurer>
I'd have only bought one, or a smaller size
<woffs>
I must confess that I have a 1TB USB disk in my case ;)
<hyper_ch>
the only problem I have I can't find a decent 14" notebook with 2x nvme or 2x m.2 or mixed slots
<YegorTimoshenko[>
woffs: depends on where are you located
<pie_>
oh wait *NVME*
<YegorTimoshenko[>
here 1tb nvme starts from $300
<hyper_ch>
no that expensive anymore
<YegorTimoshenko[>
(samsung evo)
<pie_>
i thikn i paid 500$ for mine...
<pie_>
its just sata
<hyper_ch>
the pro is like $500
<pie_>
ah
<pie_>
ok
<infinisil>
There's #nixos-chat for offtopic discussions btw ;)
* pie_
really hopes it lasts 10 years
<pie_>
ah :)
<pie_>
anyway
<pie_>
"error: The option `services.tinc.networks.iaa_cluster.interfaceName' defined in `/etc/nixos/networking.nix' does not exist."
<hyper_ch>
(isn't talking about offtopic-channel offtopic itself?)
ThatPako has quit [Remote host closed the connection]
<woffs>
hyper_ch, no it isn't
<woffs>
not that I'm aware of
<hyper_ch>
awwwww
<hyper_ch>
btw, I only want to uncrypt the root pool
<woffs>
hyper_ch, so we need a separate option?
<pie_>
nevermind user error
<pie_>
i left the environment unset for that execution and it was using the old file
<hyper_ch>
kernel 4.16 has some problem
<pie_>
im sorry
<hyper_ch>
woffs: I have multiple datasets encrypted and I don't want to unlock them all upon powering up
phdoerfler has joined #nixos
<woffs>
hyper_ch, but my PR just does what the doc already says ("all pools") ;)
<hyper_ch>
I don't want that :(
<woffs>
hyper_ch, so we should make a separate option, or a list which pools should be unlocked, or an option to do mount -al, or ...
<hyper_ch>
I opt for "or"
<woffs>
hyper_ch, but I think only the mounted and the extraPools would be decrypted
<woffs>
hyper_ch, do you import your pools but not unlock'em?
<pie_>
ok so apparently rebuild-switch brings down ssh?
knupfer1 has joined #nixos
<clever>
pie_: if ssh has been modified, it restarts ssh
<hyper_ch>
woffs: nope
<pie_>
ah looks like my connection is back though
<clever>
pie_: and if anything network related has been modified, it restarts the network
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<pie_>
makes sense
<pie_>
i mean, of course it does *facepalm*
sbdchd has joined #nixos
<pie_>
ah hey it looks like everyhting worked :D
<hyper_ch>
woffs: I don't import all pools... some are just backup pools for other machines so they get imported and unlocked when needed
erasmas has quit [Quit: leaving]
<woffs>
hyper_ch, so my patch shouldn't change that. Maybe you could try if #41846 does break your workflow. I must go to bed now. Thank y'all, good night