Compare commits

..

No commits in common. "0a6d4c7c2f5a17cf7f99df033a4071504edd208d" and "bdd59ab5fe82341524b2d79495fb1c5f1d8c0365" have entirely different histories.

4 changed files with 5 additions and 44 deletions

View file

@ -1,15 +0,0 @@
#!/bin/sh
rig list \
--json \
| jq \
--exit-status \
--arg v "${1}" \
'.[] | select(.version==$v)' \
> /dev/null \
|| rig add "${1}" \
&& rig default "$(rig list \
--json \
| jq \
--raw-output \
--arg v "${1}" \
'.[] | select(.version==$v) | .name')"

View file

@ -10,7 +10,6 @@
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
act act
ansible-lint
earthly earthly
ffmpeg ffmpeg
caladea caladea

View file

@ -55,7 +55,6 @@
- firefoxpwa - firefoxpwa
- ghostty - ghostty
- inkscape - inkscape
- jq
- kate - kate
- kdenlive - kdenlive
- kdiff3 - kdiff3
@ -79,21 +78,13 @@
- zed - zed
- zsh - zsh
- zotero - zotero
- R
state: present state: present
- name: Install Microsoft Core Fonts - name: Install Microsoft Core Fonts
ansible.builtin.dnf: ansible.builtin.dnf:
name: https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm name: https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
state: present state: present
disable_gpg_check: true disable_gpg_check: true
- name: Install rig (R installation manager)
ansible.builtin.dnf:
name: https://github.com/r-lib/rig/releases/download/latest/r-rig-latest-1.{{ ansible_architecture }}.rpm
state: present
disable_gpg_check: true
- name: Install R via rig
ansible.builtin.script:
cmd: "{{ playbook_dir }}/../bin/rig-install.sh 4.4.3"
changed_when: false
# Allows me to run the playbook as a way to upgrade the system packages # Allows me to run the playbook as a way to upgrade the system packages
# This is a violation of ansible-lint's rules, but one of the key reasons I # This is a violation of ansible-lint's rules, but one of the key reasons I
# wrote this playbook in the first place # wrote this playbook in the first place

View file

@ -1,10 +1,6 @@
{ config, pkgs, pkgs-unstable, agenix, ... }: { config, pkgs, pkgs-unstable, agenix, ... }:
let {
r-version = "4.4.3";
rig-install = pkgs.writeShellScriptBin "_rig-install"
(builtins.readFile ./../../bin/rig-install.sh);
in {
# imports = [ <home-manager/nix-darwin> ]; # imports = [ <home-manager/nix-darwin> ];
# List packages installed in system profile. To search by name, run: # List packages installed in system profile. To search by name, run:
@ -12,7 +8,6 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
agenix.packages.aarch64-darwin.default agenix.packages.aarch64-darwin.default
rig-install
]; ];
# Use a custom configuration.nix location. # Use a custom configuration.nix location.
@ -129,16 +124,6 @@ in {
&& xattr -vrd com.apple.quarantine "$0" \ && xattr -vrd com.apple.quarantine "$0" \
|| true' \ || true' \
/Applications/{} /Applications/{}
echo installing R v${r-version} via Rig...
PATH="/usr/local/bin:/usr/bin:${
pkgs.lib.makeBinPath [ pkgs.jq rig-install ]
}:$PATH" \
sudo \
--preserve-env=PATH \
--user=${config.system.primaryUser} \
--set-home \
_rig-install ${r-version}
''; '';
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@ -169,12 +154,12 @@ in {
}; };
taps = [ taps = [
"homebrew/services" "homebrew/services"
"ybeapps/sourcegit"
{ {
name = "millironx/millironx"; name = "millironx/millironx";
clone_target = clone_target =
"https://code.millironx.com/millironx/homebrew-millironx.git"; "https://code.millironx.com/millironx/homebrew-millironx.git";
} }
"r-lib/rig"
]; ];
brews = [ brews = [
"borgbackup/tap/borgbackup-fuse" "borgbackup/tap/borgbackup-fuse"
@ -188,6 +173,7 @@ in {
"docker-credential-helper" "docker-credential-helper"
"firefoxpwa" "firefoxpwa"
"mpv" "mpv"
"r"
]; ];
casks = [ casks = [
"alt-tab" "alt-tab"
@ -210,7 +196,6 @@ in {
"porting-kit" "porting-kit"
"qownnotes" "qownnotes"
"qt-creator" "qt-creator"
"rig"
"rstudio" "rstudio"
"signal" "signal"
"slack" "slack"
@ -222,6 +207,7 @@ in {
"veracrypt" "veracrypt"
"vlc" "vlc"
"vorta" "vorta"
"ybeapps/sourcegit/sourcegit"
"zed" "zed"
"zotero" "zotero"
"zulip" "zulip"