pastila: .

This commit is contained in:
root 2024-05-28 20:09:35 +02:00
parent 0a393fb14a
commit cdda692b12
2 changed files with 18 additions and 13 deletions

17
pastila/armael.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
users.users.armael = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvPrmxY7H6t4ah7d0e7/Jt9RkrPHI1MREukOSSwaqlp armael@teabox"
];
};
environment.systemPackages = with pkgs; [
weechat
];
}

View file

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
let
@ -12,6 +8,7 @@ in
[
./hardware-configuration.nix
./backups.nix
./armael.nix
../common/configuration.nix
];
@ -30,15 +27,6 @@ in
};
networking.nameservers = vars.onlineNetDNS;
# Define a user account. Don't forget to set a password with passwd.
users.users.armael = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvPrmxY7H6t4ah7d0e7/Jt9RkrPHI1MREukOSSwaqlp armael@teabox"
];
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts =
map (port: port.num)