mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
inputs,
|
|
globals,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
emacsCommand = "${config.programs.emacs.finalPackage}/bin/emacsclient -nw";
|
|
in rec {
|
|
imports = [
|
|
./modules/emacs.nix
|
|
./packages.nix
|
|
./programs/default.nix
|
|
./modules/nix/pkgs-config.nix
|
|
./modules/nix/use-flake-pkgs.nix
|
|
inputs.nix-index-database.hmModules.nix-index
|
|
];
|
|
|
|
stylix.opacity.terminal = 0.72;
|
|
|
|
home = {
|
|
username = globals.username;
|
|
|
|
stateVersion = "23.05";
|
|
|
|
keyboard = {
|
|
layout = globals.keyboard.layout;
|
|
variant = globals.keyboard.variant;
|
|
};
|
|
|
|
language = {
|
|
base = globals.language;
|
|
};
|
|
|
|
sessionVariables = rec {
|
|
GCTESTSECRET = globals.secrets.test_secret;
|
|
DOTDIR = "${config.home.homeDirectory}/.config/dotfiles.nix";
|
|
EDITOR = emacsCommand;
|
|
VISUAL = emacsCommand;
|
|
ORGDIR = "${config.home.homeDirectory}/Documents/org";
|
|
UBCDIR = "${ORGDIR}/ubc";
|
|
MAILDIR = "${config.home.homeDirectory}/Maildir";
|
|
};
|
|
};
|
|
|
|
home.file.".config/nixpkgs/config.nix".text = ''
|
|
# -*-nix-*-
|
|
{
|
|
nixpkgs.config.allowUnfreePredicate = (_: true);
|
|
allowUnfree = true;
|
|
}
|
|
'';
|
|
}
|