snowfall migration wip homepc done
This commit is contained in:
parent
ed08a98651
commit
25774148e4
37 changed files with 1943 additions and 1447 deletions
34
modules/home/programs/prismlauncher/default.nix
Normal file
34
modules/home/programs/prismlauncher/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
namespace,
|
||||
system,
|
||||
target,
|
||||
format,
|
||||
virtual,
|
||||
systems,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace}; let
|
||||
cfg = config.${namespace}.programs.prismlauncher;
|
||||
impermanence = config.${namespace}.impermanence;
|
||||
in {
|
||||
options.${namespace}.programs.prismlauncher = with types; {
|
||||
enable = mkBoolOpt false "Enable prismlauncher";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (mkIf impermanence.enable {
|
||||
home.persistence."${impermanence.persistentStorage}".directories = [
|
||||
{
|
||||
directory = ".local/share/Prismlauncher";
|
||||
method = "symlink";
|
||||
}
|
||||
];
|
||||
}
|
||||
// {
|
||||
home.packages = with pkgs; [prismlauncher];
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue