2023-07-26 21:46:31 +00:00
|
|
|
{ inputs, outputs, lib, config, pkgs, ... }: {
|
2023-07-23 18:44:51 +00:00
|
|
|
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-07-23 18:44:51 +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;
|
|
|
|
};
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
home = {
|
2023-07-28 22:15:33 +00:00
|
|
|
username = lib.mkDefault "john";
|
2023-07-26 21:46:31 +00:00
|
|
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
|
|
stateVersion = lib.mkDefault "23.05";
|
2023-07-23 18:44:51 +00:00
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
sessionVariables = {
|
|
|
|
EDITOR = "vim";
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
2023-07-26 21:46:31 +00:00
|
|
|
|
|
|
|
targets.genericLinux.enable = true;
|
2023-07-23 18:44:51 +00:00
|
|
|
}
|