mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 10:16:31 +05:30
feat: setup hyprland
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
tpanel = inputs.tpanel.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||
ags = inputs.tpanel.packages.${prev.stdenv.hostPlatform.system}.ags.default;
|
||||
wezterm-git = inputs.wezterm-flake.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||
hyprland-git = inputs.hyprland.packages.${prev.stdenv.hostPlatform.system};
|
||||
awww = inputs.awww.packages.${prev.stdenv.hostPlatform.system}.awww;
|
||||
vicinae-extensions = inputs.vicinae-extensions.packages.${prev.stdenv.hostPlatform.system};
|
||||
};
|
||||
|
||||
stable-packages = final: _prev: {
|
||||
|
||||
19
modules/hm/desktop/hyprland.nix
Normal file
19
modules/hm/desktop/hyprland.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
flake.modules.homeManager.desktop =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ags
|
||||
awww
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
xwayland.enable = true;
|
||||
systemd.variables = [ "--all" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
73
modules/hm/desktop/vicinae.nix
Normal file
73
modules/hm/desktop/vicinae.nix
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
flake.modules.homeManager.desktop =
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.vicinae = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
};
|
||||
useLayerShell = true;
|
||||
|
||||
extensions = with pkgs.vicinae-extensions; [
|
||||
bluetooth
|
||||
nix
|
||||
ssh
|
||||
awww-switcher
|
||||
process-manager
|
||||
pulseaudio
|
||||
wifi-commander
|
||||
port-killer
|
||||
silverbullet
|
||||
];
|
||||
|
||||
settings = {
|
||||
close_on_focus_loss = false;
|
||||
consider_preedit = true;
|
||||
pop_to_root_on_close = true;
|
||||
favicon_service = "twenty";
|
||||
search_files_in_root = true;
|
||||
font = {
|
||||
normal = {
|
||||
size = 10;
|
||||
family = "JetBrainsMono Nerd Font";
|
||||
};
|
||||
};
|
||||
theme = {
|
||||
light = {
|
||||
name = "vicinae-light";
|
||||
icon_theme = "default";
|
||||
};
|
||||
dark = {
|
||||
name = "vicinae-dark";
|
||||
icon_theme = "default";
|
||||
};
|
||||
};
|
||||
launcher_window = {
|
||||
opacity = 0.98;
|
||||
};
|
||||
|
||||
imports = [ "/run/secrets/vicinae.json" ];
|
||||
|
||||
providers = {
|
||||
"@samlinville/store.raycast.tailscale" = {
|
||||
"preferences" = {
|
||||
"tailscalePath" = "${pkgs.tailscale}/bin/tailscale";
|
||||
};
|
||||
};
|
||||
"@sovereign/vicinae-extension-awww-switcher-0" = {
|
||||
"preferences" = {
|
||||
"transitionDuration" = "1";
|
||||
"transitionType" = "center";
|
||||
"wallpaperPath" = "/home/tux/Wallpapers/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -14,7 +14,10 @@
|
||||
"https://lan-mouse.cachix.org"
|
||||
"https://wezterm.cachix.org"
|
||||
];
|
||||
trusted-substituters = [ "https://nix-on-droid.cachix.org" ];
|
||||
trusted-substituters = [
|
||||
"https://nix-on-droid.cachix.org"
|
||||
"https://hyprland.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
|
||||
11
modules/nixos/desktop/hyprland.nix
Normal file
11
modules/nixos/desktop/hyprland.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
flake.modules.nixos.desktop =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland-git.hyprland;
|
||||
portalPackage = pkgs.hyprland-git.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
services.displayManager.ly = {
|
||||
enable = true;
|
||||
settings = {
|
||||
session_log = "null";
|
||||
# session_log = "null";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user