mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-10 03:13:36 +02:00
feat: replace i3wm with hyprland
This commit is contained in:
45
modules/hyprland.nix
Normal file
45
modules/hyprland.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{pkgs, ...}:
|
||||
|
||||
|
||||
{
|
||||
# i3wm: old and stable, only support X11
|
||||
# sway: compatible with i3wm, support Wayland. do not support Nvidia GPU officially.
|
||||
# hyprland: project starts from 2022, support Wayland, envolving fast, good looking, support Nvidia GPU.
|
||||
|
||||
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
desktopManager = {
|
||||
xterm.enable = false;
|
||||
};
|
||||
|
||||
displayManager = {
|
||||
defaultSession = "hyprland";
|
||||
lightdm.enable = false;
|
||||
gdm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = true;
|
||||
};
|
||||
|
||||
nvidiaPatches = true;
|
||||
};
|
||||
|
||||
|
||||
# thunar file manager(part of xfce) related options
|
||||
programs.thunar.plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||
services.tumbler.enable = true; # Thumbnail support for images
|
||||
|
||||
|
||||
}
|
||||
2
modules/nixpkgs-wayland.nix
Normal file
2
modules/nixpkgs-wayland.nix
Normal file
@@ -0,0 +1,2 @@
|
||||
{pkgs, config, ... }: {
|
||||
}
|
||||
@@ -34,7 +34,13 @@
|
||||
noto-fonts-emoji
|
||||
|
||||
# nerdfonts
|
||||
(nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; })
|
||||
(nerdfonts.override { fonts = [
|
||||
"FiraCode"
|
||||
"JetBrainsMono"
|
||||
"Iosevka"
|
||||
];})
|
||||
|
||||
|
||||
];
|
||||
|
||||
# use fonts specified by user rather than default ones
|
||||
@@ -81,9 +87,11 @@
|
||||
git
|
||||
sysstat
|
||||
lm_sensors # for `sensors` command
|
||||
|
||||
# minimal screen capture tool, used by i3 blur lock to take a screenshot
|
||||
# print screen key is also bound to this tool in i3 config
|
||||
scrot
|
||||
|
||||
neofetch
|
||||
xfce.thunar # xfce4's file manager
|
||||
nnn # terminal file manager
|
||||
@@ -92,6 +100,7 @@
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
||||
services.power-profiles-daemon = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user