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 = {
packages = with pkgs; [
act
ansible-lint
earthly
ffmpeg
caladea

View file

@ -55,7 +55,6 @@
- firefoxpwa
- ghostty
- inkscape
- jq
- kate
- kdenlive
- kdiff3
@ -79,21 +78,13 @@
- zed
- zsh
- zotero
- R
state: present
- name: Install Microsoft Core Fonts
ansible.builtin.dnf:
name: https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
state: present
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
# This is a violation of ansible-lint's rules, but one of the key reasons I
# wrote this playbook in the first place

View file

@ -1,10 +1,6 @@
{ 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> ];
# List packages installed in system profile. To search by name, run:
@ -12,7 +8,6 @@ in {
environment.systemPackages = with pkgs; [
vim
agenix.packages.aarch64-darwin.default
rig-install
];
# Use a custom configuration.nix location.
@ -129,16 +124,6 @@ in {
&& xattr -vrd com.apple.quarantine "$0" \
|| true' \
/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" ];
@ -169,12 +154,12 @@ in {
};
taps = [
"homebrew/services"
"ybeapps/sourcegit"
{
name = "millironx/millironx";
clone_target =
"https://code.millironx.com/millironx/homebrew-millironx.git";
}
"r-lib/rig"
];
brews = [
"borgbackup/tap/borgbackup-fuse"
@ -188,6 +173,7 @@ in {
"docker-credential-helper"
"firefoxpwa"
"mpv"
"r"
];
casks = [
"alt-tab"
@ -210,7 +196,6 @@ in {
"porting-kit"
"qownnotes"
"qt-creator"
"rig"
"rstudio"
"signal"
"slack"
@ -222,6 +207,7 @@ in {
"veracrypt"
"vlc"
"vorta"
"ybeapps/sourcegit/sourcegit"
"zed"
"zotero"
"zulip"