xin/hosts/plq/default.nix

72 lines
1.7 KiB
Nix
Raw Normal View History

2022-08-25 12:21:35 -06:00
{ config, pkgs, emacs, isUnstable, ... }:
let
secretAgent =
"Contents/Library/LoginItems/SecretAgent.app/Contents/MacOS/SecretAgent";
2022-10-18 22:19:34 -06:00
rage =
pkgs.writeScriptBin "rage" (import ../../bins/rage.nix { inherit pkgs; });
2022-08-25 12:21:35 -06:00
in {
_module.args.isUnstable = false;
imports = [ ../../configs/tmux.nix ../../configs/zsh.nix ../../bins ];
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" = {
command =
''"/Users/qbit/Applications/Nix Apps/Secretive.app/${secretAgent}"'';
serviceConfig = rec {
KeepAlive = true;
StandardErrorPath = StandardOutPath;
StandardOutPath = "/Users/qbit/Library/Logs/SecretAgent.log";
};
};
environment.variables = {
SSH_AUTH_SOCK =
"$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
};
environment.systemPackages = with pkgs; [
(callPackage ../../pkgs/nheko.nix { inherit isUnstable; })
(callPackage ../../pkgs/secretive.nix { inherit isUnstable; })
2023-01-01 18:06:16 -07:00
(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
nixfmt
nmap
2022-10-18 19:57:03 -06:00
rage
2022-08-25 12:21:35 -06:00
statix
];
}