feat: refactoring configuration with options to make it more modular

This commit is contained in:
Ryan Yin
2023-12-23 19:34:13 +08:00
parent 1f08d10ac7
commit b75b79057b
106 changed files with 289 additions and 279 deletions
+4 -5
View File
@@ -1,8 +1,7 @@
args:
with args;
with mylib;
with allSystemAttrs; let
nixosSystem = import ../lib/nixosSystem.nix;
base_args = {
inherit home-manager nixos-generators;
inherit nixpkgs; # or nixpkgs-unstable
@@ -24,9 +23,9 @@ in {
# take system images for idols
# https://github.com/nix-community/nixos-generators
packages."${x64_system}" = libAttrs.mergeAttrsList [
packages."${x64_system}" = attrs.mergeAttrsList [
(
libAttrs.listToAttrs
attrs.listToAttrs
[
"ai_i3"
"ai_hyprland"
@@ -36,7 +35,7 @@ in {
)
(
libAttrs.listToAttrs
attrs.listToAttrs
[
"aquamarine"
"ruby"