xin/hosts/plq/default.nix

70 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-11 09:12:50 -06:00
{
pkgs,
isUnstable,
...
}: let
secretAgent = "Contents/Library/LoginItems/SecretAgent.app/Contents/MacOS/SecretAgent";
2022-10-18 22:19:34 -06:00
rage =
2023-07-11 09:12:50 -06:00
pkgs.writeScriptBin "rage" (import ../../bins/rage.nix {inherit pkgs;});
2022-08-25 12:21:35 -06:00
in {
_module.args.isUnstable = false;
2023-07-11 09:12:50 -06:00
imports = [../../configs/tmux.nix ../../configs/zsh.nix ../../bins];
2022-08-25 12:21:35 -06:00
2023-07-11 09:12:50 -06:00
sops.age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
2022-08-25 12:21:35 -06:00
networking.hostName = "plq";
programs = {
zsh = {
enable = true;
shellInit = ''
export OP_PLUGIN_ALIASES_SOURCED=1
'';
};
};
2022-08-25 12:21:35 -06:00
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
services.emacs.package = pkgs.emacsUnstable;
system = {
keyboard = {
enableKeyMapping = true;
remapCapsLockToControl = true;
};
defaults = {
dock.orientation = "left";
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
};
};
launchd.user.agents."SecretAgent" = {
2023-07-11 09:12:50 -06:00
command = ''"/Users/qbit/Applications/Nix Apps/Secretive.app/${secretAgent}"'';
2022-08-25 12:21:35 -06:00
serviceConfig = rec {
KeepAlive = true;
StandardErrorPath = StandardOutPath;
StandardOutPath = "/Users/qbit/Library/Logs/SecretAgent.log";
};
};
environment.variables = {
2023-07-11 09:12:50 -06:00
SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
2022-08-25 12:21:35 -06:00
};
environment.systemPackages = with pkgs; [
2023-07-11 09:12:50 -06:00
(callPackage ../../pkgs/nheko.nix {inherit isUnstable;})
(callPackage ../../pkgs/secretive.nix {inherit isUnstable;})
(callPackage ../../pkgs/hammerspoon.nix {inherit isUnstable;})
2022-08-25 12:21:35 -06:00
2022-10-18 07:04:26 -06:00
nixpkgs-review
2022-08-25 12:21:35 -06:00
direnv
gh
2022-08-25 12:21:35 -06:00
go
mosh
neovim
nmap
2022-10-18 19:57:03 -06:00
rage
2022-08-25 12:21:35 -06:00
statix
];
}