fixed formatting

This commit is contained in:
Fishandchips321 2026-02-28 20:03:22 +00:00
parent 7ec36e8a2b
commit d8dd32193d
15 changed files with 167 additions and 76 deletions

View file

@ -1,7 +1,7 @@
{config, pkgs, ...}:
{ config, pkgs, ... }:
{
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
boot.loader.grub.useOSProber = true;
}
}

View file

@ -1,4 +1,4 @@
{config, pkgs, ...}:
{ config, pkgs, ... }:
{
programs = {
@ -10,4 +10,4 @@
acpi
wget
];
}
}

View file

@ -1,28 +1,35 @@
{config, pkgs, lib, ...}:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.modules.graphical;
cfg = config.modules.graphical;
in
{
options = {
modules.graphical = {
options = {
modules.graphical = {
enable = lib.mkEnableOption "Enable the GUI";
waybar = lib.mkEnableOption "Enable waybar";
quickshell = lib.mkEnableOption "Enable quickshell";
};
};
};
config = lib.mkIf cfg.enable {
programs.niri.enable = true;
services.displayManager.ly.enable = true;
config = lib.mkIf cfg.enable {
programs.niri.enable = true;
services.displayManager.ly.enable = true;
environment.systemPackages = with pkgs; [
alacritty
wl-clipboard
]
++ lib.optional cfg.quickshell quickshell;
environment.systemPackages =
with pkgs;
[
alacritty
wl-clipboard
]
++ lib.optional cfg.quickshell quickshell;
programs.waybar.enable = lib.mkIf cfg.waybar true;
};
}
};
}

View file

@ -1,4 +1,9 @@
{config, pkgs, lib, ...}:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.modules.k3s;
@ -7,7 +12,5 @@ in
{
options.modules.k3s.enable = lib.mkEnableOption "Enable the k3s service";
config = lib.mkIf cfg.enable {
services.k3s.enable = true;
};
}
config = lib.mkIf cfg.enable { services.k3s.enable = true; };
}

View file

@ -1,11 +1,16 @@
{config, pkgs, lib, ...}:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.modules.kubernetes;
in
{
options.modules.kubernetes.enable = lib.mkEnableOption "Enable MiniKube and Kubectl";
options.modules.kubernetes.enable = lib.mkEnableOption "Enable MiniKube and Kubectl";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
@ -13,4 +18,4 @@ in
kubectl
];
};
}
}

View file

@ -1,5 +1,4 @@
_:
{
_: {
services.automatic-timezoned.enable = true;
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
@ -13,5 +12,5 @@ _:
LC_TELEPHONE = "en_GB.UTF-8";
LC_TIME = "en_GB.UTF-8";
};
console.keyMap = "uk";
}
console.keyMap = "uk";
}

View file

@ -1,5 +1,5 @@
{config, pkgs, ...}:
{ config, pkgs, ... }:
{
networking.networkmanager.enable = true;
}
}

View file

@ -1,4 +1,9 @@
{config, pkgs, lib, ...}:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.modules.prismLauncher;
@ -6,9 +11,5 @@ in
{
options.modules.prismLauncher.enable = lib.mkEnableOption "Enables the prism minecraft launcher";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
prismlauncher
];
};
}
config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ prismlauncher ]; };
}

View file

@ -1,4 +1,9 @@
{config, pkgs, lib, ...}:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.modules.yazi;
@ -28,4 +33,4 @@ in
imagemagick
];
};
}
}