Skip to content

Commit

Permalink
chore: update nix-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
bklebe committed Jun 18, 2024
1 parent 47c8c39 commit 8d469a5
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 43 deletions.
14 changes: 7 additions & 7 deletions .config/nix-darwin/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 40 additions & 36 deletions .config/nix-darwin/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,50 @@
description = "Example Darwin system flake";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-23.05-darwin";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = inputs@{ self, nix-darwin, nixpkgs }:
let
configuration = { pkgs, ... }: {
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = [ ];

# 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
# programs.fish.enable = true;

# Set Git commit hash for darwin-version.
system.configurationRevision = self.rev or self.dirtyRev or null;

# 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 = "aarch64-darwin";
};
in {
# Build darwin flake using:
# $ darwin-rebuild build --flake .#CTD25988BKLEBE
darwinConfigurations."CTD25988BKLEBE" =
nix-darwin.lib.darwinSystem { modules = [ configuration ]; };

# Expose the package set, including overlays, for convenience.
darwinPackages = self.darwinConfigurations."CTD25988BKLEBE".pkgs;
let
configuration = { pkgs, ... }: {
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages =
[
];

# 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
# programs.fish.enable = true;

# Set Git commit hash for darwin-version.
system.configurationRevision = self.rev or self.dirtyRev or null;

# 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 = "aarch64-darwin";
};
in
{
# Build darwin flake using:
# $ darwin-rebuild build --flake .#CTD25988BKLEBE
darwinConfigurations."CTD25988BKLEBE" = nix-darwin.lib.darwinSystem {
modules = [ configuration ];
};

# Expose the package set, including overlays, for convenience.
darwinPackages = self.darwinConfigurations."CTD25988BKLEBE".pkgs;
};
}

0 comments on commit 8d469a5

Please sign in to comment.