remove code under comments & add home-server basic config (WIP)

This commit is contained in:
2026-01-31 19:20:54 +03:00
parent c82a74c786
commit 94ab681057
17 changed files with 2008 additions and 129 deletions
+62
View File
@@ -0,0 +1,62 @@
{ 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
];
}