CrOS/modules/users/crow/home.nix
TheWanderingCrow c426d8899f remove i3
2025-04-22 09:36:46 -04:00

56 lines
1.9 KiB
Nix

{
osConfig,
config,
inputs,
pkgs,
lib,
...
}: let
hyprMonitorConfig =
if osConfig.networking.hostName == "Parzival"
then ./configs/hypr/parzival-monitors.conf
else if osConfig.networking.hostName == "Parzival-Mobile" || osConfig.networking.hostName == "Parzival-Framework"
then ./configs/hypr/parzival_mobile-monitors.conf
else null;
swayMonitorConfig =
if osConfig.networking.hostName == "Parzival"
then ./configs/sway/parzival-monitors.conf
else if osConfig.networking.hostName == "Parzival-Mobile"
then ./configs/sway/parzival_mobile-monitors.conf
else if osConfig.networking.hostName == "Parzival-Framework"
then ./configs/sway/parzival_framework-monitors.conf
else null;
in {
imports = [
./configs/firefox.nix
./configs/waybar.nix
./configs/tmux.nix
./configs/git.nix
./configs/ssh.nix
./configs/zsh.nix
./configs/direnv.nix
];
home = {
username = "crow";
homeDirectory = "/home/crow";
stateVersion = "24.05";
# Hyprland
file.".config/hypr/hyprland.conf".source = ./configs/hypr/hyprland.conf;
file.".config/hypr/monitors.conf".source = lib.mkIf (hyprMonitorConfig != null) hyprMonitorConfig;
file.".config/hypr/hyprlock.conf".source = ./configs/hypr/hyprlock.conf;
# Sway
file.".config/sway/config".source = ./configs/sway/sway.conf;
file.".config/sway/monitors.conf".source = lib.mkIf (swayMonitorConfig != null) swayMonitorConfig;
file.".config/sway/background-1".source = ./configs/wallpapers/cyber_defiance.jpg;
file.".config/sway/background-2".source = ./configs/wallpapers/cyber_skyscrapers.jpg;
file.".config/sway/background-3".source = ./configs/wallpapers/kali_lol.jpg;
file.".config/hypr/lockscreen-1".source = ./configs/wallpapers/wrecked_ship.jpg;
};
xdg = {
configHome = "/home/crow/.config";
enable = true;
};
}