Added nixos configs
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
moduleName = "hm-hyprland";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./bindings.nix
|
||||
];
|
||||
|
||||
# Home Manager Hyprland configuration (user-level)
|
||||
# This installs Hyprland in the user environment and can manage config under ~/.config/hypr/
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# You can optionally set package = pkgs.hyprland; if you want a specific one.
|
||||
};
|
||||
|
||||
# Put your hyprland.conf in the standard Hyprland location:
|
||||
xdg.enable = true;
|
||||
xdg.configFile."hypr/hyprland.conf".source = ./conf/hyprland.conf;
|
||||
|
||||
# Session variables that *belong in Home Manager* (user session scope)
|
||||
home.sessionVariables = {
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
XDG_SESSION_DESKTOP = "Hyprland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
};
|
||||
|
||||
# Marker file
|
||||
home.file.".nixlog/loaded.${moduleName}-module-loaded".text = "loaded\n";
|
||||
}
|
||||
Reference in New Issue
Block a user