Archived
Watch
1
0
Fork
You've already forked nixos
0

added Lix

This commit is contained in:
asnev 2026-07-14 17:59:09 +07:00
commit 114a027932
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
4 changed files with 79 additions and 44 deletions

View file

@ -32,6 +32,7 @@
# nixos-configuration-contents
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.auto-optimise-store = true;
nix.package = pkgs.lixPackageSets.stable.lix;
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
(final: prev: {
@ -40,6 +41,13 @@
config.allowUnfree = true;
};
})
(final: prev: {
inherit (prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena;
})
];
boot = {
loader.systemd-boot.enable = true;

View file

@ -37,8 +37,7 @@ h={};g()}};typeof define==="function"&&define.amd&&define("google-code-prettify"
</script>
<style>
.pln{color:#1b181b}.str{color:#918b3b}.kwd{color:#7b59c0}.com{color:#9e8f9e}.typ{color:#516aec}.lit{color:#a65926}.clo,.opn,.pun{color:#1b181b}.tag{color:#ca402b}.atn{color:#a65926}.atv{color:#159393}.dec{color:#a65926}.var{color:#ca402b}.fun{color:#516aec}pre.prettyprint{background:#f7f3f7;color:#ab9bab;font-family:Menlo,Consolas,"Bitstream Vera Sans Mono","DejaVu Sans Mono",Monaco,monospace;font-size:12px;line-height:1.5;border:1px solid #d8cad8;padding:10px}ol.linenums{margin-top:0;margin-bottom:0}
body{min-width:200px;max-width:850px;margin:0 auto;padding:30px;}.chapter-nav{font-size: 10pt;}a:link,a:visited{color:#00f}.codeblock_name,code,pre.prettyprint{font-family:Monaco,"Lucida Console",monospace}body{font-size:14pt}.codeblock_name,.math,.seealso,code{font-size:10pt}.codeblock{page-break-inside:avoid;padding-bottom:15px}.math{text-indent:0}pre.prettyprint{font-size:10pt;padding:10px;border-radius:10px;border:none;white-space:pre-wrap}.codeblock_name{margin-top:1.25em;display:block}a:link{text-decoration:none}a:link:not(.lit):hover{color:#00f;text-decoration:underline}a:link:active{color:red}h4{padding-right:1.25em}h4.noheading{margin-bottom:0}h1{text-align:center}code{padding:2px}pre{-moz-tab-size:4;-o-tab-size:4;tab-size:4}p:not(.notp){margin:0;text-indent:2em}.two-col{list-style-type:none}.two-col li:before{content:'-';padding:5px;margin-right:5px;color:orange;background-color:#fff;display:inline-block}@media print{body{font-size:10pt}pre.prettyprint{font-size:8pt}.seealso{font-size:9pt}.codeblock_name,.math,code{font-size:8pt}.math{text-indent:0}}
body{font-family:Inter,Arial,sans-serif;font-size:1em}.prettyprint{background:#1d1f21!important;font-family:Iosevka,Consolas,monospace!important;border:0!important}.pln{color:#c5c8c6}ol.linenums{margin-top:0;margin-bottom:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1d1f21;list-style-type:decimal}@media screen{.str{color:#b5bd68}.kwd{color:#b294bb}.com{color:#969896}.typ{color:#81a2be}.lit{color:#de935f}.pun{color:#c5c8c6}.opn{color:#c5c8c6}.clo{color:#c5c8c6}.tag{color:#c66}.atn{color:#de935f}.atv{color:#8abeb7}.dec{color:#de935f}.var{color:#c66}.fun{color:#81a2be}}p:not(.notp){text-indent:0!important;}.seealso,.codeblock_name{font-size:8pt!important}blockquote{font-style:italic}
body{min-width:200px;max-width:780px;margin:0 auto;padding:30px;font-family:Inter,Arial,sans-serif;font-size:1em}pre,code,.codeblock_name{font-family:Iosevka,Consolas,monospace}pre{-moz-tab-size:4;-o-tab-size:4;tab-size:4}pre.prettyprint{color:#ab9bab;font-size:10pt;line-height:1.5;padding:10px;border-radius:10px;white-space:pre-wrap}.prettyprint{background:#1d1f21!important;font-family:Iosevka,Consolas,monospace!important;border:0!important}pre code{padding:0!important;background:transparent!important;border:0!important}.pln{color:#c5c8c6}.str{color:#918b3b}.kwd{color:#7b59c0}.com{color:#9e8f9e}.typ,.fun{color:#516aec}.lit,.atn,.dec{color:#a65926}.clo,.opn,.pun{color:#1b181b}.tag,.var{color:#ca402b}.atv{color:#159393}ol.linenums{margin:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1d1f21;list-style-type:decimal}.math{font-size:10pt;text-indent:0}.chapter-nav{font-size:10pt}.codeblock{page-break-inside:avoid;padding-bottom:15px}.codeblock_name{margin-top:1.25em;display:block}.codeblock_name,.seealso{font-size:8pt!important}h4{padding-right:1.25em}h4.noheading{margin-bottom:0}p:not(.notp){margin:0;text-indent:0!important}code{font-size:1em;padding:2px 4px;background:#f7f3f7;border:1px solid #d8cad8;border-radius:4px}blockquote{font-style:italic;border-left:4px solid #969896;background:#f7f3f7;padding:10px 20px;margin:15px 0}.two-col{list-style-type:none}.two-col li:before{content:collapse;content:'-';padding:5px;margin-right:5px;color:orange;background-color:#fff;display:inline-block}a:link,a:visited{color:#00f}a:link{text-decoration:none}a:link:not(.lit):hover{color:#00f;text-decoration:underline}a:link:active{color:red}p:not(.seealso) a::after{content:" (" attr(href) ")";font-size:0.7em}@media screen{.str{color:#b5bd68}.kwd{color:#b294bb}.com{color:#969896}.typ,.fun{color:#81a2be}.lit,.atn,.dec{color:#de935f}.pun,.opn,.clo{color:#c5c8c6}.tag,.var{color:#c66}.atv{color:#8abeb7}}@media print{body{font-size:10pt}pre.prettyprint{font-size:8pt}.seealso{font-size:9pt}.codeblock_name,.math{font-size:8pt}}
</style>
</head>
<body onload="prettyPrint()">
@ -46,25 +45,25 @@ body{font-family:Inter,Arial,sans-serif;font-size:1em}.prettyprint{background:#1
<h1>asnev's NixOS configuration</h1>
<a name="1:1"><div class="section"><h4>1. table of contents</h4></a>
<ul>
<li><a href="#1:1">1. table of contents</a>
<li><a href="#1:1">table of contents</a>
</li>
<li><a href="#1:2">2. introduction</a>
<li><a href="#1:2">introduction</a>
</li>
<li><a href="#1:3">3. limitations</a>
<li><a href="#1:3">limitations</a>
</li>
<li><a href="#1:4">4. flake structure</a>
<li><a href="#1:4">flake structure</a>
</li>
<li><a href="#1:5">5. global NixOS options</a>
<li><a href="#1:5">global NixOS options</a>
</li>
<li><a href="#1:6">6. host configuration: phostron</a>
<li><a href="#1:6">host configuration: phostron</a>
</li>
<li><a href="#1:7">7. desktop configuration: KDE Plasma</a>
<li><a href="#1:7">desktop configuration: KDE Plasma</a>
</li>
<li><a href="#1:8">8. user configuration: coyote</a>
<li><a href="#1:8">user configuration: coyote</a>
</li>
<li><a href="#1:9">9. Home Manager configuration: coyote</a>
<li><a href="#1:9">Home Manager configuration: coyote</a>
</li>
<li><a href="#1:10">10. licence</a>
<li><a href="#1:10">licence</a>
</li>
</ul>
<p><hr>
@ -87,8 +86,12 @@ though of course, the details don't stop there. the rabbit hole can get really,
<em>breathtakingly comprehensive</em> NixOS configs (literate or otherwise) that are
out there!<br><br>
</p>
<p><a href="https://git.gay/asnev/nixos">you can get the source code here</a>.
<p>you can get the source code at my repo <a href="https://git.gay/asnev/nixos">here</a>.
</p>
<blockquote><p> the latest version of this document is <a href="https://asnev.neocities.org/nixos.html">hosted on my
Neocities</a>.
</p>
</blockquote>
<p><br><hr>
</p>
@ -111,13 +114,15 @@ that it can't provide syntax highlighting in multiple different languages
(you'll see the mixed-up colours later, sorry), and it can't export source code
files into files which live within subdirectories. i've resorted to let
<em>everything</em> reside within one <code>flake.nix</code> file which, while it does make users
who wish to navigate through the unwomen (uncommented) configuration
expressions quite... annoying (to put it lightly), at least everything is
organised when viewed through the literate source code.<br><br>
who wish to navigate through the unwoven (without comments) configuration
expressions quite... annoying, at least everything is organised when viewed
through the literate source code.<br><br>
</p>
<p>eventually, when i can build up the courage... i'd like to begin my 'journey'
with Emacs and utilise Org-mode and Org-babel, a much, <em>much</em> more flexible
literate programming environment. <sub>emphasis on 'eventually'...</sub><br><br>
literate programming environment.<br>
</p>
<p><sub>emphasis on 'eventually'...</sub><br><br>
</p>
<p>i don't expect anyone reading this to be wishing to use <em>my</em> specific
configuration for their setup, so i'll skip over instructions for installing
@ -211,7 +216,7 @@ pattern here...
<p class="seealso">Used in section <a href="nixos.html#1:6">6</a></p>
</div>
<p>...then we set Nix-related declarations since we'd like to declare the system
to use flakes (obviously),
to use flakes, and, to utilise <a href="https://lix.systems">Lix</a>,
</p>
<div class="codeblock">
@ -219,6 +224,7 @@ to use flakes (obviously),
<pre class="prettyprint lang-nix">
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.auto-optimise-store = true;
nix.package = pkgs.lixPackageSets.stable.lix;
</pre>
@ -226,7 +232,7 @@ nix.settings.auto-optimise-store = true;
</div>
<p>but also have an overlay of <code>nixpkgs-unstable</code> to be available globally. this
is so that i can have unstable packages installed in userspaces managed via
Home Manager.
Home Manager. plus, some additional tweaks for Lix.
</p>
<div class="codeblock">
@ -240,6 +246,13 @@ nixpkgs.overlays = [
config.allowUnfree = true;
};
})
(final: prev: {
inherit (prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena;
})
];
</pre>
@ -379,7 +392,8 @@ programs = {
</div>
<p>nothing much here, starting with a few options to prettify the terminal a bit.
</p>
<blockquote><p> "zsh is bash with plugins; fish is zsh with plugins" --0atman
<blockquote><p> "zsh is bash with plugins; fish is zsh with plugins"
--<a href="https://youtu.be/rWMQ-g2QDsI?t=117">0atman</a>
</p>
</blockquote>
<p>yes, the lambda (λ) as a terminal prompt character absolutely counts towards
@ -940,7 +954,6 @@ vim.extraConfig = ''
</div>
<p>there's really not much, starting with bog-standard Vimscript for sensible
options,
😎
</p>
<div class="codeblock">
@ -983,7 +996,7 @@ set smartcase
</div>
<p>and you gotta map a keybind to output lambda to live out that Lisp/Scheme vibe
😎 (i barely can even code in them),
😎 (i barely can even code in them)
</p>
<div class="codeblock">

View file

@ -1,21 +1,21 @@
@code_type nix .nix
@comment_type # %s
@add_css style.css
@overwrite_css style.css
@title asnev's NixOS configuration
@s table of contents
- [1. table of contents](#1:1)
- [2. introduction](#1:2)
- [3. limitations](#1:3)
- [4. flake structure](#1:4)
- [5. global NixOS options](#1:5)
- [6. host configuration: phostron](#1:6)
- [7. desktop configuration: KDE Plasma](#1:7)
- [8. user configuration: coyote](#1:8)
- [9. Home Manager configuration: coyote](#1:9)
- [10. licence](#1:10)
- [table of contents](#1:1)
- [introduction](#1:2)
- [limitations](#1:3)
- [flake structure](#1:4)
- [global NixOS options](#1:5)
- [host configuration: phostron](#1:6)
- [desktop configuration: KDE Plasma](#1:7)
- [user configuration: coyote](#1:8)
- [Home Manager configuration: coyote](#1:9)
- [licence](#1:10)
<hr>
@ -36,7 +36,10 @@ though of course, the details don't stop there. the rabbit hole can get really,
*breathtakingly comprehensive* NixOS configs (literate or otherwise) that are
out there!<br><br>
[you can get the source code here](https://git.gay/asnev/nixos).
you can get the source code at my repo [here](https://git.gay/asnev/nixos).
> the latest version of this document is [hosted on my
> Neocities](https://asnev.neocities.org/nixos.html).
<br><hr>
@ -59,13 +62,15 @@ that it can't provide syntax highlighting in multiple different languages
(you'll see the mixed-up colours later, sorry), and it can't export source code
files into files which live within subdirectories. i've resorted to let
*everything* reside within one `flake.nix` file which, while it does make users
who wish to navigate through the unwomen (uncommented) configuration
expressions quite... annoying (to put it lightly), at least everything is
organised when viewed through the literate source code.<br><br>
who wish to navigate through the unwoven (without comments) configuration
expressions quite... annoying, at least everything is organised when viewed
through the literate source code.<br><br>
eventually, when i can build up the courage... i'd like to begin my 'journey'
with Emacs and utilise Org-mode and Org-babel, a much, *much* more flexible
literate programming environment. <sub>emphasis on 'eventually'...</sub><br><br>
literate programming environment.<br>
<sub>emphasis on 'eventually'...</sub><br><br>
i don't expect anyone reading this to be wishing to use *my* specific
configuration for their setup, so i'll skip over instructions for installing
@ -139,16 +144,17 @@ pattern here...
---
...then we set Nix-related declarations since we'd like to declare the system
to use flakes (obviously),
to use flakes, and, to utilise [Lix](https://lix.systems),
--- nixos-configuration-contents
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.auto-optimise-store = true;
nix.package = pkgs.lixPackageSets.stable.lix;
---
but also have an overlay of `nixpkgs-unstable` to be available globally. this
is so that i can have unstable packages installed in userspaces managed via
Home Manager.
Home Manager. plus, some additional tweaks for Lix.
--- nixos-configuration-contents +=
nixpkgs.config.allowUnfree = true;
@ -159,6 +165,13 @@ nixpkgs.overlays = [
config.allowUnfree = true;
};
})
(final: prev: {
inherit (prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena;
})
];
---
@ -253,7 +266,8 @@ programs = {
nothing much here, starting with a few options to prettify the terminal a bit.
> "zsh is bash with plugins; fish is zsh with plugins" --0atman
> "zsh is bash with plugins; fish is zsh with plugins"
> --[0atman](https://youtu.be/rWMQ-g2QDsI?t=117)
yes, the lambda (λ) as a terminal prompt character absolutely counts towards
style points. (joke)
@ -652,7 +666,7 @@ vim.extraConfig = ''
there's really not much, starting with bog-standard Vimscript for sensible
options,
😎
--- coyote-home-manager-programs-vim-vimrc
set nocompatible
set encoding=utf-8
@ -688,7 +702,7 @@ set smartcase
---
and you gotta map a keybind to output lambda to live out that Lisp/Scheme vibe
😎 (i barely can even code in them),
😎 (i barely can even code in them)
--- coyote-home-manager-programs-vim-vimrc +=
inoremap <C-l> λ

View file

@ -1 +1 @@
body{font-family:Inter,Arial,sans-serif;font-size:1em}.prettyprint{background:#1d1f21!important;font-family:Iosevka,Consolas,monospace!important;border:0!important}.pln{color:#c5c8c6}ol.linenums{margin-top:0;margin-bottom:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1d1f21;list-style-type:decimal}@media screen{.str{color:#b5bd68}.kwd{color:#b294bb}.com{color:#969896}.typ{color:#81a2be}.lit{color:#de935f}.pun{color:#c5c8c6}.opn{color:#c5c8c6}.clo{color:#c5c8c6}.tag{color:#c66}.atn{color:#de935f}.atv{color:#8abeb7}.dec{color:#de935f}.var{color:#c66}.fun{color:#81a2be}}p:not(.notp){text-indent:0!important;}.seealso,.codeblock_name{font-size:8pt!important}blockquote{font-style:italic}
body{min-width:200px;max-width:780px;margin:0 auto;padding:30px;font-family:Inter,Arial,sans-serif;font-size:1em}pre,code,.codeblock_name{font-family:Iosevka,Consolas,monospace}pre{-moz-tab-size:4;-o-tab-size:4;tab-size:4}pre.prettyprint{color:#ab9bab;font-size:10pt;line-height:1.5;padding:10px;border-radius:10px;white-space:pre-wrap}.prettyprint{background:#1d1f21!important;font-family:Iosevka,Consolas,monospace!important;border:0!important}pre code{padding:0!important;background:transparent!important;border:0!important}.pln{color:#c5c8c6}.str{color:#918b3b}.kwd{color:#7b59c0}.com{color:#9e8f9e}.typ,.fun{color:#516aec}.lit,.atn,.dec{color:#a65926}.clo,.opn,.pun{color:#1b181b}.tag,.var{color:#ca402b}.atv{color:#159393}ol.linenums{margin:0;color:#969896}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#1d1f21;list-style-type:decimal}.math{font-size:10pt;text-indent:0}.chapter-nav{font-size:10pt}.codeblock{page-break-inside:avoid;padding-bottom:15px}.codeblock_name{margin-top:1.25em;display:block}.codeblock_name,.seealso{font-size:8pt!important}h4{padding-right:1.25em}h4.noheading{margin-bottom:0}p:not(.notp){margin:0;text-indent:0!important}code{font-size:1em;padding:2px 4px;background:#f7f3f7;border:1px solid #d8cad8;border-radius:4px}blockquote{font-style:italic;border-left:4px solid #969896;background:#f7f3f7;padding:10px 20px;margin:15px 0}.two-col{list-style-type:none}.two-col li:before{content:collapse;content:'-';padding:5px;margin-right:5px;color:orange;background-color:#fff;display:inline-block}a:link,a:visited{color:#00f}a:link{text-decoration:none}a:link:not(.lit):hover{color:#00f;text-decoration:underline}a:link:active{color:red}p:not(.seealso) a::after{content:" (" attr(href) ")";font-size:0.7em}@media screen{.str{color:#b5bd68}.kwd{color:#b294bb}.com{color:#969896}.typ,.fun{color:#81a2be}.lit,.atn,.dec{color:#de935f}.pun,.opn,.clo{color:#c5c8c6}.tag,.var{color:#c66}.atv{color:#8abeb7}}@media print{body{font-size:10pt}pre.prettyprint{font-size:8pt}.seealso{font-size:9pt}.codeblock_name,.math{font-size:8pt}}