fork/home-manager

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

Robert Helgessongnome-terminal: add assertion on profile namesf58889c0

master
604 B25 linesraw
1{ config, ... }:
2
3{
4  programs.gnome-terminal = {
5    enable = true;
6    profile = {
7      bad-name = { visibleName = "a"; };
8      "e0b782ed-6aca-44eb-8c75-62b3706b6220" = {
9        default = true;
10        visibleName = "b";
11      };
12      another-bad-name = { visibleName = "c"; };
13    };
14  };
15
16  nixpkgs.overlays = [
17    (self: super: { gnome.gnome-terminal = config.lib.test.mkStubPackage { }; })
18  ];
19
20  test.stubs.dconf = { };
21
22  test.asserts.assertions.expected = [''
23    The attribute name of a Gnome Terminal profile must be a UUID.
24    Incorrect profile names: another-bad-name, bad-name''];
25}