zaneyos/workstation/configuration.nix

148 lines
3.7 KiB
Nix
Raw Normal View History

2023-12-14 00:09:39 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
2024-01-09 23:50:24 +01:00
{ inputs, config, pkgs, ... }:
2023-12-14 00:09:39 +01:00
{
imports =
2024-01-09 23:50:24 +01:00
[ # Include the results of the hardware scan.
./hardware-configuration.nix
2023-12-14 00:09:39 +01:00
];
2024-01-09 23:50:24 +01:00
# Bootloader.
2023-12-14 00:09:39 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-01-09 23:50:24 +01:00
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
2023-12-14 00:09:39 +01:00
networking.hostName = "hyprnix"; # Define your hostname.
2024-01-09 23:50:24 +01:00
# Enable networking
networking.networkmanager.enable = true;
2023-12-14 00:09:39 +01:00
# Set your time zone.
time.timeZone = "America/Chicago";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Define a user account. Don't forget to set a password with passwd.
users.users.zaney = {
isNormalUser = true;
description = "Tyler Kelley";
2024-01-09 23:50:24 +01:00
extraGroups = [ "networkmanager" "wheel" ];
2023-12-14 00:09:39 +01:00
packages = with pkgs; [];
};
2024-01-09 23:50:24 +01:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2023-12-14 00:09:39 +01:00
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
2024-01-09 23:50:24 +01:00
vim wget curl
2023-12-14 00:09:39 +01:00
];
2023-12-14 09:35:46 +01:00
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
2023-12-14 00:09:39 +01:00
# Steam Configuration
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
# OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
2024-01-09 23:50:24 +01:00
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
# 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;
};
# List services that you want to enable:
services.openssh.enable = true;
services.fstrim.enable = true;
services.xserver = {
layout = "us";
xkbVariant = "";
libinput.enable = true;
videoDrivers = [ "amdgpu" ];
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
hardware.pulseaudio.enable = false;
sound.enable = true;
security.rtkit.enable = true;
system.stateVersion = "23.11";
2023-12-14 00:09:39 +01:00
nix = {
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
# Set Environment Variables
environment.variables={
NIXOS_OZONE_WL = "1";
PATH = [
"\${HOME}/.local/bin"
"\${HOME}/.cargo/bin"
"\$/usr/local/bin"
];
NIXPKGS_ALLOW_UNFREE = "1";
SCRIPTDIR = "\${HOME}/.local/share/scriptdeps";
STARSHIP_CONFIG = "\${HOME}/.config/starship/starship.toml";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
GDK_BACKEND = "wayland";
CLUTTER_BACKEND = "wayland";
SDL_VIDEODRIVER = "x11";
XCURSOR_SIZE = "24";
XCURSOR_THEME = "Bibata-Modern-Ice";
QT_QPA_PLATFORM = "wayland";
QT_QPA_PLATFORMTHEME = "qt5ct";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
MOZ_ENABLE_WAYLAND = "1";
};
2024-01-09 23:50:24 +01:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2023-12-14 00:09:39 +01:00
}