From 6a309284a3bce94f607c5babc17e329eb15790f9 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Sat, 7 Sep 2024 19:36:23 -0500 Subject: [PATCH] organized flake.nix --- flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 33b4f83..e75e133 100644 --- a/flake.nix +++ b/flake.nix @@ -2,21 +2,30 @@ description = "Nixos config flake"; inputs = { + # base packages nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + # encrypt files that contain secreats that I would like to not encrypt sops-nix.url = "github:Mic92/sops-nix"; + # managment per user home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + # repo of hardware configs for prebuilt systems nixos-hardware.url = "github:NixOS/nixos-hardware/master"; }; outputs = { self, nixpkgs, nixos-hardware, ... }@inputs: let - forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" ]; + forEachSystem = nixpkgs.lib.genAttrs [ + "aarch64-darwin" + "aarch64-linux" + "x86_64-darwin" + "x86_64-linux" + ]; forEachPkgs = lambda: forEachSystem (system: lambda nixpkgs.legacyPackages.${system}); in {