2023-07-25 16:14:50 +01:00
|
|
|
{ pkgs, shellConfig, ... }:
|
|
|
|
let
|
2023-07-16 17:35:36 +01:00
|
|
|
username = "elitherl";
|
|
|
|
homeDirectory = "/home/${username}";
|
2023-07-20 11:59:08 +01:00
|
|
|
monitors = {
|
2023-07-28 07:00:26 +01:00
|
|
|
eDP-1 = "preferred,auto,1.25";
|
2023-07-20 11:59:08 +01:00
|
|
|
Iiyama = "preferred,0x185,1";
|
|
|
|
Dell = "preferred,1920x0,1,transform,1";
|
2023-07-28 07:00:26 +01:00
|
|
|
Acer = "highrr,auto,1";
|
2023-07-20 11:59:08 +01:00
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
in {
|
2023-07-12 16:43:18 +01:00
|
|
|
imports = [
|
2023-07-19 08:55:53 +01:00
|
|
|
shellConfig
|
2023-07-16 17:35:36 +01:00
|
|
|
../../home/git/work.nix
|
|
|
|
../../home/ssh/work.nix
|
2023-07-16 17:48:23 +01:00
|
|
|
../../home/tui
|
|
|
|
../../home/hyprland
|
2023-07-26 15:45:24 +01:00
|
|
|
../../home/emacs
|
2023-07-16 17:35:36 +01:00
|
|
|
../../home/wezterm
|
2023-07-12 16:43:18 +01:00
|
|
|
];
|
|
|
|
home = {
|
2023-07-16 17:35:36 +01:00
|
|
|
inherit username homeDirectory;
|
2023-07-12 16:43:18 +01:00
|
|
|
stateVersion = "22.11";
|
2023-07-25 16:14:50 +01:00
|
|
|
packages = with pkgs; [ openfortivpn nomachine-client ];
|
2023-07-12 16:43:18 +01:00
|
|
|
};
|
2023-07-24 13:27:05 +01:00
|
|
|
programs.home-manager.enable = true;
|
2023-07-25 16:14:50 +01:00
|
|
|
programs.chromium.enable = true;
|
2023-07-20 11:59:08 +01:00
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
systemdTarget = "hyprland-session.target";
|
|
|
|
profiles = {
|
2023-07-28 07:00:26 +01:00
|
|
|
default.outputs = [{
|
2023-07-25 16:14:50 +01:00
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "enable";
|
|
|
|
}];
|
2023-07-28 07:00:26 +01:00
|
|
|
workDock.outputs = [
|
2023-07-20 11:59:08 +01:00
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "disable";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Iiyama North America PLB2403WS 0574281251316";
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Dell Inc. DELL U2417H 5K9YD872FY1L";
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
];
|
2023-07-28 07:00:26 +01:00
|
|
|
homeDock.outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "disable";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Acer Technologies ED270R TJMEE0043W01";
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
];
|
2023-07-20 11:59:08 +01:00
|
|
|
};
|
|
|
|
};
|
2023-07-12 16:43:18 +01:00
|
|
|
xdg.configFile."hypr/display.conf".text = ''
|
2023-07-20 11:59:08 +01:00
|
|
|
monitor=eDP-1,${monitors.eDP-1}
|
|
|
|
monitor=desc:Iiyama North America PLB2403WS 0574281251316,${monitors.Iiyama}
|
|
|
|
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,${monitors.Dell}
|
2023-07-28 07:00:26 +01:00
|
|
|
monitor=desc:Acer Technologies ED270R TJMEE0043W01,${monitors.Acer}
|
2023-07-20 11:59:08 +01:00
|
|
|
|
|
|
|
bindl=,switch:Lid Switch,exec,rfkill unblock wlan
|
|
|
|
bindl=,switch:Lid Switch,exec,pkill -9 kanshi
|
2023-07-21 17:15:39 +01:00
|
|
|
bindl=,switch:Lid Switch,exec,pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper
|
2023-07-12 16:43:18 +01:00
|
|
|
'';
|
|
|
|
}
|