63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ config, pkgs, gitName, gitEmail, ... }:
|
|
|
|
# i have to use other home manager module (without telegram and so on)
|
|
# i don't need home-manager.
|
|
|
|
# TODO Actions on lid close
|
|
|
|
{
|
|
networking.hostName = "home-server";
|
|
imports = [
|
|
../../nixos/custom.nix
|
|
./hardware-configuration.nix
|
|
./zsh.nix
|
|
./tmux.nix
|
|
];
|
|
|
|
fileSystems."/".options = [ "noatime" "compress=zstd" ];
|
|
swapDevices = [{
|
|
device = "/swapfile";
|
|
size = 8 * 1024;
|
|
randomEncryption.enable = false;
|
|
}];
|
|
|
|
# --- Disable useless shit ---
|
|
services.displayManager.gdm.enable = false;
|
|
programs.hyprland.enable = false;
|
|
programs.steam.enable = false;
|
|
programs.firefox.enable = false;
|
|
|
|
virtualisation.virtualbox.host.enable = false;
|
|
virtualisation.libvirtd.enable = false;
|
|
virtualisation.spiceUSBRedirection.enable = false;
|
|
programs.virt-manager.enable = false;
|
|
|
|
boot.plymouth.enable = false;
|
|
|
|
# --- End ---
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
pull.rebase = true;
|
|
user = {
|
|
name = gitName;
|
|
email = gitEmail;
|
|
};
|
|
};
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = { PasswordAuthentication = false; };
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
qbittorrent-nox # config for webui port
|
|
jellyfin
|
|
|
|
];
|
|
|
|
}
|