home: sorting

This commit is contained in:
Guanran Wang 2023-12-19 03:06:50 +08:00
parent 629e79de88
commit 610f0eaf16
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
6 changed files with 37 additions and 23 deletions

View file

@ -1,5 +1,6 @@
{pkgs, ...}: {
imports = [
../common/wm.nix
../dunst
../picom
../polybar

View file

@ -0,0 +1,9 @@
{pkgs, ...}: {
home.sessionVariables = {
NIXOS_OZONE_WL = "1"; # let electron applications use wayland
};
home.packages = with pkgs; [
wl-clipboard
];
}

View file

@ -0,0 +1,11 @@
{pkgs, ...}: {
home.packages = with pkgs; [
pavucontrol
];
dconf.settings = {
"org/gnome/desktop/wm/preferences" = {
"button-layout" = "icon,appmenu:"; # remove csd window buttons
};
};
}

View file

@ -4,6 +4,8 @@
...
}: {
imports = [
../common/wayland.nix
../common/wm.nix
../cliphist
../dunst
../rofi
@ -17,7 +19,6 @@
home.sessionVariables = {
QT_IM_MODULE = lib.mkForce "wayland"; # use text-input-v2
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
NIXOS_OZONE_WL = "1"; # let electron applications use wayland
};
wayland.windowManager.hyprland = {

View file

@ -5,6 +5,8 @@
...
}: {
imports = [
../common/wayland.nix
../common/wm.nix
../cliphist
../dunst
../rofi
@ -16,30 +18,8 @@
home.sessionVariables = {
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
NIXOS_OZONE_WL = "1"; # let electron applications use wayland
};
dconf.settings = {
"org/gnome/desktop/wm/preferences" = {
"button-layout" = "icon,appmenu:"; # remove csd window buttons
};
};
home.packages = with pkgs; [
pamixer
brightnessctl
playerctl
pavucontrol
wl-clipboard
cliphist
grim
slurp
swappy
#mpvpaper
libnotify
jq
];
wayland.windowManager.sway = {
enable = true;
extraOptions = ["--unsupported-gpu" "-Dnoscanout"];

View file

@ -1,6 +1,18 @@
{pkgs, ...}: let
binPATH = ".local/bin";
in {
home.packages = with pkgs; [
pamixer
brightnessctl
grim
slurp
swappy
jq
#mpvpaper
#swww
libnotify
dunst
];
home.sessionPath = ["$HOME/${binPATH}"];
home.file = builtins.mapAttrs (_name: value: value // {executable = true;}) {
${binPATH} = {