use hypr under nvidia

This commit is contained in:
js0ny 2025-11-07 09:15:09 +00:00
parent 59328ad384
commit 64d100c252
19 changed files with 125 additions and 67 deletions

View file

@ -22,7 +22,7 @@
# desktop environment and display manager
../../modules/nixos/desktop/dm/sddm.nix
../../modules/nixos/desktop/de/kde.nix
../../modules/nixos/desktop/de/sway.nix
../../modules/nixos/desktop/de/hyprland.nix
# desktop programs
../../modules/nixos/programs/zsh.nix
@ -51,6 +51,13 @@
# Use unfree software
nixpkgs.config.allowUnfree = true;
zramSwap = {
enable = true;
memoryPercent = 10;
algorithm = "lz4";
priority = 100;
};
# Disable modem
networking.modemmanager.enable = false;
services.flatpak.enable = true;

View file

@ -22,6 +22,18 @@
description = "The default terminal emulator to run CLI softwares directly";
};
defaultExplorer = lib.mkOption {
type = lib.types.str;
default = "thunar";
description = "The default file explorer";
};
defaultTerminalExplorer = lib.mkOption {
type = lib.types.str;
default = "yazi";
description = "The default file explorer with TUI";
};
iconTheme = lib.mkOption {
type = lib.types.str;
default = "Breeze";

View file

@ -1,4 +1,7 @@
{pkgs, ...}: {
imports = [
./wayland-wm.nix
];
programs.hyprland = {
enable = true;
withUWSM = false;
@ -6,13 +9,10 @@
};
environment.systemPackages = with pkgs; [
caelestia-shell
mako
rofi
xdg-desktop-portal-wlr
# caelestia-shell
xdg-desktop-portal-hyprland
hyprpolkitagent
cliphist
grimblast
xdg-desktop-portal-wlr
];
}

View file

@ -1,15 +1,13 @@
{pkgs, ...}: {
imports = [
./wayland-wm.nix
];
programs.sway.enable = true;
programs.sway.xwayland.enable = true;
environment.systemPackages = with pkgs; [
swaybg
swayidle
dunst
rofi
rofimoji
rofi-power-menu
swaylock-effects
sway-contrib.grimshot
waybar
xdg-desktop-portal-wlr
];
}

View file

@ -4,5 +4,7 @@
defaultTerminal = "ghostty";
defaultTerminalRunner = "alacritty";
iconTheme = "Papirus";
defaultExplorer = "dolphin";
defaultTerminalExplorer = "yazi";
};
}

View file

@ -0,0 +1,8 @@
{pkgs, ...}: {
home.packages = with pkgs; [
grimblast
];
imports = [
./packages.nix
];
}

View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
imports = [
../../rofi.nix
./waybar.nix
];
home.packages = with pkgs; [
swayidle # Screensaver
dunst # Notification daemon
swaylock-effects # Screensaver
cliphist # Clipboard daemon
swww # Wallpaper daemon
pavucontrol
];
}

View file

@ -36,8 +36,10 @@ in {
home.packages = with pkgs; [
grim
slurp
grim
dunst
sway-contrib.grimshot
];
imports = [
./packages.nix
];
}

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
home.packages = with pkgs; [
waybar
pavucontrol
];
}

View file

@ -0,0 +1,7 @@
{pkgs, ...}: {
home.packages = with pkgs; [
rofi
rofimoji
rofi-power-menu
];
}

View file

@ -40,7 +40,7 @@
# Desktop Linux
./programs/desktop/plasma.nix
./programs/desktop/sway.nix
./programs/desktop/wayland-wm/hyprland.nix
# General Program config
../../modules/home/programs/eza.nix