parent
755ef78440
commit
94bd0d81f5
12 changed files with 112 additions and 110 deletions
nixosModules/desktop/environment
|
@ -76,7 +76,7 @@ in {
|
|||
(import ./home/hyprgrass.nix hyprgrass)
|
||||
|
||||
./home/inputs.nix
|
||||
(import ./home/style.nix self)
|
||||
(import ../theme self)
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
self: {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(import ../../home/theme self)
|
||||
(import ../../home/hyprpaper.nix self)
|
||||
];
|
||||
|
||||
config = let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
cursorTheme = self.legacyPackages.${pkgs.system}.dracula.hyprcursor;
|
||||
cursorThemeName = "Dracula-cursors";
|
||||
hyprcursorThemeName = "Dracula-hyprcursor";
|
||||
cursorSize = "24";
|
||||
in {
|
||||
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
settings =
|
||||
{
|
||||
envd = [
|
||||
"XCURSOR_THEME, ${cursorThemeName}"
|
||||
"XCURSOR_SIZE, ${cursorSize}"
|
||||
];
|
||||
|
||||
exec-once = [
|
||||
"hyprctl setcursor ${hyprcursorThemeName} ${cursorSize}"
|
||||
];
|
||||
|
||||
windowrule = [
|
||||
"size 1231 950,title:^(Open Folder)$"
|
||||
"float,title:^(Open Folder)$"
|
||||
|
||||
"size 1231 950,title:^(Open File)$"
|
||||
"float,title:^(Open File)$"
|
||||
];
|
||||
|
||||
layerrule = [
|
||||
"noanim, selection"
|
||||
];
|
||||
}
|
||||
// (
|
||||
mkIf (config.home.username != "greeter") {
|
||||
# This file should only be used for theming
|
||||
source = ["${config.vars.configDir}/hypr/main.conf"];
|
||||
}
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
# For accurate stack trace
|
||||
_file = ./style.nix;
|
||||
}
|
|
@ -43,7 +43,7 @@ in {
|
|||
|
||||
({config, ...}: let
|
||||
symlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
configDir = "${flakeDir}/nixosModules/desktop/desktop-environment/config";
|
||||
configDir = "${flakeDir}/nixosModules/desktop/environment/config";
|
||||
in {
|
||||
xdg = {
|
||||
configFile = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue