nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit b9489f3274a0bde87b9bf917e64f04b827ca0ead
parent e5e4485e05e9ea1d980874704571ea3985464b19
Author: Peter <peter@minskio.co.uk>
Date:   Thu,  8 Oct 2026 16:07:30 +0100

Use variable for weather location

Diffstat:
Mhome/wayle.nix | 4++--
Mvariables.sample.nix | 10++++++++--
2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/home/wayle.nix b/home/wayle.nix @@ -1,4 +1,4 @@ -{ lib, machine, ... }: +{ vars, lib, machine, ... }: let batteryMachines = [ "minerva" ]; @@ -39,7 +39,7 @@ in power = { left-click = "power-menu"; }; ram = { left-click = "alacritty -e htop"; }; volume = { right-click = "pavucontrol"; }; - weather = { location = "Huddersfield"; }; + weather = { location = vars.user.addr.town; }; window-title = { icon-show = false; }; }; styling = { diff --git a/variables.sample.nix b/variables.sample.nix @@ -8,8 +8,14 @@ rec { email = "${username}@${domain}"; timezone = "Europe/London"; locale = "en_GB.UTF-8"; - postcode = "AA1 1AA"; - address = "123 Fake Street\n${postcode}\n${postcode}"; + address = "${addr.number} ${addr.street}\n${addr.town}\n${addr.county}\n${addr.postcode}"; + addr = { + number = "123"; + street = "Fake Street"; + town = "Faketown"; + county = "North Fakesburg"; + postcode = "AB1 1CD"; + }; }; secrets = { sshkey = "ssh-rsa yourpubkeyhere";