@ -6,24 +6,25 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.stylix) colors;
|
||||
inherit (lib) mkIf mkEnableOption mkDefault mkForce getExe;
|
||||
cfg = config.desktop.hyprland;
|
||||
hostname = osConfig.networking.hostName;
|
||||
cursorSize = config.stylix.cursor.size;
|
||||
fontName = config.stylix.fonts.sansSerif.name;
|
||||
inherit (config.lib.stylix) colors;
|
||||
keyboard =
|
||||
if hostname == "eldrid"
|
||||
then "chromeos"
|
||||
else "platform";
|
||||
xdgPictures =
|
||||
config.xdg.userDirs.pictures;
|
||||
ifLaptop = lib.mkIf (hostname != "dunamis");
|
||||
ifLaptop = mkIf (hostname != "dunamis");
|
||||
in {
|
||||
options = {
|
||||
desktop.hyprland.enable =
|
||||
lib.mkEnableOption "enable hyprland desktop";
|
||||
mkEnableOption "enable hyprland desktop";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf cfg.enable {
|
||||
stylix.targets.waybar.enable = false;
|
||||
stylix.targets.hyprland.enable = false;
|
||||
stylix.targets.hyprlock.enable = false;
|
||||
@ -507,7 +508,7 @@ in {
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = lib.mkDefault "gtk3";
|
||||
platformTheme.name = mkDefault "gtk3";
|
||||
};
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
@ -1017,7 +1018,7 @@ in {
|
||||
width = 300;
|
||||
height = 300;
|
||||
icon_theme = "${config.dconf.settings."org/gnome/desktop/interface".icon-theme}";
|
||||
corner_radius = lib.mkDefault 9;
|
||||
corner_radius = mkDefault 9;
|
||||
#corners = "top-right,bottom-left";
|
||||
offset = "16x16";
|
||||
origin = "bottom-right";
|
||||
@ -1230,7 +1231,7 @@ in {
|
||||
Service =
|
||||
graphicalService.Service
|
||||
// {
|
||||
Environment = lib.mkForce "QT_QPA_PLATFORM=wayland";
|
||||
Environment = mkForce "QT_QPA_PLATFORM=wayland";
|
||||
};
|
||||
};
|
||||
hyprpolkitagent = mkGraphicalService {
|
||||
@ -1252,7 +1253,7 @@ in {
|
||||
// {
|
||||
Type = "simple";
|
||||
Slice = "session.slice";
|
||||
ExecStart = "${lib.getExe perSystem.hyprsunset.hyprsunset} -t 6500";
|
||||
ExecStart = "${getExe perSystem.hyprsunset.hyprsunset} -t 6500";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user