diff --git a/flake.nix b/flake.nix index 1cdcf9a..189d340 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/nixos.html b/nixos.html index ab27c0d..820c30f 100644 --- a/nixos.html +++ b/nixos.html @@ -37,8 +37,7 @@ h={};g()}};typeof define==="function"&&define.amd&&define("google-code-prettify" @@ -46,25 +45,25 @@ body{font-family:Inter,Arial,sans-serif;font-size:1em}.prettyprint{background:#1

asnev's NixOS configuration

1. table of contents


@@ -87,8 +86,12 @@ 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!

-

you can get the source code here. +

you can get the source code at my repo here.

+

the latest version of this document is hosted on my + Neocities. +

+



@@ -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 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.

+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.

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. emphasis on 'eventually'...

+literate programming environment.
+

+

emphasis on 'eventually'...

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 @@ -211,7 +216,7 @@ pattern here...

Used in section 6

...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,

@@ -219,6 +224,7 @@ to use flakes (obviously),
 nix.settings.experimental-features = ["nix-command" "flakes"];
 nix.settings.auto-optimise-store = true;
+nix.package = pkgs.lixPackageSets.stable.lix;
 
@@ -226,7 +232,7 @@ nix.settings.auto-optimise-store = true;

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.

@@ -240,6 +246,13 @@ nixpkgs.overlays = [ config.allowUnfree = true; }; }) + (final: prev: { + inherit (prev.lixPackageSets.stable) + nixpkgs-review + nix-eval-jobs + nix-fast-build + colmena; + }) ]; @@ -379,7 +392,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

yes, the lambda (λ) as a terminal prompt character absolutely counts towards @@ -940,7 +954,6 @@ vim.extraConfig = ''

there's really not much, starting with bog-standard Vimscript for sensible options, -😎

@@ -983,7 +996,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)

diff --git a/nixos.lit b/nixos.lit index 23f7de4..8c8ec94 100644 --- a/nixos.lit +++ b/nixos.lit @@ -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)
@@ -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!

-[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).

@@ -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.

+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.

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. emphasis on 'eventually'...

+literate programming environment.
+ +emphasis on 'eventually'...

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 λ diff --git a/style.css b/style.css index f7eb4c9..6435d5f 100644 --- a/style.css +++ b/style.css @@ -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}}