dotfiles/home/global/default.nix

43 lines
903 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 = {
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;
}