home: sorting
This commit is contained in:
parent
629e79de88
commit
610f0eaf16
6 changed files with 37 additions and 23 deletions
|
@ -1,5 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../common/wm.nix
|
||||
../dunst
|
||||
../picom
|
||||
../polybar
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
home.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1"; # let electron applications use wayland
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wl-clipboard
|
||||
];
|
||||
}
|
11
users/guanranwang/home-manager/applications/common/wm.nix
Normal file
11
users/guanranwang/home-manager/applications/common/wm.nix
Normal 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
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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 = {
|
||||
|
|
|
@ -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"];
|
||||
|
|
|
@ -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} = {
|
||||
|
|
Loading…
Reference in a new issue