add nvim buffer switch keymap & change dbt models

This commit is contained in:
Sam 2024-09-14 20:19:07 +01:00
parent a8e0ae35da
commit f7ffba2266
4 changed files with 57 additions and 50 deletions

View File

@ -361,11 +361,11 @@
"nix-secrets": {
"flake": false,
"locked": {
"lastModified": 1722540163,
"narHash": "sha256-5/sOGSmWksxMKuLzcpWBMYRkphFLcz7XensO2gwEC/4=",
"lastModified": 1726340825,
"narHash": "sha256-6gv36ea3aAjJH7osZVzVU0GRoJeVR+iwSP9bSaJC+MI=",
"ref": "refs/heads/master",
"rev": "a403495cd9a28b44b10c64cc340d04d759b6d21c",
"revCount": 158,
"rev": "73d4d304a201f7db200ffb5955c8a2f521f635a7",
"revCount": 160,
"type": "git",
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
},

View File

@ -3,7 +3,7 @@
# Switching buffers
{
mode = ["n"];
action = "<C-W>h";
action = "<C-w>h";
key = "<S-h>";
options = {
silent = true;
@ -11,7 +11,7 @@
}
{
mode = ["n"];
action = "<C-W>j";
action = "<C-w>j";
key = "<S-j>";
options = {
silent = true;
@ -19,7 +19,7 @@
}
{
mode = ["n"];
action = "<C-W>k";
action = "<C-w>k";
key = "<S-k>";
options = {
silent = true;
@ -27,7 +27,7 @@
}
{
mode = ["n"];
action = "<C-W>l";
action = "<C-w>l";
key = "<S-l>";
options = {
silent = true;

View File

@ -36,7 +36,7 @@
action = "type_definition";
desc = "Type Definition";
};
K = {
gK = {
action = "hover";
desc = "Hover";
};

View File

@ -44,12 +44,15 @@ in {
"github-access-token" = {
mode = "0655";
};
"software/postgres/btc_models/password" = {};
"software/postgres/btc_models/ip" = {};
"software/postgres/btc_models/username" = {};
"software/postgres/baseddata_models/password" = {};
"software/postgres/baseddata_models/ip" = {};
"software/postgres/baseddata_models/username" = {};
"software/postgres/osm/password" = {};
"software/postgres/osm/ip" = {};
"software/postgres/osm/username" = {};
"software/postgres/bitcoin/password" = {};
"software/postgres/bitcoin/ip" = {};
"software/postgres/bitcoin/username" = {};
"software/zotero/username" = {};
"software/zotero/password" = {};
"software/zotero/guid" = {};
@ -66,16 +69,20 @@ in {
content = ''
[
{
"url": "postgresql://${config.sops.placeholder."software/postgres/btc_models/username"}:${config.sops.placeholder."software/postgres/btc_models/password"}@${config.sops.placeholder."software/postgres/btc_models/ip"}/btc_models",
"name": "btc_models"
"url": "postgresql://${config.sops.placeholder."software/postgres/baseddata_models/username"}:${config.sops.placeholder."software/postgres/baseddata_models/password"}@${config.sops.placeholder."software/postgres/baseddata_models/ip"}/btc_models",
"name": "baseddata_models"
},
{
"url": "postgresql://${config.sops.placeholder."software/postgres/btc_models/username"}:${config.sops.placeholder."software/postgres/btc_models/password"}@${config.sops.placeholder."software/postgres/btc_models/ip"}/dev_btc_models",
"name": "dev_btc_models"
"url": "postgresql://${config.sops.placeholder."software/postgres/baseddata_models/username"}:${config.sops.placeholder."software/postgres/baseddata_models/password"}@${config.sops.placeholder."software/postgres/baseddata_models/ip"}/dev_baseddata_models",
"name": "dev_baseddata_models"
},
{
"url": "postgresql://${config.sops.placeholder."software/postgres/osm/username"}:${config.sops.placeholder."software/postgres/osm/password"}@${config.sops.placeholder."software/postgres/osm/ip"}/osm",
"name": "osm"
},
{
"url": "postgresql://${config.sops.placeholder."software/postgres/bitcoin/username"}:${config.sops.placeholder."software/postgres/bitcoin/password"}@${config.sops.placeholder."software/postgres/bitcoin/ip"}/bitcoin",
"name": "bitcoin"
}
]
'';
@ -86,27 +93,27 @@ in {
owner = "${username}";
mode = "0600";
content = ''
bitcoin:
baseddata:
target: dev
outputs:
dev:
dbname: dev_btc_models
host: ${config.sops.placeholder."software/postgres/btc_models/ip"}
pass: '${config.sops.placeholder."software/postgres/btc_models/password"}'
dbname: dev_baseddata_models
host: ${config.sops.placeholder."software/postgres/baseddata_models/ip"}
pass: '${config.sops.placeholder."software/postgres/baseddata_models/password"}'
port: 5432
schema: models
threads: 6
type: postgres
user: ${config.sops.placeholder."software/postgres/btc_models/username"}
user: ${config.sops.placeholder."software/postgres/baseddata_models/username"}
prod:
dbname: btc_models
host: ${config.sops.placeholder."software/postgres/btc_models/ip"}
pass: '${config.sops.placeholder."software/postgres/btc_models/password"}'
dbname: baseddata_models
host: ${config.sops.placeholder."software/postgres/baseddata_models/ip"}
pass: '${config.sops.placeholder."software/postgres/baseddata_models/password"}'
port: 5432
schema: models
threads: 6
type: postgres
user: ${config.sops.placeholder."software/postgres/btc_models/username"}
user: ${config.sops.placeholder."software/postgres/baseddata_models/username"}
'';
};