dotfiles/home/global/default.nix

39 lines
772 B
Nix
Raw Normal View History

{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [
2024-12-04 04:08:43 +00:00
../modules/tui
2023-07-28 22:15:33 +00:00
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
2023-07-28 22:15:33 +00:00
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
2024-05-03 17:17:35 +00:00
experimental-features = ["nix-command" "flakes" ];
2023-07-28 22:15:33 +00:00
warn-dirty = false;
};
};
home = {
2023-07-28 22:15:33 +00:00
username = lib.mkDefault "john";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "23.05";
sessionVariables = {
EDITOR = "vim";
};
};
programs = {
home-manager.enable = true;
};
targets.genericLinux.enable = true;
}