reformat flake.nix
1 file changed, 36 insertions(+), 16 deletions(-)
changed files
M flake.nix → flake.nix
@@ -68,9 +68,11 @@ # See: # - https://pyproject-nix.github.io/uv2nix/FAQ.html pyprojectOverrides = final: prev: { toml-dataclass = prev.toml-dataclass.overrideAttrs (old: { - nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ final.resolveBuildSystem { - setuptools = [ ]; - }; + nativeBuildInputs = + (old.nativeBuildInputs or [ ]) + ++ final.resolveBuildSystem { + setuptools = [ ]; + }; }); };@@ -96,12 +98,14 @@ }; devShells = { default = pkgs.mkShell { - packages = (with pkgs; [ - uv - ]) ++ [ - python - ]; - inputsFrom = [ self.packages.${pkgs.system}.default ]; + packages = + (with pkgs; [ + uv + ]) + ++ [ + python + ]; + inputsFrom = [ self.packages.${system}.default ]; env = { # Prevent uv from managing Python downloads@@ -119,15 +123,27 @@ unset PYTHONPATH ''; }; }; - }) // { + } + ) + // { nixosModules = { mycal = - { config, lib, pkgs, ... }: + { + config, + lib, + pkgs, + ... + }: let cfg = config.services.mycal; settingsFormat = pkgs.formats.toml { }; - inherit (lib) mkEnableOption mkOption mkIf types; + inherit (lib) + mkEnableOption + mkOption + mkIf + types + ; in { options.services.mycal = {@@ -197,9 +213,11 @@ See https://git.alin.ovh/mycal/blob/main/config.toml.example ''; - type = types.listOf (types.submodule { - freeformType = settingsFormat.type; - }); + type = types.listOf ( + types.submodule { + freeformType = settingsFormat.type; + } + ); }; email = mkOption {@@ -238,7 +256,9 @@ StateDirectory = "mycal"; RuntimeDirectory = "mycal"; BindReadOnlyPaths = [ - "${config.environment.etc."ssl/certs/ca-certificates.crt".source}:/etc/ssl/certs/ca-certificates.crt" + "${ + config.environment.etc."ssl/certs/ca-certificates.crt".source + }:/etc/ssl/certs/ca-certificates.crt" builtins.storeDir "-/etc/resolv.conf" "-/etc/nsswitch.conf"