snowfall migration wip homepc done

This commit is contained in:
Aleksandr Lebedev 2025-08-09 17:07:55 +02:00
parent ed08a98651
commit 25774148e4
37 changed files with 1943 additions and 1447 deletions

View 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.bottles;
impermanence = config.${namespace}.impermanence;
in {
options.${namespace}.programs.bottles = with types; {
enable = mkBoolOpt false "Enable Bottles";
};
config = mkIf cfg.enable (mkIf impermanence.enable {
home.persistence."${impermanence.persistentStorage}".directories = [
{
directory = ".local/share/bottles";
method = "symlink";
}
];
}
// {
home.packages = with pkgs; [bottles];
});
}