Skip to content

Commit

Permalink
do not assign lists to users.users
Browse files Browse the repository at this point in the history
warning: In file [...]
a list is being assigned to the option config.users.users.
This will soon be an error as type loaOf is deprecated.
See NixOS/nixpkgs#63103 for more information.
  • Loading branch information
zetavg committed Apr 4, 2020
1 parent b9af6f0 commit 206b6bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions services/elastic-apm-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ in {
config = lib.mkIf (cfg.enable) {
environment.systemPackages = [ cfg.package ];

users.users = singleton {
name = "elastic-apm-server";
users.users."elastic-apm-server" = {
uid = 216;
description = "Elastic APM Server user";
home = cfg.dataDir;
Expand Down
3 changes: 1 addition & 2 deletions services/filebeat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ in {
config = lib.mkIf (cfg.enable) {
environment.systemPackages = [ cfg.package ];

users.users = singleton {
name = serviceName;
users.users."${serviceName}" = {
description = "Filebeat user";
# Need permission to read Nginx logs.
# TODO: Make this configurable?
Expand Down
3 changes: 1 addition & 2 deletions services/heartbeat7.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ in {
config = lib.mkIf (cfg.enable) {
environment.systemPackages = [ cfg.package ];

users.users = singleton {
name = serviceName;
users.users."${serviceName}" = {
description = "Heartbeat user";
home = cfg.dataDir;
createHome = true;
Expand Down
3 changes: 1 addition & 2 deletions services/metricbeat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ in {
config = lib.mkIf (cfg.enable) {
environment.systemPackages = [ cfg.package ];

users.users = singleton {
name = serviceName;
users.users."${serviceName}" = {
description = "Metricbeat user";
home = cfg.dataDir;
createHome = true;
Expand Down

0 comments on commit 206b6bd

Please sign in to comment.