121 lines
2.0 KiB
Nix
121 lines
2.0 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
(fetchTarball "https://github.com/msteen/nixos-vscode-server/tarball/master")
|
|
];
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
autosuggestions.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
ohMyZsh = {
|
|
enable = true;
|
|
theme = "agnoster";
|
|
customPkgs = [
|
|
pkgs.zsh-autosuggestions
|
|
pkgs.zsh-syntax-highlighting
|
|
pkgs.zsh-powerlevel10k
|
|
];
|
|
plugins = [
|
|
"cp"
|
|
"common-aliases"
|
|
"docker "
|
|
"systemd"
|
|
"wd"
|
|
"kubectl"
|
|
"git"
|
|
# "zsh-autosuggestions"
|
|
# "zsh-syntax-highlightin"
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
vscode-server.enable = true;
|
|
openssh = {
|
|
enable = true;
|
|
permitRootLogin = "no";
|
|
passwordAuthentication = false;
|
|
openFirewall = true;
|
|
};
|
|
nextdns = {
|
|
enable = true;
|
|
arguments = [
|
|
"-config"
|
|
"aaa56c"
|
|
"-cache-size"
|
|
"10MB"
|
|
"-listen"
|
|
"127.0.0.1:53"
|
|
"-report-client-info"
|
|
];
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
nameservers = [ "127.0.0.1" "::1" ];
|
|
# If using dhcpcd:
|
|
dhcpcd.extraConfig = "nohook resolv.conf";
|
|
# If using NetworkManager:
|
|
networkmanager.dns = "none";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
ack
|
|
atop
|
|
borgbackup
|
|
bpytop
|
|
broot
|
|
btrfs-progs
|
|
bwm_ng
|
|
dfc
|
|
git
|
|
glances
|
|
gocryptfs
|
|
home-manager
|
|
htop
|
|
inxi
|
|
iotop
|
|
lm_sensors
|
|
lsof
|
|
manpages
|
|
ncdu
|
|
nodejs
|
|
pciutils
|
|
pstree
|
|
ruby
|
|
sshfs
|
|
tealdeer
|
|
tree
|
|
usbutils
|
|
wget
|
|
zsh
|
|
neofetch
|
|
cargo
|
|
];
|
|
|
|
documentation.enable = false;
|
|
|
|
nix.autoOptimiseStore = true;
|
|
|
|
boot = {
|
|
tmpOnTmpfs = true;
|
|
kernelParams = [ "quiet" ];
|
|
consoleLogLevel = 0;
|
|
kernel.sysctl = {
|
|
"vm.max_map_count" = 262144;
|
|
};
|
|
};
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
}
|