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:
parent
879e4d9060
commit
f2f1076c1f
37 changed files with 302 additions and 414 deletions
|
|
@ -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, ... }:
|
||||
|
|
|
|||
|
|
@ -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, ... }:
|
||||
|
|
|
|||
|
|
@ -1,22 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
config.home.sessionPath = [ "foo" ];
|
||||
}
|
||||
)
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
config.home.sessionPath = [
|
||||
"bar"
|
||||
"baz"
|
||||
];
|
||||
}
|
||||
)
|
||||
home.sessionPath = [
|
||||
"bar"
|
||||
"baz"
|
||||
"foo"
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
|
|
|
|||
|
|
@ -1,22 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
config.home.sessionSearchVariables.TEST = [ "foo" ];
|
||||
}
|
||||
)
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
config.home.sessionSearchVariables.TEST = [
|
||||
"bar"
|
||||
"baz"
|
||||
];
|
||||
}
|
||||
)
|
||||
home.sessionSearchVariables.TEST = [
|
||||
"bar"
|
||||
"baz"
|
||||
"foo"
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.ashell = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
bash.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.keepassxc = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.keepassxc = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
kubeswitch.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.lazydocker = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.lazydocker.enable = true;
|
||||
test.stubs.lazydocker = { };
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.swaylock.settings = { };
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.uv = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -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 *)'"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.clipse = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.easyeffects = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.easyeffects = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
systemd.user.slices.app-test = {
|
||||
Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue