diff --git a/flake.lock b/flake.lock index 866677d..99c23bb 100644 --- a/flake.lock +++ b/flake.lock @@ -119,6 +119,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems_3" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -348,6 +366,22 @@ "type": "github" } }, + "nixpkgs_3": { + "locked": { + "lastModified": 1758277210, + "narHash": "sha256-iCGWf/LTy+aY0zFu8q12lK8KuZp7yvdhStehhyX1v8w=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "8eaee110344796db060382e15d3af0a9fc396e0e", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "clan-core": "clan-core", @@ -360,7 +394,8 @@ "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_2", - "srvos": "srvos" + "srvos": "srvos", + "vicinae": "vicinae" } }, "sops-nix": { @@ -434,6 +469,21 @@ "type": "github" } }, + "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -454,6 +504,25 @@ "repo": "treefmt-nix", "type": "github" } + }, + "vicinae": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs_3" + }, + "locked": { + "lastModified": 1758455522, + "narHash": "sha256-PyrIsyrzbJ00VDdJDpvooWODaPYwDIq9FAY5JedfMmk=", + "owner": "vicinaehq", + "repo": "vicinae", + "rev": "8feb424701967065545f3936748807edf406fdd5", + "type": "github" + }, + "original": { + "owner": "vicinaehq", + "repo": "vicinae", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 4ec8141..7a63b86 100644 --- a/flake.nix +++ b/flake.nix @@ -84,15 +84,12 @@ srvos.url = "github:nix-community/srvos"; srvos.inputs.nixpkgs.follows = "nixpkgs"; + + vicinae.url = "github:vicinaehq/vicinae"; }; nixConfig = { - extra-substituters = [ - "https://cache.nixos.org" - "https://nix-community.cachix.org" - ]; - extra-trusted-public-keys = [ - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - ]; + extra-substituters = [ "https://vicinae.cachix.org" ]; + extra-trusted-public-keys = [ "vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc=" ]; }; } diff --git a/home-manager/desktop/vicinae.nix b/home-manager/desktop/vicinae.nix new file mode 100644 index 0000000..1ba4f4a --- /dev/null +++ b/home-manager/desktop/vicinae.nix @@ -0,0 +1,11 @@ +{ inputs, ... }: +{ + imports = [ + inputs.vicinae.homeManagerModules.default + ]; + + services.vicinae = { + enable = true; + autoStart = true; + }; +} diff --git a/home/.config/niri/config.kdl b/home/.config/niri/config.kdl index cb53585..10058db 100644 --- a/home/.config/niri/config.kdl +++ b/home/.config/niri/config.kdl @@ -134,7 +134,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return { spawn "sh" "-c" "alacritty msg create-window || alacritty"; } - Mod+D { spawn "tofi-drun" "--drun-launch=true"; } + Mod+D { spawn "vicinae"; } Super+Alt+L { spawn "swaylock"; } XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; } diff --git a/machines/haze/home.nix b/machines/haze/home.nix index 1d2698d..ac870ad 100644 --- a/machines/haze/home.nix +++ b/machines/haze/home.nix @@ -13,5 +13,6 @@ ../../home-manager/desktop/gnome.nix ../../home-manager/desktop/niri.nix ../../home-manager/desktop/sway.nix + ../../home-manager/desktop/vicinae.nix ]; }