2023-07-11 09:12:50 -06:00
|
|
|
{
|
|
|
|
pkgs,
|
2023-07-31 08:04:59 -06:00
|
|
|
lib,
|
2023-07-11 09:12:50 -06:00
|
|
|
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-09-02 10:00:42 -06:00
|
|
|
|
2022-08-25 12:21:35 -06:00
|
|
|
networking.hostName = "plq";
|
|
|
|
|
2022-12-22 10:09:24 -07:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-31 08:00:19 -06:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
2023-07-31 08:04:59 -06:00
|
|
|
allowUnfreePredicate = pkg:
|
|
|
|
builtins.elm (lib.getName pkg) [
|
|
|
|
"obsidian"
|
|
|
|
];
|
2023-07-31 08:00:19 -06:00
|
|
|
};
|
|
|
|
|
2022-08-25 12:21:35 -06:00
|
|
|
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/secretive.nix {inherit isUnstable;})
|
|
|
|
(callPackage ../../pkgs/hammerspoon.nix {inherit isUnstable;})
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
direnv
|
2022-12-22 10:09:24 -07:00
|
|
|
gh
|
2022-08-25 12:21:35 -06:00
|
|
|
go
|
|
|
|
mosh
|
|
|
|
neovim
|
2023-07-31 07:56:36 -06:00
|
|
|
nixpkgs-review
|
2022-08-25 12:21:35 -06:00
|
|
|
nmap
|
2023-07-31 07:56:36 -06:00
|
|
|
obsidian
|
2022-10-18 19:57:03 -06:00
|
|
|
rage
|
2022-08-25 12:21:35 -06:00
|
|
|
statix
|
|
|
|
];
|
|
|
|
}
|