This commit is contained in:
cnst
2024-07-01 19:11:37 +02:00
parent e0e77ed9b0
commit ffb53bf615
6 changed files with 22 additions and 8 deletions

View File

@@ -12,7 +12,7 @@
}; };
imports = [ imports = [
./git ./git
./hypr ./gui
./shell/cnst.nix ./shell/cnst.nix
./appearance ./appearance
]; ];

View File

@@ -4,7 +4,10 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [../../extra/mako]; imports = [
../../extra/mako
./rofi.nix
];
xdg.portal = let xdg.portal = let
hyprland = config.wayland.windowManager.hyprland.package; hyprland = config.wayland.windowManager.hyprland.package;
@@ -23,6 +26,8 @@
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
extraConfig = '' extraConfig = ''
${builtins.readFile ./hyprland.conf} ${builtins.readFile ./hyprland.conf}
''; '';

8
home/core/gui/rofi.nix Normal file
View File

@@ -0,0 +1,8 @@
{pkgs, ...}: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland-unwrapped;
configPath = "$XDG_CONFIG_HOME/rofi/config.rasi";
font = "Rec Mono Linear 11";
};
}

View File

@@ -1,14 +1,13 @@
{ pkgs, ... }: {pkgs, ...}: {
{
home.packages = [pkgs.libnotify]; home.packages = [pkgs.libnotify];
services.mako = { services.mako = {
enable = true; enable = true;
iconPath = "$HOME/.nix-profile/share/icons/Gruvbox-Plus-Dark"; iconPath = "$HOME/.nix-profile/share/icons/Gruvbox-Plus-Dark";
font = "FiraCode Nerd Font Medium 12"; font = "FiraCode Nerd Font Medium 12";
padding = "10"; padding = "20";
margin = "10"; margin = "10";
anchor = "bottom-right"; anchor = "top-right";
width = 400; width = 400;
height = 150; height = 150;
borderSize = 2; borderSize = 2;
@@ -19,9 +18,12 @@
layer = "overlay"; layer = "overlay";
extraConfig = '' extraConfig = ''
max-history=50 max-history=50
max-visible=4
outer-margin=25 outer-margin=25
icon-location=right icon-location=right
max-icon-size=48 max-icon-size=48
[mode=do-not-disturb]
invisible=1
''; '';
}; };
} }

View File

@@ -11,7 +11,6 @@
./zsh.nix ./zsh.nix
./cnix-pkgs.nix ./cnix-pkgs.nix
./fonts.nix ./fonts.nix
./hyprland.nix
]; ];
home-manager = { home-manager = {
# useGlobalPkgs = true; # useGlobalPkgs = true;