Making Improvements and adding file to simply add programs to system

This commit is contained in:
Tyler Kelley 2024-01-18 20:38:35 -06:00
parent a86e0ea0ea
commit 246a954560
6 changed files with 17 additions and 17 deletions

View File

@ -7,5 +7,7 @@ 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 &
fi
''

View File

@ -1,10 +1,8 @@
{ pkgs, config, ... }:
{
system.activationScripts = {
swayncreloader.text = ''
swaync-client -R
swaync-client -rs
'';
};
# system.userActivationScripts = {
# swayncReloader.text = ''
# '';
# };
}

View File

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

View File

@ -2,15 +2,16 @@
hostname, gitUsername, theLocale,
theTimezone, wallpaperDir, wallpaperGit, ... }:
{
let
userPrograms = builtins.readFile ./user-programs;
in {
imports =
[
./hardware.nix
./config/system/boot.nix
./config/system/intel-opengl.nix
./config/system/amd-opengl.nix
./config/system/programs.nix
./config/system/autorun.nix
# ./config/system/autorun.nix
];
# Enable networking
@ -46,6 +47,11 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List System Programs
environment.systemPackages = with pkgs; [
(import /dev/stdin { inherit userPrograms;})
];
# Steam Configuration
programs.steam = {
enable = true;

View File

@ -20,7 +20,7 @@
gitEmail = "tylerzanekelley@gmail.com";
theLocale = "en_US.UTF-8";
theTimezone = "America/Chicago";
theme = "gigavolt";
theme = "catppuccin-mocha";
browser = "firefox";
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
wallpaperDir = "/home/${username}/Pictures/Wallpapers";

1
user-programs Normal file
View File

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