refactor: move persistence into modules where possible
This commit is contained in:
parent
9f1cf602e5
commit
1764a421ab
10 changed files with 45 additions and 14 deletions
|
|
@ -11,6 +11,10 @@ in
|
|||
options.my.programs.direnv.enable = mkEnableOption "direnv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.persistence."/persist".users.moritz.directories = [
|
||||
".local/share/direnv"
|
||||
];
|
||||
|
||||
home-manager.users.moritz.programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ in
|
|||
};
|
||||
|
||||
config = mkIf anyEnabled {
|
||||
environment.persistence."/persist".users.moritz.directories = [
|
||||
".config/JetBrains"
|
||||
".java/.userPrefs/jetbrains/"
|
||||
".local/share/JetBrains"
|
||||
];
|
||||
|
||||
home-manager.users.moritz = {
|
||||
xdg.configFile."ideavim/ideavimrc" = {
|
||||
source = ./ideavimrc;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,13 @@ in
|
|||
options.my.programs.nvim.enable = mkEnableOption "nvim";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.persistence."/persist".users.moritz.directories = [
|
||||
".cache/nvim/luac"
|
||||
".config/github-copilot"
|
||||
".local/share/nvim"
|
||||
".local/state/nvim"
|
||||
];
|
||||
|
||||
home-manager.users.moritz = {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -21,6 +21,10 @@ in
|
|||
options.my.programs.prismlauncher.enable = mkEnableOption "prismlauncher";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.persistence."/persist".users.moritz.directories = [
|
||||
".local/share/PrismLauncher/"
|
||||
];
|
||||
|
||||
users.users.moritz.packages = [ prismlauncher ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue