From f50b84560514186e684527d2d8cddba1d17c4213 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sun, 18 Aug 2024 22:20:47 +0100 Subject: [PATCH] 443 current 2024-08-18 21:52:37 24.05.3642.883180e6550c 6.6.44 * --- configuration.nix | 4 ++-- nixos-switch.log | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8354e3b..422b94a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,10 +5,10 @@ { config, pkgs, ... }: let BORDER_WIDTH = "2"; - BORDER_WIDTH_INT = builtins.fromString BORDER_WIDTH; + BORDER_WIDTH_INT = builtins.parseInt BORDER_WIDTH; CORNER_RADIUS = "5"; - CORNER_RADIUS_INT = builtins.fromString CORNER_RADIUS; + CORNER_RADIUS_INT = builtins.parseInt CORNER_RADIUS; # A curve of 2px and 10px radius thickness fits into a curve of 12px radius RECEIVING_CORNER_RADIUS = builtins.toString CORNER_RADIUS_INT + BORDER_WIDTH_INT; WAYBAR_MODULES_CORNER_RADIUS = "5"; diff --git a/nixos-switch.log b/nixos-switch.log index dcb27ae..09eb092 100644 --- a/nixos-switch.log +++ b/nixos-switch.log @@ -21,11 +21,11 @@ error: (stack trace truncated; use '--show-trace' to show the full trace) - error: attribute 'fromString' missing + error: attribute 'parseInt' missing at /etc/nixos/configuration.nix:11:22: - 10| CORNER_RADIUS = "5"; - 11| CORNER_RADIUS_INT = builtins.fromString CORNER_RADIUS; + 10| CORNER_RADIUS = "5"; + 11| CORNER_RADIUS_INT = builtins.parseInt CORNER_RADIUS; | ^ - 12| # A curve of 2px and 10px radius thickness fits into a curve of 12px radius + 12| # A curve of 2px and 10px radius thickness fits into a curve of 12px radius