xin/hosts/plq/default.nix

80 lines
1.7 KiB
Nix
Raw Normal View History

2023-07-11 09:12:50 -06:00
{
pkgs,
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-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";
};
};
2023-07-31 08:00:19 -06:00
nixpkgs.config = {
allowUnfree = true;
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
2023-08-20 06:21:45 -06:00
exiftool
gh
2022-08-25 12:21:35 -06:00
go
mosh
neovim
nixpkgs-review
2022-08-25 12:21:35 -06:00
nmap
obsidian
2022-10-18 19:57:03 -06:00
rage
2022-08-25 12:21:35 -06:00
statix
];
}