Files
nixes-stuff/configuration.nix
2025-08-10 21:38:01 -06:00

243 lines
6.4 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernelPackages = pkgs.linuxPackages_latest;
# Plymouth
/*plymouth = {
enable = true;
themePackages = [
(pkgs.runCommand "super-earth-theme" {
src = pkgs.fetchgit {
url = "https://gitea.base.jeditemple.com/EmeraldLockdown/super-earth-theme.git";
rev = "66682f86da28c7474e245e876cf86c7597f542f7";
sha256 = "19bsr68a21m9nwy8a96qjlqz92zya114hh14dfak7r0cy631wcmg";
};
} ''
mkdir -p $out/share/plymouth/themes/super-earth-theme
cp -r $src/* $out/share/plymouth/themes/super-earth-theme
substituteInPlace $out/share/plymouth/themes/super-earth-theme/super-earth-theme.plymouth \
--replace-fail "/usr/" "$out/"
'')
];
theme = "super-earth-theme";
};*/
# Make boot silent
/*consoleLogLevel = 3;
initrd.verbose = false;
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"udev.log_priority=3"
"rd.systemd.show_status=auto"
];*/
};
# Setup swap to 12 gigabytes
swapDevices = [{
device = "/var/lib/swapfile";
size = 12*1024;
}];
networking.hostName = "ExecutorOfFreedom"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# 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.calebelm = {
isNormalUser = true;
description = "Caleb Elmasri";
extraGroups = [ "networkmanager" "wheel" "input" ];
packages = with pkgs; [];
};
# Hardware
hardware = {
graphics.enable = true;
# Bluetooth
bluetooth = {
enable = true;
powerOnBoot = true;
};
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
qt.enable = true;
# Programs
programs = {
steam = {
enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
};
# VSCode
vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
];
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# CLI Tools
vim
git
curl
unzip
jq
nix-prefetch-git
gcc
gdb
# GUI Apps
firefox
wineWowPackages.waylandFull
# Themeing
kde-rounded-corners
# SDDM Theme
/*(pkgs.stdenv.mkDerivation {
pname = "super-earth-sddm";
version = "1.0";
dontBuild = true;
src = pkgs.fetchgit {
url = "https://gitea.base.jeditemple.com/EmeraldLockdown/super-earth-sddm.git";
rev = "2813e2fea9b1bd8968de35f554e6904dd7356deb";
sha256 = "1hvj3xlnicqalhm9rkchx8c979c5pv6719wjkvasw1cik1apfjc1";
};
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/super-earth-sddm
'';
})*/
(pkgs.stdenv.mkDerivation {
name = "superearth";
src = /home/calebelm/Downloads/superearth;
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -r . $out/share/sddm/themes/superearth
'';
})
# QT
(pkgs.writeShellScriptBin "qtcreator" ''
export PATH=${pkgs.qt6.full}/bin:$PATH
exec ${pkgs.qtcreator}/bin/qtcreator "$@"
'')
qtcreator
qt6.full
];
# Fonts
fonts.packages = with pkgs; [
(pkgs.stdenv.mkDerivation {
name = "rajdhani";
version = "1.0";
src = pkgs.fetchzip {
url = "https://font.download/dl/font/rajdhani.zip";
sha256 = "sha256-idB/UYQWsnzDDxjRtjd1ZspFpsqcmP0r0BS2Lk4f+7w=";
stripRoot = false;
};
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype/
'';
})
];
# Services
services = {
# Desktop and display managers
desktopManager.plasma6.enable = true;
displayManager.sddm = {
enable = true;
wayland.enable = true;
#theme = "superearth";
theme = "maya";
};
# Sunshine
sunshine = {
enable = true;
openFirewall = true;
capSysAdmin = true;
};
};
# Flakes Setup
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# 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:
# Enable the OpenSSH daemon.
# services.openssh.enable = 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. Its 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 = "25.05"; # Did you read the comment?
}