mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-14 00:22:39 +02:00
feat: refactoring configuration with options to make it more modular
This commit is contained in:
+4
-5
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user