Darkmatter66_ has quit [Ping timeout: 265 seconds]
Blessjah has quit [Ping timeout: 264 seconds]
Blessjah has joined #nixos
bkv has joined #nixos
bqv has quit [Ping timeout: 240 seconds]
henry_ has joined #nixos
Zer000 has quit [Quit: Leaving]
zeta_0 has joined #nixos
iyzsong has joined #nixos
<zeta_0>
hey everyone, i've had problems using ghcide in nix-shell(it's not recognizing the haskell packages/modules), have you guys had similar issues? https://github.com/digital-asset/ghcide/issues/527
<{^_^}>
digital-asset/ghcide#527 (by zeta-00, 7 hours ago, open): ghcide is not recognizing haskell pkgs/modules:
<dsal>
Is there any magic for making my projects' needs sticky from a gc perspective? i.e., I'd like to be able to gc, but also would like to keep things around I use a lot.
* dsal
downloads world after gc
ncl has joined #nixos
<mdash>
dsal: sure, nix-store --add-root
invra has joined #nixos
<dsal>
What does it look for?
<mdash>
dsal: a store path
<ottidmes>
dsal: I am pretty sure lorri has something for this for nix-shell's and for system related stuff that has no GC roots, you could always create a little dummy derivation that writes the out paths of the stuff you want to some file, making sure they are considered part of the system, even though they are not in e.g. systemPackages
m0rphism has quit [Ping timeout: 250 seconds]
<invra>
hey guys i am following the wiki to install nixos from my running system.. https://nixos.wiki/wiki/Installing_from_Linux i am stuck tho at the point where i run nixos-install
<dsal>
In this case, I've just got a vanilla stack project. That causes ghc, gcc, and a bunch of other stuff to come down.
<zeta_0>
dsal: i'm assuming you meant garbage collector when you said `gc`
<invra>
dsal what should i do?
<dsal>
invra: Yeah, it just looks like you weren't given a channel. I had a similar thing where I ended up with a channel, but it needed to be updated. I'm not entirely sure how you ended up with no channel at all. :/
<dsal>
zeta_0: I read through that. I'm just not entirely sure how to make a stack project be a gc root.
<zeta_0>
oh ok, this same ghcide setup works fine in home-manager, so something might be wrong with nix-shell, or it's that i'm missing something
bqv has quit [Ping timeout: 240 seconds]
bqv has joined #nixos
<zeta_0>
when i add a haskell package and go into a nix-shell, nix builds the hoogle database and the haddock, so maybe it has something to do with lorri in emacs, i don't know, i'm just guessing
<clever>
energizer: line 395, the configDir defaults to a subdir of dataDir
<clever>
energizer: line 444, the home of the user is set to dataDir, and createHome=true; is set, so nixos will try to make the user and chown the dir to it
<clever>
energizer: line 31, something is made that points to the configDir
<clever>
energizer: line 474, 476, 479, 487, things are copied to configDir and the program is ran and told where to find configDir
<energizer>
clever: why provide a dataDir parameter at all instead of just a configDir?
<clever>
energizer: not sure, maybe some things in syncthing expect it to be in ~/.config/syncthing, so its being setup with dataDir as the parent and $HOME, to maintain that setup
<clever>
energizer: oh!, line 394!!
<clever>
energizer: if you are at least nixos 19.03, it will use ${dataDir}/.config/syncthing, but if you are older then 19.03, everything goes directly into dataDir
bqv has quit [Remote host closed the connection]
<clever>
so that was changed somewhere just before march of 2019
<clever>
and its using stateVersion to figure out if you installed before or after, and keep it from changing and breaking
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<energizer>
clever: aha, got it. thanks
<zeta_0>
clever: hello again, i was finally able to get ghcide working in 2 shell.nix's, but for some reason ghcide is not recognizing the haskell pkgs/modules, like when i try to import a module: https://dpaste.org/C4Unhttps://dpaste.org/d0XE
<clever>
zeta_0: ive not used ghcide, so i'm not sure i can help much more
<zeta_0>
clever: it's ok i understand, i'm trying to find someone that can help me fix this problem, i've posted the issue on github already, and waiting for someone to respond, this setup works fine in home.nix, but with nix-shell, i've ran into some problems
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
<dsal>
I'm trying an armv7 install and am really confused.
<dsal>
I booted sd-image-armv7l-linux.img and like, is this even nixos?
<clever>
dsal: if you plug a monitor in, youll see it should look identical to android
<dsal>
I don't have a monitor.
<zeta_0>
i am finally able to get ghcide recognize the haskell pkgs/modules, it was because ${emacs} needed to be replaced with $(emacs) , damn syntax, https://dpaste.org/FUS9
<dsal>
oh wait.
<dsal>
I just rebooted without the sd card.
<dsal>
It does the same thing.
cantstanya has quit [Ping timeout: 240 seconds]
<dsal>
OK. This makes a bit more sense.
<zeta_0>
finally i was stuck trying to get this to work for 2 days
<clever>
dsal: you have netboot setup?
<dsal>
No. No idea what this is booting off of. I think it's coming from... inside the computer.
<clever>
dsal: what computer is it?
<dsal>
orange pi pc plus
<dsal>
I used to run armbian on it
<clever>
dsal: ahh, i was thinking it was an rpi
cantstanya has joined #nixos
<dsal>
I think there's more magic that needs to be done. I just wrote the stuff with etcher, but further docs suggest there's other required junk.
<clever>
dsal: it looks like my banana-pi and your orange-pi are both sunxi/allwinner based, so the exact same directions work on both
<dsal>
Awesome. Huh. Now it's trying to pxeboot.
growpotkin has quit [Ping timeout: 256 seconds]
<clever>
dsal: #nixos-aarch64 may also be of more help
zaeph1 has joined #nixos
<zeta_0>
when i run nix-shell, emacs opens up and all the ghcide stuff works, but when i try to do this through lorri+direnv in emacs(emacs-direnv), ghcide does not recognize haskell's pkgs/modules, i guess i'm going to need to contact the lorri devs for help on this
<cole-h>
Is there a way to disable networking for a specific test VM (VM being `nix-build ./nixos/tests/...`)?
zaeph has quit [Ping timeout: 256 seconds]
<cole-h>
Trying to test a test, and it keeps getting stuck on networking stuff (nscd)
freeman42x has quit [Ping timeout: 246 seconds]
<zeta_0>
gchristensen: hello there, yesterday i read a nixos weekly post on lorri, and i saw your name as one of the authors of the post, anyways, do you have any idea why i'm running into this issue? i'm sorry to bother you, i'm looking for someone that has expertise in lorri
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
codygman___ has joined #nixos
abathur has quit [Quit: abathur]
<zeta_0>
gchristensen: if you can't help me its ok, i'm just trying to find someone for help, i've only been using nix for about 6 months, so there's still a lot that i don't know
<cole-h>
(It's late for him, so I wouldn't be surprised if he's already left)
<simpson>
zeta_0: Get everything working with direnv first, and then extend that to working with lorri, perhaps. direnv is plenty tough to debug on its own.
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/Jfvqg
<zeta_0>
simpson codygman___ : my setup is: (lorri+direnv+emacs-direnv), i've tested it and it works great, the only functionality that i'm missing is: ghcide is not recognizing certain things when using lorri in emacs, the workaround that i'm using now is just executing `nix-shell`, which opens up emacs with ghcide being able to recognize everything: https://dpaste.org/gdcs
<zeta_0>
codygman___: thanks for the link, i'll take a look now
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/Jfvqo
<codygman___>
zeta_0: Could it be the problem I ran into today with ghcide not supporting multi cradle yet. There is an experimental branch that supports multi-cradle by mpickering but I couldn't get it building because lsp-types/etc issues.
<codygman___>
ah I see you said it works fine in nix-shell
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JfvqK
orivej has joined #nixos
<simpson>
zeta_0: Okay, that's the sort of workaround that could break everything. Running lots of nix-shells recursively, with some in direnv and some not.
<codygman___>
so everything seemed to work fine for my project then didn't work for some reason with ghcide... and I *think* the reason for me was I have a test directory for instance that kept throwing errors. Do you have an hie.yaml cradle for your project?
<simpson>
You'll probably want to do your environment setup in your .envrc, not in your shell.nix.
<{^_^}>
[nixos-homepage] @garbas pushed to landing-page « some more structure to landing page »: https://git.io/Jfvq6
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<zeta_0>
codygman___: no i don't have a hie.yaml setup, i hope the devs automate that soon so i don't have to mess with it, and i haven't messed with .envrc, so far i've just left it to it's default
<codygman___>
hie-bios supports multi cradle, I felt I was going insane today too until I used the `hie-bios check` command with my multi-cradle to prove I wrote it correclty. Shortly after I found the issue about multi-cradle not yet implemented in ghcide.
<codygman___>
it is implemented in hie, but last time I used hie I had performance issues so not ready for potential disappointment there again (even if it's really just my fault it's slow because I'm setting it up wrong)
<codygman___>
it == multi-cradle
<zeta_0>
simpson: ya, in my .envrc file, all that's there is: `eval "$(lorri direnv)"` , so i maybe need to add more things to get my setup to work correctly
<zeta_0>
codygman___: one second, i'm going to test it out again
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JfvmI
<zeta_0>
with this shell.nix: https://dpaste.org/NcYb , when i run nix-shell in terminal, emacs opens up into the directory and ghcide is able to recognize modules when i try to import, but when i try to use (lorri+direnv+emacs-direnv) in emacs, ghcide works but it's not able to recognize modules, like when i try to import Yesod for example
<zeta_0>
codygman___: ^
<zeta_0>
codygman___: so it's not an error, more like missing functionality
domogled has quit [Ping timeout: 240 seconds]
bqv has joined #nixos
<{^_^}>
[nixpkgs] @globin pushed 1000 commits to structured-attrs: https://git.io/JfvmZ
mjrosenb has quit [Ping timeout: 264 seconds]
<codygman___>
zeta_0: show me the output of `ghcide` from an `M-x shell` buffer after cd'ing into that same directory
<codygman___>
also compare `which ghcide` (might require adding to your shell.nix) in both the normal shell and the shell within emacs that takes on emacs-direnvs variables
<hyper_ch>
hmm, the nixos live cd can be booted into bios and uefi... is it possible to do so also with a real install, that it can be started from bios and uefi?
<srxl[m]>
When does a derivation's setupHook get called? And what are the arguments passed to it?
<codygman___>
The eglot package for emacs uses a version of flymake that doesn't have a feature I want. I made a nix expression that installs flymake and verified it doesn't have the feature I want, but then I had trouble overriding that emacs' eglot dependencies flymake version with an overlay. It just seems to use the old flymake version and not my overlay.,
<codygman___>
Ah the manual told me how to always ensure my chose emacs version is used transitively with `overrideScope` at the bottom of https://nixos.org/nixpkgs/manual/#sec-emacs
<zeta_0>
codygman___: ok, i cd'd into the dir, did M-x shell, and executed `ghcide`: https://dpaste.org/5abm
<zeta_0>
codygman___: i'm doing the which ghcide right now, hold on a bit
reallymemorable has quit [Quit: reallymemorable]
<zeta_0>
tf29: here's the main nix wiki: https://nixos.wiki/ , there's a nix-pills link that should help you get started
<srhb>
codygman___: That does seem surprising. To confirm, can you try overriding eglot specifically in overrides, passing in flymake? Just to confirm that's really what's going on.
<srhb>
codygman___: I would _assume_ that p is construct with the new "callPackage-analog" from the fixpoint.
<srhb>
(Which i guess is what you are assuming as well)
<srhb>
codygman___: Then again, now that I look at it, I the flymae override looks wrong too, it's just a source. Shouldn't it be an emacs package of some kind? Or is that normal for emacsPackages?
<codygman___>
srhb: I think you are right.. it's late :)
<srhb>
jluttine: So it looks to me that if desktopManager.xterm.enable = true; and you have an ~/.xsession (not sure if ~/.xinitrc works, isn't that for startx without a DM?) it should work like it does on my system.
<srhb>
jluttine: Huh, okay, I guess I'm wrong then
<jluttine>
srhb: or i'm doing something wrong which is very much possible.. :/
<srhb>
jluttine: I don't think I'm doing anything else to make it work here, so I'm a bit surprised.
<srhb>
codygman___: Not the same problem though, right?
<srhb>
codygman___: As in file not found
<jluttine>
srhb: are you using nixos-unstable?
<codygman___>
srhb: Right, the file is found it's just using the old version of flymake stil.
<srhb>
codygman___: I'm not convinced that it is. I can certainly see that the path of flymake is changed in the closure of the new emacs
<srhb>
jluttine: I am. But I have not altered this part of my setup since 19.09 beta iirc.
<srhb>
codygman___: However, when I grep for flymake-run-in-place in the final flymake path, I get no results. I do see it in its source though, so maybe emacs packages are different
captjakk has joined #nixos
<codygman___>
srhb: I see in my nixstore that the right one downloaded somewhere
<srhb>
codygman___: Yes. And it is used in your composed emacs, but I feel like my assumption about src is wrong
<jluttine>
srhb: ah, .xsession needs to be executable..
<srhb>
jluttine: Oh. That did it? :P
<srhb>
codygman___: flymake isn't even a (proper) dependency of haskell-mode as far as I can see..
<srhb>
codygman___: Looks like a lot of assumptions went wrong here :-)
<jluttine>
srhb: yep! Thanks for the tip. Though I still find it weird that it's "xterm" I need to choose in sddm :D
captjakk has quit [Ping timeout: 256 seconds]
<srhb>
jluttine: Yes, it's discussed in linked issues from the one I linked, but unfortunately no one has fixed it yet :)
asheshambasta has joined #nixos
<codygman___>
srhb: haskell-mode has an init function later loaded by flymake-init it uses.
<codygman___>
so flymake is only activated in a haskell buffer if haskell-mode is present IIRC
<srhb>
codygman___: Yes, but it's not a nix dependency of haskell-mode. Oh, I think I see. The installPhase of flymake uses the elpa package directlry
<srhb>
codygman___: So maybe your pure src approach was actually right
<srhb>
But how does Emacs know how to find it the...
<srhb>
codygman___: Well, at least that's the problem. The actual flymake needs to override the installPhase or something to point emacs at the new source. I don't know how to tell emacs to do that though
waleee-cl has joined #nixos
Naptra has joined #nixos
<dsal>
Trying a stack project build from lts on my Mac. It's currently building ghc. Hopefully it finishes tonight.
<srhb>
dsal: I'm assuming you're using Nix to get ghc?
<dsal>
Yeah. stack --resolver=lts
<dsal>
I think it's available via normal stack.
<srhb>
What does hat mean? Which lts does that give you?
<srhb>
Oh
<dsal>
15.8
<dsal>
Whatever the latest is
<srhb>
I'm not sure what that has to do with Nix then?
<dsal>
There's no compiled ghc, so it's building one.
<srhb>
Sorry, I guess I thought this was a support request. :P
<dsal>
Haha. No
<dsal>
I guess maybe 20.03 on Mac doesn't have ghc 8.8.3 (I think... Not at my computer)
<srhb>
dsal: If you want Nix caching, enable Nix in stack and use the LTS we're based on for your nixpkgs rev.
<srhb>
(or don't use stack at all)
invra has quit [Quit: WeeChat 2.3]
invra has joined #nixos
<dsal>
I'm using nix in stack. I've got a few projects with different lts versions. I think it's just the latest that's missing, and it seems to only be on Mac. I started the build so long ago I forgot was I was building.
<dsal>
I'll see the various build glory in the morning, I guess.
relaxmax has quit [Ping timeout: 260 seconds]
LysergicDreams has quit [Ping timeout: 258 seconds]
<srhb>
codygman___: Emacs packages are weird, it's probably easier defining flymake from scratch than figuring out how to override the individual kinds of packages
<srhb>
codygman___: For instance, overriding melpa packages is different from elpa packages etc., and none of them expose the source in an easily overridable way, hence the overriding of elpaBuild itself.
maddo has joined #nixos
<srhb>
codygman___: But I'm talking out of my ass, I don't know the emacs infra in nixpkgs. This does what I think you want though. :)
relaxmax has joined #nixos
<srhb>
They even have some primitives for overriding sources, but it looks like they're all unexported
<srhb>
codygman___: And I can at least see flymake run in place in M-x customize-group
LysergicDreams has joined #nixos
<codygman___>
srhb I can verify that does print out a different version of flymake. However.. a temp file is still being created... why flymake... why not just have a choice of how to create temp files... lol
<codygman___>
ah you're right its in customize group
<codygman___>
now I just have an elisp error :D
<codygman___>
thanks!
cole-h has quit [Ping timeout: 264 seconds]
<srhb>
Welcome. Always fun diving into new and diffent infras in nixpkgs..
relaxmax has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @rnhmjoj pushed commit from Florian to release-20.03 « airsonic: enable nginx.recommendedProxySettings with virtualHost »: https://git.io/Jfvnr
<energizer>
i have a bunch of configuration values that are shared between different machines except for certain parts that need to be passed. for example i have ` users.users.${username} = {isNormalUser = true; group = username; extraGroups = [ "wheel" "networkmanager" ]; shell = pkgs.zsh;};`
relaxmax has joined #nixos
<energizer>
where the username needs to be passed in
<energizer>
is `users = import ./users.nix {username="energizer";}` the way to do this?
<energizer>
ideally i could somehow put it in the imports list but still pass it the username
johnw has quit [Ping timeout: 260 seconds]
<nschoe>
Hi everyone. Has anyone any luck with Font Awesome in nixOS ?
captjakk has joined #nixos
andi- has quit [Ping timeout: 264 seconds]
johnw has joined #nixos
andi- has joined #nixos
relaxmax has quit [Ping timeout: 256 seconds]
<nschoe>
energizer, IIUC this will work, but you need your ¨users.nix¨ file to be a function which takes ¨username¨ as an argument. So it would look somehting like: {username} : {users.users.${username} = {isNormalUser = true, [...]
<nschoe>
(But I´m pretty new to nixOS so don take what I say for the Holly Truth)
<xiaomat>
Hey everyone! I'm trying to configure plugins for mattermost, but have run into a small issue. The /var/lib/mattermost/client directory points to the read-only filesystem /nix/store[..], which makes mattermost unable to create ./client/plugins etc... Is this a mistake or am I missing some configuration?
<arianvp[m]>
I'm pretty sure it's a mistake
<{^_^}>
[nixpkgs] @xrelkd opened pull request #85282 → sn0int: init at 0.18.2 → https://git.io/JfvCf
<arianvp[m]>
I remember running into it as wel
<arianvp[m]>
Perhaps we should make plugins configurable as nix derivations?
<arianvp[m]>
Instead of through matter most UI. Not sure if there's an option for that yet
<{^_^}>
[nixos-hardware] @Mic92 merged pull request #153 → Improve support for t460s → https://git.io/Jfex5
<{^_^}>
[nixos-hardware] @Mic92 pushed 3 commits to master: https://git.io/JfvCU
<xiaomat>
@arianvp:matrix.org: It would make it much easier to deploy. How would I go about fixing this situation without wrecking everything?
<xiaomat>
(so ./client gets writeable now)
<arianvp[m]>
You mean how to unblock yourself right away?
<arianvp[m]>
Hmm lemme think
<xiaomat>
Yes
<xiaomat>
I'm fairly new to NixOS :)
<xiaomat>
Not sure where the pitfalls lay yet ;)
<arianvp[m]>
Cool! Welcome
mvnetbiz_ has joined #nixos
jgeerds_ has quit [Remote host closed the connection]
<arianvp[m]>
Usually wherever mutability pops up :p
jgeerds_ has joined #nixos
<xiaomat>
Thanks, I'm peasantly surprised so far :)
<arianvp[m]>
Ah I remember now that my matter most install is in fact an Ubuntu box not a NixOS box... Darnit
<xiaomat>
The only wart I have seen yet is persistant /var/lib/<dependency package> lingering after removing <responsible package> from configuration.nix, so data would be tainted after getting reintroduced in configuration.nix. It was solved by manually deleting /var/lib/<dependency package>
<arianvp[m]>
What happens when you set services.mattermost.mutableConfig = true ?
<xiaomat>
The config is mutable
<xiaomat>
Set in configuration.nix
civodul has joined #nixos
<arianvp[m]>
Yes state is always hard unfortunately
scribbler has joined #nixos
<arianvp[m]>
NixOS makes 99% of your things immutable. That is everything up to "actually storing state that is needed"
Jackneill has joined #nixos
scribbler has quit [Remote host closed the connection]
<xiaomat>
Just the way I like it :)
<arianvp[m]>
And it's hard to make choices there. Should your dB be nuked if you remove the postgres module?
<xiaomat>
I thought an easier hack would be to delete the symlink, make a proper directory and copy content into it?
<arianvp[m]>
That will also work.
<xiaomat>
I guess it would be overwritten on next rebuild switch, right?
knupfer has joined #nixos
<arianvp[m]>
Yep.
o1lo01ol1o has joined #nixos
thc202 has joined #nixos
<xiaomat>
hmm
<arianvp[m]>
Hence I think overriding the preStart might be a bit more permanent
<xiaomat>
Oh, that's persistant?
<arianvp[m]>
Yes. Your configuration.nix is the truth
<arianvp[m]>
So if you say "I actually want the preStart to be X" it will be X
<xiaomat>
Oh, right, forgot it goes into configuration.nix, I had systemd configuration in my head
<arianvp[m]>
Yeh we change the systemd configuration through the configuration.nix
<xiaomat>
right
<arianvp[m]>
Could you open an issue about msttermost plugins? We could either make mutable folders for plugins opt in or add NixOS module options for installing plugins. Both sound useful
LysergicDreams has quit [Ping timeout: 250 seconds]
pbb has joined #nixos
boegel has joined #nixos
<xiaomat>
arianvp: I guess I have to write out a complete preStart that replaces the one defined in the package, right? What would be the sane way to write the variables - type them out manually or import the whole environment needed for their definitions? Is there any easy way to import all the definitions required in preStart?
fendor has joined #nixos
LysergicDreams has joined #nixos
<arianvp>
let cfg = cfg = config.services.mattermost;
<arianvp>
I think by default (if you leave out mkForce) it will _append_ to the preStart script
o1lo01ol1o has joined #nixos
<arianvp>
perhaps you can use that to your advantage
<xiaomat>
ahh
<xiaomat>
That's nice
<xiaomat>
You mean "let cfg = config.services.mattermost;"?
<xiaomat>
arianvp: Thanks for the help, I have everything working now, except for the fact that all the plugins requires a newer matter version xD
<xiaomat>
Just tell me if you want the preStart diff
troydm has joined #nixos
<ocharles>
Has anyone seen this before? "error: opening file '/proc/27578/setgroups': No such file or directory". I get this when I try and install Nix on an Ubuntu 14.04 machine
captjakk has joined #nixos
<ocharles>
The PID changes on each invocation, not really sure what's up...
ok2`- has joined #nixos
vidbina_ has joined #nixos
ok2` has quit [Ping timeout: 264 seconds]
<DamienCassou>
hi
<DamienCassou>
I have this message when doing a git fetch on the nixos-hardware repo:
<ocharles>
thequux[m]: neither. I'm trying to get Nix onto a machine that isn't really a server, but rather a machine that drives some proprietary machinery. I don't really want to go messing with the kernel on that if I can avoid it
waleee-cl has quit [Quit: Connection closed for inactivity]
<sshow>
What is the recommended type in place of types.string?
<thequux[m]>
Oof. Having dealt with such hardware, I agree with your abundance of caution
broccoli has quit [Quit: leaving]
<srhb>
sshow: types.str
<srhb>
sshow: Well, really it depends on your data.
<srhb>
sshow: It could be lines, or commas, or [ ... ]
<ocharles>
thequux[m]: yea... given the fact that we just had an engineer "upgrade" the machines and they are still running an unsupported Ubuntu LTS... I don't wanna touch this any more than I have to!
<srhb>
ocharles: Yikes!
<thequux[m]>
I'd almost wonder about how advisable it is to be playing with the software on it at all
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @stigok opened pull request #85285 → lib/types: give usage hint in types.string deprecation message → https://git.io/JfvBz
<ocharles>
Not very, but we've been doing it for a year or two now (and need to, but I can't go into more specifics). But we do it by installing Nix and then copying closures over, so at least we aren't messing with /usr/bin
joko has joined #nixos
<sshow>
srhb: but I think types.str is fine here. The deprecation message for types.string does not show what should be used instead.
<{^_^}>
#85285 (by stigok, 52 seconds ago, open): lib/types: give usage hint in types.string deprecation message
<{^_^}>
[nixpkgs] @tfc opened pull request #85286 → meshcommander: init at 0.8.0-e → https://git.io/JfvB2
<srhb>
sshow: There is no exact analog because the behaviour of `string` is what was wrong. Re-implementing that under a different name makes no sense. So the programmer is forced to make a choice of what's semantically correct instead. :)
<srhb>
sshow: Which is why the answer "str" I gave was wrong in principle.
<sshow>
srhb: but for newbies, could it be that it is the correct assumption anyway?
<srhb>
sshow: It depends how, if at all, you want config values to merge.
<srhb>
sshow: say two modules define yourOption = "foo" and yourOption = "bar" -- what should the final value be? Or should it be an error?
<ocharles>
Looks like our last machine ran 2.0.4, so I'll try and install that
<{^_^}>
[nixpkgs] @kirelagin opened pull request #85287 → pgpgme: Fix build with python on macOS → https://git.io/JfvB6
<sshow>
srhb: okay. I see. Do you think the deprecation message could be further improved to provide some more information? Like next steps you should take? Or a page you should read?
<evils>
ocharles: https://nixos.wiki/wiki/Nix_Installation_Guide mentions disabling sandboxing, which is enabled since Nix 2.2; keep in mind that wiki is unofficial, there's no guarantee about fitness for purpose
<ocharles>
evils: thanks, I'll take a look that. For now I installed 2.0.4 and that seemed to at least install and `nix-env` did something
<srhb>
sshow: Leading question! Of course. ;-) It's sort of intended to be implied in the message, but if it wasn't clear to you, improvements are definitely an idea.
<srhb>
sshow: And just to be clear, `str` is what you want if you want two modules defining different values for your option to be an _error_
<sshow>
srhb: Ok, cool with the `str` behaviour. I don't meant to be leading :P I totally out of my habitat with functional programming and nix in general, so I don't know what should be assumed of the user's knowledge
<srhb>
sshow: Frankly I'm not sure either. I would have thought it was rare for self-described beginners to write their own options, but maybe my expectations are wrong. :)
<sshow>
srhb: I'm a trial and failure kind of guy. I am connecting my own dots as I go right now. You may be right too
<srhb>
sshow: Makes sense. :) Maybe it helps if I motivate why the option was bad
<srhb>
sshow: People ended up using it for config files with multi lines
<srhb>
sshow: Say, `directive1 = value1\ndirective2 = value2` -- but now, if they added `directive3 = value3` in a second file, that would cause a missing newline, rendering the config file invalid.
<Guest30>
The option infinisil defined here could be passed through to the modules in nixpkgs. What I want is to create an option to pass settings to `users.usres.<name>`
<Guest30>
In other words, just a clone of that module without copy the code literraly
<immae>
Oh
<srk>
you can create your own module extending existing one with more options and functionality
KeiraT has joined #nixos
<Guest30>
Is it viable to have such a
<Guest30>
proxy?
<immae>
It’s the only possibility for now
<immae>
as far as I know there is no good way to get the "content" of the module
arjen-jonathan has quit [Ping timeout: 246 seconds]
<Guest30>
Sorry, but I don't know what the only possibility?
KeiraT has quit [Ping timeout: 240 seconds]
<immae>
What srk said
<Guest30>
So I define my options standalone withe what existed in nixpkgs?
<arianvp>
xiaomat: im afraid so
<arianvp>
unless you can recompile these plugins as static binaries
<arianvp>
which shouldnt be too hard given they're go
<arianvp>
they should then just work
<immae>
Guest30: you define options.myUsersSettings = { your set of settings } in your module, and then in config you use that to define the users.users.<name> like you want
<immae>
thus you have a myUsersSettings that looks like what you want (with more options or default ones if needed)
<Guest30>
actually I don't need to define extra settings for users.users.<name>
<immae>
I don’t know what you want to do with your module since you didn’t say it, so do whatever you want with it :)
relaxmax has joined #nixos
<xiaomat>
arianvp: I could try that, but that is a real nasty hack :(
<Guest30>
I want have something like myUserSettings = { regular = {users.users.foo = { regular settings in nixpkgs };}; others = {users.users.foo = { other settings for home-manager for user foo};} }
<immae>
so you want to check that whatever you will devine via myUserSettings.regular.users.users.foo will contain the same things as the standard users.users.foo ?
<jollyjester>
how can i add a channel to my configuration.nix?
<gchristensen>
no
<_d0t>
ohai! Is there a way to evaluate an arbitrary bash script in my nix expression?
<hexa->
aranea: andi- was working on some tool to re-serve packages from your local nix store via http. discovery via mdns. https://github.com/andir/local-nix-cache
<hexa->
we used it for a while at our local hackerspace and it was quite amazing
<aranea>
Oh, hi. Neat idea. :)
hmpffff_ has quit [Ping timeout: 264 seconds]
<andi->
yet another project to document and work on again /o\
<hexa->
pretty please :)
jakobrs has quit [Quit: WeeChat 2.8]
<gchristensen>
andi-: leave it up to the users to document and work on? :)
<pbb>
_d0t: short answer is yes, you can run a bash script in a derivation and generate nix expressions as an output, and then import that
<andi->
gchristensen: didn't work out so far..
<_d0t>
pbb: any examples of how to do this?
captjakk has joined #nixos
<manveru>
aranea: otherwise you can proxy it using nginx or something
<aranea>
Yeah, but at that point, it's less work to just write a shell alias that calls nix-copy-closure first and then nixos-rebuild. :P
<pbb>
_d0t: It will be rather difficult to find examples of this, because it does not work on Hydra (the build farm used to populate the NixOS binary cache), so is not used anywhere in nixpkgs. The only place I remember that uses it is yarn2nix, although from this file it's a bit difficult to understand: https://github.com/moretea/yarn2nix/blob/master/default.nix#L45
gustavderdrache has joined #nixos
captjakk has quit [Ping timeout: 258 seconds]
<_d0t>
pbb: hmm... thanks, I think I got the general direction
glittershark has joined #nixos
zupo has joined #nixos
<hyperfekt>
jollyjester: channels configured via nix-channel are added to $NIX_PATH, values in which can be accessed by using <angle/brackets>
waleee-cl has joined #nixos
<jollyjester>
hyperfekt i don't want to add it using nix-channel
<infinisil>
_d0t: What's your use-case?
<jollyjester>
so i want to add the hoeme-manager channel to my configuration.nix and then install home-manager
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hyperfekt>
jollyjester: it's not technically a channel then but you can make any nix expression available using import, so you would go 'import (pkgs.fetchFromGitHub { ... }) {}' to get access to the home-manager attrset, in which .home-manager is the program and .nixos is the module
LysergicDreams has quit [Ping timeout: 265 seconds]
bsjd has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jollyjester>
hyperfekt, what do i add between the curly braces? do i just add `import (pkgs.fetchFromGitHub { ... }) {}` to my configuration.nix and how do i add the home-manager package to `environment.systemPackages`?
<hyperfekt>
jollyjester: as i said importing gets you an attribute set, which you'll probably want to assign to a variable using let. then teh attribute home-manager in there is the package and nixos is a nixos module that you can import if you want to do all user configuration in your nixos configuration instead of in the user directory
<linarcx>
Hi. I wana develop a val-gtk application and using `libgit2-glib`. When i compile the program, got this error:
<linarcx>
Package `libgit2-glib-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories
<jollyjester>
hyperfekt, all i want to do is install home-manager. when i reinstall nixos, i want home-manager's channel to be added and begin installation along with the packages and configuration within home-manager's own configuration file
<jollyjester>
nothing else
<noonien>
hello folks!
<jollyjester>
hyperfekt, i just want home-manager to be installed without me needing to manually add it using nix-channel
<noonien>
i'm trying to get qtdesigner to start working, but i'm getting this error: `qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""`, i know qt apps need to be wrapped with wrapQtAppsHook, but i'm unsure how to do this with this particular package
<hyperfekt>
jollyjester: for installing home-manager you already know everything you need to. just add the imported package to your systemPackages like any other. if you want nixos to trigger home-manager you'll have to do some more work, maybe as part of the activation script
<hyperfekt>
jollyjester: there is no such thing on its own as adding a channel in your configuration. but you can use a channel. if you want to use that URL, (import (fetchFromTarball { ... } ) {}).home-manager will take the value of the package you're after.
<pbb>
_d0t: you can insert "import ./file.nix" and it will mostly be equivalent to pasting the entire content of the file
<_d0t>
pbb: that's what I have right now. But that file.nix is incomplete (i.e. it references non-existing files), and I need to run a script before importing it.
<_d0t>
it's a tricky setup, I know.
<pbb>
"it references non-existing files" sounds very wrong
<jollyjester>
hyperfekt, do i replace ... with the link?
<hyperfekt>
_d0t: you may just want to use runCommand for that if that's really the right way to do this
<_d0t>
well, they have to be generated first before the import call.
eadwu[m] has joined #nixos
<hyperfekt>
jollyjester: the manual i linked earlier explains what arguments the fetchers need. i am not going to copy and paste that here
<pbb>
_d0t: you can not modify files outside the nix store while running a nix-build
<_d0t>
I figured. Another way I see could be generating that code on the fly, but it's expensive. Is there a way to cache an expression in the store somehow?
<hyperfekt>
jollyjester: i guess fetchtarball isn't in there but you should be able to use fetchzip just as well
<pbb>
everything is cached automatically. If nothing you reference in the script changes it will not be rebuilt.
Cadey is now known as Xe
<_d0t>
pbb: what about invalidating the cache? My expression is basically produced by an external tool from a yaml file. How do I go about that, if the yaml is changed?
<pbb>
_d0t: that will happen automatically
<_d0t>
pbb: again, do you have any examples? My nix-fu is lacking.
<pbb>
_d0t: the instructions are in the paste, because I did not want to spam the channel
codygman has quit [Ping timeout: 256 seconds]
<freeman42x>
trying to configure fish on NixOS, here it says to put this under extraUsers: https://nixos.wiki/wiki/Fish but I have a section called users... can I put that setting there?
<hyperfekt>
but you should either make sure my-tool is packaged or also have nix fill that in at runtime like the yaml file, and make sure that the command writes to $out if the tool doesn't do that already
<_d0t>
it is packaged. It's just called by an external script.
<pbb>
_d0t: you should also be aware of the fact that the script does not have network access
<_d0t>
Again, the whole setup is rather tricky.
<_d0t>
pbb: I know. I guess I'll have to work around this.
codygman has quit [Read error: Connection reset by peer]
sshow_ has joined #nixos
<hyperfekt>
_d0t: i just mean you cannot directly reference an external script in a string. it has to be interpolated during evaluation (like the yaml file is) or otherwise made available
codygman has joined #nixos
<_d0t>
I have a feeling I'll have to significantly refactor all this one way or the other.
<_d0t>
But thank you guys anyway.
sshow_ has quit [Client Quit]
<{^_^}>
[nixops] @adisbladis closed pull request #1248 → WIP: Add deploy without creating a state file → https://git.io/JvKik
jollyjester has quit [Quit: Leaving]
drakonis has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
drakonis_ has joined #nixos
<{^_^}>
[nixpkgs] @romildo opened pull request #85304 → common-updater: add update script to all-packages → https://git.io/Jfvrf
nschoe has joined #nixos
drakonis has quit [Ping timeout: 272 seconds]
nschoe has quit [Client Quit]
captjakk has joined #nixos
nschoe has joined #nixos
<noonien>
anyone with a bit more knowledge with how packaging qt modules works?
<noonien>
i'm trying to use wrapQtAppsHook in nixpkgs/pkgs/development/libraries/qt-5/modules/qttools.nix to be able to run the qtdesigner
revtintin has quit [Ping timeout: 265 seconds]
<noonien>
adding `nativeBuildInputs = [ wrapQtAppsHook ];` doesnt seem to do anything, nor adding `postFixup = "wrapQtAppsHook";`
linarcx has quit [Ping timeout: 258 seconds]
pbogdan has joined #nixos
revtintin has joined #nixos
pamplemousse has joined #nixos
revtintin has quit [Ping timeout: 258 seconds]
<noonien>
does anyone have any idea how to do this? i've been trying for a while and can't seem to get anything to work
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<raboof>
I deleted some /nix/store/(...).drv files, assuming they'd be regenerated when needed. Turns out they aren't :) - anything I can do to clean things up?
<niksnut>
maybe --repair will recreate them
<clever>
raboof: run `nix-store --delete` on the path you had deleted
never_released_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<raboof>
how does nix know whether a derivation still needs to be built, or is ready to be used from the nix store?
never_released has joined #nixos
<sshow>
raboof: hashing the derivation and including that hash in the filename
<HedgeMage>
Does anyone know how to globally and permanently disable middle-click-to-paste ? I'm using XFCE+i3 in case that's relevant. double-middle-click is my KVM control, so having that randomly paste things kinda screws me.
<Cadey>
you know how each path in the nix store starts with a hash?
<Cadey>
it asks the cache server if it has a copy and if it does, then it downloads that
<Cadey>
if not then it downloads it
<ldlework>
builds it
Guest30 has quit [Ping timeout: 260 seconds]
reallymemorable has quit [Quit: reallymemorable]
<ivegotasthma>
hello, how can I install postgres with a nix-shell dev environment that's completely local to the user and the folder where the shell.nix script is?
philr has quit [Ping timeout: 250 seconds]
Ariakenom has quit [Quit: WeeChat 2.7]
<raboof>
right - but calculating the hash is not enough to know if the derivation has successfully built, or is still in the process of being built, right? Is that stored in /nix/var/nix/db?
<hyperfekt>
do we actually build any electron apps from source in nixpkgs?
<raboof>
I was experimenting with nix-on-Arch a bit, and somehow got into a state where a `writeTextFile` derivation was cached in the nix store, but it was an empty file instead of the file I expected there. Trying to to understand what could've gone wrong there
<adisbladis>
raboof: Power loss on a crappy file system?
<clever>
pie_[bnc]: at the time, it was just to detect that it was running under wine
<andi->
Is anyone atually using the mdmonitor service? It has been failing for me since forever since there is no way to configure it (out of the box).
teto has joined #nixos
bukkitgerman8608 has quit [Ping timeout: 256 seconds]
<qy[m]1>
adisbladis: oh hey, you're back. curious, is there a cachix repo for emacs-overlay?
<turion>
Normally, we'd define CFLAGS or something in the second argument, but it should be possible to have it empty as well..?
<{^_^}>
[nixpkgs] @vbgl pushed to master « Revert "[Don’t merge] Recurse into OCaml packages" »: https://git.io/JfvXU
<turion>
Or is nix doing something strange to that configure.in file?
<symphorien>
turion: add glib to buildInputs iirc
<ldlework>
Isn't there some attribute you can flip on a derivation to skip tests
<turion>
symphorien: I already have that :/
<symphorien>
dontCheck, ldlework
<turion>
It seems like autoconf doesn't have support for AM_PATH_GTK_2_0
<freeman42x[m]>
where is correct place to set an environment variale under NixOS? eg. export DIRENV_LOG_FORMAT=
<freeman42x[m]>
would .bashrc be ok? or should it be in configuration.nix?
<betaboon>
symphorien: isnt it `doCheck = false;` ?
<ldlework>
symphorien: I'm guessing that doesn't propagate... a bunch of stuff is getting rebuilt because I overrode part of the org package and now things like Python Twisted are running their test suites etc...
<betaboon>
Profpatsch: i got a question regarding the terraform-nixos-provider, maybe you can help: is there a way to pass additional attributes to the configuration? i cant seem to figure it out
<freeman42x[m]>
> freeman42x: `environment.variables.DIRENV_LOG_FORMAT` is this inside configuration.nix, top level? like `environment.variables.DIRENV_LOG_FORMAT = "";` ? PS: seems like this is where we met. twitch streaming now :)
<{^_^}>
error: syntax error, unexpected $undefined, at (string):296:13
<freeman42x[m]>
manveru:
organixpear has quit [Quit: leaving]
<turion>
Oooh, it went away when I passed it gtk2 :D
<Profpatsch>
betaboon: what kind of attributes to which configuration?
zeenk has quit [Ping timeout: 272 seconds]
Neo-- has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<betaboon>
Profpatsch: lets assume i pass the path of a configuration.nix to `nixos_config` and that configuration.nix expects `{ pkgs, foo, ... }`. i want to provide `foo`
<Profpatsch>
betaboon: you can’t pass additional arguments to a nixos config directly, you have to use the module system
<Profpatsch>
Add an option like with a normal module and pass it as a config value
Keith[m]1 has joined #nixos
<betaboon>
Profpatsch: do you have an example for that ?
<Keith[m]1>
how do I unzip something in a derivation? It isn't part of the src so I can't just use unpackPhase
<Profpatsch>
betaboon: In a closed source repo unfortunately. I have to jump, but I’m sure there’s people in here that know how to write options
<betaboon>
Profpatsch: i do know how to write options. I'm just somewhat lost on how to pass them to the provider
<{^_^}>
Found in packages: unzip, busybox, unzipNLS
<qyliss>
Add one of those as a nativeBuildInput, then just run unzip in your derivation
cole-h has quit [Quit: Goodbye]
<Keith[m]1>
okay, thanks
ashesham` has joined #nixos
bqv has quit [Ping timeout: 252 seconds]
bqv has joined #nixos
asheshambasta has quit [Ping timeout: 272 seconds]
<nh2>
WebRTC programs adjust my ALSA mic levels incorrectly. To disable that, I essentially need to modify `/nix/store/vg3q364zl6q9lnsfcy1vg7f5a3jj9448-pulseaudio-12.2/share/pulseaudio/alsa-mixer/paths/analog-output.conf`. Does anybody know whether I can place/override these files somewhere else?
<nh2>
Right now, modifying them seems to require rebuilding pulse, and all of its dependencies.
<lejonet>
What is the correct way to include an optional preBuild hook? When I try to do preBuild = stdenv.lib.optionalString (checkStuff) '' doSomething '';, I just get the error that it cannot coerce a list to a string, but from what I can find in other packages that use preBuild, its supposed to be a string
<azazel>
nh2: good question, I would like to know the answer too... do you care to open a thread on discourse?
<nh2>
azazel: ok will do
<Desetude>
I've read that with ZFS you shouldn't split a disk into two active partitions. Is it fine to have the /boot partition, the ZFS dataset partition and a swap partition on one disk?
<Desetude>
azazel: then my question becomes does a swap partition count as an active partition?
linarcx has quit [Quit: WeeChat 2.8]
<ldlework>
I'm so confused. I have a nix-shell. When I execute "rofi" from the shell, it finds the writeScriptBin I made at that name. Everything I try, it finds the right rofi. Somehow... when I do from Python subprocess.Popen(["rofi"]) it finds the real one....
<azazel>
Desetude: I don't think that swap is managed like the other partition types, so I would exclude it from the count
<{^_^}>
[nixpkgs] @alyssais opened pull request #85317 → nixos/rss2email: move from /var to /var/lib → https://git.io/Jfv1p
<ldlework>
How is that even possible?
<gchristensen>
ldlework: you might need to run `hash`, but I'd be surprised if you would need to
<ldlework>
hashing disabled bash tells me
<Desetude>
azazel: great then I'll go ahead with the 3 partitions then, thanks
<jluttine>
is there a simple way to install also libexec content of a package under /run/current-system/sw/ ? i'd like to use a dimmer from xsecurelock in my dotfiles in my home directory, so i don't want to point to nix store
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<jluttine>
or is that something the desktop manager should read and export?
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<turion>
I'm still trying to package this Canon driver, but I'm not experienced enough in C, linking and autoconf in order to get it to work. Can someone have a look on this branch: https://github.com/turion/nixpkgs/tree/canon_pixma_driver
KeiraT- has joined #nixos
<turion>
I'm sure an experienced C dev will quickly make sense of Canon's mess.
<turion>
The issue is somehow that they couldn't bother to put this local library in its own directory, but it's somehow in a subdirectory and can't be found properly
<jluttine>
answering to myself: yes, it works if i just export them in .xsession which then launches my desktop/window manager i3
<{^_^}>
[nixpkgs] @filalex77 opened pull request #85320 → drill: init at 0.5.0 → https://git.io/JfvMx
<blackshadow>
quit
<{^_^}>
Let me do that for you
blackshadow has quit [Quit: leaving]
<WilliamHamilton>
question: when I have some derivation, and I nix-build it, does nix make a snapshot of the inputs? What happens if I modify some code after I launch a nix build?
<dsal>
Try it?
<dsal>
I guess racing would be more than a "Try it"
<dsal>
If we had better filesystems, the obvious thing would be obvious. But the only reasonable thing nix could do on general filesystems is ensure the hash input and build input are the same when computing the final hash value for a build.
<immae>
do we really have a possible race condition? As soon as you have a recipe (in the sense "a .drv file") then you have everything settled in rock no? (considering that you cannot modify /nix/store from outside of nix)
henry_ has joined #nixos
<immae>
ah you mean maybe it could refer to ./., calculate the hash of ., and only later move it to /nix/store ? and inbetween you modify the content?
<dsal>
I guess that's the question. Is a snapshot of all inputs made before the build starts?
henry_ has quit [Client Quit]
<immae>
I assume it will put ./. (or local folders more generally) in the store (or in a temporary location) before computing its hash, and that will be used as a snapshot. Remote places have a pre-known hash so we don’t care much if we download before or after
<WilliamHamilton>
yes, the question is: should I be worried if I launch a nix-build for a project that uses nix, and in the meantime I change some code (not nix code, but some of the source code of the project, for example)
<immae>
But interesting question actually
<infinisil>
WilliamHamilton: Nah that's no problem. Once the build starts, all inputs are copied to /nix/store already
ixxie has joined #nixos
<WilliamHamilton>
infinisil very well, thanks! For curiosity, is there a variation of this question in which this would be a problem?
<infinisil>
I guess if you disable sandboxing and use builtins.unsafeDiscardStringContext it would be possible for Nix to use the original code without copying it to the store
<WilliamHamilton>
thanks infinisil :)
<infinisil>
Ah, even just with sandboxing disabled that could occur
<zeta_0>
hello everyone, i copied the 2 `let in` expressions from the quick start section of the haskell.nix infrastructure(https://github.com/input-output-hk/haskell.nix), anyways , i'm running into namespace conflicts, so i was thinking of just renaming the attributes, is there a better way to avoid this namespace conflict with nix(like wrapping the `(let in)` expression with parentheses)? https://dpaste.org/R5J4
<zeta_0>
that's the shell.nix file that i'm trying to configure ^
abathur has quit [Quit: abathur]
<lordcirth>
How do I figure out what buildGoModule is actually doing? "make install" in the go-ipfs source dir works, but buildGoModule fails
<cole-h>
Specifically, look at buildPhase on line 122
<Thra11>
Why does the output from `nix eval nixpkgs.whatever.outPath` have double quotes around it (can a path have spaces in or something?)? It makes it harder to use with other commands. e.g. I can't do `ls $(nix eval nixpkgs.whatever.outPath)/bin`
<colemickens>
Thra11: `nix eval` has --raw at least
<niksnut>
because it's a string
<Thra11>
colemickens: Thanks!
<Thra11>
niksnut: It appears to be a string with quotes *in* it though
<lordcirth>
cole-h, thanks! It's hard to read... It's calling 'go' directly to build it?
<niksnut>
let me rephrase that: the output of nix eval is a value, so strings have quotes around them
<Thra11>
niksnut: I see. It's a nix string, which gets 'printed', which results in a shell string with quotes in?
codygman has quit [Ping timeout: 240 seconds]
codygman has joined #nixos
zupo_ has joined #nixos
<aranea>
I'm using a custom kernel config via pkgs.linuxPackages_custom, but I'd rather not build that kernel on all my hosts. So I built it on one, spun up nix-serve there and put it into the nix.binaryCaches of the other hosts. That seems to work in principle, just not for the kernel package.
<aranea>
I suspect that's because the kernel config file is set to a local path? (Identical contents everywhere, ofc.)
<aranea>
How can I fix this?
glitters` has quit [Ping timeout: 250 seconds]
<aranea>
In the long run, I should probably set up my own hydra or sth eventually, but right now I'd like a somewhat quicker workaround.
<{^_^}>
[nixpkgs] @disassembler pushed 0 commits to treewide-broken-20.03: https://git.io/JfvSi
bukkitgerman8608 has quit [Ping timeout: 256 seconds]
AmandaC has joined #nixos
AmandaC_ has quit [Ping timeout: 264 seconds]
<cole-h>
👀 ^
ixxie has quit [Ping timeout: 256 seconds]
ixxie has joined #nixos
<benny>
is there a nixos equivalent to /etc/rc.local from the days of yore? ;-)
<nschoe>
Hi, I have a quick question: in my systemPackages I have set: (python3.withPackages (pyPkgs: with pyPkgs; [ dbus ])), yet when I run `python3 my_python_file.py` it complains with import dbus.service. ModuleNotFoundError: No module named ´dbus´. AM I doing the installation wrong?
o1lo01ol1o has quit [Remote host closed the connection]
<energizer>
maybe the question is more complicated than it seems
peelz_ has quit [Remote host closed the connection]
<ixxie>
I'm just looking to install uuidgen :D
o1lo01ol1o has joined #nixos
<energizer>
,locate uuidgen
<energizer>
,locate bin/uuidgen
<{^_^}>
Found in packages: toybox, utillinux, libuuid.bin, utillinux.bin
<{^_^}>
Found in packages: toybox, libuuid.bin, utillinux.bin
<energizer>
ixxie: ^
mokasin has joined #nixos
<ixxie>
cheers energizer
<benny>
,locate bb
<{^_^}>
Found in packages: bb, atom, moodle, povray, graphviz, atom-beta, jre.debug, glibc.debug, graphviz-nox, graphviz_2_32, rtmpdump.debug, glibc_memusage.debug, libsForQt511.kdelibs4support, kdeFrameworks.kdelibs4support, python27Packages.bitbucket-cli
<ixxie>
energizer: in that thread the suggestion to readlink -e $(which command) seems to work
<energizer>
ixxie: i think it depends on what question you want to ask
<ixxie>
,locate ddate
<ixxie>
,locate bin/ddate
<mokasin>
How can I reuse an acme certificate for different services? I am running into a permission problem. Let's say, the key is generated for nginx, it gets 600 mode. If I use allowKeysForGroup, how do I add the user of services to that group?
<{^_^}>
Found in packages: ddate
<{^_^}>
Found in packages: ddate
xiaomat has left #nixos ["User left"]
o1lo01ol1o has quit [Remote host closed the connection]
zeenk has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
abathur has joined #nixos
Taneb has quit [Quit: I seem to have stopped.]
Taneb has joined #nixos
o1lo01ol1o has joined #nixos
DerHorst has quit [Remote host closed the connection]
<ixxie>
Anybody got example configs of NixOS build slaves?
revtintin has quit [Quit: WeeChat 1.9.1]
hmpffff has quit [Quit: nchrrrr…]
DerHorst has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
loewenheim has joined #nixos
cosimone has quit [Quit: Quit.]
mokasin has quit [Quit: Leaving]
<loewenheim>
Hi, I’ve found an incorrect example in the manual. Is the nixpkgs github repository the right place to open an issue?
<zeta_0>
how do i fix this error in this shell.nix? https://dpaste.org/2naVhttps://dpaste.org/yHZp , when i try to move lines 8-9, down to the haskell infrastructure section, it throws another error(the ? mark gets marked with an error) ?
knupfer has joined #nixos
drakonis_ has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
arjen-jonathan has quit [Ping timeout: 252 seconds]
<zeta_0>
i tried using the separate `let in` expressions, but then it throws another error unexpected ID in the attribute names of the 2nd `let in` expression? https://dpaste.org/W94b
<ixxie>
gchristensen: do you know of any nice examples of Nix build agents? Or is nothing fancy typically added to configs?
<energizer>
I have some configuration that's the same across multiple computers except that my username differs. Currently I'm doing a configuration.nix with ` users = import ./../users.nix { inherit pkgs username; };` but this feels a little silly. Is there a preferred way to parametrize configurations?
<eadwu[m]>
You can create a local settings module
bukkitgerman8608 has joined #nixos
<eadwu[m]>
I have stuff like config.nixos.settings.username
<eadwu[m]>
Which I set in the host configuration
kuznero has joined #nixos
seku has quit [Quit: Connection closed]
loewenheim has left #nixos [#nixos]
<kuznero>
Hi All, I have trouble installing codelldb extension for VS Code, it seems that the binary is not properly linked: https://pastebin.com/zNzu56vc Please help!
<energizer>
eadwu[m]: is config.nixos.settings already a thing?
<eadwu[m]>
No
o1lo01ol1o has joined #nixos
jb55 has quit [Remote host closed the connection]
<eadwu[m]>
kuznero: You want to create a derivation that also patches the interpreter and `patchelf --set-interpreter` that binary
kleisli_ has joined #nixos
<eadwu[m]>
patches the interpreter through*
<kuznero>
eadwu[m], thanks!
<energizer>
eadwu[m]: curious why the config.nixos.settings namespace instead of config.settings?
mallox has quit [Quit: WeeChat 2.8]
<eadwu[m]>
There was no real reason, just didn't want any conflicts and I was sure `nixos.settings` didn't exist
<eadwu[m]>
When I created it
<energizer>
alright
<niso>
pkgs can't be passed as an argument to a nixos-container, right?
<drakonis>
but what's the trick to get it to build the first time?
<drakonis>
it doesnt see the host
<gchristensen>
energizer: you can't
<qy[m]1>
does the code in lib/utils.nix and er, is it flake.nix, that imports the host file, reflect that change too?
<qy[m]1>
ah hang on, how are you building it
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<energizer>
gchristensen: i want to set services.syncthing.dataDir = userHome; what should I do instead?
<gchristensen>
oh, that you can do
<qy[m]1>
i think i've butchered the configuration.nix quite heavily so you might actually be better off building nixFlakes and running that with no daemon
<qy[m]1>
so as long as that all links up, the nix build command should definitely work, and once you have a system built, you can always just manually switch-to-configuration
<{^_^}>
[nixpkgs] @worldofpeace pushed to treewide-broken-20.03 « treewide: mark broken wip »: https://git.io/Jfv7d
<qy[m]1>
that function could definitely be cleaner
kuznero has quit [Quit: Leaving]
<qy[m]1>
i'm mostly only keeping it cause then i have an excuse to keep utils.nix, which might be useful in the future :p
jco has quit [Quit: WeeChat 2.7]
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #85331 → treewide: mark broken packages for 20.03 → https://git.io/Jfv7x
<qy[m]1>
drakonis: here's a thought. what happens if you run "nix flake check" in the root directory
<drakonis>
with modifications?
<{^_^}>
[nixpkgs] @arianvp opened pull request #85332 → Revert "nixos/acme: Fix allowKeysForGroup not applying immediately" → https://git.io/Jfv7h
<qy[m]1>
yup, however you expect it to build
<drakonis>
it seems to not like the existence of git-crypt files
<qy[m]1>
cause that should just verify that the flake can eval and each of the configurations and packages
<qy[m]1>
i reccomend keeping some around for nixos-option, nix search, etc
<qy[m]1>
but yeah
<drakonis>
i figure that'll be dealt with once flakes get merged
<qy[m]1>
yup
<hoplaahei>
Is there a reason to specify pkgs.package prefix when installing packages? I just have the name of the package e.g., firefox, without the pkg. prefix, and it seems to work.
Thra11 has quit [Quit: WeeChat 2.8]
abathur has quit [Quit: abathur]
<cole-h>
It's required if you don't do something like `with import <nixpkgs> {}` -- the packages won't be in scope otherwise.
nschoe has quit [Ping timeout: 240 seconds]
nschoe has joined #nixos
<hoplaahei>
cole-h: why does it seem to work for me then? I don't do anything like that using /etc/nixos/configuration.nix.
<hoplaahei>
But I call it like this:
<hoplaahei>
environment.systemPackages = with pkgs; [ packages ]
<hoplaahei>
;
<cole-h>
Yeah
<cole-h>
See that `with pkgs;`?
<cole-h>
You're bringin `pkgs` into scope for that list.
<cole-h>
So `= with pkgs; [ package1 package2 package2 ];` is the same as writing `= [ pkgs.package1 pkgs.package2 pkgs.package3 ];`
<{^_^}>
[nixpkgs] @worldofpeace pushed to treewide-broken-20.03 « treewide: mark broken wip »: https://git.io/JfvbR
justanotheruser has quit [Ping timeout: 240 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
peelz: That would give an error that null isn't of type int
jboy has quit [Quit: bye]
<infinisil>
peelz: What you can do is not declare a default at all. If the option then gets used and there are no definitions, people will get an error mentioning that
<peelz>
infinisil: oh okay thanks
<{^_^}>
[hydra] @edolstra merged pull request #737 → Get rid of dependency to SQLite → https://git.io/JvhLN
<peelz>
infinisil: are you sure it would give an error though? I'm looking at the mkOption source and it seems like it would evaluate to the same thing
<infinisil>
Yup
<infinisil>
Just try it
<peelz>
alright
<infinisil>
(keep in mind that you need to actually use the option somewhere for it to trigger though)
Desetude has quit [Quit: WeeChat 2.8]
geekthattweaks has quit [Quit: Connection closed for inactivity]
justanotheruser has joined #nixos
nikola_i has joined #nixos
ixxie has quit [Quit: Lost terminal]
hoplaahei has quit [Ping timeout: 256 seconds]
philr_ has joined #nixos
hoplaahei has joined #nixos
dermetfan1 has quit [Quit: WeeChat 2.7.1]
sshow has quit [Quit: leaving]
sshow has joined #nixos
philr has quit [Ping timeout: 260 seconds]
<drakonis>
qy[m]1: how would i ensure that i'm installing packages from nixos-unstable?
<qy[m]1>
with my current live system, you'd use pkgs.large
<qy[m]1>
that way even if you change the base nixpkgs it'll definitely be from large
<qy[m]1>
but i think it's currently set to large anyway so doesn't really matter
<qy[m]1>
(can check in flake.nix)
fooker has quit [Ping timeout: 265 seconds]
<drakonis>
cool
plutes has joined #nixos
<qy[m]1>
i'd remove those silly traces if you're gonna make extensive use of that, i added them as a debugging trick and i've just been too lazy to remove them
<Henson>
does anybody have a problem with Firefox not being able to connect to the internet after your computer wakes up from sleep, but nothing is actually wrong with the network connection?
<Henson>
this has been going on ever since I upgraded to NixOS, and only affects firefox, and starting with a fresh profile, disabling all extensions, and installing new versions doesn't seem to make a difference.
<Henson>
it doesn't happen every time, and sometimes it resolves on its own, sometimes it doesn't. I've looked this up and tried all of the suggestions but to no avail.
<drakonis>
qy[m]1: is there something i forgot to include in order to have my system locate the filesystem?
<drakonis>
i gave it the correct uuid but it cannot find it
o1lo01ol1o has quit [Remote host closed the connection]
<qy[m]1>
not that i know of?
<drakonis>
weird
<qy[m]1>
including the right boot kernel modules maybe?
<qy[m]1>
override all the boot stuff to your old config, i guess
<drakonis>
hmm
cosimone has quit [Quit: Quit.]
<drakonis>
its all correct tho
<qy[m]1>
is it definitely pulling in your config? i had a thing where first time i switched it didn't actually load any of my values properly, not sure how i achieved that though
<qy[m]1>
beyond that, no clue, sorry
<drakonis>
its in the hosts
<drakonis>
maybe i'll just have it look it up through the device number
<drakonis>
hmm, seems like it worked now
<drakonis>
huzzah
<qy[m]1>
heh
<drakonis>
brb reboot
drakonis has quit [Quit: WeeChat 2.8]
captjakk has joined #nixos
snicket has quit [Ping timeout: 240 seconds]
captjakk has quit [Remote host closed the connection]