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

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" ];

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

@@ -6,7 +6,7 @@
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

@@ -1,10 +1,42 @@
{ 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
nixpkgs.overlays = [
(final: prev:
let
beta = import
(builtins.fetchTarball
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz")
{
system = final.system;
config = final.config;
};
in {
beta = beta;
})
];
# 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 # Browsers and comms
ungoogled-chromium ungoogled-chromium
discord discord
@@ -23,13 +55,14 @@
nodePackages."pnpm" nodePackages."pnpm"
openssl openssl
ffmpeg ffmpeg
vscodium beta.zed-editor
usbutils usbutils
qmk-udev-rules qmk-udev-rules
qmk qmk
# Desktop applications # Desktop applications
bitwarden-desktop bitwarden-desktop
thunderbird
vlc vlc
streamrip streamrip
supersonic supersonic

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;

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
];
}; };
} }