refactor: via statix

This commit is contained in:
Ryan Yin
2023-12-22 12:07:37 +08:00
parent cddd8101c7
commit a1b5572eea
13 changed files with 70 additions and 62 deletions

View File

@@ -1,7 +1,7 @@
args:
with args;
with allSystemAttrs; let
lib = nixpkgs.lib;
inherit (nixpkgs) lib;
colmenaSystem = import ../lib/colmenaSystem.nix;
# x86_64 related
x64_base_args = {

View File

@@ -1,7 +1,7 @@
args:
with args;
with allSystemAttrs; let
lib = nixpkgs.lib;
inherit (nixpkgs) lib;
macosSystem = import ../lib/macosSystem.nix;
base_args = {
inherit nix-darwin home-manager;

View File

@@ -3,7 +3,7 @@
inputs,
constants,
}: let
lib = inputs.nixpkgs.lib;
inherit (inputs.nixpkgs) lib;
vars = import ./vars.nix;
specialArgsForSystem = system:
@@ -20,7 +20,7 @@
allSystemSpecialArgs =
lib.attrsets.mapAttrs
(name: value: specialArgsForSystem value)
(name: specialArgsForSystem)
constants.allSystemAttrs;
args = lib.attrsets.mergeAttrsList [

View File

@@ -1,7 +1,7 @@
args:
with args;
with allSystemAttrs; let
lib = nixpkgs.lib;
inherit (nixpkgs) lib;
nixosSystem = import ../lib/nixosSystem.nix;
base_args = {