converted to having an enable for desktop envs
This commit is contained in:
parent
00554ce703
commit
51634b115a
2 changed files with 85 additions and 55 deletions
|
|
@ -1,5 +1,16 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.speccon18.desktop.gnome;
|
||||||
|
in {
|
||||||
|
options.speccon18.desktop.gnome = {
|
||||||
|
enable = mkEnableOption "enables specs custom gnome setup";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
# Gnome extensions
|
# Gnome extensions
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnomeExtensions.dock-from-dash
|
gnomeExtensions.dock-from-dash
|
||||||
|
|
@ -41,5 +52,5 @@
|
||||||
"text/markdown" = "hx";
|
"text/markdown" = "hx";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,16 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.speccon18.desktop.hyprland;
|
||||||
|
in {
|
||||||
|
options.speccon18.desktop.hyprland = {
|
||||||
|
enable = mkEnableOption "enables specs custom hyprland setup";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nvidiaPatches = true;
|
nvidiaPatches = true;
|
||||||
|
|
@ -24,8 +35,16 @@
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-hyprland
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
opengl.enable = true;
|
opengl.enable = true;
|
||||||
nvidia.modesetting.enable = true;
|
nvidia.modesetting.enable = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue