mirror of
https://github.com/tboerger/nixos-config
synced 2025-02-21 23:21:08 +01:00
28 lines
380 B
Nix
28 lines
380 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.programs.wine;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
programs = {
|
|
wine = {
|
|
enable = mkEnableOption "Wine";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home = {
|
|
packages = with pkgs; [
|
|
winetricks
|
|
wineWowPackages.full
|
|
];
|
|
};
|
|
};
|
|
}
|