mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-22 06:33:08 +01:00
Making Improvements and adding file to simply add programs to system
This commit is contained in:
parent
a86e0ea0ea
commit
246a954560
@ -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
|
||||
''
|
||||
|
@ -1,10 +1,8 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
system.activationScripts = {
|
||||
swayncreloader.text = ''
|
||||
swaync-client -R
|
||||
swaync-client -rs
|
||||
'';
|
||||
};
|
||||
# system.userActivationScripts = {
|
||||
# swayncReloader.text = ''
|
||||
# '';
|
||||
# };
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
# List System Programs
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
}
|
12
default.nix
12
default.nix
@ -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;
|
||||
|
@ -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
1
user-programs
Normal file
@ -0,0 +1 @@
|
||||
# just enter names of packages space separated 😉
|
Loading…
Reference in New Issue
Block a user