From 557e12aa3455504767d5ad05418729d253c69563 Mon Sep 17 00:00:00 2001 From: larstvei Date: Tue, 9 Sep 2025 00:51:32 +0200 Subject: [PATCH] Add nanostatus --- flake.lock | 82 ++++++++++++++++++++++++++++++- flake.nix | 3 ++ home/desktop/hyprland/default.nix | 3 ++ hosts/thinkpad/configuration.nix | 2 + 4 files changed, 89 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 4639cf9..490eeb5 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,49 @@ { "nodes": { + "ags": { + "inputs": { + "astal": "astal", + "nixpkgs": [ + "nanostatus", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1756487002, + "narHash": "sha256-hN9RfNXy53qAkT68T+IYZpl68uE1uPOVMkw0MqC43KA=", + "owner": "aylur", + "repo": "ags", + "rev": "8ff792dba6cc82eed10e760f551075564dd0a407", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "ags", + "type": "github" + } + }, + "astal": { + "inputs": { + "nixpkgs": [ + "nanostatus", + "ags", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1752404970, + "narHash": "sha256-XULTToDUkIshNXEO+YP2mAHdQv8bxWDvKjbamBfOC8E=", + "owner": "aylur", + "repo": "astal", + "rev": "2c5eb54f39e1710c6e2c80915a240978beb3269a", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "astal", + "type": "github" + } + }, "darwin": { "inputs": { "nixpkgs": [ @@ -152,6 +196,25 @@ "type": "github" } }, + "nanostatus": { + "inputs": { + "ags": "ags", + "nixpkgs": "nixpkgs_3" + }, + "locked": { + "lastModified": 1757371422, + "narHash": "sha256-4EEIRJE52cACFG2ik/+pU5vh8CKShwKLSSTaivGouGM=", + "owner": "larstvei", + "repo": "nanostatus", + "rev": "af0dc80af18569becbf40c77ac7380c2efc6bef6", + "type": "github" + }, + "original": { + "owner": "larstvei", + "repo": "nanostatus", + "type": "github" + } + }, "nix-rosetta-builder": { "inputs": { "nixos-generators": "nixos-generators", @@ -259,6 +322,22 @@ } }, "nixpkgs_3": { + "locked": { + "lastModified": 1756542300, + "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { "locked": { "lastModified": 1755829505, "narHash": "sha256-4/Jd+LkQ2ssw8luQVkqVs9spDBVE6h/u/hC/tzngsPo=", @@ -279,8 +358,9 @@ "darwin": "darwin", "emacs-larstvei": "emacs-larstvei", "home-manager": "home-manager", + "nanostatus": "nanostatus", "nix-rosetta-builder": "nix-rosetta-builder", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "zen-browser": "zen-browser" } }, diff --git a/flake.nix b/flake.nix index 48f559a..10366ad 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ url = "github:0xc000022070/zen-browser-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; + nanostatus.url = "github:larstvei/nanostatus"; emacs-larstvei.url = "github:larstvei/emacs-flake"; }; @@ -30,6 +31,7 @@ nixpkgs, home-manager, nix-rosetta-builder, + nanostatus, emacs-larstvei, zen-browser, ... @@ -53,6 +55,7 @@ nixosConfigurations.thinkpad = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { + inherit nanostatus; inherit emacs-larstvei; inherit zen-browser; }; diff --git a/home/desktop/hyprland/default.nix b/home/desktop/hyprland/default.nix index c9fc23a..67ff713 100644 --- a/home/desktop/hyprland/default.nix +++ b/home/desktop/hyprland/default.nix @@ -1,3 +1,4 @@ +{ pkgs, nanostatus, ... }: { programs.kitty.enable = true; @@ -118,6 +119,8 @@ "$mod, D, exec, darkman toggle" + "$mod, space, exec, ${nanostatus.packages.${pkgs.system}.default}/bin/nanostatus-toggle" + # Text input (macOS-like way of producing Norwegian characters) "$mod, A, exec, wtype 'å'" "$mod, O, exec, wtype 'ø'" diff --git a/hosts/thinkpad/configuration.nix b/hosts/thinkpad/configuration.nix index 49aaccd..c561551 100644 --- a/hosts/thinkpad/configuration.nix +++ b/hosts/thinkpad/configuration.nix @@ -1,5 +1,6 @@ { pkgs, + nanostatus, emacs-larstvei, zen-browser, ... @@ -19,6 +20,7 @@ in useGlobalPkgs = true; useUserPackages = true; extraSpecialArgs = { + inherit nanostatus; inherit emacs-larstvei; inherit zen-browser; };