mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Element seems to need to compile electron every single update and, on macOS, runs another app called electron that is not of use to me. Flatpak and Homebrew will work faster and be user friendly all around.
102 lines
2 KiB
Nix
102 lines
2 KiB
Nix
{ pkgs, hostname, username, ... }: {
|
|
environment = {
|
|
shells = with pkgs; [ bash zsh ];
|
|
loginShell = pkgs.zsh;
|
|
pathsToLink = [
|
|
"/Applications"
|
|
"/share/zsh"
|
|
];
|
|
systemPackages = with pkgs; [
|
|
age
|
|
coreutils
|
|
hugo
|
|
mas
|
|
nmap
|
|
openjdk
|
|
sops
|
|
ssh-to-age
|
|
];
|
|
};
|
|
|
|
homebrew = {
|
|
enable = true;
|
|
onActivation = {
|
|
autoUpdate = true;
|
|
cleanup = "zap";
|
|
upgrade = true;
|
|
};
|
|
taps = [
|
|
"homebrew/cask-fonts"
|
|
"null-dev/firefox-profile-switcher"
|
|
];
|
|
brews = [
|
|
"ffmpeg"
|
|
"firefox-profile-switcher-connector"
|
|
];
|
|
casks = [
|
|
"1password"
|
|
"1password-cli"
|
|
"amethyst"
|
|
"angry-ip-scanner"
|
|
"audacity"
|
|
"balenaetcher"
|
|
"element"
|
|
"firefox"
|
|
"font-hack-nerd-font"
|
|
"font-inconsolata-g-for-powerline"
|
|
"font-source-code-pro-for-powerline"
|
|
"gitkraken"
|
|
"iterm2"
|
|
"keepingyouawake"
|
|
"libreoffice"
|
|
"logseq"
|
|
"meld"
|
|
"nextcloud"
|
|
"onlyoffice"
|
|
"raycast"
|
|
"signal"
|
|
"slack"
|
|
"sonos"
|
|
"tailscale"
|
|
"vivaldi"
|
|
"vlc"
|
|
"zoom"
|
|
];
|
|
masApps = {
|
|
"1Password for Safari" = 1569813296;
|
|
"BetterSnapTool" = 417375580;
|
|
"Home Assistant" = 1099568401;
|
|
"MQTT Explorer" = 1455214828;
|
|
};
|
|
};
|
|
|
|
networking.hostName = "${hostname}";
|
|
|
|
nix = {
|
|
settings = {
|
|
bash-prompt-prefix = "(nix:$name)\040";
|
|
build-users-group = "nixbld";
|
|
experimental-features = [
|
|
"auto-allocate-uids"
|
|
"flakes"
|
|
"nix-command"
|
|
];
|
|
trusted-users = [ "@admin" "${username}" ];
|
|
};
|
|
extraOptions = ''
|
|
# Generated by https://github.com/DeterminateSystems/nix-installer, version 0.11.0.
|
|
extra-nix-path = nixpkgs=flake:nixpkgs
|
|
'';
|
|
};
|
|
|
|
programs = {
|
|
zsh.enable = true;
|
|
};
|
|
|
|
services.nix-daemon.enable = true;
|
|
|
|
users.users.${username} = {
|
|
home = "/Users/${username}";
|
|
shell = pkgs.zsh;
|
|
};
|
|
}
|