mirror of
https://github.com/NotAShelf/stash.git
synced 2026-06-12 16:08:58 +00:00
nix/modules: fix pkgs.stdenv deprecation in NixOS module
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5b5224f809400a385e98c569e0ea63bf6a6a6964
This commit is contained in:
parent
e80e0c1531
commit
656709bd19
1 changed files with 5 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ self: {
|
|||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkOption mkEnableOption mkPackageOption literalMD;
|
||||
inherit (lib.options) mkOption mkEnableOption mkPackageOption;
|
||||
inherit (lib.types) listOf str;
|
||||
inherit (lib.strings) concatStringsSep;
|
||||
inherit (lib.meta) getExe;
|
||||
|
|
@ -15,7 +15,9 @@ in {
|
|||
options.services.stash-clipboard = {
|
||||
enable = mkEnableOption "stash, a Wayland clipboard manager";
|
||||
|
||||
package = mkPackageOption self.packages.${pkgs.system} ["stash"] {};
|
||||
package = mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} ["stash"] {
|
||||
pkgsText = "self.packages.\${pkgs.stdenv.hostPlatform.system}";
|
||||
};
|
||||
|
||||
flags = mkOption {
|
||||
type = listOf str;
|
||||
|
|
@ -28,7 +30,7 @@ in {
|
|||
type = str;
|
||||
default = "";
|
||||
example = "{file}`/etc/stash/clipboard_filter`";
|
||||
description = literalMD ''
|
||||
description = ''
|
||||
File containing a regular expression to catch sensitive patterns. The file
|
||||
passed to this option must contain your regex pattern with no quotes.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue