refactor: rewrite host specific home manager options

This commit is contained in:
Yorick Barbanneau 2024-05-02 01:27:48 +02:00
parent f63a44bfa0
commit 61685e8253
4 changed files with 27 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View file

@ -0,0 +1,25 @@
_:
{
## Specific host home manager configuration
wayland.windowManager.sway.config = {
input = {
"1:1:AT_Translated_Set_2_keyboard" = {
xkb_layout = "us";
xkb_variant = "altgr-intl";
};
"2:7:SynPS/2_Synaptics_TouchPad" = {
"tap" = "enable";
"accel_profile" = "adaptive";
"dwt" = "enable";
"pointer_accel" = "0.3";
};
};
output = {
"*" = {
bg = "${../files/wallpaper.png} center #000000";
};
};
};
}

View file

@ -55,8 +55,8 @@
../hosts/${hostname}/home-config.nix
../modules/home-manager/default.nix
] ++ lib.optional (
builtins.pathExists ../home-manager/hosts/${hostname}.nix
) ../home-manager/hosts/${hostname}.nix;
builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix
) ../hosts/${hostname}/includes/home-manager.nix;
};
};