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

@ -2,9 +2,9 @@
{
imports = [
./cli
./desktop
./server
# ./cli
# ./desktop
# ./server
./system
];
}

View file

@ -2,14 +2,8 @@
{
imports = [
./chromium
./flatpak
./gamingKernel
./gnome
./hyprland
./jetbrainsToolbox
./kitty
./plasma
./vscode
];
}

View file

@ -2,12 +2,12 @@
with lib;
let
cfg = config.modules.system.plymouth;
cfg = config.modules.system.plasma;
in
{
options.modules.system.plymouth = {
options.modules.system.plasma = {
enable = mkEnableOption ''
Enable plymouth with my custom configurations
Enable plasma with my custom configurations
'';
};
config = mkIf cfg.enable {

11
modules/home/default.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
imports = [
./chromium
./flatpak
./jetbrainsToolbox
./kitty
./vscode
];
}

View file

@ -2,10 +2,10 @@
with lib;
let
cfg = config.modules.desktop.vscode;
cfg = config.modules.home.vscode;
in
{
options.modules.desktop.vscode = {
options.modules.home.vscode = {
enable = mkEnableOption ''
Enable vscode with my custom configurations
'';

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

@ -2,15 +2,15 @@
with lib;
let
cfg = config.modules.desktop.gamingKernel;
cfg = config.modules.system.gamingKernel;
in
{
options.modules.desktop.gamingKernel = {
options.modules.system.gamingKernel = {
enable = mkEnableOption ''
Enable gaming kernel with my custom configurations
'';
};
config = mkIf cfg.enable {
virtualisation.waydroid.enable = true;
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

@ -2,15 +2,15 @@
with lib;
let
cfg = config.modules.desktop.waydroid;
cfg = config.modules.system.waydroid;
in
{
options.modules.desktop.waydroid = {
options.modules.system.waydroid = {
enable = mkEnableOption ''
Enable waydroid with my custom configurations
'';
};
config = mkIf cfg.enable {
boot.kernelPackages = pkgs.linuxPackages_zen;
virtualisation.waydroid.enable = true;
};
}