mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-09 23:49:43 +00:00
add hyprland
This commit is contained in:
parent
a588b30e9d
commit
1dcb329d97
3 changed files with 18 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
|||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../../modules/nixos/default.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
# Set your time zone.
|
||||
|
@ -16,12 +17,6 @@
|
|||
# Debug infod
|
||||
services.nixseparatedebuginfod.enable = true;
|
||||
|
||||
# Enable hyprland
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = ["root" "user"];
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
./filesystem
|
||||
./fonts
|
||||
./hardware
|
||||
./hyprland
|
||||
./kernel
|
||||
./locale
|
||||
./networking
|
||||
|
@ -48,6 +49,7 @@
|
|||
display-manager.enable = lib.mkDefault true;
|
||||
editor = lib.mkDefault true;
|
||||
hardware = lib.mkDefault true;
|
||||
hyprland = lib.mkDefault false;
|
||||
networking = lib.mkDefault true;
|
||||
sound = lib.mkDefault true;
|
||||
ssh = lib.mkDefault true;
|
||||
|
|
15
modules/nixos/hyprland/default.nix
Normal file
15
modules/nixos/hyprland/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue