-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f34ab1b
commit 4e09431
Showing
27 changed files
with
356 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ devenv.local.nix | |
result | ||
|
||
*.qcow2 | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const repo = 'claudiodekker/ungoogled-chromium-macos' | ||
|
||
const request = await fetch(`https://api.github.com/repos/${repo}/releases/latest`, { | ||
headers: { | ||
accept: ' application/vnd.github+json', | ||
'X-GitHub-Api-Version': '2022-11-28' | ||
} | ||
}) | ||
|
||
if (!request.ok) { | ||
console.error(`Failed to fetch the latest release metadata for github:${repo}`) | ||
Deno.exit(1) | ||
} | ||
|
||
const releaseMetadata = await request.json() | ||
|
||
const version = releaseMetadata.name; | ||
|
||
console.log(`Latest release: ${version}`) | ||
|
||
for (const asset of releaseMetadata.assets) { | ||
console.log(`Asset: ${asset.name}`) | ||
|
||
const sha256Hash = await $("nix-prefetch-url", asset.browser_download_url) | ||
const sriHash = await $("nix-hash", "--type", "sha256", "--to-sri", sha256Hash.trim()) | ||
|
||
console.log(` SRI: ${sriHash}`) | ||
console.log(` SHA256: ${sha256Hash}`) | ||
} | ||
|
||
async function $(name, ...args) { | ||
const command = new Deno.Command(name, { args }) | ||
|
||
const { code, stdout, stderr } = await command.output(); | ||
|
||
if (code !== 0) { | ||
console.log(`${name}: exited ${code} with ${new TextDecoder().decode(stderr)}`) | ||
} | ||
|
||
return new TextDecoder().decode(stdout); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
{ ... }: | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
{ | ||
options = { | ||
programs.ssh.enable1PasswordAgent = lib.mkOption { | ||
description = "Enable 1Password agent"; | ||
type = lib.types.bool; | ||
default = false; | ||
}; | ||
}; | ||
|
||
config.programs.ssh = { | ||
enable = true; | ||
|
||
forwardAgent = true; | ||
hashKnownHosts = true; | ||
addKeysToAgent = "yes"; | ||
|
||
extraConfig = lib.mkIf ( | ||
pkgs.stdenv.isDarwin && config.programs.ssh.enable1PasswordAgent | ||
) "IdentityAgent \"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\""; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ ... }: | ||
{ | ||
config.programs.zoxide = { | ||
programs.zoxide = { | ||
enable = true; | ||
options = [ "--cmd cd" ]; | ||
}; | ||
} |
Oops, something went wrong.