1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/programs/gnome-terminal/bad-profile-name.nix
Tomodachi94 d0240a064d
gnome-terminal: update package name
The `pkgs.gnome.gnome-terminal` package was moved to
`pkgs.gnome-terminal`. The former is now a deprecated alias that
throws a warning whenever a configuration enabling the module is used:

```
The ‘gnome.gnome-terminal’ was moved to top-level. Please use
‘pkgs.gnome-terminal’ directly.
```

Related: https://github.com/NixOS/nixpkgs/pull/319659
Related: https://github.com/nix-community/home-manager/pull/5611
2024-07-28 00:32:19 +02:00

24 lines
596 B
Nix

{ config, ... }:
{
programs.gnome-terminal = {
enable = true;
profile = {
bad-name = { visibleName = "a"; };
"e0b782ed-6aca-44eb-8c75-62b3706b6220" = {
default = true;
visibleName = "b";
};
another-bad-name = { visibleName = "c"; };
};
};
nixpkgs.overlays =
[ (self: super: { gnome-terminal = config.lib.test.mkStubPackage { }; }) ];
test.stubs.dconf = { };
test.asserts.assertions.expected = [''
The attribute name of a Gnome Terminal profile must be a UUID.
Incorrect profile names: another-bad-name, bad-name''];
}