make root shell a little more bearable
This commit is contained in:
parent
0eebe6f973
commit
36f1b046bb
1 changed files with 17 additions and 1 deletions
|
|
@ -21,15 +21,31 @@ in
|
|||
|
||||
# for nixops to log in and perform operations as haak (instead of root)
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
home-manager.users.haak = (import ../home/commandline.nix);
|
||||
|
||||
# Configure the root account
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
(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; [
|
||||
tmux
|
||||
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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue