Restructed directories; added second config for nixos-dev vm.
This commit is contained in:
58
config/darwin.nix
Normal file
58
config/darwin.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# Path fix for GUI applications.
|
||||
launchd.user.envVariables.PATH = config.environment.systemPath;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
];
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
onActivation.cleanup = "zap";
|
||||
brews = [
|
||||
"coreutils"
|
||||
];
|
||||
casks = [
|
||||
"google-chrome"
|
||||
"scroll-reverser"
|
||||
"instantview"
|
||||
"bitwarden"
|
||||
"tailscale"
|
||||
"nextcloud"
|
||||
"discord"
|
||||
"nordvpn"
|
||||
"docker"
|
||||
"iterm2"
|
||||
"vlc"
|
||||
|
||||
"obs"
|
||||
"obs-backgroundremoval"
|
||||
];
|
||||
};
|
||||
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
services.nix-daemon.enable = true;
|
||||
nix.package = pkgs.nix;
|
||||
|
||||
# Keyboard and Mouse
|
||||
system.keyboard = {
|
||||
enableKeyMapping = true;
|
||||
remapCapsLockToEscape = true;
|
||||
swapLeftCommandAndLeftAlt = true;
|
||||
};
|
||||
|
||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||
programs.zsh.enable = true;
|
||||
|
||||
users.users.jadenmaxwell = {
|
||||
name = "jadenmaxwell";
|
||||
home = "/Users/jadenmaxwell";
|
||||
};
|
||||
|
||||
# Used for backwards compatibility.
|
||||
|
||||
system.stateVersion = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user