home: use defaults from osConfig

This commit is contained in:
Aly Raffauf 2024-06-21 17:24:33 -04:00
parent 860d801a12
commit 89e5dfae3e
3 changed files with 29 additions and 17 deletions

View file

@ -1,7 +1,8 @@
{ {
pkgs,
lib,
config, config,
lib,
osConfig,
pkgs,
... ...
}: { }: {
options = { options = {
@ -183,13 +184,22 @@
}; };
}; };
desktop = { desktop = {
cinnamon.enable = cinnamon.enable = lib.mkOption {
lib.mkEnableOption "Cinnamon with sane defaults."; description = "Cinnamon with sane defaults";
gnome.enable = default = osConfig.alyraffauf.desktop.cinnamon.enable;
lib.mkEnableOption "GNOME with sane defaults."; type = lib.types.bool;
};
gnome.enable = lib.mkOption {
description = "GNOME with sane defaults.";
default = osConfig.alyraffauf.desktop.gnome.enable;
type = lib.types.bool;
};
hyprland = { hyprland = {
enable = enable = lib.mkOption {
lib.mkEnableOption "Hyprland with full desktop session components."; description = "Hyprland with full desktop session components.";
default = osConfig.alyraffauf.desktop.hyprland.enable;
type = lib.types.bool;
};
autoSuspend = lib.mkOption { autoSuspend = lib.mkOption {
description = "Whether to autosuspend on idle."; description = "Whether to autosuspend on idle.";
default = config.alyraffauf.desktop.hyprland.enable; default = config.alyraffauf.desktop.hyprland.enable;

View file

@ -146,6 +146,7 @@
tmux.enable = true; tmux.enable = true;
vsCodium.enable = true; vsCodium.enable = true;
}; };
defaultApps = { defaultApps = {
enable = true; enable = true;
webBrowser = { webBrowser = {
@ -153,19 +154,18 @@
desktop = "brave-browser.desktop"; desktop = "brave-browser.desktop";
}; };
}; };
desktop = { desktop = {
startupApps = [(lib.getExe' pkgs.keepassxc "keepassxc")]; startupApps = [(lib.getExe' pkgs.keepassxc "keepassxc")];
hyprland = {
enable = true;
randomWallpaper = true;
};
}; };
scripts = { scripts = {
pp-adjuster.enable = true; pp-adjuster.enable = true;
}; };
theme = { theme = {
enable = true; enable = true;
gtk = { gtk = {
name = "Catppuccin-Frappe-Compact-Mauve-Dark"; name = "Catppuccin-Frappe-Compact-Mauve-Dark";
package = pkgs.catppuccin-gtk.override { package = pkgs.catppuccin-gtk.override {
@ -175,6 +175,7 @@
tweaks = ["normal"]; tweaks = ["normal"];
}; };
}; };
qt = { qt = {
name = "Catppuccin-Frappe-Mauve"; name = "Catppuccin-Frappe-Mauve";
package = pkgs.catppuccin-kvantum.override { package = pkgs.catppuccin-kvantum.override {
@ -182,6 +183,7 @@
variant = "Frappe"; variant = "Frappe";
}; };
}; };
iconTheme = { iconTheme = {
name = "Papirus-Dark"; name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders.override { package = pkgs.catppuccin-papirus-folders.override {
@ -189,21 +191,25 @@
accent = "mauve"; accent = "mauve";
}; };
}; };
cursorTheme = { cursorTheme = {
name = "Catppuccin-Frappe-Dark-Cursors"; name = "Catppuccin-Frappe-Dark-Cursors";
size = 24; size = 24;
package = pkgs.catppuccin-cursors.frappeDark; package = pkgs.catppuccin-cursors.frappeDark;
}; };
font = { font = {
name = "NotoSans Nerd Font"; name = "NotoSans Nerd Font";
size = 11; size = 11;
package = pkgs.nerdfonts.override {fonts = ["Noto"];}; package = pkgs.nerdfonts.override {fonts = ["Noto"];};
}; };
terminalFont = { terminalFont = {
name = "NotoSansM Nerd Font"; name = "NotoSansM Nerd Font";
size = 11; size = 11;
package = pkgs.nerdfonts.override {fonts = ["Noto"];}; package = pkgs.nerdfonts.override {fonts = ["Noto"];};
}; };
colors = { colors = {
text = "#FAFAFA"; text = "#FAFAFA";
background = "#232634"; background = "#232634";
@ -212,6 +218,7 @@
inactive = "#626880"; inactive = "#626880";
shadow = "#1A1A1A"; shadow = "#1A1A1A";
}; };
wallpaper = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; wallpaper = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
}; };
}; };

View file

@ -43,11 +43,6 @@
defaultApps.enable = true; defaultApps.enable = true;
desktop = { desktop = {
hyprland = { hyprland = {
enable = true;
randomWallpaper = false;
};
sway = {
enable = true;
randomWallpaper = false; randomWallpaper = false;
}; };
}; };