Each host have nix file for home manager
To put specific host parameters
This commit is contained in:
parent
286917b79a
commit
290d2f0c3d
4 changed files with 51 additions and 16 deletions
|
@ -11,26 +11,13 @@
|
||||||
down = "j";
|
down = "j";
|
||||||
up = "k";
|
up = "k";
|
||||||
right = "l";
|
right = "l";
|
||||||
|
bars= [];
|
||||||
input = {
|
input = {
|
||||||
"type:keyboard" = {
|
"1003:8258:MNT_Reform_Keyboard" = {
|
||||||
xkb_layout = "us";
|
xkb_layout = "us";
|
||||||
xkb_variant = "altgr-intl";
|
xkb_variant = "altgr-intl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
output = {
|
|
||||||
"Iiyama North America PL2792UH 1166310803122" = {
|
|
||||||
mode = "3840x2160@60Hz";
|
|
||||||
position = "0,0";
|
|
||||||
scale = "2";
|
|
||||||
};
|
|
||||||
"Iiyama North America PL2792UH 1176923201598" = {
|
|
||||||
mode = "3840x2160@60Hz";
|
|
||||||
position = "1920,0";
|
|
||||||
scale = "2";
|
|
||||||
transform = "90";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
bars= [];
|
|
||||||
keybindings = let
|
keybindings = let
|
||||||
mod = config.wayland.windowManager.sway.config.modifier;
|
mod = config.wayland.windowManager.sway.config.modifier;
|
||||||
inherit (config.wayland.windowManager.sway.config)
|
inherit (config.wayland.windowManager.sway.config)
|
||||||
|
|
30
home-manager/hosts/morty.nix
Normal file
30
home-manager/hosts/morty.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
_: {
|
||||||
|
home.file.".xkb/symbols/gpdwinmax".text = ''
|
||||||
|
default partial alphanumeric_keys
|
||||||
|
xkb_symbols "us-intl-winmax" {
|
||||||
|
name[group1] = "GPD Win Max us-inlt";
|
||||||
|
include "us(altgr-intl)"
|
||||||
|
key <TAB> { [ Multi_key ] };
|
||||||
|
key <CAPS> { [ Tab ] };
|
||||||
|
# include "level3(ralt_switch)"
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
|
||||||
|
wayland.windowManager.sway.config.input = {
|
||||||
|
"1:1:AT_Translated_Set_2_keyboard" = {
|
||||||
|
xkb_layout = "gpdwinmax";
|
||||||
|
};
|
||||||
|
"1046:928:Goodix_Capacitive_TouchScreen" = {
|
||||||
|
map_to_output = "eDP-1";
|
||||||
|
};
|
||||||
|
"2362:597:HTIX5288:00_093A:0255_Touchpad" = {
|
||||||
|
"tap" = "enable";
|
||||||
|
"pointer_accel" = "0.3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
wayland.windowManager.sway.config.output = {
|
||||||
|
"eDP-1" = {
|
||||||
|
transform = "90";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
15
home-manager/hosts/mrmeeseeks.nix
Normal file
15
home-manager/hosts/mrmeeseeks.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
_: {
|
||||||
|
wayland.windowManager.sway.config.output = {
|
||||||
|
"Iiyama North America PL2792UH 1166310803122" = {
|
||||||
|
mode = "3840x2160@60Hz";
|
||||||
|
position = "0,0";
|
||||||
|
scale = "2";
|
||||||
|
};
|
||||||
|
"Iiyama North America PL2792UH 1176923201598" = {
|
||||||
|
mode = "3840x2160@60Hz";
|
||||||
|
position = "1920,0";
|
||||||
|
scale = "2";
|
||||||
|
transform = "90";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -60,6 +60,7 @@
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit hostConfig;
|
inherit hostConfig;
|
||||||
|
inherit hostname;
|
||||||
};
|
};
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.stateVersion = stateVersion;
|
home.stateVersion = stateVersion;
|
||||||
|
@ -80,7 +81,9 @@
|
||||||
if hostConfig.gaming then
|
if hostConfig.gaming then
|
||||||
[ ../home-manager/lutris.nix ]
|
[ ../home-manager/lutris.nix ]
|
||||||
else []
|
else []
|
||||||
);
|
) ++ lib.optional (
|
||||||
|
builtins.pathExists ../home-manager/hosts/${hostname}.nix
|
||||||
|
) ../home-manager/hosts/${hostname}.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue