diff --git a/content/meta/credits.norg b/content/meta/credits.norg index 449313f..c90cb58 100644 --- a/content/meta/credits.norg +++ b/content/meta/credits.norg @@ -28,7 +28,7 @@ version: 1.1.1 ** {https://perfectmotherfuckingwebsite.com/}[Perfect Website CSS] I stole the minimalistic vibe of it and some css. -** Site Icon from {https://github.com/NixOS/nixos-artwork/blob/33856d7837cb8ba76c4fc9e26f91a659066ee31f/logo/nix-snowflake-rainbow.svg}[Nixos-artwork] +** \(old) Site Icon from {https://github.com/NixOS/nixos-artwork/blob/33856d7837cb8ba76c4fc9e26f91a659066ee31f/logo/nix-snowflake-rainbow.svg}[Nixos-artwork] Cool icon under {https://creativecommons.org/licenses/by/4.0/}[CC-BY license] ** Video tutorials by {https://www.youtube.com/@KevinPowell}[@Kevin Powell] @@ -41,3 +41,5 @@ version: 1.1.1 For teaching about transitions and giving tips on css ** {https://github.com/matthew-hre}[Matthew Hrehirchuk] For the initial design of my footer in which he took his time to make +** {https://github.com/Sigmanificient}[Yohann Boniface] + For nagging me about and linking the {https://brand.nixos.org/internals}[new nix logo] diff --git a/content/nix/nosh.norg b/content/nix/nosh.norg new file mode 100644 index 0000000..3742378 --- /dev/null +++ b/content/nix/nosh.norg @@ -0,0 +1,30 @@ +@document.meta +title: Nosh - modularity in simplicity +description: How I refactored my NixOS config +authors: [ + ladas552 +] +categories: [ + modules +] +created: 2026-08-01 +draft: true +layout: post +version: 1.1.1 +@end + +* Nosh - modularity in simplicity +** I just can't stand in one place, can I + Hi, this page is talking about my recent (2026-07-30) config refactor. Why I disliked flake-parts approach of configuration, What I switched to, and if I will do it again. + +** Why care + In this passage I should vent on to how important it is for a person to have a uniq, working for them setup, that they like, that brings them joy and energy to live their life as a corporate slave to the fullest. How each I iterate on setups to have the most efficient, handsome, unorthodox NixOS config as possible. That you should copy me without a hint of disbeilf because I totaly know what I am dooing, bekause I am the best in the Milky Way Galaxy, *NAY*, in the whole warp network of the UNIVERSE! + + But alas, I don't really care about the "the good" of my nixos config, I find nix to be more of a puzzle box, rather then a typical "if it works don't touch it" operating system deal. Nix already works really well, most of my problems with it is just me being bored and deciding I want to do something with my already working machine. Because of highly robust nature of NixOS configs and generations, I never fear experimenting, and almost always the end result will be good enough for daily use. + + With this my config went trough a couple of iterations, mostly because I found thinking about project architecture is very fun. For example, how would you implement the same options in different scopes? With flake-parts it's actually pretty easy if you add the options into `generic` module class, and import it into different scopes. In normal config, you just import the same file under different scopes, because ultimately there is no class checking by default. It's fun solving little problems in different ways under different circumstances. + + And it's a good learning experience to share with others. When Vimjoyer was making his {www.youtube.com/watch?v=kvprcW6QMIE}[Flake Parts video], I adopted flake-parts into my config, while pointing out problems with his initial draft video for it. And after that video I had an experience of reading and writing flake-parts configs, to help others who still got confused with the video. It's just one thing that makes nix fun, community, and individuals who make cool stuff for it. + +** We getting sidetracked + And so, I like messing with my config for no particular reason. What the fuck did I do this time then? diff --git a/flake.lock b/flake.lock index 9a13752..189bb3f 100644 --- a/flake.lock +++ b/flake.lock @@ -2,15 +2,17 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1781577229, - "narHash": "sha256-rcUHdUtJEvMdNEl2Wq+YpHraHKfcer3KsBscpZEF2Yg=", - "rev": "567a49d1913ce81ac6e9582e3553dd90a955875f", - "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1017464.567a49d1913c/nixexprs.tar.xz" + "lastModified": 1782939632, + "narHash": "sha256-T/bHHdrgRHqJXpS7asstnMjJf8QVnqJcp4Upn22WNDA=", + "owner": "ladas552", + "repo": "nixpkgs", + "rev": "e8eeb909d60d6c52fc3cae5c28b77e44fd9505f6", + "type": "github" }, "original": { - "type": "tarball", - "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" + "owner": "ladas552", + "repo": "nixpkgs", + "type": "github" } }, "root": { diff --git a/flake.nix b/flake.nix index 974bf2b..fd6ea13 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,8 @@ description = "Shell with norgolith"; inputs = { - nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; + # nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; + nixpkgs.url = "github:ladas552/nixpkgs"; }; outputs =