nixos-systems/thenix/etc/nixos/configuration.nix

104 lines
3.2 KiB
Nix
Raw Normal View History

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
boot.loader.systemd-boot.enable = true;
environment.systemPackages = with pkgs; [
2024-12-17 13:00:16 -08:00
git
neovim
2024-12-17 13:00:16 -08:00
python3
steamcmd
2024-12-17 13:00:16 -08:00
sunshine
tmux
wget
];
2024-12-17 13:00:16 -08:00
#hardware.pulseaudio.enable = true;
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# Set up networking
networking.hostName = "thenix"; # Define your hostname.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
2024-12-17 13:00:16 -08:00
"steam" "steam-original" "steam-run" "steam-unwrapped" "steamcmd"
];
programs.firefox.enable = true;
# Make neovim the default editor
programs.neovim.enable = true;
programs.neovim.defaultEditor = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
# Enable the KDE Plasma Desktop Environment
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.displayManager.autoLogin = {
enable = true;
user = "eliribble";
};
services.openssh.enable = true;
2024-12-17 13:00:16 -08:00
services.sunshine = {
autoStart = true;
capSysAdmin = true;
enable = true;
openFirewall = true;
};
systemd.network.enable = true;
systemd.network.wait-online.enable = true;
# Set your time zone.
time.timeZone = "America/Phoenix";
# Define a user account. Don't forget to set a password with passwd.
users.users.eliribble = {
isNormalUser = true;
initialPassword = "let_eliribble_in";
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.10"; # Did you read the comment?
}