From b2ef1dd9393cc29e8cf8e4df5b97609c7d1cccea Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 10 Mar 2023 21:41:41 +0100 Subject: [PATCH] update README --- README.md | 17 +++++++++++++---- flake.nix | 10 ++++++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 812294d..bb9b87d 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,18 @@ It is fully reproducible, flakes based, and position-independent, meaning there Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage). Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix). For formatting [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) is used. +For image generation [nixos-generators](https://github.com/nix-community/nixos-generators) is used. ## structure ``` . -├── modules # Own nix-options, to modularize services/hardware/... -├── machines # Machine definitions -└── pkgs # Own packages, which are not available in nixpkgs +├── images # custom image generations +├── machines # machine definitions +├── modules # own nix-options, to modularize services/hardware/... +├── overlays # overlays +├── pkgs # own packages, which are not available in nixpkgs +└── profiles # summarize module collections into single options ``` ## usage @@ -33,8 +37,13 @@ secrets: sops ./machines/myHost/secrets.yaml ``` +images: +```bash +nix build .#install-iso +nix build .#aarch64-install --system aarch64-linux +``` + ## inspired by -- [deploy hugo with nix](https://ayats.org/blog/flake-blog/) - [Nix config by Mic92](https://github.com/Mic92/dotfiles) - [Nix config by ambroisie](https://github.com/ambroisie/nix-config) - [Nix config by pborzenkov](https://github.com/pborzenkov/nix-config) diff --git a/flake.nix b/flake.nix index 76289fb..8017a01 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,12 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nixos-generators = { + url = "github:nix-community/nixos-generators"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + # own flakes stunkymonkey = { url = "github:Stunkymonkey/stunkymonkey.de"; inputs.nixpkgs.follows = "nixpkgs"; @@ -59,9 +65,9 @@ nativeBuildInputs = [ inputs'.sops-nix.packages.sops-import-keys-hook inputs'.deploy-rs.packages.deploy-rs - pkgs.nixpkgs-fmt + # formatters pkgs.shellcheck - pkgs.pre-commit + pkgs.nixpkgs-fmt ]; shellHook = '' ${config.pre-commit.installationScript}