Add docsga

This commit is contained in:
DashieTM 2024-08-27 23:51:52 +02:00
parent a50f970eda
commit 2195c7a850
10 changed files with 98 additions and 17 deletions

View file

@ -93,14 +93,14 @@
};
};
kernel = lib.mkOption {
default = pkgs.linuxPackages_latest;
example = pkgs.linuxPackages_xanmod_latest;
type = with lib.types; nullOr attrs;
description = ''
kernel to be used
'';
};
#kernel = lib.mkOption {
# default = pkgs.linuxPackages_latest;
# example = pkgs.linuxPackages_xanmod_latest;
# type = with lib.types; nullOr attrs;
# description = ''
# kernel to be used
# '';
#};
hostname = lib.mkOption {
default = "nixos";
@ -203,9 +203,9 @@
config =
{
conf.kernel = lib.mkIf (
config.mods.gaming.enable && config.mods.gaming.kernel
) pkgs.linuxPackages_xanmod_latest;
# conf.kernel = lib.mkIf (
# config.mods.gaming.enable && config.mods.gaming.kernel
# ) pkgs.linuxPackages_xanmod_latest;
}
// (lib.optionalAttrs (options ? system.stateVersion) {
system.stateVersion = config.conf.systemStateVersion;

View file

@ -20,7 +20,7 @@
additional_packages = lib.mkOption {
default = [ ];
example = [ pkgs.openssl ];
type = with lib.types; listOf packages;
type = with lib.types; listOf package;
description = ''
Additional packages to install.
Note that these are installed even if base packages is disabled, e.g. you can also use this as the only packages to install.

View file

@ -22,12 +22,12 @@
ssh_config = lib.mkOption {
default = ''
Host github.com
${if (config.sops.secrets ? hub.path) then "IdentityFile ${config.sops.secrets.hub.path}" else ""}
${if (config ? sops.secrets ? hub.path) then "IdentityFile ${config.sops.secrets.hub.path}" else ""}
Host gitlab.com
${if (config.sops.secrets ? lab.path) then "IdentityFile ${config.sops.secrets.lab.path}" else ""}
${if (config ? sops.secrets ? lab.path) then "IdentityFile ${config.sops.secrets.lab.path}" else ""}
Host dashie.org
${
if (config.sops.secrets ? dashie.path) then
if (config ? sops.secrets ? dashie.path) then
"IdentityFile ${config.sops.secrets.dashie.path}"
else
""