1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

treewide: remove no-ops (#8061)

This commit is contained in:
Benedikt M. Rips 2025-10-26 21:43:53 +01:00 committed by GitHub
parent 879e4d9060
commit f2f1076c1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 302 additions and 414 deletions

View file

@ -36,35 +36,33 @@ in
};
};
home-cursor-legacy-disabled =
{ ... }:
{
config = {
home.pointerCursor = null;
home-cursor-legacy-disabled = {
config = {
home.pointerCursor = null;
home.stateVersion = "24.11";
home.stateVersion = "24.11";
test.asserts.warnings.expected = [
''
Setting home.pointerCursor to null is deprecated.
Please update your configuration to explicitly set:
test.asserts.warnings.expected = [
''
Setting home.pointerCursor to null is deprecated.
Please update your configuration to explicitly set:
home.pointerCursor.enable = false;
''
];
home.pointerCursor.enable = false;
''
];
nmt.script = ''
assertPathNotExists home-path/share/icons/catppuccin-macchiato-blue-cursors/index.theme
nmt.script = ''
assertPathNotExists home-path/share/icons/catppuccin-macchiato-blue-cursors/index.theme
hmEnvFile=home-path/etc/profile.d/hm-session-vars.sh
assertFileExists $hmEnvFile
assertFileNotRegex $hmEnvFile 'XCURSOR_THEME="catppuccin-macchiato-blue-standard"'
assertFileNotRegex $hmEnvFile 'XCURSOR_SIZE="32"'
assertFileNotRegex $hmEnvFile 'HYPRCURSOR_THEME="catppuccin-macchiato-blue-standard"'
assertFileNotRegex $hmEnvFile 'HYPRCURSOR_SIZE="32"'
'';
};
hmEnvFile=home-path/etc/profile.d/hm-session-vars.sh
assertFileExists $hmEnvFile
assertFileNotRegex $hmEnvFile 'XCURSOR_THEME="catppuccin-macchiato-blue-standard"'
assertFileNotRegex $hmEnvFile 'XCURSOR_SIZE="32"'
assertFileNotRegex $hmEnvFile 'HYPRCURSOR_THEME="catppuccin-macchiato-blue-standard"'
assertFileNotRegex $hmEnvFile 'HYPRCURSOR_SIZE="32"'
'';
};
};
home-cursor-legacy-disabled-with-enable =
{ config, ... }:

View file

@ -1,21 +1,19 @@
{
i18n =
{ ... }:
{
config = {
nmt.script = ''
hmEnvFile=home-path/etc/profile.d/hm-session-vars.sh
assertFileExists $hmEnvFile
assertFileRegex $hmEnvFile \
'^export LOCALE_ARCHIVE_._..=".*/lib/locale/locale-archive"$'
i18n = {
config = {
nmt.script = ''
hmEnvFile=home-path/etc/profile.d/hm-session-vars.sh
assertFileExists $hmEnvFile
assertFileRegex $hmEnvFile \
'^export LOCALE_ARCHIVE_._..=".*/lib/locale/locale-archive"$'
envFile=home-files/.config/environment.d/10-home-manager.conf
assertFileExists $envFile
assertFileRegex $envFile \
'^LOCALE_ARCHIVE_._..=.*/lib/locale/locale-archive$'
'';
};
envFile=home-files/.config/environment.d/10-home-manager.conf
assertFileExists $envFile
assertFileRegex $envFile \
'^LOCALE_ARCHIVE_._..=.*/lib/locale/locale-archive$'
'';
};
};
i18n-custom-locales =
{ config, pkgs, ... }:

View file

@ -1,22 +1,8 @@
{ ... }:
{
imports = [
(
{ ... }:
{
config.home.sessionPath = [ "foo" ];
}
)
(
{ ... }:
{
config.home.sessionPath = [
"bar"
"baz"
];
}
)
home.sessionPath = [
"bar"
"baz"
"foo"
];
nmt.script = ''

View file

@ -1,22 +1,8 @@
{ ... }:
{
imports = [
(
{ ... }:
{
config.home.sessionSearchVariables.TEST = [ "foo" ];
}
)
(
{ ... }:
{
config.home.sessionSearchVariables.TEST = [
"bar"
"baz"
];
}
)
home.sessionSearchVariables.TEST = [
"bar"
"baz"
"foo"
];
nmt.script = ''

View file

@ -37,16 +37,14 @@ let
in
{
config = {
home.sessionVariables = {
V1 = "v1";
V2 = "v2-${config.home.sessionVariables.V1}";
};
nmt.script = ''
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
assertFileContent home-path/etc/profile.d/hm-session-vars.sh \
${expected}
'';
home.sessionVariables = {
V1 = "v1";
V2 = "v2-${config.home.sessionVariables.V1}";
};
nmt.script = ''
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
assertFileContent home-path/etc/profile.d/hm-session-vars.sh \
${expected}
'';
}

View file

@ -1,29 +1,26 @@
{ ... }:
{
config = {
xdg.mime.enable = true;
xdg.desktopEntries = {
mime-test = {
# mime info test
name = "mime-test";
mimeType = [
"text/html"
"text/xml"
];
};
xdg.mime.enable = true;
xdg.desktopEntries = {
mime-test = {
# mime info test
name = "mime-test";
mimeType = [
"text/html"
"text/xml"
];
};
nmt.script = ''
assertFileExists home-path/share/applications/mimeinfo.cache # Check that update-desktop-database created file
# Check that update-desktop-database file matches expected
assertFileContent \
home-path/share/applications/mimeinfo.cache \
${./mime-expected.cache}
assertDirectoryExists home-path/share/mime # Check that update-mime-database created directory
assertDirectoryNotEmpty home-path/share/mime # Check that update-mime-database created files
'';
};
nmt.script = ''
assertFileExists home-path/share/applications/mimeinfo.cache # Check that update-desktop-database created file
# Check that update-desktop-database file matches expected
assertFileContent \
home-path/share/applications/mimeinfo.cache \
${./mime-expected.cache}
assertDirectoryExists home-path/share/mime # Check that update-mime-database created directory
assertDirectoryNotEmpty home-path/share/mime # Check that update-mime-database created files
'';
}

View file

@ -1,5 +1,3 @@
{ ... }:
{
programs.ashell = {
enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
programs = {
bash.enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
programs.keepassxc = {
enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
programs.keepassxc = {
enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
programs = {
kubeswitch.enable = true;

View file

@ -1,4 +1,3 @@
{ ... }:
{
programs.lazydocker = {
enable = true;

View file

@ -1,4 +1,3 @@
{ ... }:
{
programs.lazydocker.enable = true;
test.stubs.lazydocker = { };

View file

@ -1,4 +1,3 @@
{ ... }:
{
programs.swaylock.settings = { };

View file

@ -1,4 +1,3 @@
{ ... }:
{
programs.uv = {
enable = true;

View file

@ -1,20 +1,11 @@
{
imports = [
(
{ ... }:
{
config.programs.zsh.history.ignorePatterns = [ "echo *" ];
}
)
(
{ ... }:
{
config.programs.zsh.history.ignorePatterns = [ "rm *" ];
}
)
];
programs.zsh.enable = true;
programs.zsh = {
enable = true;
history.ignorePatterns = [
"echo *"
"rm *"
];
};
nmt.script = ''
assertFileContains home-files/.zshrc "HISTORY_IGNORE='(echo *|rm *)'"

View file

@ -1,5 +1,3 @@
{ ... }:
{
services.clipse = {
enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
services.easyeffects = {
enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
services.easyeffects = {
enable = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
systemd.user.slices.app-test = {
Unit = {