mv hyprland to module
This commit is contained in:
parent
873fa8703d
commit
8eed8cf9f1
@ -10,9 +10,10 @@
|
|||||||
networking.hostName = "desktop1";
|
networking.hostName = "desktop1";
|
||||||
|
|
||||||
smayzy = {
|
smayzy = {
|
||||||
|
desktop.enable = true;
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
virt.enable = true;
|
virt.enable = true;
|
||||||
desktop.enable = true;
|
hyprland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@ -38,23 +39,7 @@
|
|||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
services.displayManager.sddm.wayland.enable = true;
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.portal.enable = true;
|
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
mako
|
|
||||||
wofi
|
|
||||||
wlogout
|
|
||||||
waybar
|
|
||||||
wl-clipboard
|
|
||||||
libnotify
|
|
||||||
hyprpaper
|
|
||||||
hyprpolkitagent
|
|
||||||
webcord
|
webcord
|
||||||
pavucontrol
|
pavucontrol
|
||||||
cliphist
|
cliphist
|
||||||
|
|||||||
6
modules/nix/WM/default.nix
Normal file
6
modules/nix/WM/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hyprland.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
32
modules/nix/WM/hyprland.nix
Normal file
32
modules/nix/WM/hyprland.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.hyprland.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.hyprland.enable {
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.portal.enable = true;
|
||||||
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
mako
|
||||||
|
wofi
|
||||||
|
wlogout
|
||||||
|
waybar
|
||||||
|
wl-clipboard
|
||||||
|
libnotify
|
||||||
|
hyprpaper
|
||||||
|
hyprpolkitagent
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -10,6 +10,7 @@
|
|||||||
./shell
|
./shell
|
||||||
./rice
|
./rice
|
||||||
./groups
|
./groups
|
||||||
|
./WM
|
||||||
];
|
];
|
||||||
|
|
||||||
# Timzone and locales (same for all machines so I put it here)
|
# Timzone and locales (same for all machines so I put it here)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user