From cdda692b1242a7f5654e86e688b34f9eedf25e7a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 May 2024 20:09:35 +0200 Subject: [PATCH] pastila: . --- pastila/armael.nix | 17 +++++++++++++++++ pastila/configuration.nix | 14 +------------- 2 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 pastila/armael.nix diff --git a/pastila/armael.nix b/pastila/armael.nix new file mode 100644 index 0000000..f0ccf93 --- /dev/null +++ b/pastila/armael.nix @@ -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 + ]; + +} \ No newline at end of file diff --git a/pastila/configuration.nix b/pastila/configuration.nix index e1d4cd3..53f0aaf 100644 --- a/pastila/configuration.nix +++ b/pastila/configuration.nix @@ -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)