nix-config/_/home-manager/_mixins/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

{ inputs, lib, pkgs, config, outputs, ... }:
{
imports = [
inputs.impermanence.nixosModules.home-manager.impermanence
./cli
./nvim
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false;
};
};
systemd.user.startServices = "sd-switch";
programs = {
home-manager.enable = true;
git.enable = true;
2023-09-22 19:38:16 +00:00
autorandr.enable = true;
};
home = {
2023-09-19 17:05:08 +00:00
username = lib.mkDefault "gburd";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
2023-09-19 17:05:08 +00:00
stateVersion = lib.mkDefault "23.05";
sessionPath = [ "$HOME/.local/bin" ];
sessionVariables = {
FLAKE = "$HOME/ws/nix-config";
};
persistence = {
2023-09-19 17:05:08 +00:00
"/persist/home/gburd" = {
directories = [
"Documents"
"Downloads"
"Pictures"
"Videos"
".local/bin"
];
allowOther = true;
};
};
};
}