2023-09-12 08:44:05 -06:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, isUnstable
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2023-07-11 09:12:50 -06:00
|
|
|
secretAgent = "Contents/Library/LoginItems/SecretAgent.app/Contents/MacOS/SecretAgent";
|
2022-10-18 22:19:34 -06:00
|
|
|
rage =
|
2023-09-12 08:44:05 -06:00
|
|
|
pkgs.writeScriptBin "rage" (import ../../bins/rage.nix { inherit pkgs; });
|
|
|
|
in
|
|
|
|
{
|
2022-08-25 12:21:35 -06:00
|
|
|
_module.args.isUnstable = false;
|
2023-09-12 08:44:05 -06:00
|
|
|
imports = [ ../../configs/tmux.nix ../../configs/zsh.nix ../../bins ];
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
networking.hostName = "plq";
|
|
|
|
|
2023-08-26 15:05:46 -06:00
|
|
|
security.pam.enableSudoTouchIdAuth = true;
|
|
|
|
|
2022-12-22 10:09:24 -07:00
|
|
|
programs = {
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
shellInit = ''
|
|
|
|
export OP_PLUGIN_ALIASES_SOURCED=1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-08-26 15:05:46 -06:00
|
|
|
nix = {
|
|
|
|
package = pkgs.nix;
|
|
|
|
settings = {
|
|
|
|
sandbox = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
nix-daemon.enable = true;
|
|
|
|
emacs.package = pkgs.emacsUnstable;
|
|
|
|
};
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
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-09-12 08:44:05 -06:00
|
|
|
(callPackage ../../pkgs/secretive.nix { inherit isUnstable; })
|
|
|
|
(callPackage ../../pkgs/hammerspoon.nix { inherit isUnstable; })
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
direnv
|
2023-08-20 06:21:45 -06:00
|
|
|
exiftool
|
2022-12-22 10:09:24 -07:00
|
|
|
gh
|
2022-08-25 12:21:35 -06:00
|
|
|
go
|
|
|
|
mosh
|
2023-08-26 15:05:46 -06:00
|
|
|
nb
|
2022-08-25 12:21:35 -06:00
|
|
|
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
|
|
|
|
];
|
|
|
|
}
|