feat(nixos:appearance): move appearance options to nixos

This commit is contained in:
ooks-io 2024-08-05 17:29:53 +12:00
parent cedeb52103
commit ceb66c03cf
51 changed files with 393 additions and 377 deletions

View file

@ -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") {

View file

@ -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 = {

View file

@ -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 = {

View file

@ -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}";

View file

@ -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];

View file

@ -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";

View file

@ -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}";

View file

@ -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";