diff --git a/flake.lock b/flake.lock index 56e5c14..eabffc4 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,27 @@ { "nodes": { + "anyrun": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": [ + "nixpkgs" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1748365336, + "narHash": "sha256-pg0w4uOZI32dLASD6UbBezeQg5PwOa0GLv7rTwn3VxY=", + "owner": "anyrun-org", + "repo": "anyrun", + "rev": "25367153f225a59c5ce5746583e39a71ff052f09", + "type": "github" + }, + "original": { + "owner": "anyrun-org", + "repo": "anyrun", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -16,9 +38,30 @@ "type": "github" } }, + "flake-parts": { + "inputs": { + "nixpkgs-lib": [ + "anyrun", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1743550720, + "narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "c621e8422220273271f52058f618c94e405bb0f5", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-utils": { "inputs": { - "systems": "systems" + "systems": "systems_2" }, "locked": { "lastModified": 1731533236, @@ -166,16 +209,32 @@ }, "root": { "inputs": { + "anyrun": "anyrun", "ghostty": "ghostty", "home-manager": "home-manager", "nix-darwin": "nix-darwin", "nix-flatpak": "nix-flatpak", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", - "systems": "systems_2" + "systems": "systems_3" } }, "systems": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, + "systems_2": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -190,7 +249,7 @@ "type": "github" } }, - "systems_2": { + "systems_3": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", diff --git a/flake.nix b/flake.nix index 8aeb634..696a7d9 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,11 @@ url = "github:LnL7/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; }; + # Anyrun launcher + anyrun = { + url = "github:anyrun-org/anyrun"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -33,6 +38,7 @@ , nix-darwin , nix-flatpak , ghostty + , anyrun }: let user = { @@ -79,6 +85,7 @@ specialArgs = { inputs = { inherit + anyrun ghostty; }; }; diff --git a/hosts/fwbook.nix b/hosts/fwbook.nix index cf78de2..c371e31 100644 --- a/hosts/fwbook.nix +++ b/hosts/fwbook.nix @@ -31,6 +31,7 @@ in kde.enable = false; crypto.enable = true; gnome.enable = true; + tiler.enable = true; }; }; networkDrives = { diff --git a/modules/nixos/desktop/default.nix b/modules/nixos/desktop/default.nix index aab9cea..1f8f15d 100644 --- a/modules/nixos/desktop/default.nix +++ b/modules/nixos/desktop/default.nix @@ -11,6 +11,7 @@ in ./packages.nix ./crypto.nix ./gnome.nix + ./tiler.nix ]; options = { diff --git a/modules/nixos/desktop/tiler.nix b/modules/nixos/desktop/tiler.nix new file mode 100644 index 0000000..7094f14 --- /dev/null +++ b/modules/nixos/desktop/tiler.nix @@ -0,0 +1,21 @@ +{ config, lib, pkgs, inputs, ... }: +let + anyrun = inputs.anyrun.packages.${pkgs.stdenv.hostPlatform.system}.anyrun; + cfg = config.skyg.nixos.desktop.tiler; +in +{ + options = { + skyg.nixos.desktop.tiler = { + enable = lib.mkEnableOption + "Enable libraries for tiling window managers"; + }; + }; + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + mako + libnotify + fuzzel + anyrun + ]; + }; +}