fork/home-manager

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

Robert Helgessontests: various minor cleanupseec22729

master
676 B24 linesraw
1{ config, pkgs, ... }:
2
3{
4  imports = [ ./sway-stubs.nix ];
5
6  wayland.windowManager.sway = {
7    enable = true;
8    package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
9    # overriding findutils causes issues
10    config = {
11      menu = "${pkgs.dmenu}/bin/dmenu_run";
12
13      input = { "*" = { xkb_variant = "dvorak"; }; };
14      output = { "HDMI-A-2" = { bg = "~/path/to/background.png fill"; }; };
15      seat = { "*" = { hide_cursor = "when-typing enable"; }; };
16    };
17  };
18
19  nmt.script = ''
20    assertFileExists home-files/.config/sway/config
21    assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
22      ${./sway-modules.conf}
23  '';
24}