mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: create wine role
This commit is contained in:
parent
1dd0bc2f75
commit
76406ed0cf
2 changed files with 20 additions and 0 deletions
19
roles/wine.nix
Normal file
19
roles/wine.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, pkgs, config, username, home-manager, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.liv.wine;
|
||||
in {
|
||||
options.liv.wine = {
|
||||
enable = mkEnableOption "Enable wine";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wineWowPackages.stable
|
||||
wineWowPackages.waylandFull
|
||||
winetricks
|
||||
mono5
|
||||
mono
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue