mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
Move mkIf to safe evaluation
This commit is contained in:
parent
6dd1591319
commit
83b1aaa46a
2 changed files with 6 additions and 16 deletions
|
|
@ -1,7 +0,0 @@
|
|||
{ lib, config, pkgs, ...}: {
|
||||
users.users.crow = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,10 +1,7 @@
|
|||
{ config, ... }: {
|
||||
imports =
|
||||
(
|
||||
if config.users.crow.enable then
|
||||
[./crow.nix]
|
||||
else []
|
||||
);
|
||||
# ++ ( to add more, just move the ;
|
||||
|
||||
{ lib, config, pkgs, ...}: {
|
||||
users.users.crow = lib.mkIf config.users.crow.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue