mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 13:01:09 +01:00
qt: added qt{5,6}ctSettings options (#8271)
Added qtctSettings option to qt module to make it possible to configure qt(5/6)ct declaratively.
This commit is contained in:
parent
082822b8a6
commit
f9d45d664e
5 changed files with 90 additions and 1 deletions
|
|
@ -4,4 +4,7 @@
|
|||
qt-platform-theme-gtk3 = ./qt-platform-theme-gtk3.nix;
|
||||
qt-platform-theme-gnome = ./qt-platform-theme-gnome.nix;
|
||||
qt-platform-theme-kde6-migration = ./qt-platform-theme-kde6-migration.nix;
|
||||
qt-qt5ct-settings = ./qt-qt5ct-settings.nix;
|
||||
qt-qt6ct-settings = ./qt-qt6ct-settings.nix;
|
||||
qt-qtct-settings = ./qt-qtct-settings.nix;
|
||||
}
|
||||
|
|
|
|||
13
tests/modules/misc/qt/qt-qt5ct-settings.nix
Normal file
13
tests/modules/misc/qt/qt-qt5ct-settings.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
qt = {
|
||||
enable = true;
|
||||
qt5ctSettings = {
|
||||
test_section.test_option = "test";
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists "home-files/.config/qt5ct/qt5ct.conf"
|
||||
assertPathNotExists "home-files/.config/qt6ct/qt6ct.conf"
|
||||
'';
|
||||
}
|
||||
13
tests/modules/misc/qt/qt-qt6ct-settings.nix
Normal file
13
tests/modules/misc/qt/qt-qt6ct-settings.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
qt = {
|
||||
enable = true;
|
||||
qt6ctSettings = {
|
||||
test_section.test_option = "test";
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists "home-files/.config/qt6ct/qt6ct.conf"
|
||||
assertPathNotExists "home-files/.config/qt5ct/qt5ct.conf"
|
||||
'';
|
||||
}
|
||||
16
tests/modules/misc/qt/qt-qtct-settings.nix
Normal file
16
tests/modules/misc/qt/qt-qtct-settings.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
qt = {
|
||||
enable = true;
|
||||
qt5ctSettings = {
|
||||
test_section.test_option = "test";
|
||||
};
|
||||
qt6ctSettings = {
|
||||
test_section.test_option = "test";
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists "home-files/.config/qt5ct/qt5ct.conf"
|
||||
assertFileExists "home-files/.config/qt6ct/qt6ct.conf"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue