mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-26 00:23:54 +01:00
71 lines
1.8 KiB
Nix
71 lines
1.8 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: {
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
package = pkgs.hyprland;
|
|
|
|
#xwayland.enable = true;
|
|
|
|
#enableNvidiaPatches = true;
|
|
extraConfig = builtins.readFile ../config-files/hyprland.conf;
|
|
};
|
|
|
|
programs.waybar = lib.mkIf (pkgs.system == "x86_64-linux") {
|
|
enable = true;
|
|
settings = {
|
|
mainBar = {
|
|
layer = "top";
|
|
position = "top";
|
|
height = 30;
|
|
modules-left = ["hyprland/workspaces"];
|
|
#modules-center = [ "hyprland/window" ];
|
|
modules-right = ["tray" "network" "battery" "battery#bat2" "clock"];
|
|
"tray" = {"icon-size" = 21;};
|
|
"network" = {
|
|
"format-wifi" = "NET: {essid} ({signalStrength}%) ";
|
|
"format-ethernet" = "{ifname} ";
|
|
"format-disconnected" = "";
|
|
"max-length" = 50;
|
|
};
|
|
"battery" = {
|
|
"bat" = "BAT0";
|
|
"interval" = 10;
|
|
"states" = {
|
|
"warning" = 30;
|
|
"critical" = 15;
|
|
};
|
|
"format" = " BAT IN: {capacity}%";
|
|
#"format-icons" = ''["", "", "", "", ""]'';
|
|
"max-length" = 25;
|
|
};
|
|
"battery#bat2" = {
|
|
"bat" = "BAT1";
|
|
"interval" = 10;
|
|
"states" = {
|
|
"warning" = 30;
|
|
"critical" = 15;
|
|
};
|
|
"format" = " BAT EX: {capacity}%";
|
|
#"format-icons" = ''["", "", "", "", ""]'';
|
|
"max-length" = 25;
|
|
};
|
|
};
|
|
};
|
|
style = builtins.readFile ../config-files/waybar-mocha.css;
|
|
};
|
|
|
|
services.mako = {
|
|
enable = true;
|
|
font = "ComicShannsMono Nerd Font Mono 15";
|
|
backgroundColor = "#1e1e2e";
|
|
textColor = "#cdd6f4";
|
|
icons = true;
|
|
actions = true;
|
|
};
|
|
}
|