81 lines
1.4 KiB
Nix
81 lines
1.4 KiB
Nix
{pkgs, ...}: {
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
git
|
|
git-lfs
|
|
gnumake
|
|
zip
|
|
fish
|
|
trash-cli
|
|
tmux
|
|
zoxide
|
|
htop
|
|
unzip
|
|
tlrc
|
|
(pkgs.writeShellScriptBin "wake-ymir" ''
|
|
echo waking up ymir
|
|
${pkgs.wakeonlan}/bin/wakeonlan 04:7c:16:e6:d9:13
|
|
'')
|
|
btop
|
|
pciutils
|
|
nodePackages.npm
|
|
nodejs
|
|
cloc
|
|
neofetch
|
|
inxi
|
|
jq
|
|
onefetch
|
|
just
|
|
gh
|
|
starship
|
|
tree
|
|
nix-output-monitor
|
|
yazi
|
|
ripgrep
|
|
nh
|
|
comma
|
|
bat
|
|
];
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
package = pkgs.direnv;
|
|
silent = false;
|
|
loadInNixShell = true;
|
|
direnvrcExtra = "";
|
|
nix-direnv = {
|
|
enable = true;
|
|
package = pkgs.nix-direnv;
|
|
};
|
|
};
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
# Enable the OpenSSH daemon.
|
|
services.openssh = {
|
|
enable = true;
|
|
startWhenNeeded = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
|
|
# only allow key based logins and not password
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
AuthenticationMethods = "publickey";
|
|
PubkeyAuthentication = "yes";
|
|
ChallengeResponseAuthentication = "no";
|
|
UsePAM = false;
|
|
|
|
# kick out inactive sessions
|
|
ClientAliveCountMax = 5;
|
|
ClientAliveInterval = 60;
|
|
};
|
|
};
|
|
|
|
services.vscode-server.enable = true;
|
|
}
|