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:
@ -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;};
|
|
||||||
};
|
|
||||||
}
|
|
@ -31,7 +31,8 @@ in {
|
|||||||
config.niri.default = ["gnome" "gtk"];
|
config.niri.default = ["gnome" "gtk"];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(mkIf config.services.displayManager.autoLogin.enable {
|
(mkIf (cfg.enable
|
||||||
|
&& config.services.displayManager.autoLogin.enable) {
|
||||||
services.greetd.settings.initial_session = {
|
services.greetd.settings.initial_session = {
|
||||||
command = "niri-session";
|
command = "niri-session";
|
||||||
user = config.services.displayManager.autoLogin.user;
|
user = config.services.displayManager.autoLogin.user;
|
||||||
|
Reference in New Issue
Block a user