This commit is contained in:
2025-12-22 18:15:30 -08:00
parent 1366dd7378
commit 742a07a650

View File

@ -17,16 +17,23 @@ in
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
environment.sessionVariables = { security.polkit.enable = true;
PATH = "$HOME/bin:#{config.environment.systemPath}";
};
environment = {
sessionVariables = {
PATH = "$HOME/bin:#{config.environment.systemPath}";
};
};
swapDevices = [{ swapDevices = [{
device = "/dev/disk/by-uuid/7fc5202b-5ed9-4697-8314-d797816e5cc4"; device = "/dev/disk/by-uuid/7fc5202b-5ed9-4697-8314-d797816e5cc4";
}]; }];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking = { networking = {
hostName = "titanium"; hostName = "titanium";
@ -36,56 +43,43 @@ in
}; };
}; };
# Set your time zone.
time.timeZone = "US/Pacific"; time.timeZone = "US/Pacific";
#services.redshift = {
# enable = true;
# provider = "manual";
# latitude = "47.777";
# longitude = "-122.222";
# temperature = {
# day = 4500;
# night = 3000;
# };
#};
#services.picom.enable = true;
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
cascadia-code cascadia-code
pkgs.mplus-outline-fonts.osdnRelease pkgs.mplus-outline-fonts.osdnRelease
]; ];
# Configure network proxy if necessary i18n.defaultLocale = "en_US.UTF-8";
# networking.proxy.default = "http://user:password@proxy:port/"; i18n.extraLocales = [ "ja_JP.UTF-8/UTF-8" ];
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties. services = {
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
services.hardware.openrgb.enable = true; hardware.openrgb.enable = true;
services.xserver = {
enable = true;
dpi = 110;
xkb.layout = "us";
videoDrivers = [ "nvidia" ];
displayManager.sddm.enable = true;
windowManager.session = [ printing.enable = true;
{
name = "dwm"; pipewire = {
start = "exec ${mydwm}/bin/dwm"; enable = true;
} pulse.enable = true;
]; };
xserver = {
enable = true;
dpi = 110;
xkb.layout = "us";
videoDrivers = [ "nvidia" ];
displayManager.sddm.enable = true;
windowManager.session = [
{
name = "dwm";
start = "exec ${mydwm}/bin/dwm";
}
];
};
}; };
# nvidia carp # nvidia carp
hardware.nvidia = { hardware.nvidia = {
open = true; open = true;
@ -94,22 +88,10 @@ in
nvidiaSettings = true; nvidiaSettings = true;
}; };
# Configure keymap in X11 # Configure keymap in X11
#services.xserver.xkb.layout = "us"; #services.xserver.xkb.layout = "us";
#services.xserver.xkb.options = "eurosign:e,caps:escape"; #services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
# services.pulseaudio.enable = true;
# OR
services.pipewire = {
enable = true;
pulse.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true; # services.libinput.enable = true;
@ -122,52 +104,72 @@ in
]; ];
}; };
# programs.firefox.enable = true; fileSystems."/mnt/wdraidz" = {
device = "iron:/wdraidz";
fsType = "nfs";
};
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
};
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. # List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options). # You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# cli only
vim vim
wget wget
curl curl
git git
bc bc
dunst lf
redshift pciutils
nut
nfs-utils
lm_sensors
nvtopPackages.nvidia
htop htop
btop btop
lf rmpc
nvtopPackages.nvidia
firefox
pciutils
picom
mpd mpd
mpc mpc
rmpc imagemagick
pulsemixer
alsa-utils
# in between
dunst
redshift
picom
mpv mpv
steam
lm_sensors
nut
spotify
nfs-utils
feh feh
solaar solaar
ueberzugpp ueberzugpp
lxappearance
nordic nordic
capitaine-cursors
# locally maintained sources of these 'packages' # graphical
lxappearance
spotify
firefox
imv
prismlauncher
discord
# sources of these are local, defined in let block at top
mydmenu mydmenu
myst myst
mydwmblocks mydwmblocks
]; ];
fileSystems."/mnt/wdraidz" = {
device = "iron:/wdraidz";
fsType = "nfs";
};
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.