mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 09:52:03 +00:00
26 lines
452 B
Nix
26 lines
452 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.nmasur.presets.programs.wine;
|
|
in
|
|
|
|
{
|
|
options.nmasur.presets.programs.wine.enable = lib.mkEnableOption "Wine settings";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
# Ignore wine directories in searches
|
|
home.file =
|
|
let
|
|
ignorePatterns = ''
|
|
.wine/
|
|
drive_c/'';
|
|
in
|
|
{
|
|
".rgignore".text = ignorePatterns;
|
|
".fdignore".text = ignorePatterns;
|
|
};
|
|
|
|
};
|
|
}
|