Compare commits
2 commits
260e37e016
...
ebf7ea3cf7
| Author | SHA1 | Date | |
|---|---|---|---|
| ebf7ea3cf7 | |||
| dd165d48fe |
9 changed files with 132 additions and 24 deletions
|
|
@ -74,6 +74,7 @@ in {
|
||||||
guild-wars-2.enable = false;
|
guild-wars-2.enable = false;
|
||||||
vortex.enable = false;
|
vortex.enable = false;
|
||||||
dungeon-draft.enable = false;
|
dungeon-draft.enable = false;
|
||||||
|
vmware-workstation.enable = true;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -44,5 +44,6 @@
|
||||||
./gdx-liftoff.nix
|
./gdx-liftoff.nix
|
||||||
./tor-browser.nix
|
./tor-browser.nix
|
||||||
./polycule.nix
|
./polycule.nix
|
||||||
|
./vmware-workstation.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,22 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
cfg.package
|
cfg.package
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf config.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
"${config.xdg.configHome}/kdenliverc"
|
||||||
|
"${config.xdg.dataHome}/kdenlive"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,20 @@ in {
|
||||||
enable = mkEnableOption "Mapillary Desktop Uploader";
|
enable = mkEnableOption "Mapillary Desktop Uploader";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable (mkMerge [
|
||||||
|
{
|
||||||
home.packages = [pkgs.mapillary-uploader];
|
home.packages = [pkgs.mapillary-uploader];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
mkIf config.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
"${config.xdg.configHome}/mapillary-uploader"
|
||||||
|
"${config.xdg.dataHome}/mapillary-uploader"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,12 @@
|
||||||
config = lib.mkIf config.programs.obs-studio.enable (lib.mkMerge [
|
config = lib.mkIf config.programs.obs-studio.enable (lib.mkMerge [
|
||||||
(
|
(
|
||||||
lib.mkIf config.impermanence.enable {
|
lib.mkIf config.impermanence.enable {
|
||||||
# TODO: map impermanence for obs
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
"${config.xdg.configHome}/obs-studio"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,22 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
cfg.package
|
cfg.package
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf config.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
"${config.xdg.configHome}/olympus"
|
||||||
|
"${config.xdg.dataHome}/olympus"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,21 @@
|
||||||
enable = lib.mkEnableOption "enable openrgb";
|
enable = lib.mkEnableOption "enable openrgb";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.programs.openrgb.enable {
|
config = lib.mkIf config.programs.openrgb.enable (lib.mkMerge [
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
openrgb
|
openrgb
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf config.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
"${config.xdg.configHome}/OpenRGB"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,22 @@
|
||||||
enable = lib.mkEnableOption "enable via";
|
enable = lib.mkEnableOption "enable via";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.programs.via.enable {
|
config = lib.mkIf config.programs.via.enable (lib.mkMerge [
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
via
|
via
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf config.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
"${config.xdg.configHome}/via"
|
||||||
|
"${config.xdg.dataHome}/via"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
|
||||||
37
modules/home-manager-modules/programs/vmware-workstation.nix
Normal file
37
modules/home-manager-modules/programs/vmware-workstation.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.programs.vmware-workstation = {
|
||||||
|
enable = lib.mkEnableOption "enable VMware Workstation";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.programs.vmware-workstation.enable (
|
||||||
|
lib.mkMerge [
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
vmware-workstation
|
||||||
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf config.impermanence.enable {
|
||||||
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
directories = [
|
||||||
|
{
|
||||||
|
directory = ".vmware";
|
||||||
|
method = "symlink";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
directory = "vmware";
|
||||||
|
method = "symlink";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue