Begin stabilize system module

This commit is contained in:
Florian RICHER 2024-05-25 23:51:37 +02:00
parent edcbfaf379
commit 6163188786
24 changed files with 63 additions and 59 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,13 +1,15 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [
./bluetooth
./keymaps
./gamingKernel
# ./keymaps
./nvidia
./pipewire
./plymouth
./printing
./waydroid
# Common configuration
./system.nix

View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.gamingKernel;
in
{
options.modules.system.gamingKernel = {
enable = mkEnableOption ''
Enable gaming kernel with my custom configurations
'';
};
config = mkIf cfg.enable {
boot.kernelPackages = pkgs.linuxPackages_zen;
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
let
@ -15,9 +15,5 @@ in
type = types.string;
};
};
config = {
imports = [
./${cfg.layout}
];
};
config = (import ./${cfg.layout}.nix {});
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
# Configure keymap in X11
services.xserver = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
# Configure keymap in X11
services.xserver = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
# Set your time zone.

View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.waydroid;
in
{
options.modules.system.waydroid = {
enable = mkEnableOption ''
Enable waydroid with my custom configurations
'';
};
config = mkIf cfg.enable {
virtualisation.waydroid.enable = true;
};
}