Removed some other darwin related config; switched to brave browser
This commit is contained in:
@@ -1,80 +0,0 @@
|
|||||||
{ config, pkgs, lib, ... }: {
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
git
|
|
||||||
];
|
|
||||||
|
|
||||||
homebrew = {
|
|
||||||
enable = true;
|
|
||||||
onActivation.cleanup = "zap";
|
|
||||||
taps = [
|
|
||||||
"nikitabobko/tap"
|
|
||||||
"FelixKratz/formulae"
|
|
||||||
];
|
|
||||||
brews = [
|
|
||||||
"wireguard-tools"
|
|
||||||
"pinentry-mac"
|
|
||||||
"sketchybar"
|
|
||||||
"coreutils"
|
|
||||||
"watch"
|
|
||||||
"rbw"
|
|
||||||
];
|
|
||||||
casks = [
|
|
||||||
"font-hack-nerd-font"
|
|
||||||
"scroll-reverser"
|
|
||||||
"instantview"
|
|
||||||
"proton-mail"
|
|
||||||
"flameshot"
|
|
||||||
"aerospace"
|
|
||||||
"bitwarden"
|
|
||||||
"tailscale"
|
|
||||||
"wireshark"
|
|
||||||
"firefox"
|
|
||||||
"ghostty"
|
|
||||||
"discord"
|
|
||||||
"barrier"
|
|
||||||
"zoom"
|
|
||||||
"plex"
|
|
||||||
"vlc"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
|
||||||
nix.package = pkgs.nix;
|
|
||||||
|
|
||||||
# Extra activation scripts
|
|
||||||
system.activationScripts.extraActivation.text = ''
|
|
||||||
softwareupdate --install-rosetta --agree-to-license
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Keyboard and Mouse
|
|
||||||
system.keyboard = {
|
|
||||||
enableKeyMapping = true;
|
|
||||||
remapCapsLockToEscape = true;
|
|
||||||
swapLeftCommandAndLeftAlt = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# MacOS Changes
|
|
||||||
system = {
|
|
||||||
startup.chime = false;
|
|
||||||
defaults = {
|
|
||||||
dock.autohide = true;
|
|
||||||
NSGlobalDomain = {
|
|
||||||
"com.apple.mouse.tapBehavior" = 1;
|
|
||||||
_HIHideMenuBar = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
users.users.jadenmaxwell = {
|
|
||||||
name = "jadenmaxwell";
|
|
||||||
home = "/Users/jadenmaxwell";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = 5;
|
|
||||||
}
|
|
||||||
@@ -18,7 +18,7 @@ bindsym $mod+Return exec "alacritty"
|
|||||||
bindsym $mod+Shift+b exec "blueman-manager"
|
bindsym $mod+Shift+b exec "blueman-manager"
|
||||||
bindsym $mod+Shift+d exec "vesktop"
|
bindsym $mod+Shift+d exec "vesktop"
|
||||||
bindsym $mod+Shift+e exec "emacsclient -c"
|
bindsym $mod+Shift+e exec "emacsclient -c"
|
||||||
bindsym $mod+Shift+f exec "firefox"
|
bindsym $mod+Shift+f exec "brave"
|
||||||
bindsym $mod+Shift+m exec "proton-mail"
|
bindsym $mod+Shift+m exec "proton-mail"
|
||||||
bindsym $mod+Shift+p exec "rofi-rbw"
|
bindsym $mod+Shift+p exec "rofi-rbw"
|
||||||
bindsym $mod+Shift+s exec "flameshot gui"
|
bindsym $mod+Shift+s exec "flameshot gui"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
feh
|
feh
|
||||||
vlc
|
vlc
|
||||||
dconf
|
dconf
|
||||||
firefox
|
brave
|
||||||
vesktop
|
vesktop
|
||||||
zoom-us
|
zoom-us
|
||||||
twinkle
|
twinkle
|
||||||
@@ -13,7 +13,6 @@
|
|||||||
pavucontrol
|
pavucontrol
|
||||||
easyeffects
|
easyeffects
|
||||||
virt-viewer
|
virt-viewer
|
||||||
google-chrome
|
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
protonmail-desktop
|
protonmail-desktop
|
||||||
kdePackages.okular
|
kdePackages.okular
|
||||||
@@ -46,11 +45,11 @@
|
|||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"text/html" = "firefox.desktop";
|
"text/html" = "brave.desktop";
|
||||||
"x-scheme-handler/http" = "firefox.desktop";
|
"x-scheme-handler/http" = "brave-browser.desktop";
|
||||||
"x-scheme-handler/https" = "firefox.desktop";
|
"x-scheme-handler/https" = "brave-browser.desktop";
|
||||||
"x-scheme-handler/about" = "firefox.desktop";
|
"x-scheme-handler/about" = "brave-browser.desktop";
|
||||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
"x-scheme-handler/unknown" = "brave-browser.desktop";
|
||||||
"application/pdf" = "okularApplication_pdf.desktop";
|
"application/pdf" = "okularApplication_pdf.desktop";
|
||||||
"text/plain" = "emacsclient.desktop";
|
"text/plain" = "emacsclient.desktop";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
mindforge = "ssh mindforge@mindforge.randomctf.local";
|
mindforge = "ssh mindforge@mindforge.randomctf.local";
|
||||||
|
|
||||||
# Nix Specific aliases
|
# Nix Specific aliases
|
||||||
update-darwin = "darwin-rebuild switch --flake ~/dotfiles";
|
|
||||||
update-config = "sudo nixos-rebuild switch --flake ~/dotfiles";
|
update-config = "sudo nixos-rebuild switch --flake ~/dotfiles";
|
||||||
update-home = "home-manager switch --flake ~/dotfiles";
|
update-home = "home-manager switch --flake ~/dotfiles";
|
||||||
update-all = "update-config && update-home";
|
update-all = "update-config && update-home";
|
||||||
@@ -68,10 +67,6 @@
|
|||||||
function ...... { cd ../../../../../.. }
|
function ...... { cd ../../../../../.. }
|
||||||
function ....... { cd ../../../../../../.. }
|
function ....... { cd ../../../../../../.. }
|
||||||
|
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
|
||||||
source <(/opt/homebrew/bin/brew shellenv)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "$SSH_CONNECTION" && "$TERM" == "ghostty" ]]; then
|
if [[ -n "$SSH_CONNECTION" && "$TERM" == "ghostty" ]]; then
|
||||||
export TERM="xterm-256color"
|
export TERM="xterm-256color"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user