make root shell a little more bearable

This commit is contained in:
Haak Saxberg 2022-08-10 21:21:17 -07:00
parent 0eebe6f973
commit 36f1b046bb

View file

@ -21,15 +21,31 @@ in
# for nixops to log in and perform operations as haak (instead of root) # for nixops to log in and perform operations as haak (instead of root)
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
home-manager.users.haak = (import ../home/commandline.nix);
# Configure the root account
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
(import ../system/framework/keys.nix).ssh.public (import ../system/framework/keys.nix).ssh.public
]; ];
home-manager.users.haak = (import ../home/commandline.nix); users.extraUsers.root = {
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
tmux tmux
ripgrep ripgrep
htop
]; ];
# Optimize nix store by hardlinking identitical files.
nix.settings.auto-optimise-store = true;
# Limit the systemd journal to 100 MB of disk or the
# last 7 days of logs, whichever happens first.
services.journald.extraConfig = ''
SystemMaxUse=100M
MaxFileSec=7day
'';
}; };
server = server =