summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systems/darwin.nix1
-rw-r--r--systems/nixinate.nix4
-rw-r--r--systems/nixos.nix1
-rw-r--r--users/default.nix2
4 files changed, 8 insertions, 0 deletions
diff --git a/systems/darwin.nix b/systems/darwin.nix
index a1b91f3..ec67d09 100644
--- a/systems/darwin.nix
+++ b/systems/darwin.nix
@@ -3,6 +3,7 @@
flake = {
darwinConfigurations =
let
+ # see ./lib/builders.nix
inherit (self.lib) darwinSystem;
in
{
diff --git a/systems/nixinate.nix b/systems/nixinate.nix
index 0c54e9c..b67cea3 100644
--- a/systems/nixinate.nix
+++ b/systems/nixinate.nix
@@ -3,6 +3,10 @@
perSystem =
{ system, ... }:
{
+ # as opposed to having system specific outputs like `apps.nixinate.mySystem`
+ # we can instantiate this for each system and grab it's final attribute, `nixinate`
+ #
+ # this lets deployments be as easy as `nix run .#mySystem`
apps = (inputs.nixinate.nixinate.${system} self).nixinate;
};
}
diff --git a/systems/nixos.nix b/systems/nixos.nix
index 2cd9b31..b2a973e 100644
--- a/systems/nixos.nix
+++ b/systems/nixos.nix
@@ -3,6 +3,7 @@
flake = {
nixosConfigurations =
let
+ # see ./lib/builders.nix
inherit (self.lib) nixosSystem nixosSystemStable;
in
{
diff --git a/users/default.nix b/users/default.nix
index 671ce14..6ead5c3 100644
--- a/users/default.nix
+++ b/users/default.nix
@@ -2,7 +2,9 @@
{
flake.homeConfigurations =
let
+ # see ./lib/builders.nix
inherit (self.lib) homeManagerConfiguration;
+
pkgsFor = system: withSystem system ({ pkgs, ... }: pkgs);
in
{