This commit is contained in:
KoenDR06 2025-02-11 17:31:06 +01:00
parent d6bdbe514d
commit dd65a32a60
9 changed files with 115 additions and 68 deletions

View file

@ -31,8 +31,6 @@
services.displayManager.sddm.enable = true;
services.displayManager.sddm.autoNumlock = true;
services.displayManager.defaultSession = "plasma";
boot.loader.systemd-boot.enable = true;
boot.kernelModules = [ "snd-seq" "snd-rawmidi" ];
hardware.bluetooth.enable = true;
hardware.pulseaudio.enable = false;

View file

@ -22,9 +22,6 @@
networking.hostName = "solis";
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
virtualisation.docker.enable = true;
services.resolved.enable = true;

View file

@ -1,13 +0,0 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
environment.systemPackages = [
pkgs.refind
pkgs.efibootmgr
];
}

View file

@ -0,0 +1,25 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.grub;
in {
options = {
horseman.boot.grub = {
enable = mkEnableOption "Enables grub, the bootloader";
};
};
config = mkIf cfg.enable {
boot.loader.grub = {
enable = true;
device = "/dev/sda";
configurationLimit = 10;
};
};
}

View file

@ -0,0 +1,23 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.refind;
in {
options = {
horseman.boot.refind = {
enable = mkEnableOption "Enables rEFInd, the bootloader";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
refind
];
};
}

View file

@ -0,0 +1,25 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.systemd;
in {
options = {
horseman.boot.systemd = {
enable = mkEnableOption "Enables systemd, the bootloader";
};
};
config = mkIf cfg.enable {
boot.kernelModules = [ "snd-seq" "snd-rawmidi" ];
boot.loader.systemd-boot = {
enable = true;
configurationLimit = 10;
};
};
}

View file

@ -0,0 +1,21 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.xxxxxx.xxxxxx;
in {
options = {
horseman.xxxxxx.xxxxxx = {
enable = mkEnableOption "";
};
};
config = mkIf cfg.enable {
};
}

View file

@ -0,0 +1,21 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.terminal.neovim;
in {
options = {
horseman.terminal.neovim = {
enable = mkEnableOption "Neovim options";
};
};
config = mkIf cfg.enable {
};
}