home/desktop/niri/programs/default.nix: remove

nixos/desktop/niri/default.nix: fix

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-19 16:46:45 +03:00
parent 5526b559cf
commit c586cc93d8
2 changed files with 2 additions and 23 deletions

View File

@ -1,22 +0,0 @@
{
osConfig,
config,
inputs,
pkgs,
lib,
...
}: let
inherit (lib) mkIf mkDefault getExe;
inherit (config.lib.stylix) colors;
inherit (osConfig.networking) hostName;
ifLaptop = mkIf (hostName != "dunamis");
in {
imports = with inputs; [
walker.homeManagerModules.default
];
options = config.desktop.niri.enable {
# programs.fuzzel = import ./fuzzel {inherit config mkDefault;};
programs.walker = import ./walker {inherit config inputs pkgs;};
programs.waybar = import ./waybar {inherit colors config getExe ifLaptop pkgs;};
};
}

View File

@ -31,7 +31,8 @@ in {
config.niri.default = ["gnome" "gtk"];
};
})
(mkIf config.services.displayManager.autoLogin.enable {
(mkIf (cfg.enable
&& config.services.displayManager.autoLogin.enable) {
services.greetd.settings.initial_session = {
command = "niri-session";
user = config.services.displayManager.autoLogin.user;