woohov2
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [ ./gtk.nix ];
|
||||
xdg = {
|
||||
userDirs = {
|
||||
enable = true;
|
||||
@@ -15,14 +16,13 @@
|
||||
};
|
||||
portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
config = {
|
||||
common.default = [ "gtk" ];
|
||||
hyprland.default = [
|
||||
"gtk"
|
||||
"hyprland"
|
||||
];
|
||||
};
|
||||
};
|
||||
dconf = {
|
||||
settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -19,10 +19,5 @@
|
||||
name = "FiraCode Nerd Font Light";
|
||||
size = 11;
|
||||
};
|
||||
cursorTheme = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
size = 24;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -2,10 +2,9 @@
|
||||
imports = [
|
||||
./firefox
|
||||
./git
|
||||
./gtk
|
||||
./hypr
|
||||
./neovim
|
||||
./shell
|
||||
./xdg
|
||||
./appearance
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,5 +1,39 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../mako ];
|
||||
|
||||
xdg.portal =
|
||||
let
|
||||
hyprland = config.wayland.windowManager.hyprland.package;
|
||||
xdph = pkgs.xdg-desktop-portal-hyprland.override { inherit hyprland; };
|
||||
in
|
||||
{
|
||||
extraPortals = [ xdph ];
|
||||
configPackages = [ hyprland ];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grimblast
|
||||
slurp
|
||||
hyprpicker
|
||||
swaybg
|
||||
tofi
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
MOZ_ENABLE_WAYLAND = 1;
|
||||
NIXOS_OZONE_WL = 1;
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
LIBSEAT_BACKEND = "logind";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland;
|
||||
@@ -7,6 +41,12 @@
|
||||
extraConfig = ''
|
||||
${builtins.readFile ./hyprland.conf}
|
||||
'';
|
||||
systemd.enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
extraCommands = [
|
||||
"systemctl --user stop graphical-session.target"
|
||||
"systemctl --user start hyprland-session.target"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
26
home/modules/mako/default.nix
Normal file
26
home/modules/mako/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.libnotify ];
|
||||
|
||||
services.mako = {
|
||||
enable = true;
|
||||
iconPath = "$HOME/.nix-profile/share/icons/Gruvbox-Plus-Dark";
|
||||
font = "FiraCode Nerd Font Medium 12";
|
||||
padding = "10";
|
||||
margin = "10";
|
||||
anchor = "bottom-right";
|
||||
width = 400;
|
||||
height = 150;
|
||||
borderSize = 2;
|
||||
defaultTimeout = 12000;
|
||||
backgroundColor = "#3c3836dd";
|
||||
borderColor = "#689d6add";
|
||||
textColor = "#d5c4a1dd";
|
||||
layer = "overlay";
|
||||
extraConfig = ''
|
||||
max-history=50
|
||||
outer-margin=25
|
||||
icon-location=right
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user