1757628813

This commit is contained in:
2025-09-11 16:13:33 -06:00
parent 2eb67c51ed
commit ff3606acaf
9 changed files with 100 additions and 80 deletions

View File

@@ -20,8 +20,5 @@
"nix:edit:aliases" = "sudo nano ~/Developer/lavitz/modules/aliases.nix"; "nix:edit:aliases" = "sudo nano ~/Developer/lavitz/modules/aliases.nix";
"nix:conf:push" = "sudo rm -rf /etc/nixos/configuration.nix && sudo cp ~/Developer/lavitz/configuration.nix /etc/nixos/configuration.nix && sudo rm -rf /etc/nixos/modules && sudo cp -r ~/Developer/lavitz/modules /etc/nixos/ && cd ~/Developer/lavitz && git add -A && git commit -m \"$(date -u +%s)\" && git push"; "nix:conf:push" = "sudo rm -rf /etc/nixos/configuration.nix && sudo cp ~/Developer/lavitz/configuration.nix /etc/nixos/configuration.nix && sudo rm -rf /etc/nixos/modules && sudo cp -r ~/Developer/lavitz/modules /etc/nixos/ && cd ~/Developer/lavitz && git add -A && git commit -m \"$(date -u +%s)\" && git push";
"nix:conf:pull" = "cd ~/Developer/lavitz && git pull && sudo rm -rf /etc/nixos/configuration.nix && sudo cp ~/Developer/lavitz/configuration.nix /etc/nixos/configuration.nix && sudo rm -rf /etc/nixos/modules && sudo cp -r ~/Developer/lavitz/modules /etc/nixos/"; "nix:conf:pull" = "cd ~/Developer/lavitz && git pull && sudo rm -rf /etc/nixos/configuration.nix && sudo cp ~/Developer/lavitz/configuration.nix /etc/nixos/configuration.nix && sudo rm -rf /etc/nixos/modules && sudo cp -r ~/Developer/lavitz/modules /etc/nixos/";
# General Utils
"audio:reset" = "pactl set-default-source alsa_input.usb-Elgato_Systems_Elgato_Wave_3_BS31K1A05440-00.mono-fallback";
}; };
} }

View File

@@ -1,7 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Pulse Audio
security.rtkit.enable = true; security.rtkit.enable = true;
# Pipewire # Pipewire
@@ -11,4 +10,4 @@
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
} }

View File

@@ -5,7 +5,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel # Kernel
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -17,4 +17,4 @@
]; ];
boot.kernelParams = [ "preempt=full" ]; boot.kernelParams = [ "preempt=full" ];
} }

View File

@@ -1,19 +1,19 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Enable the X11 windowing system # Enable X11
services.xserver.enable = true; services.xserver.enable = true;
# Enable the GNOME Desktop Environment # Enable GNOME
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11 # Configure XKB
services.xserver.xkb = { services.xserver.xkb = {
layout = "us"; layout = "us";
variant = ""; variant = "";
}; };
# Enable CUPS to print documents # Enable CUPS for printing
services.printing.enable = true; services.printing.enable = true;
} }

View File

@@ -5,8 +5,8 @@
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
}; };
# Load nvidia driver for Xorg and Wayland # Load nvidia driver for X and Wayland
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
@@ -17,7 +17,4 @@
open = false; open = false;
nvidiaSettings = true; nvidiaSettings = true;
}; };
}
# # Enable CUDA OS-wide
# nixpkgs.config.cudaSupport = true;
}

View File

@@ -9,4 +9,4 @@
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
} }

View File

@@ -1,57 +1,90 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Allow unfree packages from the stable channel # Enable unfree globally
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ # Mount nixos-unstable under pkgs.beta
# Browsers and comms nixpkgs.overlays = [
ungoogled-chromium (final: prev:
discord let
signal-desktop-bin beta = import
(builtins.fetchTarball
# Development tools "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz")
git {
go system = final.system;
cargo config = final.config;
rustc };
rust-analyzer in {
rustfmt beta = beta;
nodejs_24 })
python3Full
openssh
nodePackages."pnpm"
openssl
ffmpeg
vscodium
usbutils
qmk-udev-rules
qmk
# Desktop applications
bitwarden-desktop
vlc
streamrip
supersonic
nextcloud-client
zotero
prismlauncher
lrcget
slack
impression
ardour
krita
inkscape
streamcontroller
easyeffects
# Gaming
luanti
duckstation
dolphin-emu
ryubing
# GNOME extensions
gnomeExtensions.appindicator
]; ];
}
# Default browser settings
xdg = {
mime.enable = true;
mime.defaultApplications = {
"text/html" = [ "ungoogled-chromium.desktop" ];
"application/xhtml+xml" = [ "ungoogled-chromium.desktop" ];
"x-scheme-handler/http" = [ "ungoogled-chromium.desktop" ];
"x-scheme-handler/https" = [ "ungoogled-chromium.desktop" ];
"x-scheme-handler/ftp" = [ "ungoogled-chromium.desktop" ];
"application/x-www-browser" = [ "ungoogled-chromium.desktop" ];
};
};
environment.variables.BROWSER = "chromium";
environment.systemPackages =
with pkgs; [
# Browsers and comms
ungoogled-chromium
discord
signal-desktop-bin
# Development tools
git
go
cargo
rustc
rust-analyzer
rustfmt
nodejs_24
python3Full
openssh
nodePackages."pnpm"
openssl
ffmpeg
beta.zed-editor
usbutils
qmk-udev-rules
qmk
# Desktop applications
bitwarden-desktop
thunderbird
vlc
streamrip
supersonic
nextcloud-client
zotero
prismlauncher
lrcget
slack
impression
ardour
krita
inkscape
streamcontroller
easyeffects
# Gaming
luanti
duckstation
dolphin-emu
ryubing
# GNOME extensions
gnomeExtensions.appindicator
];
}

View File

@@ -4,7 +4,7 @@
# Enable the OpenSSH daemon # Enable the OpenSSH daemon
services.openssh.enable = true; services.openssh.enable = true;
# Sleep configuration optimized for NVIDIA # Sleep config for NVIDIA
systemd.sleep.extraConfig = '' systemd.sleep.extraConfig = ''
AllowSuspend=yes AllowSuspend=yes
AllowHibernation=no AllowHibernation=no
@@ -12,9 +12,6 @@
AllowSuspendThenHibernate=no AllowSuspendThenHibernate=no
''; '';
# Docker
virtualisation.docker.enable = true;
# Fwupd # Fwupd
services.fwupd.enable = true; services.fwupd.enable = true;
@@ -25,4 +22,4 @@
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0660", GROUP="plugdev" ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0660", GROUP="plugdev"
ACTION=="add", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0b05", MODE="0660", GROUP="plugdev" ACTION=="add", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0b05", MODE="0660", GROUP="plugdev"
''; '';
} }

View File

@@ -11,8 +11,5 @@
isNormalUser = true; isNormalUser = true;
description = "Atridad"; description = "Atridad";
extraGroups = [ "networkmanager" "wheel" "docker" "plugdev" ]; extraGroups = [ "networkmanager" "wheel" "docker" "plugdev" ];
packages = with pkgs; [
thunderbird
];
}; };
} }