<mthst>
makefu: maybe this page can be moved to e.g. "storage optimization", since the first and the last part aren't about GC?
<makefu>
maybe this point should be the last of the page, not the first
andi- has quit [Ping timeout: 250 seconds]
<mthst>
makefu: i don't understand why nix-collect-garbage -d doesn't collect all the garbage
andi- has joined #nixos-wiki
<makefu>
mthst: it will only collect dangling packages (no link to any environment or built package)
<makefu>
for example you run nix build which creates a result file
<makefu>
as long as you do not remove the result file, nix-collect-garbage -d will not collect the closure
<tilpner>
It will also only remove things for your user
<tilpner>
So run with root to clean system generations
<makefu>
+ what tilpner wrote :)
andi- has quit [Excess Flood]
andi- has joined #nixos-wiki
lassulus has joined #nixos-wiki
andi- has quit [Ping timeout: 240 seconds]
<mthst>
makefu: is it still "garbage" if a result file exists?
<makefu>
it is not garbage if the result file still exists. try that: nix build pkgs.hello; nix-collect-garbage; rm result; nix-collect-garbage
pie_ has quit [Ping timeout: 264 seconds]
<samueldr>
see also: nix-store --gc --print-roots
<samueldr>
(and the manpage of nix-store, the "OPERATION --GC" section
<mthst>
yes, i've read that
<mthst>
but then it is technically incorrect to say that nix-collect-garbage -d doesn't collect all the garbage
andi- has joined #nixos-wiki
<mthst>
sorry for being pedantic
<samueldr>
you're right, it's not garbage if it's still rooted
orivej has joined #nixos-wiki
<mthst>
bash syntax highlighting and the convention of using '#' as an indicator for root prompts are incompatible
<mthst>
is there a solution?
<samueldr>
not really :(
<samueldr>
most syntax highlighters don't handle that, including the one used by the syntax highlight plugin
<mthst>
so should i just use {{bc| ... }} instead?
<nixoswikibot>
[[Template:Man]] !N https://nixos.wiki/index.php?oldid=3218&rcid=3286 * Mth * (+524) Created page with "<includeonly> <code title="man {{{sec}}} {{{1}}}">{{{1}}}({{{sec}}})</code> </includeonly> <noinclude> {{template}} This template is used to refer to {{ic|man}} manual pages,..."
<samueldr>
I'm thinking {{bc|...}} might be painful when pipes a present; might be as simple to use the defaults for pre-formatted in mediawiki markup, or using <pre></pre>
<samueldr>
I'm not entirely sure either whether "Title Case for Articles" should be used or not, but the mediawiki styleguide prefers "sentence case for headers" while using Title Case for that header :$
<nixoswikibot>
[[Template talk:Nix:option]] !N https://nixos.wiki/index.php?oldid=3230&rcid=3297 * Mth * (+122) Created page with "== Confusion with [[Template:nixos:option]] == A small icon or prefix could be added to distinguish Nix and NixOS options."
<mthst>
...and mentioned this on the talk page
<samueldr>
sadly, at a character-level standpoint, the nixos logo doesn't really scale wall (at least, with the blue colours)
<samueldr>
might be a question of contrasts though