85 lines
2.0 KiB
Nix
85 lines
2.0 KiB
Nix
{
|
|
hostname = "MacBook-Nix";
|
|
username = "lsoriano";
|
|
timezone = "America/Chicago";
|
|
|
|
vpn = {
|
|
vpnEnable = false;
|
|
vpnSecretFile = "/home/biscuit/Wireguard/secret";
|
|
};
|
|
|
|
terminal = {
|
|
termFont = "JetBrainsMono Nerd Font"; # e.g., JetBrainsMono Nerd Font
|
|
termSize = "24";
|
|
termShell = "fish";
|
|
shellAliases = {
|
|
ls = "ls --color=auto";
|
|
update = ''
|
|
if [[ $(uname) == "Darwin" ]]; then
|
|
sudo darwin-rebuild switch --flake ~/.config/nixos#macos
|
|
else
|
|
sudo nixos-rebuild switch --flake ~/.config/nixos#desktop && home-manager switch --flake ~/.config/nixos#desktop
|
|
fi
|
|
'';
|
|
agu = "pkill gjs & ags run ~/.config/nixos/pkgs/ags/biscuit/app.ts & disown (jobs -p) &";
|
|
};
|
|
fishAliases = {
|
|
shellAliases = {
|
|
ls = "ls --color=auto";
|
|
};
|
|
|
|
functions = {
|
|
update = {
|
|
body = ''
|
|
if test (uname) = "Darwin"
|
|
sudo darwin-rebuild switch --flake ~/.config/nixos#macos
|
|
else
|
|
sudo nixos-rebuild switch --flake ~/.config/nixos#desktop; and home-manager switch --flake ~/.config/nixos#desktop
|
|
end
|
|
'';
|
|
};
|
|
|
|
agu = {
|
|
body = ''
|
|
pkill gjs
|
|
ags run ~/.config/nixos/pkgs/ags/biscuit/app.ts &
|
|
disown (jobs -p)
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
allowUnfree = true; # allows installation of commercial apps.
|
|
touchpadSupport = false;
|
|
|
|
# Custom Applications
|
|
linux-apps = pkgs:
|
|
with pkgs; [
|
|
delfin
|
|
];
|
|
|
|
sshExtraConfig = ''
|
|
Host macair
|
|
User biscuit
|
|
HostName 192.168.68.81
|
|
'';
|
|
|
|
# BUILD (optional), you can remove these blocks.
|
|
builder = {
|
|
trustedUsers = [
|
|
"@groups"
|
|
"biscuit"
|
|
];
|
|
buildMachines = [
|
|
{
|
|
hostName = "192.168.68.81";
|
|
sshUser = "biscuit";
|
|
sshKey = "/home/biscuit/.ssh/id_rsa.pub";
|
|
system = "x86_64-linux";
|
|
supportedFeatures = ["big-parallel" "kvm" "nixos-test"];
|
|
}
|
|
];
|
|
};
|
|
}
|