mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 02:23:16 +00:00
27 lines
571 B
Nix
27 lines
571 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "22.11";
|
|
|
|
programs.wlogout = {
|
|
package = config.lib.test.mkStubPackage { outPath = "@wlogout@"; };
|
|
enable = true;
|
|
layout = [{
|
|
label = "shutdown";
|
|
action = "systemctl poweroff";
|
|
text = "Shutdown";
|
|
keybind = "s";
|
|
}];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/wlogout/style.css
|
|
assertFileContent \
|
|
home-files/.config/wlogout/layout \
|
|
${./layout-single-expected.json}
|
|
'';
|
|
};
|
|
}
|