✨ Added pi4 to systems, moved getSecret function to lib
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user