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

View file

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

View file

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