Moved modules and hm dir to hosts dir. Moved some code to shared and extended lib with custom functions

This commit is contained in:
2025-04-12 17:05:38 +02:00
parent df5bea9cc0
commit e3a1dd36d7
99 changed files with 550 additions and 140 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 KiB

BIN
shared/assets/downtown.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
shared/assets/ekg_v2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
shared/assets/face.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

41
shared/common.nix Normal file
View File

@ -0,0 +1,41 @@
rec {
default = {
browser = "zen";
calculator = "gnome-calculator";
fileManager = "nautilus";
imageViewer = "loupe";
lockScreen = "hyprlock";
terminal = "kitty";
};
dir = {
home = "/home/${username}";
pictures = "${dir.home}/Pictures";
};
hostname = "desktop";
keymaps = {
layout = "gb,no";
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
};
# Empty matches all
monitor1 = "DP-1";
monitor2 = "DP-3";
username = "martin";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.version = "24.11";
secret.weatherApiKey = lib: loadSecret lib ./secrets/weather-api-key;
loadSecret =
lib: filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
}

Binary file not shown.

51
shared/theme.nix Normal file
View File

@ -0,0 +1,51 @@
rec {
theme = "catppuccin";
flavor = "mocha";
mode = "dark";
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";
mauveAlpha = "cba6f7";
mauveRgb = "rgb(${mauveAlpha})";
redAlpha = "f38ba8";
redRgb = "rgb(${redAlpha})";
maroonAlpha = "eba0ac";
peachAlpha = "fab387";
yellowAlpha = "f9e2af";
yellowRgb = "rgb(${yellowAlpha})";
greenAlpha = "a6e3a1";
tealAlpha = "94e2d5";
tealRgb = "rgb(${tealAlpha})";
skyAlpha = "89dceb";
sapphireAlpha = "74c7ec";
blueAlpha = "89b4fa";
blueRgb = "rgb(${blueAlpha})";
lavenderAlpha = "b4befe";
textAlpha = "cdd6f4";
textRgb = "rgb(${textAlpha})";
subtext1Alpha = "bac2de";
subtext0Alpha = "a6adc8";
overlay2Alpha = "9399b2";
overlay1Alpha = "7f849c";
overlay0Alpha = "6c7086";
surface2Alpha = "585b70";
surface1Alpha = "45475a";
surface0Alpha = "313244";
surface0Rgb = "rgb(${surface0Alpha})";
baseAlpha = "1e1e2e";
baseRgb = "rgb(${baseAlpha})";
mantleAlpha = "181825";
crustAlpha = "11111b";
}