Compare commits

...

4 Commits

Author SHA1 Message Date
Daylin Morgan 3547ecd3c5
vutlr is dead long live hetzner 2024-04-04 14:06:03 -05:00
Daylin Morgan a403d14110
don't use b.release_mode 2024-04-04 13:31:16 -05:00
Daylin Morgan 3c29db51ed
pr was merged 2024-04-04 13:09:47 -05:00
Daylin Morgan 3bed7b455b
honor --no-pinix flag 2024-04-04 12:55:19 -05:00
5 changed files with 9 additions and 9 deletions

View File

@ -22,7 +22,7 @@ See below for the currently maintained hosts.
<tr>
<td><img src="https://upload.wikimedia.org/wikipedia/commons/d/df/Runic_letter_algiz.svg"></td>
<td>algiz</td>
<td>Vultr VPS hosting forgejo,soft-serve & gts</td>
<td>Hetzner Cloud hosting forgejo,soft-serve & gts</td>
</tr>
<tr>
<td><img src="https://upload.wikimedia.org/wikipedia/commons/5/57/Runic_letter_mannaz.svg"></td>

View File

@ -1,7 +1,7 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
b.release_mode = .safe;
// b.release_mode = .safe;
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

View File

@ -3,7 +3,7 @@
.version = "0.0.0",
.dependencies = .{
.yazap = .{
.url = "git+https://github.com/cdmistman/yazap.git#1ae1a5b562f5c66caf8e87e04313094f16e327fc",
.url = "git+https://github.com/prajwalch/yazap.git#341750ff62e3102da4a7f8233920aebace1fc337",
.hash = "1220fa71798c994044a987cbde6e73af76bfc402117a61971ccf48f4af4b7154e8d3",
},
},

View File

@ -1,7 +1,7 @@
{
"1220fa71798c994044a987cbde6e73af76bfc402117a61971ccf48f4af4b7154e8d3": {
"name": "yazap",
"url": "git+https://github.com/cdmistman/yazap.git#1ae1a5b562f5c66caf8e87e04313094f16e327fc",
"url": "git+https://github.com/prajwalch/yazap.git#341750ff62e3102da4a7f8233920aebace1fc337",
"hash": "sha256-nNhFpay+xk0Ix3GAT1fZ2q/bD9AAx7Xkl4X7QxlzK0M="
}
}

View File

@ -9,8 +9,8 @@ host: []const u8,
cache_name: []const u8,
output: []const u8,
cmd: OizysCmd,
no_pinix: bool,
debug: bool = false,
no_pinix: bool = false,
pub const OizysCmd = enum {
dry,
@ -26,15 +26,15 @@ pub fn init(allocator: std.mem.Allocator, matches: *const ArgMatches) !Oizys {
const flags = matches.subcommandMatches(cmd).?;
const host = flags.getSingleValue("host") orelse try Oizys.getDefaultHostName(allocator);
const flake = flags.getSingleValue("flake") orelse try Oizys.getDefaultFlake(allocator);
const cache_name = flags.getSingleValue("cache") orelse "daylin";
return Oizys{
.allocator = allocator,
.host = host,
.flake = flake,
.flake = flake,
.output = try std.fmt.allocPrint(allocator, "{s}#nixosConfigurations.{s}.config.system.build.toplevel", .{ flake, host }),
.cmd = std.meta.stringToEnum(OizysCmd, cmd).?,
.cache_name = cache_name,
.cache_name = flags.getSingleValue("cache") orelse "daylin",
.no_pinix = flags.containsArg("no-pinix"),
};
}
@ -86,7 +86,7 @@ pub fn runNixCmd(self: *Oizys, cmd: NixCmd, argv: []const []const u8) !void {
}
pub fn cache(self: *Oizys) !void {
var p = std.ChildProcess.init(&.{ "cachix", "watch-exec", self.cache_name,"--verbose" ,"--", "nix", "build", self.flake, "--print-build-logs", "--accept-flake-config" }, self.allocator);
var p = std.ChildProcess.init(&.{ "cachix", "watch-exec", self.cache_name, "--verbose", "--", "nix", "build", self.flake, "--print-build-logs", "--accept-flake-config" }, self.allocator);
_ = try p.spawnAndWait();
}