remove inputs

This commit is contained in:
Noah Masur
2025-02-08 20:14:54 -05:00
parent 59a52dc033
commit c7f20e958b
44 changed files with 290 additions and 243 deletions

View File

@ -0,0 +1,29 @@
{ config, lib, ... }:
{
options = {
allowUnfreePackages = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "List of unfree packages to allow.";
default = [ ];
};
allowInsecurePackages = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "List of insecure packages to allow.";
default = [ ];
};
};
config = {
# Allow specified unfree packages (identified elsewhere)
# Retrieves package object based on string name
nixpkgs.config.allowUnfreePredicate =
pkg: builtins.elem (lib.getName pkg) config.allowUnfreePackages;
# Allow specified insecure packages (identified elsewhere)
nixpkgs.config.permittedInsecurePackages = config.allowInsecurePackages;
};
}

View File

@ -14,7 +14,7 @@ in
options.nmasur.presets.programs.dwarf-fortress.enable = lib.mkEnableOption "Dwarf Fortress";
config = lib.mkIf cfg.enable {
unfreePackages = [
allowUnfreePackages = [
"dwarf-fortress"
"phoebus-theme"
];

View File

@ -15,7 +15,7 @@ in
config = lib.mkIf cfg.enable {
hardware.steam-hardware.enable = true;
unfreePackages = [
allowUnfreePackages = [
"steam"
"steam-original"
"steamcmd"

View File

@ -88,7 +88,7 @@ in
# Allows shared group to read/write the sabnzbd directory
users.users.sabnzbd.homeMode = "0770";
unfreePackages = [ "unrar" ]; # Required as a dependency for sabnzbd
allowUnfreePackages = [ "unrar" ]; # Required as a dependency for sabnzbd
# Requires updating the base_url config value in each service
# If you try to rewrite the URL, the service won't redirect properly

View File

@ -20,7 +20,7 @@ in
config = lib.mkIf cfg.enable {
unfreePackages = [ "minecraft-server" ];
allowUnfreePackages = [ "minecraft-server" ];
services.minecraft-server = {
eula = true;

View File

@ -14,7 +14,7 @@ in
config = lib.mkIf cfg.enable {
unfreePackages = [ "n8n" ];
allowUnfreePackages = [ "n8n" ];
services.n8n = {
webhookUrl = "https://${hostnames.n8n}";