refactor home-manager
This commit is contained in:
parent
a48829bbe6
commit
caed1fc0d4
31 changed files with 243 additions and 270 deletions
48
home-manager/sajenim/global/default.nix
Normal file
48
home-manager/sajenim/global/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ inputs, outputs, ... }: {
|
||||
imports = [
|
||||
inputs.impermanence.nixosModules.home-manager.impermanence
|
||||
../features/cli
|
||||
../features/nvim
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowUnfreePredicate = (_: true);
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home = {
|
||||
username = "sajenim";
|
||||
homeDirectory = "/home/sajenim";
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
persistence."/persist/home/sajenim" = {
|
||||
directories = [
|
||||
".backup"
|
||||
".github"
|
||||
".gnupg"
|
||||
".ssh"
|
||||
|
||||
".local/bin"
|
||||
".local/share/nix"
|
||||
];
|
||||
files = [
|
||||
".zsh_history"
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.startServices = "sd-switch";
|
||||
home.stateVersion = "22.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue