organized flake.nix

This commit is contained in:
Leyla Becker 2024-09-07 19:36:23 -05:00
parent a0de710c44
commit 3530ee07d7

View file

@ -2,21 +2,30 @@
description = "Nixos config flake"; description = "Nixos config flake";
inputs = { inputs = {
# base packages
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 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"; sops-nix.url = "github:Mic92/sops-nix";
# managment per user
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# repo of hardware configs for prebuilt systems
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
}; };
outputs = { self, nixpkgs, nixos-hardware, ... }@inputs: outputs = { self, nixpkgs, nixos-hardware, ... }@inputs:
let 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}); forEachPkgs = lambda: forEachSystem (system: lambda nixpkgs.legacyPackages.${system});
in in
{ {