From cc57accbfc3c0b0e9b95eeda9007a5d8dbbab1ec Mon Sep 17 00:00:00 2001 From: Thiago Sposito Date: Sun, 28 Sep 2025 22:08:53 -0300 Subject: [PATCH] feat: add custom icons repo --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ home-manager/icons.nix | 15 +++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 home-manager/icons.nix diff --git a/flake.lock b/flake.lock index e0411cc..c727e6d 100644 --- a/flake.lock +++ b/flake.lock @@ -60,6 +60,26 @@ "type": "github" } }, + "icons": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1759105481, + "narHash": "sha256-TSGi0rHYKK/MfcKg+THX4/qOptJlCgmi0QLjBcFQLSU=", + "ref": "refs/heads/main", + "rev": "7ec8418afc29ef317d0ba11278206e3a4d16a1ca", + "revCount": 1, + "type": "git", + "url": "https://git.sr.ht/~sposito/icons" + }, + "original": { + "type": "git", + "url": "https://git.sr.ht/~sposito/icons" + } + }, "ixx": { "inputs": { "flake-utils": [ @@ -153,6 +173,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "icons": "icons", "nixpkgs": "nixpkgs", "nixvim": "nixvim" } diff --git a/flake.nix b/flake.nix index d00f5e2..e6ab5c3 100644 --- a/flake.nix +++ b/flake.nix @@ -8,6 +8,10 @@ inputs.nixpkgs.follows = "nixpkgs"; url = "github:nix-community/home-manager/master"; }; + icons = { + url = "git+https://git.sr.ht/~sposito/icons"; + inputs.nixpkgs.follows = "nixpkgs"; + }; nixvim = { url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; @@ -51,6 +55,7 @@ pkgs = nixpkgs.legacyPackages.x86_64-linux; extraSpecialArgs = { inherit inputs outputs; + icons = inputs.icons; }; modules = [ ./home-manager/home.nix diff --git a/home-manager/icons.nix b/home-manager/icons.nix new file mode 100644 index 0000000..896516e --- /dev/null +++ b/home-manager/icons.nix @@ -0,0 +1,15 @@ +{ icons, pkgs, ... }: +{ + home.packages = [ icons.packages.${pkgs.system}.default ]; + + xdg.desktopEntries.kitty = { + name = "Kitty"; + exec = "kitty"; + icon = "kitty"; + terminal = false; + categories = [ + "System" + "TerminalEmulator" + ]; + }; +}