summaryrefslogtreecommitdiff
path: root/modules/examples
diff options
context:
space:
mode:
Diffstat (limited to 'modules/examples')
-rw-r--r--modules/examples/flake/flake.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/examples/flake/flake.nix b/modules/examples/flake/flake.nix
index 0ada852..bacdcf5 100644
--- a/modules/examples/flake/flake.nix
+++ b/modules/examples/flake/flake.nix
@@ -1,9 +1,9 @@
{
- description = "Example darwin system flake";
+ description = "Example Darwin system flake";
inputs = {
- nixpkgs.url = "github:nixos/nixpkgs";
- darwin.url = "github:lnl7/nix-darwin";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
};
@@ -30,6 +30,9 @@
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
+
+ # The platform the configuration will be used on.
+ nixpkgs.hostPlatform = "x86_64-darwin";
};
in
{
@@ -37,7 +40,6 @@
# $ darwin-rebuild build --flake .#simple
darwinConfigurations."simple" = darwin.lib.darwinSystem {
modules = [ configuration ];
- system = "x86_64-darwin";
};
# Expose the package set, including overlays, for convenience.