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:
parent
91581ebb15
commit
49f7f4b5fb
@ -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";
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user