add html documentation to graphical systems
Some checks reported errors
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #24153 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.pc-installer Hydra build #24156 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.not522 Hydra build #24154 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #24152 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #24151 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.not522-installer Hydra build #24155 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra checks.x86_64-linux.containers-default Hydra build #24150 of nixos-config:pr618:checks.x86_64-linux.containers-default

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-07 09:38:09 +01:00
parent 6370a21542
commit 4c68a511b0
7 changed files with 18 additions and 5 deletions

7
config/documentation.nix Normal file
View file

@ -0,0 +1,7 @@
{...}: {
documentation.nixos.includeAllModules = true;
home-manager.users.darkkirb.manual = {
html.enable = true;
json.enable = true;
};
}

View file

@ -3,5 +3,6 @@
isGraphical = true; isGraphical = true;
imports = [ imports = [
./kde ./kde
./documentation.nix
]; ];
} }

View file

@ -1,3 +1,5 @@
# Unlike other modules in this directory, this one is not enabled by default
# The default graphical configuration would enable this, the verbose configuration would not.
{config, ...}: { {config, ...}: {
boot = { boot = {
plymouth.enable = true; plymouth.enable = true;

View file

@ -15,7 +15,6 @@ with lib; {
disko.nixosModules.default disko.nixosModules.default
./hydra/build-server.nix ./hydra/build-server.nix
"${home-manager}/nixos" "${home-manager}/nixos"
nur.nixosModules.nur
]; ];
options.isGraphical = mkEnableOption "Whether or not this configuration is a graphical install"; options.isGraphical = mkEnableOption "Whether or not this configuration is a graphical install";
options.isInstaller = mkEnableOption "Whether or not this configuration is an installer and has no access to secrets"; options.isInstaller = mkEnableOption "Whether or not this configuration is an installer and has no access to secrets";

View file

@ -29,6 +29,7 @@ in
type = types.str; type = types.str;
description = "Job name to use"; description = "Job name to use";
default = "nixosConfigurations.${config.networking.hostName}"; default = "nixosConfigurations.${config.networking.hostName}";
defaultText = literalExpression ''"nixosConfigurations.''${config.networking.hostName}"'';
}; };
specialisation = mkOption { specialisation = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;

View file

@ -2,6 +2,7 @@
pkgs, pkgs,
config, config,
lib, lib,
nur,
... ...
}: let }: let
extensions = { extensions = {
@ -97,12 +98,16 @@
"scripting" "scripting"
]; ];
}; };
nur' = import nur {
nurpkgs = pkgs;
inherit pkgs;
};
in { in {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.default = { profiles.default = {
containersForce = true; containersForce = true;
extensions = map (v: config.nur.repos.rycee.firefox-addons.${v}) (lib.attrNames extensions); extensions = map (v: nur'.repos.rycee.firefox-addons.${v}) (lib.attrNames extensions);
settings = { settings = {
"extensions.autoDisableScopes" = 0; "extensions.autoDisableScopes" = 0;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
@ -135,7 +140,7 @@ in {
unaccepted = unaccepted =
lib.subtractLists lib.subtractLists
v v
config.nur.repos.rycee.firefox-addons.${k}.meta.mozPermissions; nur'.repos.rycee.firefox-addons.${k}.meta.mozPermissions;
in { in {
assertion = unaccepted == []; assertion = unaccepted == [];
message = '' message = ''

View file

@ -4,7 +4,6 @@
inputs', inputs',
config, config,
sops-nix, sops-nix,
nur,
... ...
}: { }: {
home-manager = { home-manager = {
@ -21,7 +20,6 @@
./common ./common
"${impermanence}/home-manager.nix" "${impermanence}/home-manager.nix"
sops-nix.homeManagerModules.sops sops-nix.homeManagerModules.sops
nur.nixosModules.nur
]; ];
}; };
} }