summaryrefslogtreecommitdiff
path: root/modules/examples/flake/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/examples/flake/flake.nix')
-rw-r--r--modules/examples/flake/flake.nix18
1 files changed, 5 insertions, 13 deletions
diff --git a/modules/examples/flake/flake.nix b/modules/examples/flake/flake.nix
index 8650562..138c047 100644
--- a/modules/examples/flake/flake.nix
+++ b/modules/examples/flake/flake.nix
@@ -1,9 +1,9 @@
{
- description = "Example Darwin system flake";
+ description = "Example nix-darwin system flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
- nix-darwin.url = "github:LnL7/nix-darwin";
+ nix-darwin.url = "github:LnL7/nix-darwin/master";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
};
@@ -16,15 +16,10 @@
[ pkgs.vim
];
- # Auto upgrade nix package and the daemon service.
- services.nix-daemon.enable = true;
- # nix.package = pkgs.nix;
-
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
- # Create /etc/zshrc that loads the nix-darwin environment.
- programs.zsh.enable = true; # default shell on catalina
+ # Enable alternative shell support in nix-darwin.
# programs.fish.enable = true;
# Set Git commit hash for darwin-version.
@@ -32,10 +27,10 @@
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
- system.stateVersion = 4;
+ system.stateVersion = 5;
# The platform the configuration will be used on.
- nixpkgs.hostPlatform = "x86_64-darwin";
+ nixpkgs.hostPlatform = "aarch64-darwin";
};
in
{
@@ -44,8 +39,5 @@
darwinConfigurations."simple" = nix-darwin.lib.darwinSystem {
modules = [ configuration ];
};
-
- # Expose the package set, including overlays, for convenience.
- darwinPackages = self.darwinConfigurations."simple".pkgs;
};
}