Clean up legibility of flake.nix

This commit is contained in:
Greg Hellings
2023-05-11 09:32:05 -05:00
parent 157772fdca
commit c0417e9590
8 changed files with 96 additions and 152 deletions
+25
View File
@@ -0,0 +1,25 @@
{ agenix, darwin, nixstable, nixunstable, overlays, ... }:
let
mac = {
system ? "aarch64-darwin",
name,
channel ? nixunstable,
extraMods ? []
}:
let
nixpkgs = channel;
in darwin.lib.darwinSystem {
inherit system;
specialArgs = { inherit nixpkgs; };
modules = [
{ nixpkgs.overlays = overlays; }
agenix.nixosModule
../modules-all
../modules-darwin
./${name}
] ++ extraMods;
};
in {
"C02G48H8MD6R" = mac { system = "x86_64-darwin"; name = "work"; };
la23002 = mac { name = "ivr"; };
}
+5
View File
@@ -0,0 +1,5 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
];
}
+15
View File
@@ -0,0 +1,15 @@
{ pkgs, ... }:
{
#greg.pypackages = with pkgs; [
# datadog-api-client
# datadog
# dateutil
# ipython
# pyyaml
# responses
# ruamel-yaml
# typing-extensions
# virtualenv
#];
}