liminalOS/hosts/phobos/default.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

2024-08-16 06:42:35 -07:00
{
inputs,
config,
pkgs,
...
}: {
2024-08-05 02:51:43 -07:00
# Expose the package set, including overlays, for convenience.
# darwinPackages = inputs.self.darwinConfigurations."Youwens-MacBook-Pro".pkgs;
2024-08-05 02:51:43 -07:00
2024-08-05 02:34:34 -07:00
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
2024-08-16 06:42:35 -07:00
environment.systemPackages = with pkgs; [];
2024-08-05 02:34:34 -07:00
# Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# nix.package = pkgs.nix;
nix.settings.experimental-features = "nix-command flakes";
nixpkgs.config.allowUnfree = true;
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
programs.fish.enable = true;
programs.bash.enable = true;
system.configurationRevision =
config.self.rev or config.self.dirtyRev or null;
nixpkgs.hostPlatform = "aarch64-darwin";
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
users.users.youwen = {
home = "/Users/youwen";
description = "Youwen Wu";
shell = pkgs.fish;
};
security.pam.enableSudoTouchIdAuth = true;
2024-08-05 03:15:48 -07:00
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
2024-08-16 06:42:35 -07:00
(nerdfonts.override {fonts = ["CascadiaCode"];})
(google-fonts.override {fonts = ["Lora"];})
2024-08-05 03:15:48 -07:00
];
};
2024-08-05 02:34:34 -07:00
}