refactor(users): set mutableUsers in sydnix.users
This commit is contained in:
@@ -121,17 +121,12 @@
|
|||||||
pkgs.cachix
|
pkgs.cachix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PermitRootLogin = "yes";
|
settings.PermitRootLogin = "yes";
|
||||||
settings.X11Forwarding = true;
|
settings.X11Forwarding = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Move to defaults.
|
|
||||||
users.mutableUsers = false;
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
allow-import-from-derivation = true;
|
allow-import-from-derivation = true;
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.sydnix.users;
|
cfg = config.sydnix.users;
|
||||||
in {
|
in {
|
||||||
options = {
|
options.sydnix.users = {
|
||||||
sydnix.users = {
|
users = lib.mkOption {
|
||||||
users = mkOption {
|
|
||||||
description =
|
description =
|
||||||
"List of usernames whose home profiles should be imported.";
|
"List of usernames whose home profiles should be imported.";
|
||||||
type = with types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
default = [];
|
default = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
users.mutableUsers = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user