Initial nix-darwin revision
This commit is contained in:
parent
9a0750c0bf
commit
92e04a0924
3 changed files with 80 additions and 6 deletions
37
darwin/darwin.nix
Normal file
37
darwin/darwin.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ pkgs, system, ... }: {
|
||||
# List packages installed in system profile. To search by name, run:
|
||||
# $ nix-env -qaP | grep wget
|
||||
environment.systemPackages = [
|
||||
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;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 4;
|
||||
|
||||
nixpkgs = {
|
||||
# TODO(spotlightishere): Make this configurable beyond a singular device.
|
||||
hostPlatform = "aarch64-darwin";
|
||||
|
||||
# Custom packages.
|
||||
# TODO(spotlightishere): Why does this need to be specified in both home-manager and globally?
|
||||
overlays = [ (import ../pkgs/default.nix) ];
|
||||
};
|
||||
|
||||
# Our singular user!
|
||||
users.users.spot = {
|
||||
description = "Spotlight Deveaux";
|
||||
home = "/Users/spot";
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue