fucking(refactored): everything
This commit is contained in:
4
nix/modules/hyprland/default.nix
Normal file
4
nix/modules/hyprland/default.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
_: {
|
||||
home = ./home.nix;
|
||||
nixos = ./nixos.nix;
|
||||
}
|
||||
@@ -1,6 +1,12 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
||||
cfg = config.modules.Hyprland;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -8,7 +14,10 @@ in
|
||||
./runner.nix
|
||||
./screenshot.nix
|
||||
];
|
||||
wayland.windowManager.hyprland = {
|
||||
options.modules.Hyprland = {
|
||||
enable = lib.mkEnableOption "Hyprland";
|
||||
};
|
||||
config.wayland.windowManager.hyprland = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
# set the flake package
|
||||
# settings = { };
|
||||
@@ -17,8 +26,8 @@ in
|
||||
portalPackage =
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
# todo, split this into its own module;
|
||||
programs.foot = {
|
||||
# TODO, split this into its own module;
|
||||
config.programs.foot = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
config = {
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.modules.Hyprland;
|
||||
in
|
||||
{
|
||||
options.modules.Hyprland = {
|
||||
enable = lib.mkEnableOption "Hyprland";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.xwayland.enable = true;
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user