Skip to content

Commit

Permalink
📦 Added wine for 32/64 bits applications in the common nixos module
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Dec 1, 2024
1 parent 76dd381 commit 0f568a8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions modules/nixos/programs/wine/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.programs.wine;
in
{
options.${namespace}.programs.wine = {
enable = mkBoolOpt false "Whether or not to enable support for wine.";
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
wineWowPackages.stable # 32-bit and 64-bit applications support
];
};
}
4 changes: 4 additions & 0 deletions modules/nixos/roles/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ in
locale = enabled;
};

programs = {
wine = enabled;
};

hardware = {
networking = enabled;
};
Expand Down

0 comments on commit 0f568a8

Please sign in to comment.