From 1bd3096d53085c2cbe084f29b83584e04f7b3aad Mon Sep 17 00:00:00 2001 From: lsoriano-mcm Date: Fri, 4 Jul 2025 22:06:30 -0500 Subject: [PATCH] fix --- README.md | 4 +++ packages/ags/{biscuit => custom}/.gitignore | 0 packages/ags/{biscuit => custom}/app.ts | 0 packages/ags/{biscuit => custom}/colors.scss | 0 packages/ags/{biscuit => custom}/env.d.ts | 0 packages/ags/{biscuit => custom}/package.json | 0 packages/ags/{biscuit => custom}/style.scss | 0 .../ags/{biscuit => custom}/tsconfig.json | 0 .../ags/{biscuit => custom}/widget/Bar.tsx | 0 packages/ags/home.nix | 2 +- packages/neovim/home.nix | 8 +++--- run.sh | 25 +++++++++++++++++++ 12 files changed, 33 insertions(+), 6 deletions(-) rename packages/ags/{biscuit => custom}/.gitignore (100%) rename packages/ags/{biscuit => custom}/app.ts (100%) rename packages/ags/{biscuit => custom}/colors.scss (100%) rename packages/ags/{biscuit => custom}/env.d.ts (100%) rename packages/ags/{biscuit => custom}/package.json (100%) rename packages/ags/{biscuit => custom}/style.scss (100%) rename packages/ags/{biscuit => custom}/tsconfig.json (100%) rename packages/ags/{biscuit => custom}/widget/Bar.tsx (100%) create mode 100755 run.sh diff --git a/README.md b/README.md index e69de29..1991b62 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,4 @@ +# NixOS Sakamoto +Bloated, but the pros outweighs the cons. + +## Getting Started diff --git a/packages/ags/biscuit/.gitignore b/packages/ags/custom/.gitignore similarity index 100% rename from packages/ags/biscuit/.gitignore rename to packages/ags/custom/.gitignore diff --git a/packages/ags/biscuit/app.ts b/packages/ags/custom/app.ts similarity index 100% rename from packages/ags/biscuit/app.ts rename to packages/ags/custom/app.ts diff --git a/packages/ags/biscuit/colors.scss b/packages/ags/custom/colors.scss similarity index 100% rename from packages/ags/biscuit/colors.scss rename to packages/ags/custom/colors.scss diff --git a/packages/ags/biscuit/env.d.ts b/packages/ags/custom/env.d.ts similarity index 100% rename from packages/ags/biscuit/env.d.ts rename to packages/ags/custom/env.d.ts diff --git a/packages/ags/biscuit/package.json b/packages/ags/custom/package.json similarity index 100% rename from packages/ags/biscuit/package.json rename to packages/ags/custom/package.json diff --git a/packages/ags/biscuit/style.scss b/packages/ags/custom/style.scss similarity index 100% rename from packages/ags/biscuit/style.scss rename to packages/ags/custom/style.scss diff --git a/packages/ags/biscuit/tsconfig.json b/packages/ags/custom/tsconfig.json similarity index 100% rename from packages/ags/biscuit/tsconfig.json rename to packages/ags/custom/tsconfig.json diff --git a/packages/ags/biscuit/widget/Bar.tsx b/packages/ags/custom/widget/Bar.tsx similarity index 100% rename from packages/ags/biscuit/widget/Bar.tsx rename to packages/ags/custom/widget/Bar.tsx diff --git a/packages/ags/home.nix b/packages/ags/home.nix index 60f4e69..8e4e1cf 100644 --- a/packages/ags/home.nix +++ b/packages/ags/home.nix @@ -8,7 +8,7 @@ programs.ags = { enable = true; - configDir = ./biscuit; + configDir = ./custom; extraPackages = let agsPkgs = inputs.ags.packages.${system}; diff --git a/packages/neovim/home.nix b/packages/neovim/home.nix index bcb767c..0a28a65 100644 --- a/packages/neovim/home.nix +++ b/packages/neovim/home.nix @@ -1,12 +1,10 @@ { pkgs, inputs, + system, ... -}: let - nixovim = inputs.nixovim.packages.${pkgs.system}.default; -in { +}: { home.packages = [ - nixovim - pkgs.lazygit + inputs.nixovim.packages.${system}.default ]; } diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..1c26032 --- /dev/null +++ b/run.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +set -e + +OS="$(uname -s)" +ARCH="$(uname -m)" + + +if [[ "$OS" == "Darwin" ]]; then + echo "macOS (Darwin) detected. Running nix-darwin switch..." + sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake .\#macos + echo "macOS configuration updated successfully." + +elif [[ "$OS" == "Linux" && "$ARCH" == "x86_64" ]]; then + echo "Linux (x86_64) detected. Running nixos-rebuild..." + sudo nixos-rebuild switch --flake .\#desktop + echo "NixOS configuration updated successfully." + +else + echo "Unsupported operating system or architecture: $OS ($ARCH)" + echo "This script only supports Darwin (macOS) and Linux (x86_64)." + exit 1 +fi + +exit 0