summary refs log tree commit diff
path: root/nixos/modules/programs/yabar.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-08-08 22:48:27 +0200
committerSilvan Mosberger <infinisil@icloud.com>2019-08-31 18:19:00 +0200
commit478e7184f88db1364cc75107036f7c4decc0cc41 (patch)
tree5ff3d3a18e3aef9af4333c392a94751333754270 /nixos/modules/programs/yabar.nix
parent69d58ee24506e2b3b5aff347ae3b0791110340ec (diff)
downloadnixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.tar
nixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.tar.gz
nixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.tar.bz2
nixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.tar.lz
nixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.tar.xz
nixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.tar.zst
nixpkgs-478e7184f88db1364cc75107036f7c4decc0cc41.zip
nixos/modules: Remove all usages of types.string
And replace them with a more appropriate type

Also fix up some minor module problems along the way
Diffstat (limited to 'nixos/modules/programs/yabar.nix')
-rw-r--r--nixos/modules/programs/yabar.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/programs/yabar.nix b/nixos/modules/programs/yabar.nix
index db085211366..5de9331ac52 100644
--- a/nixos/modules/programs/yabar.nix
+++ b/nixos/modules/programs/yabar.nix
@@ -76,7 +76,7 @@ in
             font = mkOption {
               default = "sans bold 9";
               example = "Droid Sans, FontAwesome Bold 9";
-              type = types.string;
+              type = types.str;
 
               description = ''
                 The font that will be used to draw the status bar.
@@ -95,7 +95,7 @@ in
 
             extra = mkOption {
               default = {};
-              type = types.attrsOf types.string;
+              type = types.attrsOf types.str;
 
               description = ''
                 An attribute set which contains further attributes of a bar.
@@ -107,7 +107,7 @@ in
               type = types.attrsOf(types.submodule {
                 options.exec = mkOption {
                   example = "YABAR_DATE";
-                  type = types.string;
+                  type = types.str;
                   description = ''
                      The type of the indicator to be executed.
                   '';
@@ -125,7 +125,7 @@ in
 
                 options.extra = mkOption {
                   default = {};
-                  type = types.attrsOf (types.either types.string types.int);
+                  type = types.attrsOf (types.either types.str types.int);
 
                   description = ''
                     An attribute set which contains further attributes of a indicator.