generated from ublue-os/udev-rules
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(just): Created 70-nix.just with nix installation, uninstallation…
…, and configuration (#161) * Create 70-nix.just * added fleek stuff 70-nix.just * Update 70-nix.just made `nix-sudo` delete the nix sudo config file `/etc/sudoers.d/nix-sudo-env` if it exists before generating new `/etc/sudoers.d/nix-sudo-env` * fixed typos in 70-nix.just typo fixes * fixed syntax 70-nix.just * Update 70-nix.just * removed fleek theming from 70-nix.just * fix(nix): Restore theme install, check for mutter * fix(just): Add nix justfile to spec * chore(fleek-themes-install): Use kebab case instead of snake case --------- Co-authored-by: RJ Trujillo <[email protected]>
- Loading branch information
1 parent
2d118d5
commit 9c572b6
Showing
2 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# vim: set ft=make : | ||
|
||
# Install Nix with the Determinate Nix Installer | ||
nix-install: | ||
#!/usr/bin/env bash | ||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sudo bash -s -- install --no-confirm | ||
|
||
# Uninstall Nix | ||
nix-remove: | ||
sudo /nix/nix-installer uninstall | ||
|
||
# Adds the nix bin path to the sudoers config | ||
nix-sudo: | ||
#!/usr/bin/env bash | ||
sudo echo "Adding sudo path variables for nix" | ||
sudo rm -f /etc/sudoers.d/nix-sudo-env | ||
SUDOPATHVARIABLE5=$(sudo printenv PATH) | ||
sudo tee /etc/sudoers.d/nix-sudo-env <<EOF | ||
Defaults secure_path = /nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:$SUDOPATHVARIABLE5 | ||
EOF | ||
sudo echo "Finished adding sudo variables for nix" | ||
|
||
# Removes nix bin path from sudoers config | ||
nix-sudo-undo: | ||
sudo rm -f /etc/sudoers.d/nix-sudo-env | ||
|
||
# Install Fleek (https://getfleek.dev/) | ||
fleek-install: | ||
#!/usr/bin/env bash | ||
if [[ -d "/nix" ]]; then | ||
mkdir -p $HOME/.config/nix | ||
echo "experimental-features = nix-command flakes" >> $HOME/.config/nix/nix.conf | ||
curl -fsSL https://getfleek.dev/installer | env FORCE=1 bash | ||
else | ||
echo "Install nix with ujust nix-install before running ujust fleek-install." | ||
fi | ||
|
||
# Integrate Nix/Fleek applications with system theme | ||
fleek-themes-install: | ||
#!/usr/bin/env bash | ||
if [[ -x "/var/usrlocal/bin/fleek" ]]; then | ||
if command -v mutter; then | ||
fleek add adw-gtk3 --apply | ||
else | ||
fleek add breeze-icons | ||
fleek add libsForQt5.breeze-qt5 | ||
fleek apply | ||
fi | ||
else | ||
echo "Install fleek with ujust fleek-install before running ujust fleek-themes-install." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Name: ublue-os-just | ||
Packager: ublue-os | ||
Vendor: ublue-os | ||
Version: 0.7 | ||
Version: 0.8 | ||
Release: 1%{?dist} | ||
Summary: ublue-os just integration | ||
License: MIT | ||
|
@@ -18,7 +18,8 @@ Source4: 30-distrobox.just | |
Source5: 40-nvidia.just | ||
Source6: 50-akmods.just | ||
Source7: 60-custom.just | ||
Source8: ujust | ||
Source8: 70-nix.just | ||
Source9: ujust | ||
|
||
%global sub_name %{lua:t=string.gsub(rpm.expand("%{NAME}"), "^ublue%-os%-", ""); print(t)} | ||
|
||
|
@@ -51,6 +52,9 @@ install -Dm755 %{SOURCE8} %{buildroot}%{_bindir}/ujust | |
%attr(0755,root,root) %{_bindir}/ujust | ||
|
||
%changelog | ||
* Sat Nov 25 2023 RJ Trujillo <[email protected]> - 0.8 | ||
- Integrate justfile for nix | ||
|
||
* Fri Oct 13 2023 bri <[email protected]> - 0.7 | ||
- Add ujust runner | ||
- Add chsh task | ||
|