mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
40 lines
886 B
Nix
40 lines
886 B
Nix
{ config, pkgs, lib, inputs, ... }:
|
|
|
|
let
|
|
homeDirectory = config.home.homeDirectory;
|
|
emacsCommand = [ "emacsclient" "-c" "-nw" ];
|
|
in {
|
|
imports = [ ./emacs.nix ./launchd.nix ./packages.nix ./programs.nix ];
|
|
|
|
nixpkgs.config = {
|
|
allowUnfree = true;
|
|
allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [ "discord" "unrar" ];
|
|
};
|
|
|
|
home = {
|
|
username = "willem";
|
|
homeDirectory = "/Users/willem";
|
|
stateVersion = "22.11";
|
|
};
|
|
|
|
home.language = {
|
|
base = "en_CA.UTF-8";
|
|
messages = "en_US.UTF-8";
|
|
ctype = "en_US.UTF-8";
|
|
};
|
|
|
|
home.keyboard = {
|
|
layout = "us";
|
|
variant = "colemak";
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
EDITOR = emacsCommand;
|
|
VISUAL = emacsCommand;
|
|
};
|
|
|
|
home.file.".gnupg/gpg-agent.conf".text = ''
|
|
pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac"
|
|
'';
|
|
}
|