1757628813
This commit is contained in:
@@ -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";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Pulse Audio
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
# Pipewire
|
# Pipewire
|
||||||
|
|||||||
@@ -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" ];
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
];
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user