add vicinae launcher

This commit is contained in:
2025-09-16 20:38:42 +02:00
parent d91aabd3c0
commit 7b0b3ac084
5 changed files with 87 additions and 9 deletions

71
flake.lock generated
View File

@@ -119,6 +119,24 @@
"type": "github" "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": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -348,6 +366,22 @@
"type": "github" "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": { "root": {
"inputs": { "inputs": {
"clan-core": "clan-core", "clan-core": "clan-core",
@@ -360,7 +394,8 @@
"nixos-generators": "nixos-generators", "nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"srvos": "srvos" "srvos": "srvos",
"vicinae": "vicinae"
} }
}, },
"sops-nix": { "sops-nix": {
@@ -434,6 +469,21 @@
"type": "github" "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": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -454,6 +504,25 @@
"repo": "treefmt-nix", "repo": "treefmt-nix",
"type": "github" "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", "root": "root",

View File

@@ -84,15 +84,12 @@
srvos.url = "github:nix-community/srvos"; srvos.url = "github:nix-community/srvos";
srvos.inputs.nixpkgs.follows = "nixpkgs"; srvos.inputs.nixpkgs.follows = "nixpkgs";
vicinae.url = "github:vicinaehq/vicinae";
}; };
nixConfig = { nixConfig = {
extra-substituters = [ extra-substituters = [ "https://vicinae.cachix.org" ];
"https://cache.nixos.org" extra-trusted-public-keys = [ "vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc=" ];
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
}; };
} }

View File

@@ -0,0 +1,11 @@
{ inputs, ... }:
{
imports = [
inputs.vicinae.homeManagerModules.default
];
services.vicinae = {
enable = true;
autoStart = true;
};
}

View File

@@ -134,7 +134,7 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+Return { spawn "sh" "-c" "alacritty msg create-window || alacritty"; } 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"; } Super+Alt+L { spawn "swaylock"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; } XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }

View File

@@ -13,5 +13,6 @@
../../home-manager/desktop/gnome.nix ../../home-manager/desktop/gnome.nix
../../home-manager/desktop/niri.nix ../../home-manager/desktop/niri.nix
../../home-manager/desktop/sway.nix ../../home-manager/desktop/sway.nix
../../home-manager/desktop/vicinae.nix
]; ];
} }