mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
users/admin: add trust to more applications
This commit is contained in:
parent
ee17bccd5b
commit
2cc7faf2e7
@ -2,8 +2,11 @@
|
|||||||
# installations with deploy-rs.
|
# installations with deploy-rs.
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
name = "admin";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
users.users.admin = {
|
users.users.${name} = {
|
||||||
description = "The administrator account for the servers.";
|
description = "The administrator account for the servers.";
|
||||||
hashedPassword = "$6$KXZD6NvjtSkle/id$ECs7zIwDBOlQiFACsyot1gyjKG9UWMlUdRknVujE9efpHMQGx7.YZWyJ0VkV0ja0BPzeF/EzTu6n4EEF5ZHPD0";
|
hashedPassword = "$6$KXZD6NvjtSkle/id$ECs7zIwDBOlQiFACsyot1gyjKG9UWMlUdRknVujE9efpHMQGx7.YZWyJ0VkV0ja0BPzeF/EzTu6n4EEF5ZHPD0";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
@ -15,5 +18,11 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.trusted-users = [ "admin" ];
|
# This is also a trusted user for the Nix daemon.
|
||||||
|
nix.settings.trusted-users = [ name ];
|
||||||
|
|
||||||
|
# Allow the user to easily enter into several services such as the database
|
||||||
|
# services to allowing some debugging.
|
||||||
|
services.postgresql.ensureUsers = [ { inherit name; } ];
|
||||||
|
services.mysql.ensureUsers = [ { inherit name; } ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user