Initial Commit

This commit is contained in:
Henry Hiles 2023-07-01 18:01:50 -04:00
parent 0b2e96ffc4
commit e705cfd463
11 changed files with 595 additions and 0 deletions

BIN
quadraticpc/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

View file

@ -0,0 +1,107 @@
{pkgs, ...}: {
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernelParams = ["sysrq_always_enabled=1"];
};
hardware = {
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
nvidia = {
modesetting.enable = true;
nvidiaPersistenced = true;
open = true;
nvidiaSettings = false;
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:00:02:0";
nvidiaBusId = "PCI:01:00:0";
};
};
};
networking = {
hostName = "quadraticpc";
networkmanager.enable = true;
};
services = {
xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
layout = "us";
videoDrivers = ["nvidia"];
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
#jack.enable = true;
};
printing.enable = true;
auto-cpufreq.enable = true;
};
environment = {
shellAliases = {
neofetch = "neowofetch";
};
sessionVariables = {
XDG_DATA_HOME = "$HOME/.local/share";
EDITOR = "micro";
VISUAL = "micro";
NIXOS_OZONE_WL = "1";
fish_greeting = "";
};
systemPackages = with pkgs; [
heroic
killall
armcord
hyfetch
gnomeExtensions.caffeine
gnomeExtensions.pop-shell
gnomeExtensions.appindicator
gnomeExtensions.search-light
gnomeExtensions.blur-my-shell
gnomeExtensions.aylurs-widgets
gnomeExtensions.just-perfection
gnomeExtensions.burn-my-windows
gnomeExtensions.fullscreen-avoider
gnomeExtensions.compiz-windows-effect
];
};
programs = {
steam = {
enable = true;
package = pkgs.symlinkJoin {
name = pkgs.steam.name;
paths = [pkgs.steam];
buildInputs = [pkgs.makeWrapper];
postBuild = ''wrapProgram $out/bin/steam --add-flags "-gamepadui"'';
};
};
fish.interactiveShellInit = "neowofetch";
};
sound.enable = true;
system.stateVersion = "23.05";
hardware.pulseaudio.enable = false;
}

View file

@ -0,0 +1,47 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd = {
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"];
kernelModules = [];
};
kernelModules = ["kvm-intel"];
extraModulePackages = [];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/f4b1301b-c329-4c3c-9f3a-5584bc22d0c1";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3B50-5881";
fsType = "vfat";
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,19 @@
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.quadradical = {
home = {
username = "quadradical";
homeDirectory = "/home/quadradical";
};
};
home-manager.sharedModules = [
{
programs.home-manager.enable = true;
home.stateVersion = "23.11";
}
../home-manager/git.nix
../home-manager/btop.nix
../home-manager/vscode.nix
];
}

33
quadraticpc/stylix.nix Normal file
View file

@ -0,0 +1,33 @@
{pkgs, ...}: {
stylix = {
image = ./background.jpg;
base16Scheme = "${pkgs.base16-schemes}/share/themes/nord.yaml";
fonts = {
serif = {
name = "Cantarell";
package = pkgs.cantarell-fonts;
};
sansSerif = {
name = "Cantarell";
package = pkgs.cantarell-fonts;
};
monospace = {
name = "FiraCode Nerd Font";
package = pkgs.nerdfonts.override {fonts = ["FiraCode"];};
};
emoji = {
name = "Twitter Color Emoji";
package = pkgs.twitter-color-emoji;
};
sizes = {
applications = 11;
desktop = 11;
};
};
};
}