Compare commits
9 Commits
a824faab2e
...
bf22680dd2
| Author | SHA1 | Date | |
|---|---|---|---|
| bf22680dd2 | |||
| 4e7e2a7e70 | |||
| 668392976f | |||
| 30bc9d7875 | |||
| 29c6c7c94c | |||
| 828c27b7b7 | |||
|
|
5aa9d049c5 | ||
|
|
06b11be630 | ||
|
|
2dc4294190 |
@@ -64,7 +64,7 @@
|
|||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
darwinConfigurations."Universe-MacBook-Air" = nix-darwin.lib.darwinSystem {
|
darwinConfigurations."UniverseAir" = nix-darwin.lib.darwinSystem {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inputs = attrs;
|
inputs = attrs;
|
||||||
|
|||||||
@@ -43,6 +43,18 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fonts.fontDir.enable = true;
|
||||||
|
fonts.fonts = with pkgs; [
|
||||||
|
julia-mono
|
||||||
|
bqn386
|
||||||
|
];
|
||||||
|
|
||||||
|
services.emacs = {
|
||||||
|
# Emacsclient behaving weirdly
|
||||||
|
# enable = true;
|
||||||
|
package = pkgs.mac-emacs;
|
||||||
|
};
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
EDITOR = "emacs";
|
EDITOR = "emacs";
|
||||||
};
|
};
|
||||||
@@ -58,10 +70,13 @@ in
|
|||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
wget
|
wget
|
||||||
|
|
||||||
|
xquartz
|
||||||
kitty
|
kitty
|
||||||
|
|
||||||
btop
|
btop
|
||||||
|
|
||||||
|
remmina
|
||||||
|
|
||||||
cbqn-replxx
|
cbqn-replxx
|
||||||
|
|
||||||
# Graphical Apps:
|
# Graphical Apps:
|
||||||
@@ -85,6 +100,8 @@ in
|
|||||||
"nextcloud"
|
"nextcloud"
|
||||||
"tidal"
|
"tidal"
|
||||||
"bitwarden"
|
"bitwarden"
|
||||||
|
"zoom-for-it-admins"
|
||||||
|
"libreoffice"
|
||||||
];
|
];
|
||||||
# Apps to install outside of nix for when wanting to test/run
|
# Apps to install outside of nix for when wanting to test/run
|
||||||
# things that... aren't used by other people who use nix, like
|
# things that... aren't used by other people who use nix, like
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
services.skhd = {
|
services.skhd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
skhdConfig = ''
|
skhdConfig = ''
|
||||||
cmd + shift - e : open ${pkgs.mac-emacs}/Applications/Emacs.app
|
cmd + shift - e : open '${pkgs.mac-emacs}/Applications/Emacs.app'
|
||||||
cmd + shift + ctrl - e : open ${pkgs.kitty}/Applications/Kitty.app
|
cmd + shift + ctrl - e : kitty -d ~ -1
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
];
|
];
|
||||||
services.yabai = {
|
services.yabai = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableScriptingAddition = true;
|
||||||
config = {
|
config = {
|
||||||
layout = "bsp";
|
layout = "bsp";
|
||||||
focus_follows_mouse = "autofocus";
|
focus_follows_mouse = "autofocus";
|
||||||
@@ -25,19 +26,7 @@
|
|||||||
yabai -m rule --add app='System Settings' manage=off
|
yabai -m rule --add app='System Settings' manage=off
|
||||||
yabai -m rule --add app='Boot Camp Assistant' manage=off
|
yabai -m rule --add app='Boot Camp Assistant' manage=off
|
||||||
yabai -m rule --add app='System Information' manage=off
|
yabai -m rule --add app='System Information' manage=off
|
||||||
|
yabai -m rule --add title='^Figure' manage=off
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/IvarWithoutBones/dotfiles/blob/main/modules/darwin/yabai/default.nix
|
|
||||||
# The scripting addition needs root access to load, which we want to do automatically when logging in.
|
|
||||||
# Disable the password requirement for it so that a service can do so without user interaction.
|
|
||||||
environment.etc."sudoers.d/yabai-load-sa".text = ''
|
|
||||||
universelaptop ALL = (root) NOPASSWD: sha256:${builtins.hashFile "sha256" "${pkgs.yabai}/bin/yabai"} ${pkgs.yabai}/bin/yabai
|
|
||||||
'';
|
|
||||||
|
|
||||||
launchd.user.agents.yabai-load-sa = {
|
|
||||||
path = [ pkgs.yabai config.environment.systemPath ];
|
|
||||||
command = "/usr/bin/sudo ${pkgs.yabai}/bin/yabai --load-sa";
|
|
||||||
serviceConfig.RunAtLoad = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user