Compare commits
No commits in common. "ab16331e04cec49a472f176b014ac3e429a27da5" and "feb498b6e0ba1b90ddf9cb758ea4ee043af465da" have entirely different histories.
ab16331e04
...
feb498b6e0
3 changed files with 3 additions and 27 deletions
|
@ -15,28 +15,8 @@ let profile = $profiles | input list --fuzzy "Select the profile you want to cha
|
||||||
|
|
||||||
let db_file = $"($browser.path)/($profile)/permissions.sqlite"
|
let db_file = $"($browser.path)/($profile)/permissions.sqlite"
|
||||||
|
|
||||||
let config_types = [
|
let config_file = "/etc/nixos/home/browsers/site-data-exceptions.toml"
|
||||||
[id name default_path];
|
let config_file = input --default $config_file "Select your config file"
|
||||||
["toml" "TOML" "secrets/firefox/site-data-exceptions.toml"]
|
|
||||||
["toml-age" "TOML (age-encrypted)" "firefox/site-data-exceptions.toml.age"]
|
|
||||||
]
|
|
||||||
let config_type = $config_types | input list --display name --fuzzy "Select your config type"
|
|
||||||
|
|
||||||
let agenix_path = match $config_type.id {
|
|
||||||
"toml" => { },
|
|
||||||
"toml-age" => { input --default "secrets" "Select your agenix path (location of `secrets.nix`)" },
|
|
||||||
}
|
|
||||||
|
|
||||||
let config_file = input --default $config_type.default_path "Select your config file"
|
|
||||||
let config_file = match $config_type.id {
|
|
||||||
"toml" => { $config_file },
|
|
||||||
"toml-age" => { $config_file | str replace -r $"^($agenix_path)/" '' },
|
|
||||||
}
|
|
||||||
|
|
||||||
let config = match $config_type.id {
|
|
||||||
"toml" => { $config_file | open },
|
|
||||||
"toml-age" => { (cd $agenix_path; agenix -d $config_file) | from toml },
|
|
||||||
}
|
|
||||||
|
|
||||||
# get origin & origin attributes separately from single origin string
|
# get origin & origin attributes separately from single origin string
|
||||||
def split_origin []: string -> record {
|
def split_origin []: string -> record {
|
||||||
|
@ -48,6 +28,7 @@ def split_origin []: string -> record {
|
||||||
}
|
}
|
||||||
|
|
||||||
let db = $db_file | open
|
let db = $db_file | open
|
||||||
|
let config = $config_file | open
|
||||||
|
|
||||||
let exceptions_db = $db | get moz_perms
|
let exceptions_db = $db | get moz_perms
|
||||||
| where type == "cookie" and permission == 1 and expireType == 0 and expireTime == 0
|
| where type == "cookie" and permission == 1 and expireType == 0 and expireTime == 0
|
||||||
|
|
Binary file not shown.
|
@ -83,11 +83,6 @@ in
|
||||||
home-server
|
home-server
|
||||||
];
|
];
|
||||||
|
|
||||||
"firefox/site-data-exceptions.toml.age".publicKeys = [
|
|
||||||
felschr
|
|
||||||
home-pc
|
|
||||||
];
|
|
||||||
|
|
||||||
# home-server
|
# home-server
|
||||||
"home-server/hostKey.age".publicKeys = [
|
"home-server/hostKey.age".publicKeys = [
|
||||||
felschr
|
felschr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue