From b74297fff01e84bad57f382911275531373e72b4 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sat, 10 Aug 2024 12:09:32 -0500 Subject: [PATCH] hosts/server | update to match changes upstream --- hosts/server/default.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/hosts/server/default.nix b/hosts/server/default.nix index 093c5a9..b32e707 100644 --- a/hosts/server/default.nix +++ b/hosts/server/default.nix @@ -48,13 +48,16 @@ in { }; # Select internationalisation properties. - i18n.defaultLocale = "en_US.utf8"; - i18n.inputMethod = { - enabled = "fcitx5"; - fcitx5.addons = with pkgs; [ - fcitx5-mozc - fcitx5-gtk - ]; + i18n = { + defaultLocale = "en_US.utf8"; + inputMethod = { + enabled = true; + type = "fcitx5"; + fcitx5.addons = with pkgs; [ + fcitx5-mozc + fcitx5-gtk + ]; + }; }; # Bootloader. @@ -133,6 +136,13 @@ in { security.rtkit.enable = true; users.users = { + root = { + initialPassword = "changeme"; + description = "root of all evil"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki" + ]; + }; don = { isNormalUser = true; initialPassword = "changeme"; @@ -142,12 +152,6 @@ in { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki" ]; }; - root = { - initialPassword = "changeme"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki" - ]; - }; }; #nixpkgs.config.allowUnfree = true;