2023-09-15 14:53:38 +00:00
|
|
|
{ inputs, lib, pkgs, config, outputs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
2023-09-25 18:05:07 +00:00
|
|
|
./cli
|
|
|
|
./nvim
|
2023-09-15 14:53:38 +00:00
|
|
|
] ++ (builtins.attrValues outputs.homeManagerModules);
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
2023-09-25 18:05:07 +00:00
|
|
|
allowUnfreePredicate = _: true;
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
home = {
|
2023-09-19 17:05:08 +00:00
|
|
|
username = lib.mkDefault "gburd";
|
2023-09-15 14:53:38 +00:00
|
|
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
2023-09-19 17:05:08 +00:00
|
|
|
stateVersion = lib.mkDefault "23.05";
|
2023-09-15 14:53:38 +00:00
|
|
|
sessionPath = [ "$HOME/.local/bin" ];
|
|
|
|
sessionVariables = {
|
2023-09-25 18:05:07 +00:00
|
|
|
FLAKE = "$HOME/ws/nix-config";
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
persistence = {
|
2023-09-19 17:05:08 +00:00
|
|
|
"/persist/home/gburd" = {
|
2023-09-15 14:53:38 +00:00
|
|
|
directories = [
|
|
|
|
"Documents"
|
|
|
|
"Downloads"
|
|
|
|
"Pictures"
|
|
|
|
"Videos"
|
|
|
|
".local/bin"
|
|
|
|
];
|
|
|
|
allowOther = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|