Skip to content

Commit

Permalink
Merge pull request #6 from StarrFox/add-configuration-revision
Browse files Browse the repository at this point in the history
set system.configurationRevision
  • Loading branch information
vbe0201 authored Dec 14, 2023
2 parents 0e2b935 + 9d0ef1e commit c3e98dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
overlays = import ./overlays {inherit inputs;};

# Entrypoint to all NixOS systems this config defines.
nixosConfigurations = import ./hosts {inherit inputs outputs;};
nixosConfigurations = import ./hosts {
inherit inputs outputs;
revision = self.rev or "dirty";
};
};
}
3 changes: 3 additions & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
inputs,
outputs,
revision,
...
}: let
inherit (builtins) length;
Expand Down Expand Up @@ -65,6 +66,8 @@
inputs.agenix.packages.${system}.default
outputs.packages.${system}.vix
];

system.configurationRevision = revision;
}
]
++ coreModules
Expand Down

0 comments on commit c3e98dd

Please sign in to comment.