even more changes

This commit is contained in:
Charlie Root 2024-08-16 22:46:01 +02:00
commit 1d2a73c25a
14 changed files with 120 additions and 108 deletions

12
modules/default.nix Normal file
View file

@ -0,0 +1,12 @@
_: {
imports = [
./programs
./other
./services
./wms
./runners
./style
./options
./system
];
}

View file

@ -0,0 +1,15 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkOption mkEnableOption;
inherit (lib.types) str package int;
in {
options.modules.system.hardware = {
nvidia = {
enable = mkEnableOption "Nvidia Nvidia graphics drivers";
};
};
}

View file

@ -38,6 +38,8 @@ in {
# monitor configuration
./monitors.nix
./hardware.nix
];
config = {
warnings = mkMerge [
@ -92,12 +94,13 @@ in {
video = {
enable = mkEnableOption "video drivers and programs that require a graphical user interface";
nvidia = mkOption "Nvidia graphics drivers";
amd = mkOption "AMD graphics drivers";
nvidia = mkEnableOption "Nvidia graphics drivers";
amd = mkEnableOption "AMD graphics drivers";
};
bluetooth = {
hardware.bluetooth = {
enable = mkEnableOption "bluetooth modules, drivers and configuration program(s)";
powerOnBoot = mkEnableOption "Enable bluetooth on boot";
};
# should the device enable printing module and try to load common printer modules

View file

@ -3,14 +3,6 @@ _: {
./cli
./gui
./tui
./other
./services
./editors
./wms
./runners
./style
./options
./system/nix/module.nix
./system
];
}

View file

@ -1,6 +1,5 @@
_: {
imports = [
./stylix.nix
./quickshell
./qt.nix
./gtk.nix

View file

@ -6,6 +6,7 @@
}: let
inherit (lib.types) optional;
inherit (config.modules.system.fonts) extraFonts;
inherit (config.modules.other.system) username;
in {
# A (somewhat) sane list of default fonts to be installed.
fonts.packages = with pkgs;
@ -21,12 +22,14 @@ in {
]
++ optional (extraFonts != null) extraFonts;
# this fixes emoji stuff
fontconfig = {
defaultFonts = {
monospace = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
sansSerif = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
serif = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
emoji = ["Noto Color Emoji"];
home-manager.users.${username} = {
fontconfig = {
defaultFonts = {
monospace = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
sansSerif = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
serif = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
emoji = ["Noto Color Emoji"];
};
};
};
}

View file

@ -0,0 +1 @@
_: {imports = [./grub-boot.nix];}

View file

@ -1,5 +1,9 @@
_: {
imports = [
./keyboard.nix
./boot
./hardware
./nix/module.nix
./os/networking/module.nix
];
}

View file

@ -2,12 +2,13 @@
config,
lib,
pkgs,
...
}: let
cfg = config.modules.system.hardware.bluetooth;
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
in {
confg = mkIf cfg.enable {
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = mkIf cfg.powerOnBoot true;

View file

@ -0,0 +1 @@
_: {imports = [./bluetooth.nix ./graphics.nix];}

View file

@ -0,0 +1 @@
_: {imports = [./pipewire];}