nixos-config/hosts/theseus/configuration.nix
2024-04-18 21:10:13 +02:00

82 lines
1.9 KiB
Nix

{
pkgs,
lib,
...
}: {
imports = [
./hardware-configuration.nix
../../common/default.nix
../../common/full-install.nix
../../common/allow-unfree.nix
../../common/locales/en.nix
../../common/locales/en-keymap.nix
../../common/hardware/intelcpu.nix
../../common/hardware/nvidiagpu.nix
../../common/hardware/ssd.nix
../../common/de/plasma6.nix
../../common/de/hyprland.nix
../../common/packages/syncthing.nix
../../common/packages/adguardhome.nix
../../common/tasia-packages.nix
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
# boot.kernelModules = [ "fuse" "kvm-intel" "coretemp" ];
};
networking = {
hostName = "theseus";
firewall.enable = true;
};
users.users.user = {
isNormalUser = true;
description = "User";
extraGroups = ["networkmanager" "wheel" "syncthing"];
initialPassword = "correcthorsebatterystaple";
openssh.authorizedKeys.keys = [
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
];
};
services.btrfs.autoScrub = {
enable = true;
interval = "weekly";
fileSystems = ["/"];
};
# virtualisation.docker.enable = true;
# services.flatpak.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = false; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = false; # Open ports in the firewall for Source Dedicated Server
};
services.syncthing = {
dataDir = lib.mkForce "/home/user/Sync/Phone/";
configDir = lib.mkForce "/home/user/sync/configuration/";
};
environment.systemPackages = with pkgs; [
#
];
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}