♻️ Moved wallpapers, added wallpapers and secrets to theme and common files
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
@ -2,7 +2,7 @@
|
||||
|
||||
My NixOS configurations with dotfiles for my desktop
|
||||
|
||||

|
||||

|
||||
|
||||
## Uses
|
||||
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 808 KiB After Width: | Height: | Size: 808 KiB |
Before Width: | Height: | Size: 2.1 MiB After Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 282 KiB After Width: | Height: | Size: 282 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
@ -34,6 +34,8 @@ rec {
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.version = "24.11";
|
||||
|
||||
secret.weatherApiKey = lib: loadSecret lib ./home-manager/secrets/weather-api-key;
|
||||
|
||||
loadSecret =
|
||||
lib: filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
|
||||
}
|
||||
|
@ -31,13 +31,7 @@ in
|
||||
./zen
|
||||
];
|
||||
|
||||
dconf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Prefer dark mode for all GTK apps
|
||||
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
dconf.enable = true;
|
||||
|
||||
home = {
|
||||
username = username;
|
||||
|
@ -7,5 +7,10 @@
|
||||
icon.enable = true;
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
# Prefer dark mode for all GTK apps
|
||||
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
};
|
||||
|
||||
gtk.enable = true;
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
{ lib, theme, ... }:
|
||||
{ theme, ... }:
|
||||
|
||||
{
|
||||
# TODO use catppuccin package
|
||||
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
@ -10,7 +8,7 @@
|
||||
|
||||
background = [
|
||||
{
|
||||
path = "${../../../wallpapers/catppuccin_page_curl.png}";
|
||||
path = "${theme.wallpaper.lockscreen}";
|
||||
}
|
||||
];
|
||||
|
||||
@ -55,7 +53,7 @@
|
||||
|
||||
# USER AVATAR
|
||||
image = {
|
||||
path = "${../../face.png}";
|
||||
path = builtins.toString theme.avatar.image;
|
||||
size = 100;
|
||||
border_color = "${theme.blueRgb}";
|
||||
position = "0, 75";
|
||||
@ -70,16 +68,16 @@
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.2;
|
||||
dots_center = true;
|
||||
outer_color = lib.mkDefault "${theme.blueRgb}";
|
||||
inner_color = lib.mkDefault "${theme.surface0Rgb}";
|
||||
font_color = lib.mkDefault "${theme.textRgb}";
|
||||
outer_color = "${theme.blueRgb}";
|
||||
inner_color = "${theme.surface0Rgb}";
|
||||
font_color = "${theme.textRgb}";
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "<span foreground=\"##${theme.textAlpha}\"> Logged in as <span foreground=\"##${theme.blueAlpha}\">$USER</span></span>";
|
||||
hide_input = false;
|
||||
check_color = lib.mkDefault "${theme.blueRgb}";
|
||||
fail_color = lib.mkDefault "${theme.redRgb}";
|
||||
check_color = "${theme.blueRgb}";
|
||||
fail_color = "${theme.redRgb}";
|
||||
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
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
|
@ -79,13 +79,13 @@
|
||||
weather = {
|
||||
unit = "metric";
|
||||
location = "Bergen, Norway";
|
||||
key = common.loadSecret lib ../../secrets/weather-api-key;
|
||||
key = common.secret.weatherApiKey lib;
|
||||
};
|
||||
};
|
||||
|
||||
dashboard = {
|
||||
directories.enabled = false;
|
||||
powermenu.avatar.image = "${../../face.png}";
|
||||
powermenu.avatar.image = "${theme.avatar.image}";
|
||||
shortcuts.left = {
|
||||
shortcut1 = {
|
||||
command = common.default.browser;
|
||||
|
@ -1,18 +1,20 @@
|
||||
# Wallpapers
|
||||
{ pkgs, common, ... }:
|
||||
{
|
||||
pkgs,
|
||||
common,
|
||||
theme,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
];
|
||||
home.packages = with pkgs; [ hyprpaper ];
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings =
|
||||
let
|
||||
wallpaperDir = ../../wallpapers;
|
||||
monitor1 = "${wallpaperDir}/nixos_waves.png";
|
||||
monitor2 = "${wallpaperDir}/ekg_v2.png";
|
||||
monitor1 = builtins.toString theme.wallpaper.monitor1;
|
||||
monitor2 = builtins.toString theme.wallpaper.monitor2;
|
||||
in
|
||||
{
|
||||
ipc = "on";
|
||||
|
@ -15,7 +15,6 @@
|
||||
".config/rofimoji.rc".source = ./rofimoji.rc;
|
||||
};
|
||||
|
||||
# TODO use catppuccin package
|
||||
# TODO Use programs.rofi. Theme is not applied correctly
|
||||
# programs.rofi = {
|
||||
# enable = true;
|
||||
|
@ -8,7 +8,7 @@ in
|
||||
flavor = flavor;
|
||||
font = theme.nerdFont;
|
||||
fontSize = "9";
|
||||
background = "${../wallpapers/catppuccin_high.png}";
|
||||
background = builtins.toString ../assets/catppuccin_high.png;
|
||||
loginBackground = true;
|
||||
})
|
||||
];
|
||||
|
@ -5,6 +5,15 @@ rec {
|
||||
|
||||
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";
|
||||
flamingoAlpha = "f2cdcd";
|
||||
pinkAlpha = "f5c2e7";
|
||||
|