mirror of
https://github.com/tboerger/nixos-config
synced 2026-03-14 19:55:50 +01:00
34 lines
390 B
Nix
34 lines
390 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
|
|
];
|
|
};
|
|
};
|
|
}
|