Rebase to flake parts #10
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{ ... }: {
|
||||
flake.homeManagerModules.wisdomAppsSpacedrive =
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
root = config.chiasson.home;
|
||||
cfg = config.chiasson.home.apps.spacedrive;
|
||||
spacedrivePkg = pkgs.callPackage ./package { };
|
||||
in
|
||||
{
|
||||
options.chiasson.home.apps.spacedrive = {
|
||||
enable = lib.mkEnableOption ''
|
||||
[Spacedrive](https://spacedrive.com/) v2 alpha — upstream `.deb` repackaged for NixOS.
|
||||
'';
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = spacedrivePkg;
|
||||
description = "Spacedrive package (defaults to upstream v2.0.0-alpha.2).";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (root.enable && cfg.enable) {
|
||||
home.packages = [ cfg.package ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user