♻️ Moved wallpapers, added wallpapers and secrets to theme and common files

This commit is contained in:
Martin Berg Alstad 2025-03-09 11:53:49 +01:00
parent 1ff146e3c0
commit 542a627e23
Signed by: martials
GPG Key ID: 706F53DD087A91DE
17 changed files with 39 additions and 30 deletions

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -2,7 +2,7 @@
My NixOS configurations with dotfiles for my desktop My NixOS configurations with dotfiles for my desktop
![Screenshot of desktop](./assets/desktop.png) ![Screenshot of desktop](./.gitea/assets/desktop.png)
## Uses ## Uses

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 808 KiB

After

Width:  |  Height:  |  Size: 808 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 282 KiB

After

Width:  |  Height:  |  Size: 282 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

@ -34,6 +34,8 @@ rec {
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.version = "24.11"; system.version = "24.11";
secret.weatherApiKey = lib: loadSecret lib ./home-manager/secrets/weather-api-key;
loadSecret = loadSecret =
lib: filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath)); lib: filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
} }

View File

@ -31,13 +31,7 @@ in
./zen ./zen
]; ];
dconf = { dconf.enable = true;
enable = true;
settings = {
# Prefer dark mode for all GTK apps
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
};
home = { home = {
username = username; username = username;

View File

@ -7,5 +7,10 @@
icon.enable = true; icon.enable = true;
}; };
dconf.settings = {
# Prefer dark mode for all GTK apps
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
gtk.enable = true; gtk.enable = true;
} }

View File

@ -1,8 +1,6 @@
{ lib, theme, ... }: { theme, ... }:
{ {
# TODO use catppuccin package
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = { settings = {
@ -10,7 +8,7 @@
background = [ background = [
{ {
path = "${../../../wallpapers/catppuccin_page_curl.png}"; path = "${theme.wallpaper.lockscreen}";
} }
]; ];
@ -55,7 +53,7 @@
# USER AVATAR # USER AVATAR
image = { image = {
path = "${../../face.png}"; path = builtins.toString theme.avatar.image;
size = 100; size = 100;
border_color = "${theme.blueRgb}"; border_color = "${theme.blueRgb}";
position = "0, 75"; position = "0, 75";
@ -70,16 +68,16 @@
dots_size = 0.2; dots_size = 0.2;
dots_spacing = 0.2; dots_spacing = 0.2;
dots_center = true; dots_center = true;
outer_color = lib.mkDefault "${theme.blueRgb}"; outer_color = "${theme.blueRgb}";
inner_color = lib.mkDefault "${theme.surface0Rgb}"; inner_color = "${theme.surface0Rgb}";
font_color = lib.mkDefault "${theme.textRgb}"; font_color = "${theme.textRgb}";
fade_on_empty = false; fade_on_empty = false;
placeholder_text = "<span foreground=\"##${theme.textAlpha}\">󰌾 Logged in as <span foreground=\"##${theme.blueAlpha}\">$USER</span></span>"; placeholder_text = "<span foreground=\"##${theme.textAlpha}\">󰌾 Logged in as <span foreground=\"##${theme.blueAlpha}\">$USER</span></span>";
hide_input = false; hide_input = false;
check_color = lib.mkDefault "${theme.blueRgb}"; check_color = "${theme.blueRgb}";
fail_color = lib.mkDefault "${theme.redRgb}"; fail_color = "${theme.redRgb}";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
capslock_color = lib.mkDefault "${theme.yellowRgb}"; capslock_color = "${theme.yellowRgb}";
position = "0, -47"; # TODO change to use % at 25.05 position = "0, -47"; # TODO change to use % at 25.05
halign = "center"; halign = "center";
valign = "center"; valign = "center";

View File

@ -79,13 +79,13 @@
weather = { weather = {
unit = "metric"; unit = "metric";
location = "Bergen, Norway"; location = "Bergen, Norway";
key = common.loadSecret lib ../../secrets/weather-api-key; key = common.secret.weatherApiKey lib;
}; };
}; };
dashboard = { dashboard = {
directories.enabled = false; directories.enabled = false;
powermenu.avatar.image = "${../../face.png}"; powermenu.avatar.image = "${theme.avatar.image}";
shortcuts.left = { shortcuts.left = {
shortcut1 = { shortcut1 = {
command = common.default.browser; command = common.default.browser;

View File

@ -1,18 +1,20 @@
# Wallpapers # Wallpapers
{ pkgs, common, ... }: {
pkgs,
common,
theme,
...
}:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [ hyprpaper ];
hyprpaper
];
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
settings = settings =
let let
wallpaperDir = ../../wallpapers; monitor1 = builtins.toString theme.wallpaper.monitor1;
monitor1 = "${wallpaperDir}/nixos_waves.png"; monitor2 = builtins.toString theme.wallpaper.monitor2;
monitor2 = "${wallpaperDir}/ekg_v2.png";
in in
{ {
ipc = "on"; ipc = "on";

View File

@ -15,7 +15,6 @@
".config/rofimoji.rc".source = ./rofimoji.rc; ".config/rofimoji.rc".source = ./rofimoji.rc;
}; };
# TODO use catppuccin package
# TODO Use programs.rofi. Theme is not applied correctly # TODO Use programs.rofi. Theme is not applied correctly
# programs.rofi = { # programs.rofi = {
# enable = true; # enable = true;

View File

@ -8,7 +8,7 @@ in
flavor = flavor; flavor = flavor;
font = theme.nerdFont; font = theme.nerdFont;
fontSize = "9"; fontSize = "9";
background = "${../wallpapers/catppuccin_high.png}"; background = builtins.toString ../assets/catppuccin_high.png;
loginBackground = true; loginBackground = true;
}) })
]; ];

View File

@ -5,6 +5,15 @@ rec {
nerdFont = "JetBrainsMono"; nerdFont = "JetBrainsMono";
wallpaper = {
lockscreen = ./assets/catppuccin_page_curl.png;
monitor1 = ./assets/nixos_waves.png;
monitor2 = ./assets/ekg_v2.png;
};
avatar.image = ./assets/face.png;
# Colours
rosewaterAlpha = "f5e0dc"; rosewaterAlpha = "f5e0dc";
flamingoAlpha = "f2cdcd"; flamingoAlpha = "f2cdcd";
pinkAlpha = "f5c2e7"; pinkAlpha = "f5c2e7";