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

View file

@ -5,6 +5,8 @@
... ...
}: { }: {
imports = [ imports = [
../common/wayland.nix
../common/wm.nix
../cliphist ../cliphist
../dunst ../dunst
../rofi ../rofi
@ -16,30 +18,8 @@
home.sessionVariables = { home.sessionVariables = {
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3 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 = { wayland.windowManager.sway = {
enable = true; enable = true;
extraOptions = ["--unsupported-gpu" "-Dnoscanout"]; extraOptions = ["--unsupported-gpu" "-Dnoscanout"];

View file

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