feat(nixos:appearance): move appearance options to nixos
This commit is contained in:
parent
cedeb52103
commit
ceb66c03cf
51 changed files with 393 additions and 377 deletions
|
|
@ -7,13 +7,13 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkMerge;
|
||||
fonts = config.ooknet.fonts;
|
||||
palette = config.colorscheme.palette;
|
||||
inherit (osConfig.ooknet.host) admin;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet.desktop) browser;
|
||||
|
||||
addons = inputs.firefox-addons.packages.${pkgs.system};
|
||||
cfg = config.ooknet.browser.firefox;
|
||||
browser = config.ooknet.desktop.browser;
|
||||
admin = osConfig.ooknet.host.admin;
|
||||
firefoxMime = {
|
||||
"text/html" = ["firefox.desktop"];
|
||||
"x-scheme-handler/http" = ["firefox.desktop"];
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
palette,
|
||||
fonts,
|
||||
...
|
||||
}: ''
|
||||
}:
|
||||
# css
|
||||
''
|
||||
/* minimal firefox css ooks */
|
||||
|
||||
/* ===== Color Variables and Root Styles ===== */
|
||||
|
|
@ -106,8 +108,7 @@
|
|||
}
|
||||
|
||||
/* Expand navigation bar on focus */
|
||||
#nav-bar:focus-within,
|
||||
#nav-bar:hover {
|
||||
#nav-bar:focus-within {
|
||||
opacity: 1;
|
||||
max-height: 40px !important;
|
||||
height: 60px !important;
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (config.colorscheme) palette;
|
||||
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet.desktop) browser;
|
||||
cfg = config.ooknet.browser.firefox;
|
||||
browser = config.ooknet.desktop.browser;
|
||||
fonts = config.ooknet.fonts;
|
||||
in {
|
||||
config = mkIf (browser == "firefox" || cfg.enable) {
|
||||
xdg.configFile = {
|
||||
|
|
|
|||
|
|
@ -1,18 +1,17 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet.desktop) discord;
|
||||
inherit (lib) mkIf mkMerge;
|
||||
|
||||
cfg = config.ooknet.communication.discord;
|
||||
discord = config.ooknet.desktop.discord;
|
||||
fonts = config.ooknet.fonts;
|
||||
vesktopMime = {
|
||||
"x-scheme-handler/discord" = ["vesktop.desktop"];
|
||||
};
|
||||
vesktopMime = {"x-scheme-handler/discord" = ["vesktop.desktop"];};
|
||||
in {
|
||||
config = mkMerge [
|
||||
(mkIf (cfg.enable || discord == "vesktop") {
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) palette;
|
||||
inherit (osConfig.networking) hostName;
|
||||
inherit (config.ooknet.multiplexer) zellij;
|
||||
inherit (config.ooknet.console) multiplexer;
|
||||
inherit (config.ooknet) binds;
|
||||
inherit (lib) mkIf getExe;
|
||||
|
||||
cfg = config.ooknet.media.music.tui;
|
||||
zellij = config.ooknet.multiplexer.zellij;
|
||||
multiplexer = config.ooknet.console.multiplexer;
|
||||
hostName = osConfig.networking.hostName;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -22,7 +22,7 @@ in {
|
|||
];
|
||||
|
||||
ooknet.binds.spotify = {
|
||||
launch = "${config.ooknet.binds.terminalLaunch} spotify_player";
|
||||
launch = "${binds.terminalLaunch} spotify_player";
|
||||
next = "spotify_player playback next";
|
||||
previous = "spotify_player playback previous";
|
||||
play = "spotify_player playback play-pause";
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) fonts;
|
||||
inherit (config.ooknet.desktop) pdf;
|
||||
inherit (lib) mkIf;
|
||||
|
||||
zathura = {"application/pdf" = ["org.pwmt.zathura.desktop"];};
|
||||
cfg = config.ooknet.productivity.pdf.zathura;
|
||||
pdf = config.ooknet.desktop.pdf;
|
||||
fonts = config.ooknet.fonts;
|
||||
in {
|
||||
config = mkIf (cfg.enable || pdf == "zathura") {
|
||||
programs.zathura = {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) desktop;
|
||||
inherit (lib) mkMerge mkIf;
|
||||
fonts = config.ooknet.fonts;
|
||||
cfg = config.ooknet.terminal.foot;
|
||||
desktop = config.ooknet.desktop;
|
||||
in {
|
||||
config = mkMerge [
|
||||
(mkIf (cfg.enable || desktop.terminal == "foot") {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,12 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (config.colorscheme) palette;
|
||||
fonts = config.ooknet.fonts;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) host desktop;
|
||||
inherit (desktop) terminal;
|
||||
inherit (host.admin) shell;
|
||||
cfg = config.ooknet.terminal.kitty;
|
||||
terminal = config.ooknet.desktop.terminal;
|
||||
shell = osConfig.ooknet.host.admin.shell;
|
||||
in {
|
||||
config = mkIf (cfg.enable || terminal == "kitty") {
|
||||
home.sessionVariables = mkIf (terminal == "kitty") {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,13 @@
|
|||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
|
||||
inherit (osConfig.ooknet.host.hardware) monitors;
|
||||
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (lib) mkIf head;
|
||||
fonts = config.ooknet.fonts;
|
||||
wayland = config.ooknet.wayland;
|
||||
monitors = osConfig.ooknet.host.hardware.monitors;
|
||||
monitorWidth = (head monitors).width - 20;
|
||||
in {
|
||||
config = mkIf (wayland.bar == "waybar") {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
wayland = config.ooknet.wayland;
|
||||
pointer = config.home.pointerCursor;
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme cursor;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (lib) mkIf;
|
||||
in {
|
||||
config = mkIf (wayland.compositor == "hyprland") {
|
||||
|
|
@ -23,7 +24,7 @@ in {
|
|||
};
|
||||
|
||||
exec-once = [
|
||||
"hyprctl setcursor ${pointer.name} ${toString pointer.size}"
|
||||
"hyprctl setcursor ${cursor.name} ${toString cursor.size}"
|
||||
];
|
||||
|
||||
decoration = {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
wayland = config.ooknet.wayland;
|
||||
wallpaperPath = config.ooknet.wallpaper.path;
|
||||
inherit (config.ooknet) wayland;
|
||||
wallpaperPath = osConfig.ooknet.appearance.wallpaper.path;
|
||||
in {
|
||||
config = mkIf (wayland.compositor == "hyprland") {
|
||||
services.hyprpaper = {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
fonts = config.ooknet.fonts;
|
||||
wayland = config.ooknet.wayland;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
config = mkIf (wayland.launcher == "rofi") {
|
||||
programs.rofi = {
|
||||
|
|
@ -14,10 +17,7 @@ in {
|
|||
font = "${fonts.monospace.family}";
|
||||
package = pkgs.rofi-wayland;
|
||||
terminal = "${config.home.sessionVariables.TERMINAL}";
|
||||
theme = let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
theme = {
|
||||
"*" = {
|
||||
background = mkLiteral "#${palette.base00}";
|
||||
foreground = mkLiteral "#${palette.base05}";
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (lib) mkIf;
|
||||
wayland = config.ooknet.wayland;
|
||||
fonts = config.ooknet.fonts;
|
||||
in {
|
||||
config = mkIf (wayland.launcher == "tofi") {
|
||||
home.packages = [pkgs.tofi];
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (lib) mkIf;
|
||||
wayland = config.ooknet.wayland;
|
||||
fonts = config.ooknet.fonts;
|
||||
in {
|
||||
config = mkIf (wayland.locker == "hyprlock") {
|
||||
ooknet.binds.lock = "hyprlock";
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance) wallpaper colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (lib) mkIf;
|
||||
fonts = config.ooknet.fonts;
|
||||
wallpaperPath = config.ooknet.wallpaper.path;
|
||||
wayland = config.ooknet.wayland;
|
||||
in {
|
||||
config = mkIf (wayland.locker == "swaylock") {
|
||||
ooknet.binds.lock = "swaylock";
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
image = "${wallpaperPath}";
|
||||
image = "${wallpaper.path}";
|
||||
font = fonts.monospace.family;
|
||||
color = "#${palette.base01}";
|
||||
ring-color = "#${palette.base02}";
|
||||
|
|
|
|||
|
|
@ -1,20 +1,21 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette variant;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette variant;
|
||||
inherit (config.ooknet) wayland;
|
||||
inherit (lib) mkIf;
|
||||
fonts = config.ooknet.fonts;
|
||||
wayland = config.ooknet.wayland;
|
||||
in {
|
||||
config = mkIf (wayland.notification == "mako") {
|
||||
services.mako = {
|
||||
enable = true;
|
||||
iconPath =
|
||||
if variant == "dark"
|
||||
then "${config.gtk.iconTheme.package}/share/icons/Papirus-Dark"
|
||||
else "${config.gtk.iconTheme.package}/share/icons/Papirus-Light";
|
||||
#iconPath =
|
||||
# #if variant == "dark"
|
||||
# #then "${config.gtk.iconTheme.package}/share/icons/Papirus-Dark"
|
||||
# #else "${config.gtk.iconTheme.package}/share/icons/Papirus-Light";
|
||||
font = "${fonts.regular.family} 12";
|
||||
padding = "10,10";
|
||||
anchor = "top-right";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue