Meow
This commit is contained in:
parent
5177e8bec0
commit
edaab48520
2 changed files with 29 additions and 54 deletions
|
|
@ -82,7 +82,8 @@ in
|
||||||
# services.libinput.enable = true;
|
# services.libinput.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.lucy = {
|
users.users = {
|
||||||
|
lucy = {
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMCKx5uQMiE19+jDmEueahQDXMGVzlC678ZwaztrwIlR lucy@twinkpad
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMCKx5uQMiE19+jDmEueahQDXMGVzlC678ZwaztrwIlR lucy@twinkpad
|
||||||
"
|
"
|
||||||
|
|
@ -96,6 +97,22 @@ in
|
||||||
tree
|
tree
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
johannes = {
|
||||||
|
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMdk2Sr2drl2NcwlZlOAhFppER9sqvYmPdvAviWVVakT johannes-mba"
|
||||||
|
];
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"podman"
|
||||||
|
]; # Enable ‘sudo’ for the user.
|
||||||
|
packages = with pkgs; [
|
||||||
|
tree
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
# programs.firefox.enable = true;
|
# programs.firefox.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
{ lib, ...}:
|
|
||||||
let
|
|
||||||
{inherit lib;} mkEnableOption mkOption;
|
|
||||||
in {
|
|
||||||
options = {
|
|
||||||
services.openarena = {
|
|
||||||
enable = mkEnableOption "OpenArena game servers";
|
|
||||||
|
|
||||||
instances = mkOption {
|
|
||||||
type = types.listOf (types.submodule {
|
|
||||||
options = {
|
|
||||||
name = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = "Unique name for this server instance";
|
|
||||||
};
|
|
||||||
port = mkOption {
|
|
||||||
type = types.int;
|
|
||||||
default = 27960;
|
|
||||||
description = "UDP port for the server";
|
|
||||||
};
|
|
||||||
gameMode = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
default = "oa_dm1";
|
|
||||||
description = "Default map or game mode to start";
|
|
||||||
};
|
|
||||||
extraFlags = mkOption {
|
|
||||||
type = types.listOf types.str;
|
|
||||||
default = [ ];
|
|
||||||
description = "Extra flags to pass to oa_ded";
|
|
||||||
};
|
|
||||||
openPorts = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Whether to open firewall ports for this instance";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}));
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue