2023-06-09 10:47:29 +00:00
|
|
|
{ pkgs, dotfiles, ... }:
|
2023-06-09 11:31:06 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
packageSets = with pkgs; rec {
|
|
|
|
base = [
|
|
|
|
jq
|
|
|
|
ripgrep
|
|
|
|
];
|
|
|
|
languages = [];
|
|
|
|
tooling = [];
|
|
|
|
multimedia = [];
|
|
|
|
|
|
|
|
everything = base ++ languages ++ tooling ++ multimedia;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2023-06-09 09:19:42 +00:00
|
|
|
{
|
2023-06-09 11:31:06 +00:00
|
|
|
imports = [];
|
|
|
|
|
|
|
|
|
2023-06-09 09:19:42 +00:00
|
|
|
# Make sure the nix daemon always runs
|
|
|
|
services.nix-daemon.enable = true;
|
2023-06-09 11:31:06 +00:00
|
|
|
|
|
|
|
# enable the gpg agent by default
|
|
|
|
programs.gnupg.agent.enable = true;
|
2023-06-09 10:47:29 +00:00
|
|
|
|
2023-06-09 11:30:06 +00:00
|
|
|
# if you use zsh (the default on new macOS installations),
|
|
|
|
# you'll need to enable this so nix-darwin creates a zshrc sourcing needed environment changes
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
2023-06-09 11:31:06 +00:00
|
|
|
# Make sure to set the correct values, or everything will break! (in reality,
|
|
|
|
# it will just not build)
|
2023-06-09 10:44:49 +00:00
|
|
|
users.users.alyxia = {
|
|
|
|
name = "alyxia";
|
|
|
|
home = "/Users/alyxia";
|
|
|
|
};
|
2023-06-09 09:19:42 +00:00
|
|
|
|
2023-06-09 10:47:04 +00:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.alyxia = { pkgs, ... }: {
|
2023-06-09 11:31:06 +00:00
|
|
|
home = {
|
|
|
|
packages = packageSets.everything;
|
|
|
|
};
|
|
|
|
|
2023-06-09 10:47:29 +00:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
initExtra = ''
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
source ${dotfiles}/zsh/zshrc
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-06-09 10:47:04 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gitAndTools.gitFull; # contains git send-email et al
|
|
|
|
|
|
|
|
userName = "Alyxia Sother";
|
|
|
|
userEmail = "alyxia@riseup.net";
|
|
|
|
|
|
|
|
signing = {
|
|
|
|
key = "01E16C4E775A37E4";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
delta.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gitui.enable = true;
|
|
|
|
|
|
|
|
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS
|
|
|
|
# OPTION IS APPROPRIATELY MIGRATED!!!
|
|
|
|
home.stateVersion = "23.05"; # did you read the comment?
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-09 09:19:42 +00:00
|
|
|
homebrew = {
|
|
|
|
enable = true;
|
|
|
|
onActivation = {
|
|
|
|
autoUpdate = true;
|
|
|
|
upgrade = true;
|
|
|
|
};
|
|
|
|
casks = [
|
|
|
|
"discord"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|