niriswitcher: remove module

The upstream project has been archived.
This commit is contained in:
Lorenzo Manacorda
2026-04-09 11:30:35 +02:00
committed by Austin Horstman
parent 2877554a72
commit c975a66a56
8 changed files with 5 additions and 148 deletions

1
.github/labeler.yml vendored
View File

@@ -660,7 +660,6 @@
- modules/programs/fuzzel.nix - modules/programs/fuzzel.nix
- modules/programs/hyprlock.nix - modules/programs/hyprlock.nix
- modules/programs/kickoff.nix - modules/programs/kickoff.nix
- modules/programs/niriswitcher.nix
- modules/programs/onagre.nix - modules/programs/onagre.nix
- modules/programs/sway-easyfocus.nix - modules/programs/sway-easyfocus.nix
- modules/programs/swaylock.nix - modules/programs/swaylock.nix

View File

@@ -1,6 +1,11 @@
{ lib, ... }: { lib, ... }:
{ {
imports = [ imports = [
(lib.mkRemovedOptionModule [ "programs" "niriswitcher" "enable" ] ''
The niriswitcher module has been removed because the upstream project
has been archived.
'')
(lib.mkRemovedOptionModule [ "programs" "glab" "enable" ] '' (lib.mkRemovedOptionModule [ "programs" "glab" "enable" ] ''
The glab module has been removed because changes are needed upstream to The glab module has been removed because changes are needed upstream to
support mixing declarative and stateful configurations. See #8066. support mixing declarative and stateful configurations. See #8066.

View File

@@ -517,12 +517,6 @@
github = "silmarp"; github = "silmarp";
githubId = 67292496; githubId = 67292496;
}; };
vortriz = {
name = "Rishi Vora";
email = "vorarishi22+nix@gmail.com";
github = "Vortriz";
githubId = 97402159;
};
zorrobert = { zorrobert = {
name = "zorrobert"; name = "zorrobert";
email = "118135271+zorrobert@users.noreply.github.com"; email = "118135271+zorrobert@users.noreply.github.com";

View File

@@ -1,88 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.niriswitcher;
settingsFormat = pkgs.formats.toml { };
in
{
meta.maintainers = [ lib.hm.maintainers.vortriz ];
options.programs.niriswitcher = {
enable = lib.mkEnableOption "niriswitcher, an application switcher for niri";
package = lib.mkPackageOption pkgs "niriswitcher" { nullable = true; };
settings = lib.mkOption {
type = lib.types.nullOr settingsFormat.type;
default = null;
example = lib.literalExpression ''
{
keys = {
modifier = "Super";
switch = {
next = "Tab";
prev = "Shift+Tab";
};
};
center_on_focus = true;
appearance = {
system_theme = "dark";
icon_size = 64;
};
}
'';
description = ''
niriswitcher configuration.
For available settings see <https://github.com/isaksamsten/niriswitcher/?tab=readme-ov-file#options>.
'';
};
style = lib.mkOption {
type = with lib.types; nullOr (either path lines);
default = null;
example = ''
.application-name {
opacity: 1;
color: rgba(255, 255, 255, 0.6);
}
.application.selected .application-name {
color: rgba(255, 255, 255, 1);
}
'';
description = ''
CSS style of the switcher.
<https://github.com/isaksamsten/niriswitcher/?tab=readme-ov-file#themes>
for the documentation.
If the value is set to a path literal, then the path will be used as the CSS file.
'';
};
};
config = lib.mkIf cfg.enable {
assertions = [
(lib.hm.assertions.assertPlatform "programs.niriswitcher" pkgs lib.platforms.linux)
];
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
xdg.configFile = {
"niriswitcher/config.toml" = lib.mkIf (cfg.settings != null) {
source = settingsFormat.generate "config.toml" cfg.settings;
};
"niriswitcher/style.css" = lib.mkIf (cfg.style != null) {
source =
if builtins.isPath cfg.style || lib.isStorePath cfg.style then
cfg.style
else
pkgs.writeText "niriswitcher/style.css" cfg.style;
};
};
};
}

View File

@@ -1,4 +0,0 @@
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
niriswitcher-program = ./niriswitcher.nix;
}

View File

@@ -1,12 +0,0 @@
center_on_focus = true
[appearance]
icon_size = 64
system_theme = "dark"
[keys]
modifier = "Super"
[keys.switch]
next = "Tab"
prev = "Shift+Tab"

View File

@@ -1,30 +0,0 @@
{
programs.niriswitcher = {
enable = true;
settings = {
center_on_focus = true;
keys = {
modifier = "Super";
switch = {
next = "Tab";
prev = "Shift+Tab";
};
};
appearance = {
system_theme = "dark";
icon_size = 64;
};
};
style = ./style.css;
};
nmt.script = ''
assertFileExists home-files/.config/niriswitcher/config.toml
assertFileContent home-files/.config/niriswitcher/config.toml ${./expected.toml}
assertFileExists home-files/.config/niriswitcher/style.css
assertFileContent home-files/.config/niriswitcher/style.css ${./style.css}
'';
}

View File

@@ -1,7 +0,0 @@
.application-name {
opacity: 1;
color: rgba(255, 255, 255, 0.6);
}
.application.selected .application-name {
color: rgba(255, 255, 255, 1);
}