<ottidmes>
Ralith: sorry, but that is all I got, just remembered that piece of software and thought it could be useful to your situation, and have seen it mentioned with emacs, but I use neither emacs nor direnv
<tilpner>
ottidmes - Hmm, rg "lib(\.\w+)+\s*=" only turns up a single definition for misc/lib.nix
<ottidmes>
tilpner: its only being used for some kernel thing
<Ralith>
worse yet, it seems to clobber emacs' environment globally, which is an ugly hack :/
<Ralith>
(or rather, the emacs-direnv integration does)
<ottidmes>
tilpner: config.lib.kernelConfig
drakonis_ has joined #nixos
<init_6>
peace all
<tilpner>
ottidmes - I wonder if args.lib was supposed to be set from config.lib
<ottidmes>
tilpner: to me config.lib seems more like a hack/trick, like options.dummy I used in the past to debug some stuff
<ottidmes>
tilpner: currently pkgs.lib should be able to replace it already
<tilpner>
Maybe the distiction was introduced while nixos and nixpkgs were separate repos?
<ottidmes>
that would make sense, just like that old utils thing I mentioned seems to stem from that time
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
timon37 has quit []
<ottidmes>
kudos/karma to whoever made the syntax highlighter for nix in vscode, I don't think I have made a syntax error since using it
hakujin has joined #nixos
Ariakenom has quit [Quit: Leaving]
<avn>
ottidmes: I still miss/add unnessesary semicolons despite any highlighters ;)
<ottidmes>
avn: I get an error highlighting here in vscode for those as well
hamishmack has joined #nixos
fiatjaf has quit [Quit: ~]
<ottidmes>
funny how you can set lib at eval-config.nix, but it then does not get passed along so you wont get that lib in your nixos modules, I guess its just there as an optimization
zolk3ri has quit [Quit: Lost terminal]
Growpotkin has joined #nixos
<Growpotkin>
hey has anybody had issues finding their Haskell Modules with the 8.6.2/4 compilers?
<Ralith>
ottidmes: managed to bodge emacs-direnv into functionality, and direnv seems quite pleasant for general shell use besides; thanks for the suggestion
<Growpotkin>
Maybe my nix-shell is to blame, but it's always been find for 8.4.3 and 8.2.2
<Growpotkin>
excuse me I meant 8.6.2/1
<aszlig>
anyone here who has a machine running linux 4.19 on non-nixos?
<iqubic>
And once I ran the update I decided I should reboot my laptop. Everything seemed fine, except now emacs is complaining about not being able to find a font.
<iqubic>
I know that "Knack Nerd Font" should be installed on my system, but it isn't installed on my system. This font was present in 18.03 when I was running that earlier today.
<iqubic>
Did the font packages really change *that* much?
alex`` has quit [Ping timeout: 245 seconds]
<ottidmes>
iqubic: all I can suggest is: fonts = { enableFontDir = true; fonts = with pkgs; [ nerdfonts ]; };
erratic has quit [Quit: this computer has gone to sleep...]
<iqubic>
The only difference between when emcas could find the font and when it can't is the version of Nixos I was using.
<ottidmes>
than you have not done what I suggested, enableFontDir = true; is missing
<iqubic>
I was using 18.03 when emacs could find that font. Now that I have switched to 18.09 emacs can't find that font.
<haslersn>
hi, I'm trying to enable widewine in chromium in order to use netflix. It does not work even though I installed `(chromium.override { enableWideVine = true; enablePepperFlash = true; })`. Can somebody help, please?
<iqubic>
ottidmes: What does "enableFontDir = true;" do?
<ottidmes>
iqubic: you made that point, but could you try the option just in case, never assume when debugging. About what it does, check the options page: https://nixos.org/nixos/options.html#enablefontdir
<ottidmes>
iqubic: just how big is that font? it just downloaded 2GB of font data :S
<iqubic>
I'm not sure.
<iqubic>
I use it because I like.
<iqubic>
I feel like it includes a ton of different unicode symbols and other things too.
<ottidmes>
fair enough, I am just seeing my disk space disappearing :P
<iqubic>
How do I check if enabling the font dir worked?
<iqubic>
Is there a way to see if a certain font is installed or not?
<ottidmes>
iqubic: sure, but that is not something I know on the top of my head, would need to google it myself too
<ottidmes>
iqubic: after its installed I planned to just change my polybar font and see what happens
<iqubic>
fc-list | grep -i "font-name"
<ottidmes>
iqubic: do you know if emacs is using XFT?
<iqubic>
I don't
<iqubic>
After doing a quick search I can say with 100% certainty that emacs uses XFT.
<iqubic>
Weird: fc-list | grep -i "knack" is returning nothing at all.
<iqubic>
It seems like updating to 18.09 seemingly uninstalled this font.
<iqubic>
The hell?
<ottidmes>
maybe weird, but it should not impact whether it works, I get bogus stuff there too and my fonts work fine
<iqubic>
Really?
<iqubic>
Alright, so I just did the sensible thing, and asked Firefox to tell me what fonts it could find.
<ottidmes>
I distinctly remember doing some similar command and getting only dejavufont, but now I do get the right stuff
<iqubic>
Turns out that the name of the font changed at some point. Instead of listing "knack nerd font" Firefox shows "hack nerd font"
<iqubic>
Let's see if emacs likes that font name.
<iqubic>
Yes indeed. Emacs does like that name.
<iqubic>
Problem solved.
<ottidmes>
yep, was just about to say that my fc-list indeed list it as "Hack Nerd Font"
<ottidmes>
mystery solved :)
<iqubic>
Now on to my next question: Everytime I run "nixos-update switch" I get a new entry in my systemd-boot list. Is there a way to delete all versions except the current one, and clear out the list I see on the boot loader menu?
<ottidmes>
iqubic: if you dont mind losing all those previous generations, then ^
<gchristensen>
sudo nix-collect-garbage -d; sudo nixos-rebuild boot, even
<iqubic>
ottidmes: Is it possible to just keep the current + the last three generations?
<ottidmes>
I would say: sudo nixos-rebuild boot, reboot, after reboot nix-collect-garbage -d, or it might hang on too stuff, no?
<ottidmes>
iqubic: it is, check the manpage of nix-collect-garbage or google it (sure should be in a FAQ / wiki somewhere)
<iqubic>
What does the boot parameter do, and how does it differ from switch?
<ottidmes>
iqubic: man nixos-rebuild ;)
<ottidmes>
iqubic: but in short, switch tries to apply the configuration right away, boot will just change the default generation of the bootloader to the newly build
<iqubic>
Ah. I see.
<ottidmes>
iqubic: dry-build (try to build the plan of building the system, i.e. the deriviation), test (apply the changes of the new configuration, but do not link it in the bootloader yet), switch and boot I just explained
<iqubic>
So if I did test, then boot, that would be similar to just doing switch?
<ottidmes>
so if I am just refactoring stuff in my configuration, I go with dry-build, if I am experimenting I go with test, and I go with boot when to see the changes I have to reboot anyway (bootloader/hardware stuff), otherwise switch it is for me
<ivan>
I have a non-root single user nix on debian and see `warning: substituter 'http://icvm.wg:8080' does not have a valid signature for path '...'` for everything when installing from my nix-serve cache (on a nixos), what am I doing wrong?
<ottidmes>
infinisil: feature request for the bot (well... related to it), would be nice if I could query the definitions in it outside of IRC as well, maybe something like options.html/packages.html on nixos.org, it could reach more people that way (although I guess not all definitions are like mini-FAQs)
<ivan>
ottidmes: thanks. I ran that on the server but still see the same
<ottidmes>
ivan: also make sure you have the right nix settings and keys, but I am not the best person to ask about it, did manage to get it working once, but ran into different issues and havent used it since
<ldlework>
gchristensen: i don't understand the second one
<ottidmes>
develCuy: in that case the only thing left to try is removing export MOZILLA_OFFICIAL=1 or patching the manifest to just remove the line for that file (hacky)
<ldlework>
the github syntax highlighting threw me off for a second
<ldlework>
yeah!
<develCuy>
ottidmes: ok, let's try it
<ldlework>
i was like "what's the mutate keyword do..?"
<gchristensen>
:D
<gchristensen>
I wish I could have it automatically shellcheck shell scripts, but ... eh.
fusion809 has joined #nixos
<ldlework>
shellcheck?
<gchristensen>
its a static code analysis tool to yell at you for not quoting bash variables
<ottidmes>
ldlework: basically a linter for shell, its awesome, like hlint for Haskell
Radivarig has quit [Ping timeout: 250 seconds]
<ldlework>
gchristensen: ok so this mutate thing is actually just a general nix helper you have
<gchristensen>
yeah
<ldlework>
neato
* ldlework
steals
<ldlework>
i kinda wish there were lib projects
<gchristensen>
me too
<ldlework>
i feel like infinisil is the guy for the job
<ldlework>
:)
<ottidmes>
define lib projects? like people would have repos of lib functions for nix?
<gchristensen>
shlevy and niksnut have been hacking on require.nix for something like that
<ldlework>
gchristensen: last question, when you "inherit gnupg" that is basically going to set gnupg = what'd you'd get from "${pkgs.gnupg}" yes?
<gchristensen>
yep!
<ldlework>
ottidmes: a really nice cultivated community stdlib yeah
<gchristensen>
> let foo = "Hi"; in ({ inherit foo; } == { foo = foo; })
<{^_^}>
true
<ottidmes>
ldlework: I am working on a pull request to make lib overlayable
<ldlework>
gchristensen: sure i just wasn't sure what the value of "gnupg" being passed in was
<ldlework>
thanks
<gchristensen>
ah, right, yeah
<ldlework>
ottidmes: hmm, i've had problems writing certain kinds of nixlang functions to abstract things I want to do but are dealing with concerns so early in the resolve cycle that infinite recursion errors are techinically impossible
<ldlework>
so (import ./thefile.nix); is nessecary
<ldlework>
to me the issue is really subtle so can't quite remember the exact details of what i was doing when coming across this but i was basically assured there's a small subset of abstractions/helpers that deal with things that can't be put into an overlay
<ldlework>
i wonder if what you're doing helps with that at all
<ldlework>
i would like to eventually one day not have any random import statements of utility code in my modules
<ldlework>
but i vaugely understand it is a intrinsic chicken-egg thing
<ottidmes>
ldlework: I mean a dedicated overlay for lib, so you would not have issues with inf-rec, also I solved an issue with regards to module arguments and inf-rec, so I can finally pass stuff as arguments to my modules without constant fear of inf-rec
<ldlework>
that sounds lovely
<ottidmes>
I can now have config.networking.hostName being used to determine my nixpkgs overlays and all kinds of things, while before that would give infinite recursion
<ottidmes>
ldlework: I wanted to make my own lib, but whenever I tried, I ran into inf-rec, custom module argument, inf-rec, pkgs.lib, inf-rec, so I settled with direct imports, which always work, but now I can just remove them
<ldlework>
ottidmes: yeah i would love to see that land
<ottidmes>
the trick is, nixpkgs is part of the same attrset that defines custom module arguments, but this means that in order to evaluate that module arguments attrset, it will also evaluate the pkgs attribute far enough (even though being lazy), to cause problems, meaning you cannot have any module attribute that determines what pkgs will be
aleph- has quit [Ping timeout: 245 seconds]
<ldlework>
what happens when you want some lib code to refer to pkgs though?!
<ottidmes>
while with a lib, you tend to do: with lib; and thus if you than define something like nixpkgs.overlays in that config with that with lib; at the top, nixpkgs.overlays will have it as a dependency
<ottidmes>
ldlework: than you will have to pass it pkgs as an argument (happens all the time)
<ldlework>
right
<ldlework>
ottidmes: how far along is your pr
<ottidmes>
ldlework: I should probably split it in two PRs, one for the lib overlays and one for the inf-rec args issue, the latter is quite simple, but there is a bit I am not quite certain for (but thats OK for a initial PR I guess)
<ottidmes>
* quite certain about
lassulus_ has joined #nixos
<ottidmes>
either I hard code a check for "pkgs" and "pkgs_i686", or I create a separate args attrset for them
<ottidmes>
the former is not flexible, you might have other args that you would want seperate, and the latter does cause an extra _module option in every module that exists
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
<{^_^}>
[nixpkgs] @yegortimoshenko pushed to yegortimoshenko-patch-4 « monero: change desktop shortcut name to Monero »: https://git.io/fpS0p
Mr_Keyser_Soze has joined #nixos
<ottidmes>
ldlework: I have to think things through more properly, I have some ideas on how to improve upon it further, but if you really like it, I could push my local stable branch
<ldlework>
ottidmes: i don't want to move my config to a new system until it's in but i am very interested in this feature
<ldlework>
i bet infinisil would be interested too
<ldlework>
he thought a lot about the problem before
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #51718 → monero: change desktop shortcut name to Monero → https://git.io/fpSET
<ldlework>
i looked for an attrset -> list but didn't find one in the attrset or list module
<ottidmes>
ok ok: [ { name = "foo"; value = 5; } ]
<fusion809>
Hello good folks, I'm doing something I wouldn't have had the guts to a mere week ago, creating my own package. It is for a Java-based chemistry package I am quite acquainted with, the Marvin Suite. This is what I have so far: https://gist.github.com/d214aaaeb64bb441c99bf11e1c3fda7f. The problem facing me atm is that ~/.nix-profile/opt/chemaxon/marvinsuite/MarvinSketch is returning a Java error I have no idea how to solve:
<ldlework>
> let a = { a = 1; b = 2; c = 3; }; in pkgs.lib.foldl (x: xs: [x] ++ xs) [] (builtins.attrNames a)
<{^_^}>
value is a string while a list was expected, at (string):210:61
<ldlework>
but why
<ottidmes>
got a better idea than a seperate attrset and or hardcoded names, an ordering mechanism similar like activation scripts has, because the main problem is the order of trying to evaluate the attrsets
<ldlework>
ottidmes: any idea where i've gone wrong here
<ottidmes>
what do you want to achieve?
<ldlework>
oh foldr works
<ldlework>
lol
<ldlework>
wtf
<ottidmes>
argument order
<ldlework>
it should just traverse the list of attrNames in reverse order
<ldlework>
why does it break on foldl
<ottidmes>
foldr has the accumulator argument at the right
<ldlework>
eah my accumulator is xs
<ldlework>
it's adding [x] to xs
<ottidmes>
(xs: x: [x] ++ xs)
<ottidmes>
for foldl
<ldlework>
oh ok I got you
<ldlework>
thanks
<ldlework>
:p let a = { a = 1; b = 2; c = 3; }; in pkgs.lib.foldr (x: xs: [[x (builtins.getAttr x a)]] ++ xs) [] (builtins.attrNames a)
<ldlework>
[ [ "a" 1 ] [ "b" 2 ] [ "c" 3 ] ]
<ldlework>
lol
<ldlework>
now i can use this in replaceStrings
<ottidmes>
your builtins.getAttr can also be: a.${x}
<ldlework>
nice
<ldlework>
now i need to unzip this list into two lists
<ldlework>
i guess i could just get the attrNames and attrValues
<ldlework>
duh
<ldlework>
lol
<ottidmes>
ldlework: also: mapAttrsToList (name: value: [ name value ]) { a = 1; b = 2; c = 3; }
<ottidmes>
right, if that was your goal, you should have gone with that
endformationage has quit [Ping timeout: 240 seconds]
<fusion809>
OK, for some reason now my package isn't even being installed, when I run nix-env -f /path/to/nixpkgs -iA marvin it says it's installing it but ~/.nix-profile/opt/chemaxon doesn't exist afterwards. My default.nix file is https://gist.github.com/dc84af90413703a6cd04506b226bd1a0. So I just don't get it...
siraben has joined #nixos
<siraben>
Does running "nix-env -i riot-web" not work for anyone?
<ottidmes>
fusion809: its probably because not all directories are linked to your profile, I believe only /bin /lib and /share
<fusion809>
It was linked before.
<fusion809>
After I ran that command the first few times it was there
<fusion809>
It's only now, after running it several times, while adjusting the file to make it work, that it doesn't exist
Mr_Keyser_Soze has quit [Remote host closed the connection]
<ottidmes>
I dont use nix-env myself, so I have no experience with potential gotchas there, I would just use nix-shell -p marvin instead
Mr_Keyser_Soze has joined #nixos
<fusion809>
OK, well I tried your command and I get the error: error: undefined variable 'marvin' at (string):1:94
<fusion809>
That was from /path/to/nixpkgs
<fusion809>
and from /path/to/marvin
<ottidmes>
I assumed you would have an overlay defining marvin or directly in your nixpkgs
<Ralith>
ldlework: if you've got a build for riot-web 0.17.6 that works reliably, please share
Rusty1 has quit [Quit: Konversation terminated!]
<fusion809>
pkgs/top-level/all-packages.nix does include a line mentioning marvin
<ldlework>
Ralith: i.. don't
<fusion809>
if that's what you're referring to
<ldlework>
i'm actually in the process of building riot-electron-nix though lol
<Ralith>
ldlework: in that case, know that others know your pain
<ldlework>
does riot-electron-nix work?
<Ralith>
sometimes!
<ldlework>
i don't know anything about this software
<ottidmes>
fusion809: I am not sure about your setup, you probably need to fix your NIX_PATH to reflect that you have a nixpkgs checkout now, so try: NIX_PATH=nixpkgs=/path/to/nixpkgs nix-shell -p marvin
<Ralith>
I'm currently talking to you through a 0.17.7 build that I have entirely failed to reproduce
<ldlework>
lol
<Ralith>
npm is a disaster
<ldlework>
jeeze this takes forever to build
<fusion809>
How do you build the package in the shell?
<Ralith>
I'm probably going to ditch riot for fractal wholesale once they unfuck their cache
<fusion809>
nix-build?
<ldlework>
just use weechat like everyone else
<Ralith>
it is pretty remarkable how an interpreted language has the slowest build process of anything
<{^_^}>
error: syntax error, unexpected FLOAT, expecting '{', at (string):210:10
<ldlework>
> cross-env NODE_ENV=production webpack-cli -p --progress --bail --mode production
<{^_^}>
error: syntax error, unexpected '=', expecting ')', at (string):210:19
<ldlework>
sh: /nix/store/4mwmv4nyz8bp9mljrhd9xwdhivp84piy-node-riot-web-0.17.2/lib/node_modules/riot-web/node_modules/.bin/cross-env: /usr/bin/env: bad interpreter: No such file or directory
<ldlework>
ottidmes: can you take a look at my gist?
<ldlework>
i'm stumped
<ottidmes>
ldlework: you want types.str anyway and if that does not fix it, you probably need an explicit default
<ldlework>
hmm thanks
<ottidmes>
yep, you need a default
<ottidmes>
I can see you have been looking at infinisil's nixos config repo :P
Mr_Keyser_Soze has quit [Remote host closed the connection]
<ldlework>
ottidmes: nope
<ldlework>
why do you say that
<ottidmes>
ldlework: str = normal string, only one value, string = auto concat string, setting it with first "foo" and then "bar" would result in "foobar", which you rarely want, instead you then probably want either lines (newline seperated), commas, or envVar (: seperated) as type
<ldlework>
i need a auto concat string
<ldlework>
so i'll go back to types.string
<ldlework>
oh or lines
<ottidmes>
config.mine.workstation, I've only seen that mine convention in his repo so far
<ottidmes>
definitely lines
<ldlework>
ottidmes: oh i picked that up from them indeed
<ottidmes>
if you want concat, the default and generally most useful choice is lines
<ldlework>
ottidmes: i've never gone through their config though, we've simply talked for many many hours
<fusion809>
I've tried unset DISPLAY and running that Java executable in my package, but I get that error. Not sure what that link (http://protege-project.136.n4.nabble.com/Protege-ExceptionInInitializerError-td4484464.html) was meant to be telling me (I'm not all that Java knowledgeable so some of the jargon escaped me). Tried setting DISPLAY to ":0" too and that didn't help (or change the error).
hakujin has joined #nixos
<ottidmes>
when testing with { procps = "foo"; }, but ah well if its fixed for you, I aint complaining!
<siraben>
Huh how do I install texlive-full from my configuration.nix?
<ldlework>
now i get "value is a functions instead of a list"
<ldlework>
wtff
<ldlework>
siraben: environment.systemPackages
<ottidmes>
ldlework: probably not enough arguments given somewhere
<ldlework>
oh attrVals wants a list of the attrs
<ottidmes>
ldlework: just try going step by step: nix repl '<nixpkgs/lib>'
<ldlework>
that you want the values from
<ldlework>
jeeze
<ldlework>
i'll just map
<ldlework>
lol
<ottidmes>
ldlework: attrValues does exist, why you keep saying attrVals? maybe because I have with builtins defined in my repl/lib and attrValues is a builtin
<ldlework>
hmm
<ottidmes>
siraben: I have: environment.systemPackages = with pkgs; [ texlive.combined.scheme-full ];
<ottidmes>
fusion809: I would suggest searching for other Java graphical apps in nixpkgs and see if you can see something that might help, I have never packaged a Java app for Nix, so not sure about the gotchas
<ottidmes>
ldlework: ah thats your bug, you need attrValues
freeman42y has quit [Ping timeout: 252 seconds]
<ottidmes>
ldlework: I just checked the definitions, attrVals [ "list" "of" "attrset" "names" ] { list = 1; ...etc... }, so in your case you got a partially applied function (not all arguments given)
<fusion809>
ottidmes: Thanks for trying. I've looked at other Java packages (hence why I knew to import jre), but I think for now I ought to leave Java packaging to the pros. FTW I've package all the other OpenRA mods I managed to successfully package in the OBS in my nixpkgs fork thanks to your efforts in making openra-ura.
<ottidmes>
ldlework: which is a feature, but can cause these bugs if you are not aware, you probably would have preferred it yelling that you used the wrong amount of arguments, but its useful for mapping functions over lists and such
<fusion809>
ottidmes: so thanks again.
<ottidmes>
fusion809: did you see my questions, instead of copy pasting my package for each mod, we could probably abstract over them
<fusion809>
ottidmes: I recall you mentioning that possibility, but I didn't see any specific questions (at least not that I recall).
<ottidmes>
fusion809: "the current setup assumes a custom engine with a custom mod, but are there instances of multiple custom mods for the same engine fork?"
<fusion809>
Same engine fork, no, but the original engine, yes.
<ottidmes>
fusion809: but I only saw one that was based on the original engine, if thats really the case, than I could use the same abstraction for all of them, but just have a flag for whether to keep the existing mods or whether to remove them
vidbina has joined #nixos
<ottidmes>
fusion809: then the one mod based on the original engine could act as a full replacement of the openra package now
<CodeKiwi>
Is nix always unbearably slow to do anything or is there something wrong with my computer
<ldlework>
ottidmes: apparently it is because "pkgs.procps" is a set not a string
<ldlework>
so i need to do "${pkgs.procps}" instead
<ldlework>
i guess
<ottidmes>
CodeKiwi: depends on what you are doing, evaluating large portions of Nix is slow, most slowdowns are IO related in practice though (outside of evaluating the whole of nixpkgs or multiple configuration, those take long)
<fusion809>
ottidmes: I know 6 mods that use the original engine.
<fusion809>
unofficial mods that is, discounting the four provided by the engine repo (if you're thinking there's three, it's because the fourth one, Tiberian Sun, is experimental and not provided by the openra package)
<fusion809>
Must admit I didn't fully follow ya ottidmes. But yes, there is a great deal of consistency across the mod default.nix files, generally speaking just the repo name and mod name (e.g. ura for uRA, raclassic for RA Classic, ra2 for Red Alert 2, etc.)
<fusion809>
differ
<ottidmes>
fusion809: ok, I guess I will have to take acount more than one mod than, it just that the current package builds the engine together with the mod, I am not sure to just build the mod, or if thats even possible
<CodeKiwi>
For example when it extracts a ghc it probably takes 20 minutes but me extracting one takes 15 seconds.
<fusion809>
I don't think it is. Then again, I've never tried, as I've always wanted a simple package.
<fusion809>
CodeKiwi: Nix is naturally a bit slow, but for me it is acceptably slow. If you want to speed it up you could disable checks, although to my understanding this is not recommended.
<CodeKiwi>
A nix collect garbage i did earlier was 35 mins
<ottidmes>
CodeKiwi: not sure what you mean with "a ghc" but if you mean an archive, that should not be normal, no, if you can get something reproducable, maybe create an issue?
<ottidmes>
CodeKiwi: thats not normal, maybe a bad partition for /nix/store or some such?
<ottidmes>
fusion809: hmm, in that case its simple, but inefficient, then again, building the engine is done in notime, so its no real problem, I will make that abstraction then
irdr has joined #nixos
Mateon3 has joined #nixos
<ldlework>
ahh
<ottidmes>
ahh
<ldlework>
the value doesn't need to be wrapped in a list
<ottidmes>
optionals
<ottidmes>
optional
EarlDeLaWarr has joined #nixos
<ottidmes>
ldlework: right
Mateon1 has quit [Ping timeout: 246 seconds]
<ottidmes>
ldlework: or rather, musnt!
Mateon3 is now known as Mateon1
<CodeKiwi>
ottidmes: maybe
<ldlework>
ottidmes: it seems with lines, the default gets overritten
<ottidmes>
ldlework: has nothing to do with lines, but with priorities
rawreraw has joined #nixos
<ottidmes>
ldlework: it merges on the same priority
<ottidmes>
ldlework: but highest priority wins
<ldlework>
how do i provide a default
<ldlework>
that sticks around
<ottidmes>
normal assignment
<ottidmes>
via config
<ottidmes>
inside the module that defines the options for it
<ldlework>
hmm ok
vidbina has joined #nixos
<ottidmes>
ldlework: for examples, check any module that defines and extraConfig
<ldlework>
ottidmes: hmm this puts my lines at the end
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has joined #nixos
hamishmack has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
rawreraw has joined #nixos
<typetetris>
It looks like my understanding is still lacking: I have the following nix expression: https://gist.github.com/typetetris/90f040f4090d1d93d35c73b41292c28f and here I added libssh2, krb5 and openssl_1_0_2 because the linker in a build with clang complained, that there are unresolved symbols in libcurl and libpam. Shouldn't nix pull in the dependencies transitively / recursively?
crmlt has joined #nixos
<typetetris>
Btw: I open a nix-shell with that file and use NIX_CLFAGS_COMPILE for compiling and NIX_LDFLAGS for the linker, while adding some `-lssh2` flags and stuff manually.
<CodeKiwi>
Could auto zfs snapshots be part of my problem
elgoosy has joined #nixos
<CodeKiwi>
Or misconfigured zfs or maybe I need to ata secure erase it...
<CodeKiwi>
I’ve been fighting this thing for days only just a few hours ago got it to stop throwing fits about the network curl xz crap :|
<CodeKiwi>
And dmesg is showing cpu throttling frequently...
<CodeKiwi>
I’m like really starting to regret this endeavor heh :(
Growpotkin has quit [Quit: WeeChat 2.3]
<yegortimoshenko>
CodeKiwi: ZFS performance starts to decline rapidly at about 15% free space and below
<CodeKiwi>
I have 50% free space but it’s been like this even before that. But the ssd has been a lot more full before so I’m wondering if that’s affecting it
<ottidmes>
on my btrfs I am having constant low space (< 12G most of the time), but works decently enough, I am planning to use ZFS on next machines, this makes me doubt that a bit again
<CodeKiwi>
I don’t have typical problems
<CodeKiwi>
The thing that’s weird is that other things seem to work fine so I don’t know that it’s zfs or nix and nix has always been slow for me even in vms
<CodeKiwi>
I void warranties (tm)
<CodeKiwi>
Previously the ssd was in a core storage fusion drive with an sd card. And boot camp...totally not supported
<CodeKiwi>
Apple store employees hate me
erratic has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
<CodeKiwi>
(Probably not really but we are on a first name basis)
<{^_^}>
[nixpkgs] @tomberek opened pull request #51721 → gawkextlib: init at unstable → https://git.io/fpSai
<CodeKiwi>
ottidmes: I have zfs on almost all of my other computers and some external hard drives (working on converting most of the rest to zfs) mostly no complaints I like it
<CodeKiwi>
That I want to use it zfs is one of the primary reasons I’m not just using a vm on macOS...anymore/yet
<ottidmes>
ok, then you must really like it, that is how I feel about NixOS ;) all my computers/servers are running it
<CodeKiwi>
I’m trying to like nixos >.>
drakonis_ has quit [Ping timeout: 272 seconds]
<CodeKiwi>
It’s on a few machines and it’s the only one I’ve ever put on my mbp over macOS ...
hakujin has joined #nixos
tobiasBora has quit [Ping timeout: 245 seconds]
hakujin has quit [Ping timeout: 240 seconds]
<yegortimoshenko>
CodeKiwi: i'd recommend against zfs on linux, btw. i've had four data loss occurences (all on single drive laptops) and one kernel oops coming from zfs module on server with 2 ssds in raid1 that caused some downtime
Ariakenom has joined #nixos
<CodeKiwi>
Ouch
crmlt has quit [Ping timeout: 246 seconds]
<CodeKiwi>
Do you know why they happened?
crmlt has joined #nixos
<yegortimoshenko>
wrt data loss, i'm still not sure. i think, the most likely reason is power management getting in the way somehow.
<yegortimoshenko>
but that is unlikely to be hardware failure: it happened to three different macbook models over course of two months. with one of the laptops, it happened twice. about year and a half ago
<yegortimoshenko>
nixos on packet.net used to default to zfs, now they opt for mdadm+ext4 instead
<CodeKiwi>
I luckily haven’t had problems yet but I admit to nit trusting anything and expect everything to fail that’s why I have backups of backups of backups >.>
<CodeKiwi>
And not everything is on the same setup
<CodeKiwi>
Though tbh sometimes I want to just delete everything and start over heh
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #51718 → monero: change desktop item name to Monero → https://git.io/fpSET
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/fpSVu
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-4: https://git.io/fpSVg
init_6 has joined #nixos
<CodeKiwi>
yegortimoshenko: have you had better luck with it on not Linux
Radivarig has joined #nixos
fusion809 has quit [Remote host closed the connection]
<yegortimoshenko>
CodeKiwi: i used to have a freebsd nas with root on zfs, it worked just fine. they maintain it in tree, so that makes sense
fusion809 has joined #nixos
<CodeKiwi>
Does nix work on freebsd
<yegortimoshenko>
nah, that was abandoned long time ago
<CodeKiwi>
:(
<yegortimoshenko>
have you tried btrfs?
<CodeKiwi>
Not really
<yegortimoshenko>
if you just want CoW snapshots on a laptop, that works (see `services.snapper`)
iyzsong-x has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
<CodeKiwi>
Unfortunately what I want only exists in zfs afaik and even then is risky... primarily; native encryption, compression, volumes and raid that works on Linux and MacOS without too much hassle...
<CodeKiwi>
And yes I realize these are new features and I should expect failures :(
alex`` has joined #nixos
oida has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to master « ghc: add new compiler version 8.6.3 »: https://git.io/fpSwo
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fpSwK
simukis has quit [Quit: simukis]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-brick: update overrides for the latest version »: https://git.io/fpSwM
<siraben>
Anyone here use i3-gaps in Nix? I'd like to see how they configured it.
<siraben>
Also, how do I delete all the packages currently installed that are not in my configuration.nix? (like packages installed through nix-env -i...)
<tilpner>
I use i3. Is your question about the gaps feature, or can I help too?
<tilpner>
Try nix-env -e \*
<siraben>
Yeah, how did you set yours up?
<siraben>
Is i3-gaps's appearance the same as i3's default ones?
jD91mZM2 has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<tilpner>
How would I know, I just said I don't use i3-gaps :D
<siraben>
Ah, so how did you configure i3?
<tilpner>
I define my i3 config with a NixOS module, so that I can use the module system to have largely the same config on different machines, but alter small details
<tilpner>
Then I set services.xserver.windowManager.i3.config to that generated config
<tilpner>
It does require rebuilding and logging out every time I make a config change, but that's a tradeoff I'm willing to make
feep has quit [Disconnected by services]
<tilpner>
E.g. in one of my device configs I have windowManager.i3.config.set."$mod" = "Mod4";
<tilpner>
And another might set $mod to Mod1. But the rest of the config stays the same
<tilpner>
Oh, sorry, I mixed things up
<tilpner>
* Then I set services.xserver.windowManager.i3.config**File** to that generated config
simukis has joined #nixos
<siraben>
tilpner: what about wireless?
orivej has joined #nixos
<tilpner>
I use NetworkManager with nm-applet for that
<tilpner>
There's AFAIK no good declarative way to configure wireless networks (either putting your passwords into the store, or requiring manual copies of config files)
<siraben>
What'd you use as your display manager?
<tilpner>
sddm
<siraben>
I'm confused on the difference between window manager, display manager and desktop manager
<siraben>
esp. wrt. NixOS
<symphorien>
the display manager is your login screen
<tilpner>
windowManagers manage just that, windows, desktopManagers can do a lot more, they often bring their own applications, settings menus, etc.
<tilpner>
desktopManagers usually bring their own windowManager too
<symphorien>
typically, the desktop manager can provide a prompt when you connect an external monitor, a screen saver etc.
<tilpner>
Gnome, KDE and Xfce are examples for desktopManagers, which are a complete package you don't have to assemble to use
<symphorien>
you can use xfce + i3, though
<siraben>
Sounds right for me, I don't want to do a lot of configuring yet
<siraben>
Oh really?
<siraben>
Can I do gnome + i3?
<symphorien>
I don't think so
<siraben>
Will xfce handle wireless and so on for me?
<symphorien>
not wireless, but monitors, power management etc.
<siraben>
symphorien: Ok I used nitrogen to get my desktop image, however my cursor shows a "waiting" symbol when I hover over it
<symphorien>
I use feh. I don't know about nitrogen.
<siraben>
How do I check what installed packages are untracked in my configuration.nix?
civodul has joined #nixos
vidbina has joined #nixos
haslersn has quit [Ping timeout: 256 seconds]
<symphorien>
nix-env -q
fusion809 has joined #nixos
<siraben>
Thanks
<siraben>
symphorien: how do you get screenshots to work?
<symphorien>
bind a key to your favorit screenshot tool, like xfce4-screenshooter
<siraben>
symphorien: what do you use?
<siraben>
How did you find out about all these things?
<symphorien>
I don't have such a key bound
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #nixos
<gchristensen>
siraben: probably very similar way to how you're finding out now
<siraben>
gchristensen: haha, that's true.
agander_ has joined #nixos
<siraben>
I am interested to know how to customize i3 with only configuration.nix, though.
agander_ is now known as agander
<symphorien>
probably environment.etc."i3/config".text = ''insert your i3 config here'';
<symphorien>
and then remove your use specific config
<symphorien>
also home-manager may have a module for it (maybe)
<symphorien>
,home-manager siraben
<{^_^}>
siraben: home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
acarrico has quit [Ping timeout: 250 seconds]
<gchristensen>
I use etc."i3/config".text too. you also have to set services.xserver.windowManager.i3.configFile = "/etc/i3/config";
<Synthetica>
I have Fira Code Light as my terminal font in Konsole, but it has these ugly circles around braille dots that aren't there (https://imgur.com/a/Z67J9xV). Is there a way to override a font to use specific characters from another font?
logzet has joined #nixos
alex`` has quit [Ping timeout: 244 seconds]
alex`` has joined #nixos
feep has joined #nixos
<{^_^}>
[nixpkgs] @c0bw3b pushed to master « nixos/systemd-nspawn: accept all Exec and Files options »: https://git.io/fpSim
<siraben>
Is it normal to have to sudo edit configuration.nix or is it better to have it per user?
<siraben>
symphorien: i3 seems to have trouble when I press $mod+shift+e
<{^_^}>
[nixpkgs] @ck3d opened pull request #51728 → nixos lirc: fix owner-ship of runtime directory → https://git.io/fpSiY
jonaswouters has quit [Quit: Connection closed for inactivity]
ma27 has joined #nixos
<siraben>
Synthetica: Where is this machines.nix?
<Synthetica>
The contents of that would be `{yourhostname: ./yourhostname.nix}`, you probably just want to rename `AquaRing.nix` to `yourhostname.nix`
<Synthetica>
siraben: It's in the git repo
rfold has joined #nixos
rawreraw has joined #nixos
<siraben>
I see.
<siraben>
Ah, one question: how do I make editing my configuration faster than navigating to the /etc/nixos directory each time?
agander has quit [Ping timeout: 246 seconds]
<Synthetica>
I have the repo cloned in ~/devel, but that's personal preference
<makefu>
siraben: when performing a rebuild you can set -I nixos-config=/path/to/myconf.nix
<siraben>
makefu: What do you mean?
<makefu>
there is no need to have your configuration in /etc/nixos
<makefu>
it is just a default which can be overwritten
<siraben>
Where?
<makefu>
`nixos-rebuild switch -I nixos-config=/home/myuser/devel/configuration.nix` would switch to the configuration stored in that directory
<siraben>
And is this permanent?
<siraben>
How do I see a package's options in the command line, by the way?
<tilpner>
nix edit -f '<nixpkgs>' packagename
<avn>
siraben: you can make NIX_PATH setting permanent
<siraben>
avn: How so?
<avn>
nix.nixPath if my memory not lie
<siraben>
Anyone here have oh-my-zsh and nixos working in their configuration.nix?
<avn>
And personal suggestion -- use hosts/${hostname}/default.nix as nixos-config=... ;)
<siraben>
avn: Ok, thanks.
<makefu>
siraben: not permanent, if you want to make it permanent you can set nix.nixPath = [ "nixos-config=/home/..." ]; to make it permanent. or you can set the NIX_PATH env var accordingly
<avn>
(look code for proper hostname, I not sure in case ;)
<siraben>
So according to the oh-my-zsh package, I have to run
<ottidmes>
develCuy: one last thing I am going to try with palemoon is to just copy what Arch Linux uses, tweaking paths for NixOS of course
<develCuy>
ottidmes: I was thinking, should we compile it? because palemoon has a working tarball, can we use to build the nix package?
<ottidmes>
develCuy: you mean prebuilt, then we would have to patch that. Maybe, but I am going to try basing it on the Arch package yet, that strategy has yet to fail me
<{^_^}>
Izorkin: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<hlolli>
I had the feeling, reading the packaging of the rpi3+, that arm7l was some sort of state of the art miniprocessor tech. But the 32/64bit difference on rpi is probably redundant.
<hlolli>
yes it is, well, armv8 is aarch64 I guess, some naming hell in this area
<hlolli>
(very misleading)
<gchristensen>
well armv8 even doesn't mean aarch64 I think? I don't know, man, I try to ONLY call it aarch64 because I don't know what other words to use :P
<gchristensen>
it is a shame the personality syscall doesn't work for armv7/aarch64, otherwise we could easily use some of our aarch64 hw to build armv7
random_yanek has quit [Ping timeout: 250 seconds]
<hlolli>
yeh, that's what I heard, but in my usecase, I wont need it. Isn't that a kernal thing that may get solved sooner or later?
ng0 has joined #nixos
ng0 has quit [Client Quit]
<gchristensen>
I don't know anything other than there is syscall which apparently makes this work for i686/x86-64 but not for arm stuff :P
<hlolli>
forgot whom I was chatting with on this channels, he was using the pin system, it wouldn't work on aarch64, but worked on arm7l
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #51678 → nixos/bash: set title in PS1 → https://git.io/fpSvn
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/fpS7O
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-1: https://git.io/fpS7s
<gchristensen>
I've set boot.blacklistedKernelModules = [ "wl" "cfg80211" "mac80211" ]; but still I see lsmod emitting: cfg80211 622592 1 wl and I'm seeing dmesg errors about `wl_...` functions. any tips on making these stop?
Synthetica has quit [Quit: Connection closed for inactivity]
<CodeKiwi>
What does collision between mean
<infinisil>
CodeKiwi: I have no idea what you mean
fusion809 has quit [Remote host closed the connection]
<gchristensen>
maybe a buildEnv collision
<infinisil>
Oh, "what does "collision between ..." mean?"
<CodeKiwi>
Collision between path hash and path hash when nicos rebuild
<CodeKiwi>
Usually a lot of them
fusion809 has joined #nixos
<infinisil>
CodeKiwi: A buildEnv takes a bunch of packages and puts them together into a single package. A package is really just a directory. So there needs to be some handling as to what should happen when multiple packages have the same file in them
<tilpner>
gchristensen - What does lsmod say about wl?
<infinisil>
CodeKiwi: Such an instance of multiple packages having the same file is what's called a conflict
<gchristensen>
tilpner: wl 6389760 0
<CodeKiwi>
Is normal?
<tilpner>
gchristensen - Just to be sure you're debugging the right thing: /etc/modprobe.d/nixos.conf shows these blacklists, and you rebooted afterwards?
<gchristensen>
tilpner: that file doesn't contain it! but I did reboot
<tilpner>
A rebuild switch should have added them
<gchristensen>
I did a rebuild boot, and rebooted
<gchristensen>
tilpner: mind helping further in 30min or so? I need to do the next step on some bread.
<jD91mZM2>
Depends if you meant sleep as in actual sleep, or sleep as in when you've been inactive for a specified amount of time and no video is playing
jD91mZM2 has quit [Quit: WeeChat 2.2]
<ldlework>
neat
<ldlework>
it has a shell.nix but no default.nix oops
c00w has quit [Ping timeout: 252 seconds]
<yegortimoshenko>
jD91mZM2: thank you so much for nix parser in rust!
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Ariakenom has quit [Client Quit]
rawreraw has quit [Ping timeout: 250 seconds]
Ariakenom has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
worldofpeace has quit [Ping timeout: 240 seconds]
<eyjhb>
I cannot seem to find it, but what does the `main` command do in the .nix expression? e.g. `main systemd "$out/lib/udev/rules.d/99-displaylink.rules" "$out/lib/udev/displaylink.sh"` ?
<makefu>
also in "Filesystem Hierarchy Standard" it states "Programs must not assume that any files or directories in /tmp are preserved between invocations of the program. […]"
<ramirez7>
I'm having trouble getting acme certs working w/nginx. It looks like the acme sceript itself runs before Kernel CRNG is initialized ('osrandom_init:getrandom() initialization failed with EAGAIN. Most likely Kernel CPRNG is not seeded yet.'). In journalctl, I confirmed that "kernel: random: crng init done" occurs well after the acme script fails. Is there any way to get systemd to wait for crng init or something?
work_ has quit [Quit: Connection closed for inactivity]
<mr_noobs>
Hello everyone! How does one go at trying a pull request from nixpkgs?
<mr_noobs>
Steam doesn't work, and I saw someone on github fixed it, so I cloned the repo, created a branch for local testing and now how do I make it so that it uses the PR?
<averell>
You can add this to your NixOS remote: fetch = +refs/pull/*/head:refs/remotes/NixOS/pr/*
<symphorien>
nix-build /path/to/clone -A steam and use result/bin/steam instead of steam
<symphorien>
this is not the cleanest way, though
agander has quit [Ping timeout: 245 seconds]
<mr_noobs>
Hmmm how do you mean adding to my remote, averell?
__monty__ has quit [Quit: leaving]
<mr_noobs>
And symphorien, that would be for installing once I already got the pull request on their github to my local copy, right?
<averell>
I probably misunderstood what you want. THat makes it, so you can check out pull requests like branches.
<symphorien>
mr_noobs: yes. isn't that what you want ?
<mr_noobs>
So I cloned the repo (as per the NixOS manual)
ramirez7_ has joined #nixos
<mr_noobs>
Now I want to test this on my local repo:
<mr_noobs>
And to add that modified version of steam declaratively to my configuration.nix, while keeping the rest of the packages from the stable channels, how does one do that?
<mr_noobs>
(And also, I have some packages installed via config and some via nix-env, is there a way to read from nix-env and write to config?