dotfiles/home/global/default.nix

43 lines
916 B
Nix
Raw Normal View History

{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [
2023-07-28 22:15:33 +00:00
../features/cli
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
2023-12-24 02:33:42 +00:00
# until Obsidian gets a newer version of Electron...
2024-02-05 20:55:58 +00:00
permittedInsecurePackages = [
"electron-25.9.0"
];
2023-07-28 22:15:33 +00:00
};
};
2023-07-28 22:15:33 +00:00
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = ["nix-command" "flakes" "repl-flake" ];
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;
}