xwayland satellite service

This commit is contained in:
twoneis 2024-07-21 04:23:50 +02:00
parent 21739b152d
commit bcd1979166
2 changed files with 63 additions and 40 deletions

View file

@ -1,51 +1,55 @@
{ inputs, lib, config, pkgs, ... }: lib.mkIf config.withNiri {
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
{ inputs, lib, config, pkgs, ... }: {
imports = [
./xwl-satellite.service.nix
];
programs.niri = {
enable = true;
package = pkgs.niri-unstable;
};
home-manager.users.${config.username} = {
home.packages = with pkgs; [
brightnessctl
swaybg
xwayland-satellite
xwayland
];
config = lib.mkIf config.withNiri {
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
programs.niri = {
settings = import ./niri.conf.nix { config = config; };
enable = true;
package = pkgs.niri-unstable;
};
programs.fuzzel= {
enable = true;
settings = import ./fuzzel.conf.nix { lib = lib; config = config; };
};
home-manager.users.${config.username} = {
home.packages = with pkgs; [
brightnessctl
swaybg
];
programs.waybar = {
enable = true;
settings = import ./waybar.conf.nix { config = config; };
style = builtins.readFile(./waybar.conf.css);
};
programs.niri = {
settings = import ./niri.conf.nix { config = config; };
};
services.mako = {
enable = true;
defaultTimeout = 5000;
maxVisible = 3;
font = "AlegreyaSans";
backgroundColor = config.theme.base;
borderColor = config.theme.muted;
textColor = config.theme.text;
borderSize = 1;
borderRadius = 8;
icons = false;
};
programs.fuzzel= {
enable = true;
settings = import ./fuzzel.conf.nix { lib = lib; config = config; };
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = import ./swaylock.conf.nix { lib = lib; config = config; };
programs.waybar = {
enable = true;
settings = import ./waybar.conf.nix { config = config; };
style = builtins.readFile(./waybar.conf.css);
};
services.mako = {
enable = true;
defaultTimeout = 5000;
maxVisible = 3;
font = "AlegreyaSans";
backgroundColor = config.theme.base;
borderColor = config.theme.muted;
textColor = config.theme.text;
borderSize = 1;
borderRadius = 8;
icons = false;
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = import ./swaylock.conf.nix { lib = lib; config = config; };
};
};
};
}