From 243bd46338696e11f691f0fc63271fd9f1cf31f6 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Wed, 7 Dec 2022 16:29:07 +1000 Subject: [PATCH] updating... --- flake.lock | 8 ++++---- home/profiles/nvim/default.nix | 21 +++++++++++---------- hosts/profiles/core/default.nix | 2 +- hosts/profiles/site/default.nix | 2 +- mount-crypted.sh | 1 + 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/flake.lock b/flake.lock index 39dfd930..15927424 100644 --- a/flake.lock +++ b/flake.lock @@ -312,11 +312,11 @@ "vimwiki-cli": "vimwiki-cli" }, "locked": { - "lastModified": 1670292234, - "narHash": "sha256-rKXu1mkj/iNlZv2fb5MRHkYV6XR8BfHAXGgmMnxA7T8=", + "lastModified": 1670394209, + "narHash": "sha256-8JCo1pThdC8yJte1DnozsdO5ZlSKfSmfaxNRib+mloA=", "ref": "main", - "rev": "130146bcb642d18994de42bdc20e4f9617cfc1a3", - "revCount": 444, + "rev": "a0c9977d1ae241c0b59c44d0921180774a6e7820", + "revCount": 446, "type": "git", "url": "ssh://gitea@git.sealight.xyz/aynish/kitaab" }, diff --git a/home/profiles/nvim/default.nix b/home/profiles/nvim/default.nix index e719969d..d0d6b8de 100644 --- a/home/profiles/nvim/default.nix +++ b/home/profiles/nvim/default.nix @@ -537,16 +537,17 @@ in require("luasnip.loaders.from_vscode").lazy_load() -- null-ls - local null_ls = require "null-ls" - local sources = { - null_ls.builtins.code_actions.statix, - null_ls.builtins.diagnostics.shellcheck, - -- null_ls.builtins.diagnostics.clj_kondo, - null_ls.builtins.formatting.isort, - null_ls.builtins.formatting.black, - null_ls.builtins.code_actions.proselint, - } - null_ls.setup({sources}) + local null_ls = require("null-ls") + null_ls.setup({ + sources = { + null_ls.builtins.code_actions.statix, + null_ls.builtins.diagnostics.shellcheck, + -- null_ls.builtins.diagnostics.clj_kondo, + null_ls.builtins.formatting.isort, + null_ls.builtins.formatting.black, + null_ls.builtins.code_actions.proselint, + }, + }) -- Setup lspconfig require("lsp-format").setup {} diff --git a/hosts/profiles/core/default.nix b/hosts/profiles/core/default.nix index d9ce3acf..cf393f2c 100644 --- a/hosts/profiles/core/default.nix +++ b/hosts/profiles/core/default.nix @@ -16,7 +16,7 @@ in nix = { settings = { sandbox = true; - trusted-users = [ "root" "@wheel" ]; + trusted-users = [ "anish" "root" "@wheel" ]; allowed-users = [ "@wheel" ]; auto-optimise-store = true; system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; diff --git a/hosts/profiles/site/default.nix b/hosts/profiles/site/default.nix index 874cf595..50a6aad5 100644 --- a/hosts/profiles/site/default.nix +++ b/hosts/profiles/site/default.nix @@ -1,5 +1,5 @@ { self, pkgs, ... }: { services."anish.lakhwara.com".enable = true; - services."anish.lakhwara.com".enableSSL = false; + services."anish.lakhwara.com".enableSSL = true; } diff --git a/mount-crypted.sh b/mount-crypted.sh index 74c416b2..67f35d63 100644 --- a/mount-crypted.sh +++ b/mount-crypted.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash key_length=512 iterations="$(head -n 2 /boot/crypted-storage/default)" salt="$(head -n 1 /boot/crypted-storage/default)"