mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-27 08:54:05 -05:00
beginning of lighthouse
This commit is contained in:
parent
2b7270fdcc
commit
ef9e7a469f
9 changed files with 101 additions and 57 deletions
10
modules/users/lighthouse/default.nix
Normal file
10
modules/users/lighthouse/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./user.nix
|
||||
./setup.nix
|
||||
];
|
||||
}
|
||||
16
modules/users/lighthouse/setup.nix
Normal file
16
modules/users/lighthouse/setup.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.mkIf config.user.lighthouse.enable {
|
||||
|
||||
|
||||
services.nebula.networks.test = {
|
||||
enable = true;
|
||||
isLighthouse = true;
|
||||
};
|
||||
|
||||
}
|
||||
15
modules/users/lighthouse/user.nix
Normal file
15
modules/users/lighthouse/user.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
config.users.users.lighthouse = lib.mkIf config.user.lighthouse.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = ["wheel"];
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
inputs.nix-secrets.keys.default
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue