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’).
|
|
|
|
|
|
2023-12-14 05:42:21 +01:00
|
|
|
|
{ config, pkgs, ... }:
|
2023-12-14 00:09:39 +01:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
2023-12-14 05:42:21 +01:00
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
# Include Home Manager
|
|
|
|
|
<home-manager/nixos>
|
2023-12-14 00:09:39 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Bootloader
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
# Networking
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
networking.hostName = "hyprnix"; # Define your hostname.
|
|
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "disk" "power" "video" ];
|
|
|
|
|
packages = with pkgs; [];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.hyprland.enable = true;
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
# Import Scripts
|
|
|
|
|
(import ../scripts/emopicker9000.nix { inherit pkgs; })
|
|
|
|
|
(import ../scripts/task-waybar.nix { inherit pkgs; })
|
|
|
|
|
(import ../scripts/squirtle.nix { inherit pkgs; })
|
|
|
|
|
# Utils
|
|
|
|
|
vim
|
|
|
|
|
wget
|
|
|
|
|
btop
|
|
|
|
|
git
|
|
|
|
|
libvirt
|
|
|
|
|
swww
|
|
|
|
|
polkit_gnome
|
|
|
|
|
grim
|
|
|
|
|
slurp
|
|
|
|
|
lm_sensors
|
|
|
|
|
unzip
|
|
|
|
|
unrar
|
2023-12-14 05:42:21 +01:00
|
|
|
|
gnome.file-roller
|
2023-12-14 00:09:39 +01:00
|
|
|
|
libnotify
|
|
|
|
|
swaynotificationcenter
|
|
|
|
|
tofi
|
|
|
|
|
xfce.thunar
|
|
|
|
|
imv
|
|
|
|
|
killall
|
|
|
|
|
v4l-utils
|
|
|
|
|
# Misc
|
|
|
|
|
ydotool
|
|
|
|
|
wl-clipboard
|
|
|
|
|
socat
|
|
|
|
|
cowsay
|
|
|
|
|
lsd
|
|
|
|
|
neofetch
|
|
|
|
|
pkg-config
|
|
|
|
|
cmatrix
|
|
|
|
|
lolcat
|
|
|
|
|
transmission-gtk
|
|
|
|
|
# Photo & Video
|
|
|
|
|
mpv
|
|
|
|
|
gimp
|
|
|
|
|
obs-studio
|
|
|
|
|
blender
|
|
|
|
|
kdenlive
|
|
|
|
|
# Online
|
|
|
|
|
firefox
|
|
|
|
|
discord
|
|
|
|
|
# Dev
|
|
|
|
|
meson
|
|
|
|
|
glibc
|
|
|
|
|
hugo
|
|
|
|
|
gnumake
|
|
|
|
|
ninja
|
|
|
|
|
go
|
|
|
|
|
nodejs_21
|
2023-12-14 05:42:21 +01:00
|
|
|
|
godot_4
|
|
|
|
|
rustup
|
|
|
|
|
rust-analyzer
|
2023-12-14 00:09:39 +01:00
|
|
|
|
# Audio
|
|
|
|
|
pavucontrol
|
|
|
|
|
audacity
|
|
|
|
|
# Gaming
|
|
|
|
|
zeroad
|
|
|
|
|
xonotic
|
|
|
|
|
openra
|
|
|
|
|
# Fonts
|
|
|
|
|
font-awesome
|
|
|
|
|
symbola
|
|
|
|
|
noto-fonts-color-emoji
|
|
|
|
|
nerdfonts
|
|
|
|
|
material-icons
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Bash Completion
|
|
|
|
|
environment.pathsToLink = [ "/share/bash-completion" ];
|
|
|
|
|
|
|
|
|
|
# Steam Configuration
|
|
|
|
|
programs.steam = {
|
|
|
|
|
enable = true;
|
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# OpenGL
|
|
|
|
|
hardware.opengl = {
|
|
|
|
|
enable = true;
|
|
|
|
|
driSupport = true;
|
|
|
|
|
driSupport32Bit = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Nix Package Management
|
|
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
# Automatic Updates
|
|
|
|
|
system.autoUpgrade = {
|
|
|
|
|
enable = true;
|
|
|
|
|
channel = "https://nixos.org/channels/nixos-23.11";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
# Open ports in the firewall.
|
|
|
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
|
# networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|