Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Sep 12, 2024
1 parent e7e16ba commit fa4559a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ default:

test-metadata:
#!/usr/bin/env nu
nix eval --raw .#nixosConfigurations.tester.config.test --write-to ./test.json
cat ./test.json | jq .
rm ./test.json
nix eval --json .#nixosConfigurations.tester.config.test | str replace --all '"' '' | open $in
5 changes: 3 additions & 2 deletions module/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
config,
options,
pkgs,
lib,
...
}:
Expand Down Expand Up @@ -128,10 +129,10 @@ in

config =
let
secretsJSONMetadata = builtins.toJSON cfg.secrets;
secretsMetadata = (pkgs.formats.toml { }).generate "secretsMetadata" cfg.secrets;
in
mkIf sysusers {
test = secretsJSONMetadata;
test = secretsMetadata;
};

}
3 changes: 1 addition & 2 deletions test/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
{ lib, ... }:
{
options.test = lib.mkOption {
type = lib.types.str;
default = "none";
type = lib.types.path;
};
}
)
Expand Down

0 comments on commit fa4559a

Please sign in to comment.