add hyprland

This commit is contained in:
Aditya 2024-04-11 11:38:00 +05:30
parent a588b30e9d
commit 1dcb329d97
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 18 additions and 6 deletions

View file

@ -8,6 +8,7 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/nixos/default.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
]; ];
# Set your time zone. # Set your time zone.
@ -16,12 +17,6 @@
# Debug infod # Debug infod
services.nixseparatedebuginfod.enable = true; services.nixseparatedebuginfod.enable = true;
# Enable hyprland
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
nix.settings.trusted-users = ["root" "user"]; nix.settings.trusted-users = ["root" "user"];
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.

View file

@ -8,6 +8,7 @@
./filesystem ./filesystem
./fonts ./fonts
./hardware ./hardware
./hyprland
./kernel ./kernel
./locale ./locale
./networking ./networking
@ -48,6 +49,7 @@
display-manager.enable = lib.mkDefault true; display-manager.enable = lib.mkDefault true;
editor = lib.mkDefault true; editor = lib.mkDefault true;
hardware = lib.mkDefault true; hardware = lib.mkDefault true;
hyprland = lib.mkDefault false;
networking = lib.mkDefault true; networking = lib.mkDefault true;
sound = lib.mkDefault true; sound = lib.mkDefault true;
ssh = lib.mkDefault true; ssh = lib.mkDefault true;

View file

@ -0,0 +1,15 @@
{
config,
lib,
...
}: {
options = {
hyprland.enable = lib.mkEnableOption "enable hyprland";
};
config = lib.mkIf config.hyprland.enable {
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
};
}