added README
added `LICENSE` and cover image assets
This commit is contained in:
parent
e66c8d337a
commit
4d07c9142a
6 changed files with 48 additions and 0 deletions
7
LICENSE
Normal file
7
LICENSE
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Copyright 2026 asnev
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
41
README.md
Normal file
41
README.md
Normal file
|
|
@ -0,0 +1,41 @@
|
|||

|
||||
|
||||
# chitin
|
||||
|
||||
asnev's [NixOS](https://nixos.org/) configuration
|
||||
|
||||
|
||||
## paradigm
|
||||
|
||||
uses [flake-parts](https://flake.parts/)' in-built modules system for less schema boilerplate, though shared infra-wide values (available via the `systemConstants` attrs argument) are configured in generic Nix so as to work across all modules, not just top-level ones.
|
||||
|
||||
|
||||
## graphics
|
||||
|
||||
only KDE Plasma has been set up so far. (TODO: declaratively configure with `plasma-manager`)
|
||||
|
||||
|
||||
## directory structure
|
||||
|
||||
* `assets/` - media and binary assets
|
||||
* `modules/` - flake modules (auto-imported with [import-tree](https://github.com/denful/import-tree)
|
||||
* `nixos/` - NixOS configurations that apply to all hosts and users
|
||||
* `home/` - user environment management via `home-manager` (installed as a NixOS module)
|
||||
* `hosts/` - per-host specific configuration
|
||||
* `packages/` - additional package overlays
|
||||
* `shells/` - TUI niceties (maybe `devshells` too?)
|
||||
* `flake/` - infra-related Nix flake logic
|
||||
|
||||
|
||||
## musings
|
||||
|
||||
* "why `chitin`? why give your configuration files a name at all?"
|
||||
* because it's fun. and i wanted to use a distantly related web-like word for it. my affinity for fungi made me randomly one day decide that i'd name it after [chitin](https://en.wikipedia.org/wiki/Chitin), the primary molecule giving strength to mycelium networks.
|
||||
* "were these written by a coding assista-"
|
||||
* [No](https://www.sheeeeeeeep.art/software-in-current-era.html).
|
||||
|
||||
|
||||
## licences
|
||||
|
||||
[MIT](LICENSE) for the code, [Unsplash License](https://unsplash.com/license) for the banner image, from [iamateapot](https://unsplash.com/photos/a-mushroom-growing-in-a-forest-CRHNiHXXFIs) with edits.
|
||||
|
||||
BIN
assets/cover.jpg
Normal file
BIN
assets/cover.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
16
modules/flake/flake-parts.nix
Normal file
16
modules/flake/flake-parts.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
inputs,
|
||||
systemConstants,
|
||||
...
|
||||
}: {
|
||||
flake-file.inputs = {
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.flake-parts.flakeModules.modules
|
||||
inputs.flake-parts.flakeModules.easyOverlay
|
||||
];
|
||||
|
||||
systems = systemConstants.infraSystems;
|
||||
}
|
||||
5
modules/flake/fmt.nix
Normal file
5
modules/flake/fmt.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
perSystem = {pkgs, ...}: {
|
||||
formatter = pkgs.alejandra;
|
||||
};
|
||||
}
|
||||
12
modules/flake/write-flake.nix
Normal file
12
modules/flake/write-flake.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.flake-file.flakeModules.default
|
||||
];
|
||||
|
||||
flake-file.inputs = {
|
||||
flake-file.url = "github:denful/flake-file";
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
};
|
||||
|
||||
flake-file.outputs = "inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules)";
|
||||
}
|
||||
Loading…
Reference in a new issue