1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

kraftkit: new module

This commit is contained in:
Hoang Nguyen 2025-10-26 14:32:16 +07:00 committed by Austin Horstman
parent 0a3fb53ee2
commit aa888ffc10
5 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1 @@
{ kraftkit-example-settings = ./example-settings.nix; }

View file

@ -0,0 +1,6 @@
collect_anonymous_telemetry: false
log:
level: info
timestamps: false
type: fancy
no_check_updates: true

View file

@ -0,0 +1,24 @@
{ config, ... }:
{
programs.kraftkit = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
no_check_updates = true;
collect_anonymous_telemetry = false;
log = {
level = "info";
timestamps = false;
type = "fancy";
};
};
};
nmt.script = ''
assertFileExists "home-files/.config/kraftkit/config.yaml"
assertFileContent \
"home-files/.config/kraftkit/config.yaml" \
${./example-config-expected.yaml}
'';
}