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
|
|
@ -5,5 +5,6 @@
|
||||||
++ [(import ./amdgpu.nix)]
|
++ [(import ./amdgpu.nix)]
|
||||||
++ [(import ./nvidia.nix)]
|
++ [(import ./nvidia.nix)]
|
||||||
++ [(import ./desktop.nix)]
|
++ [(import ./desktop.nix)]
|
||||||
|
++ [(import ./wine.nix)]
|
||||||
++ [(import ./creative.nix)];
|
++ [(import ./creative.nix)];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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