chore: update flakes

This commit is contained in:
2025-08-15 21:33:22 +02:00
parent 3737a61fa5
commit 28c430568d
38 changed files with 93 additions and 119 deletions

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.boot;
cfg = config.mySystem.boot;
in {
options.system.boot = {
options.mySystem.boot = {
extraModprobeConfig = mkOption {
type = types.lines;
default = "";
@@ -51,7 +51,7 @@ in {
};
config.boot = {
initrd.kernelModules = lists.optional config.system.hardware.amdgpu.enable "amdgpu";
initrd.kernelModules = lists.optional config.mySystem.hardware.amdgpu.enable "amdgpu";
loader = {
systemd-boot.enable = cfg.systemd-boot;
efi.canTouchEfiVariables = cfg.systemd-boot;

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.boot.plymouth;
cfg = config.mySystem.boot.plymouth;
in {
options.system.boot.plymouth.enable = mkEnableOption "Enables Plymouth at system boot";
options.mySystem.boot.plymouth.enable = mkEnableOption "Enables Plymouth at system boot";
config.boot = mkIf cfg.enable {
plymouth = {
inherit (cfg) enable;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.boot.zram;
cfg = config.mySystem.boot.zram;
in {
options.system.boot.zram = {
options.mySystem.boot.zram = {
enable = mkEnableOption "Enable ZRAM";
memoryMax = mkOption {
type = types.int;

View File

@@ -4,7 +4,7 @@
...
}:
with lib; let
cfg = config.system.misc;
cfg = config.mySystem.misc;
in {
imports = [
./boot
@@ -19,7 +19,7 @@ in {
./users
];
options.system.misc = {
options.mySystem.misc = {
timezone = mkOption {
type = types.str;
default = "Europe/Paris";

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.desktop.hyprland;
cfg = config.mySystem.desktop.hyprland;
in {
options.system.desktop.hyprland.enable = mkEnableOption "Enables Hyprland";
options.mySystem.desktop.hyprland.enable = mkEnableOption "Enables Hyprland";
config.programs.hyprland = mkIf cfg.enable {
inherit (cfg) enable;
withUWSM = true;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.desktop.niri;
cfg = config.mySystem.desktop.niri;
in {
options.system.desktop.niri.enable = mkEnableOption "Enables Niri";
options.mySystem.desktop.niri.enable = mkEnableOption "Enables Niri";
config.programs.niri = mkIf cfg.enable {
inherit (cfg) enable;
};

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.desktop.xserver;
cfg = config.mySystem.desktop.xserver;
in {
options.system.desktop.xserver = {
options.mySystem.desktop.xserver = {
enable = mkEnableOption "Enables xserver";
de = mkOption {
type = types.enum ["gnome" "kde"];
@@ -35,7 +35,7 @@ in {
xserver = {
inherit (cfg) enable;
videoDrivers = lists.optional config.system.hardware.amdgpu.enable "amdgpu";
videoDrivers = lists.optional config.mySystem.hardware.amdgpu.enable "amdgpu";
xkb = {
layout = "fr";
variant = "bepo_afnor";

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.dev.docker;
cfg = config.mySystem.dev.docker;
in {
options.system.dev.docker = {
options.mySystem.dev.docker = {
enable = mkEnableOption "Enable Docker";
podman.enable = mkEnableOption "Enable Podman rather than Docker";
nvidia.enable = mkEnableOption "Activate Nvidia support";

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.hardware.amdgpu;
cfg = config.mySystem.hardware.amdgpu;
in {
options.system.hardware.amdgpu.enable = mkEnableOption "Enables an AMD GPU configuration";
options.mySystem.hardware.amdgpu.enable = mkEnableOption "Enables an AMD GPU configuration";
config = mkIf cfg.enable {
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.hardware.bluetooth;
cfg = config.mySystem.hardware.bluetooth;
in {
options.system.hardware.bluetooth.enable = mkEnableOption "Enable bluetooth";
options.mySystem.hardware.bluetooth.enable = mkEnableOption "Enable bluetooth";
config = mkIf cfg.enable {
hardware.bluetooth.enable = cfg.enable;
services.blueman.enable = cfg.enable;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.hardware.corne;
cfg = config.mySystem.hardware.corne;
in {
options.system.hardware.corne.allowHidAccess = mkEnableOption "Enable HID access to the corne keyboard";
options.mySystem.hardware.corne.allowHidAccess = mkEnableOption "Enable HID access to the corne keyboard";
config.services.udev = mkIf cfg.allowHidAccess {
extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.hardware.ibmTrackpoint;
cfg = config.mySystem.hardware.ibmTrackpoint;
in {
options.system.hardware.ibmTrackpoint.disable = mkEnableOption "Disable IBMs trackpoint on ThinkPad";
options.mySystem.hardware.ibmTrackpoint.disable = mkEnableOption "Disable IBMs trackpoint on ThinkPad";
config.services.udev = mkIf cfg.disable {
extraRules = ''
ATTRS{name}=="*TPPS/2 IBM TrackPoint", ENV{ID_INPUT}="", ENV{ID_INPUT_MOUSE}="", ENV{ID_INPUT_POINTINGSTICK}=""

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.hardware.opentablet;
cfg = config.mySystem.hardware.opentablet;
in {
options.system.hardware.opentablet.enable = mkEnableOption "Enables OpenTablet drivers";
options.mySystem.hardware.opentablet.enable = mkEnableOption "Enables OpenTablet drivers";
config.hardware.opentabletdriver = mkIf cfg.enable {
inherit (cfg) enable;
daemon.enable = true;

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.hardware.sound;
cfg = config.mySystem.hardware.sound;
in {
options.system.hardware.sound = {
options.mySystem.hardware.sound = {
enable = mkEnableOption "Whether to enable sounds with Pipewire";
scarlett.enable = mkEnableOption "Activate support for Scarlett sound card";
alsa = mkOption {

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.networking;
cfg = config.mySystem.networking;
in {
options.system.networking = with types; {
options.mySystem.networking = with types; {
hostname = mkOption {
type = str;
example = "gampo";

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.packages.appimage;
cfg = config.mySystem.packages.appimage;
in {
options.system.packages.appimage.enable = mkEnableOption "Enables AppImage support";
options.mySystem.packages.appimage.enable = mkEnableOption "Enables AppImage support";
config.programs.appimage = mkIf cfg.enable {
inherit (cfg) enable;
binfmt = true;

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.packages.flatpak;
cfg = config.mySystem.packages.flatpak;
in {
options.system.packages.flatpak = {
options.mySystem.packages.flatpak = {
enable = mkEnableOption "Enable Flatpak support";
builder.enable = mkEnableOption "Enable Flatpak builder";
};

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.packages.nix;
cfg = config.mySystem.packages.nix;
in {
options.system.packages.nix = {
options.mySystem.packages.nix = {
allowUnfree = mkEnableOption "Enable unfree packages";
disableSandbox = mkEnableOption "Disable Nix sandbox";
gc = {

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.programs.steam;
cfg = config.mySystem.programs.steam;
in {
options.system.programs.steam.enable = mkEnableOption "Enables Steam and Steam hardware";
options.mySystem.programs.steam.enable = mkEnableOption "Enables Steam and Steam hardware";
config = mkIf cfg.enable {
programs = {
steam = {

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.calibre;
cfg = config.mySystem.services.calibre;
in {
options.system.services.calibre = {
options.mySystem.services.calibre = {
enable = mkEnableOption "Enable Calibre Web";
user = mkOption {
type = types.string;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.endlessh;
cfg = config.mySystem.services.endlessh;
in {
options.system.services.endlessh = {
options.mySystem.services.endlessh = {
enable = mkEnableOption "Enables endlessh.";
port = mkOption {
type = types.port;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.fwupd;
cfg = config.mySystem.services.fwupd;
in {
options.system.services.fwupd.enable = mkEnableOption "Enable fwupd";
options.mySystem.services.fwupd.enable = mkEnableOption "Enable fwupd";
config.services.fwupd = mkIf cfg.enable {
inherit (cfg) enable;
};

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.jellyfin;
cfg = config.mySystem.services.jellyfin;
in {
options.system.services.jellyfin = {
options.mySystem.services.jellyfin = {
enable = mkEnableOption "Enable Jellyfin";
dataDir = mkOption {
type = types.string;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.plex;
cfg = config.mySystem.services.plex;
in {
options.system.services.plex = {
options.mySystem.services.plex = {
enable = mkEnableOption "Enable Plex";
group = mkOption {
type = types.string;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.printing;
cfg = config.mySystem.services.printing;
in {
options.system.services.printing.enable = mkEnableOption "Enable printing with CUPS";
options.mySystem.services.printing.enable = mkEnableOption "Enable printing with CUPS";
config.services.printing = mkIf cfg.enable {
inherit (cfg) enable;
};

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.ssh;
cfg = config.mySystem.services.ssh;
in {
options.system.services.ssh = {
options.mySystem.services.ssh = {
enable = mkEnableOption "Enables OpenSSH";
allowedUsers = mkOption {
type = types.listOf types.str;

View File

@@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.system.services.sunshine;
cfg = config.mySystem.services.sunshine;
in {
options.system.services.sunshine = {
options.mySystem.services.sunshine = {
enable = mkEnableOption "Enables Sunshine";
autostart = mkEnableOption "Enables autostart";
};
@@ -15,6 +15,6 @@ in {
autoStart = cfg.autostart;
capSysAdmin = true;
openFirewall = true;
settings.sunshine_name = config.system.networking.hostname;
settings.sunshine_name = config.mySystem.networking.hostname;
};
}

View File

@@ -5,9 +5,9 @@
...
}:
with lib; let
cfg = config.system.users;
cfg = config.mySystem.users;
in {
options.system.users = {
options.mySystem.users = {
root.disablePassword = mkEnableOption "Disables root password";
phundrak.enable = mkEnableOption "Enables users phundrak";
};