This commit is contained in:
parent
c4a1822df0
commit
622ed856b1
2 changed files with 5 additions and 10 deletions
|
@ -1,22 +1,17 @@
|
|||
# FIXME: remove unneeded params and reformat
|
||||
self: {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) optionalString;
|
||||
inherit (lib) attrValues filter findFirst isAttrs hasAttr mkDefault mkIf mkOption types;
|
||||
inherit (self.inputs) home-manager nh nixd;
|
||||
inherit (lib) attrValues filter findFirst hasAttr isAttrs mkIf optionalString;
|
||||
|
||||
|
||||
inherit (self.inputs) nixpkgs;
|
||||
inherit (self.inputs) nixd nixpkgs;
|
||||
inherit (config.sops.secrets) access-token;
|
||||
|
||||
cfg = config.roles.base;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
# Minimize dowloads of indirect nixpkgs flakes
|
||||
nix = {
|
||||
package = let
|
||||
nixdInput =
|
||||
|
@ -31,6 +26,7 @@ in {
|
|||
in
|
||||
findFirst (x: x.version == nixdInput.version) {} nixVersions;
|
||||
|
||||
# Minimize dowloads of indirect nixpkgs flakes
|
||||
registry.nixpkgs.flake = nixpkgs;
|
||||
nixPath = ["nixpkgs=${nixpkgs}"];
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
# FIXME: remove unneeded params and format
|
||||
self: {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) attrValues filter findFirst isAttrs hasAttr mkDefault mkIf mkOption types;
|
||||
inherit (self.inputs) home-manager nh nixd;
|
||||
inherit (lib) attrValues mkDefault mkIf mkOption types;
|
||||
inherit (self.inputs) home-manager nh;
|
||||
|
||||
cfg = config.roles.base;
|
||||
in {
|
||||
|
|
Loading…
Reference in a new issue