nixos/hosts/Ronin/home.nix

79 lines
1.7 KiB
Nix

{
pkgs,
shellConfig,
...
}: let
username = "elitherl";
homeDirectory = "/home/${username}";
in {
imports = [
shellConfig
../../home/git/work.nix
../../home/ssh/work.nix
../../home/tui
../../home/hyprland
../../home/firefox/work.nix
../../home/wezterm
];
home = {
inherit username homeDirectory;
stateVersion = "22.11";
packages = with pkgs; [
thunderbird
openfortivpn
nomachine-client
teams-for-linux
zoom-us
];
};
programs = {
home-manager.enable = true;
neovim.package = pkgs.neovim-nightly;
};
services.kanshi = {
enable = true;
systemdTarget = "hyprland-session.target";
profiles = let
restart_hyprpaper = "pkill hyprpaper; ${pkgs.hyprland}/bin/hyprctl dispatch exec hyprpaper";
in {
undocked = {
outputs = [
{
criteria = "eDP-1";
status = "enable";
}
];
exec = [
restart_hyprpaper
"rfkill unblock wlan"
];
};
docked = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "Iiyama North America PLB2403WS 0574281251316";
status = "enable";
}
{
criteria = "Dell Inc. DELL U2417H 5K9YD872FY1L";
status = "enable";
}
];
exec = [
restart_hyprpaper
"rfkill block wlan"
];
};
};
};
xdg.configFile."hypr/display.conf".text = ''
monitor=eDP-1,preferred,auto,1.5
monitor=desc:Iiyama North America PLB2403WS 0574281251316,preferred,0x185,1
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,preferred,1920x0,1,transform,1
'';
}