From 0a24c471aacaa22f0c807db8074cdf8d60d6bcc7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:58:32 +0000 Subject: [PATCH] Fix flake assertion syntax Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com> --- README.md | 2 +- flake.nix | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ffc5519..5dac41d 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Defaults are set in `flake.nix` and used across modules. Update them there: | `time.timeZone` | `America/New_York` | `modules/common.nix` | | `i18n.defaultLocale` | `en_US.UTF-8` | `modules/common.nix` | -Rename the default `hosts/atlas/` directory to match your hostname (e.g., `hosts/desktop/`), then update the `hostname` value in `flake.nix` to match. The flake uses it to locate `hosts//hardware-configuration.nix`. +Rename the default `hosts/atlas/` directory to match your hostname (e.g., `hosts/desktop/`). After renaming the directory, update the `hostname` value in `flake.nix` to match. The flake uses it to locate `hosts//hardware-configuration.nix`. ### 3. Stage Files in Git diff --git a/flake.nix b/flake.nix index 1100e17..371ca30 100644 --- a/flake.nix +++ b/flake.nix @@ -46,8 +46,7 @@ && builtins.match "^nix" username == null && username != "root"; hostConfig = ./hosts + "/${hostname}/hardware-configuration.nix"; - passwordHashPath = assert usernameValid; - "/etc/nixos/secrets/${username}/password.hash"; + passwordHashPath = assert usernameValid; "/etc/nixos/secrets/${username}/password.hash"; specialArgs = { inherit inputs system hostname username usernameValid passwordHashPath; }; # Verify mango flake exports the expected module