add emulation option

This commit is contained in:
willifan 2025-01-04 00:24:49 +01:00
parent 860af80a0a
commit 7a3c74421c
6 changed files with 12 additions and 2 deletions
hosts
Lillie
Puenktchen
modules/default/common

View file

@ -12,6 +12,7 @@
desktop = {
enable = true;
autostart.enable = false;
emulation.enable = true;
hyprland = {
hardware.Lillie = true;

View file

@ -10,6 +10,7 @@
desktop = {
enable = true;
emulation.enable = true;
hyprlock.enable = false;
hypridle.enable = false;

View file

@ -4,7 +4,6 @@
./applications.nix
./autostart.nix
./boot.nix
./emulation.nix
./keyboard.nix
./nfs-client.nix
./nix-ld.nix

View file

@ -4,6 +4,7 @@
imports = [
./ROG_Pugio_II_fixes.nix
./emulation.nix
./mangohud.nix
./minecraft.nix
./moonlight.nix

View file

@ -1,5 +1,5 @@
{ lib, config, pkgs, ... }:
lib.mkIf config.desktop.enable {
lib.mkIf config.desktop.emulation.enable {
environment.systemPackages = with pkgs; [
melonDS
dolphin-emu

View file

@ -2,14 +2,22 @@
{
options = {
desktop = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
emulation.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
windowManager = lib.mkOption {
default = "Hyprland";
type = lib.types.str;
};
};
server.enable = lib.mkOption {
default = false;