From 49c38752e923bf95b880438eb9021a7605814bb7 Mon Sep 17 00:00:00 2001 From: foglar Date: Sun, 27 Apr 2025 18:21:13 +0200 Subject: [PATCH] hyprpanel created --- flake.lock | 66 +++++++++++++++++++ flake.nix | 11 ++++ .../desktop/hyprland/hyprpanel/default.nix | 14 ++++ nixos/home/packages/programming/code.nix | 22 +++++++ 4 files changed, 113 insertions(+) create mode 100644 nixos/home/desktop/hyprland/hyprpanel/default.nix diff --git a/flake.lock b/flake.lock index e8b7819..409ef2a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,27 @@ { "nodes": { + "ags": { + "inputs": { + "astal": "astal", + "nixpkgs": [ + "hyprpanel", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1736090999, + "narHash": "sha256-B5CJuHqfJrzPa7tObK0H9669/EClSHpa/P7B9EuvElU=", + "owner": "aylur", + "repo": "ags", + "rev": "5527c3c07d92c11e04e7fd99d58429493dba7e3c", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "ags", + "type": "github" + } + }, "aquamarine": { "inputs": { "hyprutils": [ @@ -33,6 +55,28 @@ "type": "github" } }, + "astal": { + "inputs": { + "nixpkgs": [ + "hyprpanel", + "ags", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1735172721, + "narHash": "sha256-rtEAwGsHSppnkR3Qg3eRJ6Xh/F84IY9CrBBLzYabalY=", + "owner": "aylur", + "repo": "astal", + "rev": "6c84b64efc736e039a8a10774a4a1bf772c37aa2", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "astal", + "type": "github" + } + }, "auto-cpufreq": { "inputs": { "nixpkgs": [ @@ -679,6 +723,27 @@ "type": "github" } }, + "hyprpanel": { + "inputs": { + "ags": "ags", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1744513377, + "narHash": "sha256-2ocy+qAVxTBmaK8MpAy7mpKIH+DYEzwf+KzXZX83oZ4=", + "owner": "Jas-SinghFSU", + "repo": "HyprPanel", + "rev": "42943b3def85d8787d703778951944c8e791202b", + "type": "github" + }, + "original": { + "owner": "Jas-SinghFSU", + "repo": "HyprPanel", + "type": "github" + } + }, "hyprutils": { "inputs": { "nixpkgs": [ @@ -1166,6 +1231,7 @@ "home-manager": "home-manager", "home-manager-droid": "home-manager-droid", "hyprland": "hyprland", + "hyprpanel": "hyprpanel", "install-script": "install-script", "nix-ld": "nix-ld", "nix-mineral": "nix-mineral", diff --git a/flake.nix b/flake.nix index 6a7738b..53ad631 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,10 @@ pkgs = import nixpkgs { inherit system; + overlays = [ + inputs.hyprpanel.overlay + ]; + config = { allowUnfree = true; }; @@ -62,6 +66,7 @@ nixosConfigurations = { kogami = nixpkgs.lib.nixosSystem { inherit system; + specialArgs = { inherit inputs system pkgs pkgs-stable userSettings; }; @@ -73,6 +78,7 @@ inputs.nix-ld.nixosModules.nix-ld inputs.sops-nix.nixosModules.sops inputs.auto-cpufreq.nixosModules.default + {nixpkgs.overlays = [inputs.hyprpanel.overlay];} ]; }; ginoza = nixpkgs.lib.nixosSystem { @@ -174,6 +180,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + hyprpanel = { + url = "github:Jas-SinghFSU/HyprPanel"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-mineral = { url = "github:cynicsketch/nix-mineral"; # Refers to the main branch and is updated to the latest commit when you use "nix flake update" # url = "github:cynicsketch/nix-mineral/v0.1.6-alpha" # Refers to a specific tag and follows that tag until you change it diff --git a/nixos/home/desktop/hyprland/hyprpanel/default.nix b/nixos/home/desktop/hyprland/hyprpanel/default.nix new file mode 100644 index 0000000..08ac2c8 --- /dev/null +++ b/nixos/home/desktop/hyprland/hyprpanel/default.nix @@ -0,0 +1,14 @@ +{ + pkgs, + inputs, + ... +}: +{ + imports = [ + inputs.hyprpanel.nixosModules.hyprpanel + ]; + + home.packages = with pkgs; [ + hyprpanel + ]; +} \ No newline at end of file diff --git a/nixos/home/packages/programming/code.nix b/nixos/home/packages/programming/code.nix index c37f72e..8b1ba14 100644 --- a/nixos/home/packages/programming/code.nix +++ b/nixos/home/packages/programming/code.nix @@ -203,6 +203,27 @@ "[scss]" = { "editor.defaultFormatter" = "esbenp.prettier-vscode"; }; + "tailwindCSS.hovers" = true; + "tailwindCSS.suggestions" = true; + + "files.associations" = { + "*.css" = "tailwindcss"; + }; + + "editor.quickSuggestions" = { + "strings" = "on"; + }; + + "tailwindCSS.includeLanguages" = { + "plaintext" = "html"; + }; + + "tailwindCSS.classAttributes" = [ + "class" + "className" + "ngClass" + "class:list" + ]; }; extensions = with pkgs-stable.vscode-extensions; [ @@ -211,6 +232,7 @@ ecmel.vscode-html-css ms-vscode.live-server formulahendry.auto-rename-tag + bradlc.vscode-tailwindcss ]; }; })