Files
nixos/Droidnix/generated/modules/traveldroid/desktop/hyprland.nix
T
2026-04-29 08:40:16 +02:00

35 lines
975 B
Nix

# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
{ lib, config, pkgs, repoPath, home-manager, inputs, ... }:
let
username = config.defaultUser or "henrov";
assetPath = "${repoPath}/generated/.config/hypr";
hyprlandPkg =
pkgs.hyprland or
pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default;
in
{
# Install Hyprland systemwide
programs.hyprland.enable = true;
programs.hyprland.withUWSM = true;
programs.hyprland.package = hyprlandPkg;
environment.systemPackages = [ hyprlandPkg ];
# Home Manager user configuration
home-manager.users = {
${username} = {
home.activation.MakeHyprMutable = {
after = [ "writeBoundary" ];
before = [];
data = ''
rm -f $HOME/.config/hypr/*
cp ${assetPath}/* $HOME/.config/hypr/
chmod u+w $HOME/.config/hypr/*
'';
};
};
};
}