1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Fix user definition places

- define userlist in machine
- define metadata in common/users.nix
- define options and settings in modules/users.nix
This commit is contained in:
Stefan Ellmauthaler 2022-05-11 13:46:28 +02:00
parent 91581ebb15
commit 49f7f4b5fb
Failed to extract signature
3 changed files with 12 additions and 18 deletions

View File

@ -3,9 +3,6 @@ with lib; {
config = { config = {
elss = { elss = {
users = { users = {
enable = true;
admiins = [ "ellmau" ];
users = [ ];
meta = { meta = {
ellmau = { ellmau = {
description = "Stefan Ellmauthaler"; description = "Stefan Ellmauthaler";

View File

@ -1,6 +1,17 @@
{ config, pkgs, ...}: { config, pkgs, ...}:
{ {
imports = [ ./printer.nix ];
elss = {
users = {
enable = true;
admins = [ "ellmau" ];
users = [ ];
};
};
imports = [
../../common/users.nix
./printer.nix
];
variables = { variables = {
hostName = "stel-xps"; hostName = "stel-xps";

View File

@ -4,20 +4,6 @@ with lib; {
options.elss.users = { options.elss.users = {
enable = mkEnableOption "elss specific user configuration"; enable = mkEnableOption "elss specific user configuration";
commonUserFile = mkOption {
type = types.attrsOf
(types.submodule{
options = {
enable = mkEnableOption "use a common file of users";
fileLoc = mkOption {
description = "path to the file of users";
type = types.path;
default = ../common/users.nix;
};
};
});
};
users = mkOption { users = mkOption {
description = "logins of non-admin users to configure"; description = "logins of non-admin users to configure";
type = types.listOf types.str; type = types.listOf types.str;