chore(flake): switch to new nixfmt-rfc-style option in pre-commit hooks

This commit is contained in:
Felix Schröter 2024-10-25 11:50:27 +02:00
parent 6a0f0bf76e
commit 83d8be3bf9
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 37 additions and 2 deletions

View file

@ -140,8 +140,7 @@ rec {
pre-commit = inputs.pre-commit-hooks.lib.${system}.run { pre-commit = inputs.pre-commit-hooks.lib.${system}.run {
src = ./.; src = ./.;
hooks = { hooks = {
nixfmt.enable = true; nixfmt-rfc-style.enable = true;
nixfmt.package = pkgs.nixfmt-rfc-style;
shellcheck.enable = true; shellcheck.enable = true;
}; };
}; };

27
home/configuradorfnmt.nix Normal file
View file

@ -0,0 +1,27 @@
{
config,
lib,
inputs,
...
}:
# Tool for Spanish digital certificates FNMT-RCM
{
imports = [ inputs.autofirma-nix.homeManagerModules.default ];
programs.configuradorfnmt.enable = true;
programs.configuradorfnmt.firefoxIntegration.profiles = {
private.enable = true;
};
# programs.mullvad-browser.profiles = lib.flip lib.mapAttrs
# config.programs.configuradorfnmt.firefoxIntegration.profiles (name:
# { enable, ... }: {
# settings = lib.mkIf enable {
# "network.protocol-handler.app.fnmtcr" =
# "${config.programs.configuradorfnmt.finalPackage}/bin/configuradorfnmt";
# "network.protocol-handler.warn-external.fnmtcr" = false;
# "network.protocol-handler.external.fnmtcr" = true;
# };
# });
}

9
services/open-webui.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.open-webui = {
enable = true;
package = pkgs.unstable.open-webui;
port = 11111;
};
}