- Create home/hyprland/default.nix module with configurable options - Add support for monitors, extraEnv, streamcontroller, lockhelper, grimblast, wacom - Add workspace strategy (numbered vs named per monitor) - Update magicman config to use new module with minimal config - Update gunter config to use new module with all customizations - Remove deprecated Hyprland config files - Significantly reduce duplication between host configs - Both configurations build successfully
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
user,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = true;
|
|
extraSpecialArgs = {
|
|
inherit pkgs inputs user;
|
|
};
|
|
users.${user} =
|
|
{ pkgs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
../../sops
|
|
../../editor/neovim
|
|
../../programs/firefox
|
|
../../programs/tmux
|
|
../../programs/dunst
|
|
../../programs/kitty
|
|
../../programs/rofi
|
|
../../programs/obs-studio
|
|
../../programs/vscode
|
|
../../programs/pywal
|
|
../../scripts
|
|
../../scripts/batlvl.nix
|
|
../../zsh
|
|
../../packages
|
|
../../hyprland
|
|
../../ssh
|
|
];
|
|
firefox.enable = true;
|
|
tmux.enable = true;
|
|
hyprland.enable = true;
|
|
hyprland.monitors = [ "eDP-1,1920x1080@60,0x0,1" ];
|
|
home = {
|
|
username = "${user}";
|
|
homeDirectory = "/home/${user}";
|
|
stateVersion = "23.11";
|
|
};
|
|
torjus.home.obs.enable = true;
|
|
programs.home-manager.enable = true;
|
|
};
|
|
};
|
|
}
|