File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 9090 ./nix/hosts/clawdinator-1.nix
9191 ] ;
9292 } ;
93+
94+ nixosConfigurations . clawdinator-1-image = nixpkgs . lib . nixosSystem {
95+ system = "x86_64-linux" ;
96+ specialArgs = { inherit secrets ; } ;
97+ modules = [
98+ ( { ... } : { nixpkgs . overlays = [ self . overlays . default ] ; } )
99+ agenix . nixosModules . default
100+ ./nix/hosts/clawdinator-1-image.nix
101+ ] ;
102+ } ;
93103 } ;
94104}
Original file line number Diff line number Diff line change 1- { modulesPath , config , ... } :
2- let
3- agenix = builtins . fetchTarball "https://github.com/ryantm/agenix/archive/refs/tags/0.15.0.tar.gz" ;
4- in {
1+ { modulesPath , config , ... } : {
52 imports = [
63 ( modulesPath + "/virtualisation/ec2-data.nix" )
74 ( modulesPath + "/virtualisation/amazon-init.nix" )
8- "${ agenix } /modules/age.nix"
95 ../modules/clawdinator.nix
106 ./clawdinator-1-common.nix
117 ] ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- config_path=" ${CONFIG_PATH:- nix/ hosts/ clawdinator-1-image.nix} "
54out_dir=" ${OUT_DIR:- dist} "
65format=" ${IMAGE_FORMAT:- raw} "
6+ flake_ref=" .#clawdinator-1-image"
77
88if [ -e " ${out_dir} " ]; then
99 rm -rf " ${out_dir} "
1010fi
1111
12- nix run github:nix-community/nixos-generators -- -f " ${format } " -c " ${config_path } " -o " ${out_dir} "
12+ nix run github:nix-community/nixos-generators -- --flake " ${flake_ref } " -f " ${format } " -o " ${out_dir} "
1313
1414out_real=" ${out_dir} "
1515if [ -L " ${out_dir} " ]; then
You can’t perform that action at this time.
0 commit comments