chore: fix formatting
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-11 05:23:04 -05:00
parent c4a1822df0
commit 622ed856b1
2 changed files with 5 additions and 10 deletions

View file

@ -1,22 +1,17 @@
# FIXME: remove unneeded params and reformat
self: { self: {
config, config,
lib, lib,
pkgs, pkgs,
... ...
}: let }: let
inherit (lib) optionalString; inherit (lib) attrValues filter findFirst hasAttr isAttrs mkIf optionalString;
inherit (lib) attrValues filter findFirst isAttrs hasAttr mkDefault mkIf mkOption types;
inherit (self.inputs) home-manager nh nixd;
inherit (self.inputs) nixd nixpkgs;
inherit (self.inputs) nixpkgs;
inherit (config.sops.secrets) access-token; inherit (config.sops.secrets) access-token;
cfg = config.roles.base; cfg = config.roles.base;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
# Minimize dowloads of indirect nixpkgs flakes
nix = { nix = {
package = let package = let
nixdInput = nixdInput =
@ -31,6 +26,7 @@ in {
in in
findFirst (x: x.version == nixdInput.version) {} nixVersions; findFirst (x: x.version == nixdInput.version) {} nixVersions;
# Minimize dowloads of indirect nixpkgs flakes
registry.nixpkgs.flake = nixpkgs; registry.nixpkgs.flake = nixpkgs;
nixPath = ["nixpkgs=${nixpkgs}"]; nixPath = ["nixpkgs=${nixpkgs}"];

View file

@ -1,12 +1,11 @@
# FIXME: remove unneeded params and format
self: { self: {
config, config,
lib, lib,
pkgs, pkgs,
... ...
}: let }: let
inherit (lib) attrValues filter findFirst isAttrs hasAttr mkDefault mkIf mkOption types; inherit (lib) attrValues mkDefault mkIf mkOption types;
inherit (self.inputs) home-manager nh nixd; inherit (self.inputs) home-manager nh;
cfg = config.roles.base; cfg = config.roles.base;
in { in {