mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 11:04:19 +00:00
Add apollo admin account
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Users
|
||||
../../users/caperren/caperren.nix
|
||||
../../users/apollo-admin/apollo-admin.nix
|
||||
|
||||
# System Configuration
|
||||
../../modules/system/cpu-intel.nix
|
||||
|
||||
44
users/apollo-admin/apollo-admin.nix
Normal file
44
users/apollo-admin/apollo-admin.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
sshCaperrenDesktopPubkey = builtins.readFile ../caperren/pubkeys/cap-nr200p.pub;
|
||||
sshCaperrenLaptopPubkey = builtins.readFile ../caperren/pubkeys/cap-slim7.pub;
|
||||
in
|
||||
{
|
||||
users.users.apollo-admin = {
|
||||
initialPassword = "changeme";
|
||||
isNormalUser = true;
|
||||
description = "Cluster Admin";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
sshCaperrenDesktopPubkey
|
||||
sshCaperrenLaptopPubkey
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.apollo-admin = {
|
||||
home.username = "apollo-admin";
|
||||
home.homeDirectory = "/home/apollo-admin";
|
||||
home.stateVersion = "25.05";
|
||||
|
||||
home.packages = with pkgs; [ ];
|
||||
|
||||
programs.bash.enable = true;
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = "Corwin Perren";
|
||||
email = "caperren@gmail.com";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font.name = "JetBrains Mono";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user