36 lines
933 B
Nix
36 lines
933 B
Nix
{ self, config, inputs, pkgs, secretsDir, ... }:
|
|
{
|
|
users.users.server = {
|
|
isNormalUser = true;
|
|
passwordFile = "${secretsDir}/fusu-server-pwd";
|
|
group = "server";
|
|
#password = "changeme";
|
|
};
|
|
users.groups.server = {};
|
|
|
|
home-manager.extraSpecialArgs = {
|
|
inherit self;
|
|
hostname = config.networking.hostName;
|
|
};
|
|
|
|
home-manager.users.server = {
|
|
services.vscode-server.enable = true;
|
|
imports = [
|
|
"${inputs.vscode-server}/modules/vscode-server/home.nix"
|
|
../common/home.nix
|
|
];
|
|
home.packages = with pkgs; [
|
|
socat
|
|
];
|
|
};
|
|
|
|
users.users.server.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAgNB1nsKZ5KXnmR6KWjQLfwhFKDispw24o8M7g/nbR me@bitwarden"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII/mCDzCBE2J1jGnEhhtttIRMKkXMi1pKCAEkxu+FAim me@main"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGw5kYmBQl8oolNg2VUlptvvSrFSESfeuWpsXRovny0x me@phone"
|
|
|
|
];
|
|
|
|
|
|
}
|