Fix Multiple Files & Theme Changing Script

This commit is contained in:
Tyler Kelley 2024-01-18 22:22:47 -06:00
parent 8ee148c2f0
commit 0f214eac96
5 changed files with 17 additions and 21 deletions

View File

@ -3,14 +3,10 @@
{
# Install Packages For The User
home.packages = with pkgs; [
pkgs."${browser}" neofetch lolcat cmatrix discord htop btop libvirt
swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller
libnotify swaynotificationcenter rofi-wayland imv v4l-utils
ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv
gimp obs-studio blender kdenlive meson hugo gnumake ninja go
nodejs godot_4 rustup pavucontrol audacity zeroad xonotic
openra font-awesome symbola noto-fonts-color-emoji material-icons
spotify brightnessctl swayidle vim wget curl neovide neovim
pkgs."${browser}" discord libvirt swww grim slurp gnome.file-roller
swaynotificationcenter rofi-wayland imv transmission-gtk mpv
gimp obs-studio blender kdenlive godot_4 rustup pavucontrol audacity
zeroad xonotic openra font-awesome spotify swayidle vim neovide neovim
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
# Import Scripts
(import ./../scripts/emopicker9000.nix { inherit pkgs; })

View File

@ -7,7 +7,8 @@ pkgs.writeShellScriptBin "themechange" ''
replacement="$1"
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
sudo nixos-rebuild switch --flake ${flakeDir}
${pkgs.toybox}/bin/pkill swaync
${pkgs.swaynotificationcenter}/bin/swaync &
sleep 1
${pkgs.swaynotificationcenter}/bin/swaync-client -R
${pkgs.swaynotificationcenter}/bin/swaync-client -rs
fi
''

View File

@ -1,8 +0,0 @@
{ config, pkgs, userPrograms, ... }:
{
# List System Programs
environment.systemPackages = with pkgs; [
"${userPrograms}"
];
}

View File

@ -11,8 +11,7 @@ in {
./config/system/boot.nix
./config/system/intel-opengl.nix
./config/system/amd-opengl.nix
./config/system/programs.nix { inherit userPrograms; }
# ./config/system/autorun.nix
./config/system/autorun.nix
];
# Enable networking
@ -48,6 +47,15 @@ in {
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List System Programs
environment.systemPackages = with pkgs; [
wget curl cmatrix lolcat neofetch htop btop libvirt
polkit_gnome lm_sensors unzip unrar libnotify
v4l-utils ydotool wl-clipboard socat cowsay lsd
pkg-config meson hugo gnumake ninja go nodejs symbola
noto-fonts-color-emoji material-icons brightnessctl
];
# Steam Configuration
programs.steam = {
enable = true;

View File

@ -1 +0,0 @@
# just enter names of packages space separated 😉