33 lines
554 B
Nix
33 lines
554 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
options.me = {
|
|
ship2harkinian.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Whether we want to install 2ship2harkinian.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.me.ship2harkinian.enable (
|
|
lib.mkMerge [
|
|
{
|
|
allowedUnfree = [ "2ship2harkinian" ];
|
|
}
|
|
(lib.mkIf config.me.graphical {
|
|
environment.systemPackages = with pkgs; [
|
|
_2ship2harkinian
|
|
];
|
|
})
|
|
]
|
|
);
|
|
}
|