mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
46 lines
1,015 B
Nix
46 lines
1,015 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 ./apps.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"
|
|
'';
|
|
|
|
home.file.".config/nix/nix.conf".text = ''
|
|
allow-dirty = true
|
|
experimental-features = flakes nix-command
|
|
'';
|
|
}
|