added readme and comments for part 1

This commit is contained in:
2026-10-17 18:41:53 +01:00
parent 468eedf901
commit 0e3718ab22
12 changed files with 85 additions and 5 deletions

View File

@@ -1,9 +1,12 @@
{
# Import self and universal inputs (different to inputs')
self,
inputs,
...
}: {
# Define nixosConfiguration with hostname "host"
flake.nixosConfigurations.host = inputs.nixpkgs.lib.nixosSystem {
# Define modules to import
modules = with self.nixosModules; [
hostConfiguration
system

View File

@@ -1,5 +1,7 @@
{...}: {
# Define flake part nixosModule "hostConfiguration" and pass in arch specific pkgs
flake.nixosModules.hostConfiguration = {pkgs, ...}: {
# Normal nix code within module, add git to systemPackages
environment.systemPackages = with pkgs; [
git
];