Added pi4 to systems, moved getSecret function to lib

This commit is contained in:
2025-04-12 20:25:10 +02:00
parent 6ca92c8537
commit 0649473709
5 changed files with 17 additions and 11 deletions

View File

@ -3,7 +3,7 @@ rec {
browser = "zen";
calculator = "gnome-calculator";
fileManager = "nautilus";
imageViewer = "loupe";
imageViewer = "imv";
lockScreen = "hyprlock";
terminal = "kitty";
};
@ -31,9 +31,4 @@ rec {
# 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));
}