fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Sefa Eyeogluwlogout: add module (#3629)69696fe5

master
571 B27 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    home.stateVersion = "22.11";
8
9    programs.wlogout = {
10      package = config.lib.test.mkStubPackage { outPath = "@wlogout@"; };
11      enable = true;
12      layout = [{
13        label = "shutdown";
14        action = "systemctl poweroff";
15        text = "Shutdown";
16        keybind = "s";
17      }];
18    };
19
20    nmt.script = ''
21      assertPathNotExists home-files/.config/wlogout/style.css
22      assertFileContent \
23        home-files/.config/wlogout/layout \
24        ${./layout-single-expected.json}
25    '';
26  };
27}