Compare commits

..

5 commits
v2.0.0 ... main

Author SHA1 Message Date
Aaron Honeycutt
0d32bf0d6e fix release upload 2025-04-24 13:26:01 -06:00
Aaron Honeycutt
40d1209d75 hotfix with nix file creation 2025-04-24 13:16:45 -06:00
Aaron Honeycutt
58b2337efa run when a tag is manually created 2025-04-24 13:12:27 -06:00
Aaron Honeycutt
c56acc8a33 fix issue with data directory 2025-04-24 12:56:56 -06:00
Aaron Honeycutt
6aa6d925f1 add version number to release 2025-04-24 12:47:12 -06:00
3 changed files with 10 additions and 16 deletions

View file

@ -53,7 +53,6 @@ release-job:
- echo "======== RELEASE JOB ========"
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
release:
tag_name: "v$PKG_VERSION"

View file

@ -1,6 +1,6 @@
[package]
name = "nyxi-installer"
version = "2.0.0"
version = "2.0.2"
edition = "2021"
[dependencies]

View file

@ -114,7 +114,7 @@ fn grab_flake() {
easy.url("https://gitlab.com/ahoneybun/nix-configs/-/raw/main/flake.nix")
.unwrap();
let mut file = File::create("data/flake.nix").unwrap();
let mut file = File::create("flake.nix").unwrap();
{
let mut transfer = easy.transfer();
@ -133,7 +133,7 @@ fn grab_config() {
easy.url("https://gitlab.com/ahoneybun/nix-configs/-/raw/main/configuration.nix")
.unwrap();
let mut file = File::create("data/configuration.nix").unwrap();
let mut file = File::create("configuration.nix").unwrap();
{
let mut transfer = easy.transfer();
@ -152,7 +152,7 @@ fn grab_home() {
easy.url("https://gitlab.com/ahoneybun/nix-configs/-/raw/main/home.nix")
.unwrap();
let mut file = File::create("data/home.nix").unwrap();
let mut file = File::create("home.nix").unwrap();
{
let mut transfer = easy.transfer();
@ -172,7 +172,7 @@ fn grab_gnome() {
.url("https://gitlab.com/ahoneybun/nix-configs/-/raw/main/desktops/gnome.nix")
.unwrap();
let mut config_file = File::create("data/gnome.nix").unwrap();
let mut config_file = File::create("gnome.nix").unwrap();
{
let mut transfer = gnome_config.transfer();
@ -245,12 +245,7 @@ fn main() {
// Copies the nix files to /mnt/etc/nixos/
let _nix_move = Command::new("mv")
.args([
"-f",
"data/flake.nix",
"data/configuration.nix",
"data/home.nix",
])
.args(["-f", "flake.nix", "configuration.nix", "home.nix"])
.arg("/mnt/etc/nixos")
.output()
.expect("Failed to move nix files over");
@ -289,7 +284,7 @@ fn main() {
let mut garrus_config = Easy::new();
garrus_config.url("https://gitlab.com/ahoneybun/nix-configs/-/raw/main/hosts/x86_64/garrus/configuration.nix").unwrap();
let mut config_file = File::create("data/garrus.nix").unwrap();
let mut config_file = File::create("garrus.nix").unwrap();
{
let mut transfer = garrus_config.transfer();
@ -304,7 +299,7 @@ fn main() {
// Copies the system nix files to /mnt/etc/nixos/
let _garrus_nix_copy = Command::new("mv")
.args(["data/garrus.nix", "data/gnome.nix", "/mnt/etc/nixos"])
.args(["garrus.nix", "gnome.nix", "/mnt/etc/nixos"])
.output()
.expect("Failed to copy nix files over");
@ -326,7 +321,7 @@ fn main() {
let mut vm_config = Easy::new();
vm_config.url("https://gitlab.com/ahoneybun/nix-configs/-/raw/main/hosts/x86_64/vm/configuration.nix").unwrap();
let mut config_file = File::create("data/vm.nix").unwrap();
let mut config_file = File::create("vm.nix").unwrap();
{
let mut transfer = vm_config.transfer();
@ -341,7 +336,7 @@ fn main() {
// Copies the system nix files to /mnt/etc/nixos/
let _garrus_nix_copy = Command::new("mv")
.args(["data/vm.nix", "/mnt/etc/nixos"])
.args(["vm.nix", "/mnt/etc/nixos"])
.output()
.expect("Failed to copy nix files over");