vscodium, steam, add back hardware config

This commit is contained in:
Aria Nolan 2023-11-22 22:18:21 -05:00
parent a2ffbecf1e
commit 518819b6e5
6 changed files with 35 additions and 20 deletions

View file

@ -70,7 +70,7 @@
modules = [ modules = [
./hosts/JWST/configuration.nix ./hosts/JWST/configuration.nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
# nixos-hardware.nixosModules.dell-xps-15-9520 nixos-hardware.nixosModules.dell-xps-15-9520
nixos-hardware.nixosModules.common-gpu-nvidia-disable nixos-hardware.nixosModules.common-gpu-nvidia-disable
{nixpkgs.overlays = overlays;} {nixpkgs.overlays = overlays;}
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

@ -3,7 +3,7 @@
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ {
# config, # config,
# lib, lib,
pkgs, pkgs,
... ...
}: { }: {
@ -63,14 +63,11 @@
# Enable sound. # Enable sound.
sound.enable = true; sound.enable = true;
# hardware.pulseaudio.enable = true;
# services.pipewire.audio.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
audio.enable = true;
alsa.enable = true; alsa.enable = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true;
}; };
xdg.portal = { xdg.portal = {
@ -100,13 +97,6 @@
description = "Aria Nolan"; description = "Aria Nolan";
}; };
# programs.river.enable = true;
# programs.river.extraPackages = with pkgs; [
# swaylock
# swayidle
# brightnessctl
# ];
programs.sway.enable = true; programs.sway.enable = true;
programs.sway.wrapperFeatures.gtk = true; programs.sway.wrapperFeatures.gtk = true;
programs.sway.extraPackages = with pkgs; [ programs.sway.extraPackages = with pkgs; [
@ -117,12 +107,18 @@
]; ];
programs.waybar.enable = true; programs.waybar.enable = true;
# programs.nm-applet.enable = true; programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
];
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
vim vim
exfat exfat
encfs
ntfs3g ntfs3g
]; ];
defaultPackages = with pkgs; [ defaultPackages = with pkgs; [

View file

@ -15,6 +15,7 @@
packages = with pkgs; [ packages = with pkgs; [
rnote rnote
sops sops
neovim
libreoffice libreoffice
notify-desktop notify-desktop
texlive.combined.scheme-medium texlive.combined.scheme-medium

View file

@ -4,6 +4,7 @@
./git.nix ./git.nix
./taskwarrior.nix ./taskwarrior.nix
./firefox.nix ./firefox.nix
./vscode.nix
# ./thunderbird.nix # ./thunderbird.nix
]; ];

View file

@ -0,0 +1,17 @@
{pkgs, ...}: {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
ritwickdey.liveserver
asvetliakov.vscode-neovim
];
userSettings = {
"extensions.experimental.affinity" = {
"asvetliakov.vscode-neovim" = 1;
};
};
};
}

View file

@ -252,7 +252,7 @@ bindsym $mod+r mode "resize"
# } # }
# Screenshot # Screenshot
bindsym Print exec IMG=~/Pictures/screenshots/$(date | sed "s/\s/-/g" | sed "s/--/-/g").png&&grim -g "$(slurp)" $IMG && cat $IMG | wl-copy && notify-desktop "Screenshot has been saved and copied to your clipboard" -a "grim" -u normal -t 2000 bindsym Print exec IMG=~/Pictures/screenshots/$(date | sed "s/\s/-/g" | sed "s/--/-/g").png&&grim -g "$(slurp)" $IMG && cat $IMG | wl-copy
# #
# Player # Player
@ -263,9 +263,9 @@ bindsym $mod+r mode "resize"
# Volume # Volume
# #
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume
bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 ) || pamixer --get-volume
# Bitwarden # Bitwarden
# #
@ -273,8 +273,8 @@ bindsym $mod+r mode "resize"
# Backlight # Backlight
# #
# bindsym XF86MonBrightnessUp exec brightnessctl s +5% bindsym XF86MonBrightnessUp exec brightnessctl s +5%
# bindsym XF86MonBrightnessDown exec brightnessctl s 5%- bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
# #
# SwayFX # SwayFX