added README
added `LICENSE` and cover image assets
This commit is contained in:
parent
e66c8d337a
commit
340d76075f
6 changed files with 46 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.
|
||||
39
README.md
Normal file
39
README.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
![assets/cover.jpg]
|
||||
|
||||
# chitin
|
||||
|
||||
asnev's [NixOS](https://nixos.org/) configuration, structured as Nix flake modules
|
||||
|
||||
|
||||
## paradigm
|
||||
|
||||
uses `flake-parts`' in-built modules system for less framework schema boilerplate, though shared infra-wide values (available via the `systemConstants` attrs argument) are configured 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/`
|
||||
* `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 component of a mycelium network.
|
||||
|
||||
|
||||
## licences
|
||||
|
||||
[MIT](LICENSE) for the code, [Unsplash License](https://unsplash.com/license) for the cover image, by [iamateapot](https://unsplash.com/photos/a-mushroom-growing-in-a-forest-CRHNiHXXFIs).
|
||||
|
||||
BIN
assets/cover.jpg
Normal file
BIN
assets/cover.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 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