nvim: smart case search; zk: updated date cmd

top-level-nix
Pegasust 2022-12-23 00:46:08 -07:00
parent 1121af6759
commit 4c28cd8b08
3 changed files with 23 additions and 25 deletions

View File

@ -95,6 +95,9 @@ endif
]]) ]])
vim.cmd([[ vim.cmd([[
set ignorecase
set smartcase
set incsearch
set number relativenumber set number relativenumber
set tabstop=4 softtabstop=4 set tabstop=4 softtabstop=4
set autoindent set autoindent

View File

@ -1,19 +1,14 @@
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs.url = "nixpkgs/nixos-unstable";
# TODO: when sops-nix is supported in home-manager, switch to home-manager instead agenix.url = "github:ryantm/agenix";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, sops-nix, ... }: outputs = { self, nixpkgs, agenix, ... }:
let let
lib = nixpkgs.lib; lib = nixpkgs.lib;
proj_root = builtins.toString ./../..; proj_root = ./../..;
# TODO: when sops-nix is supported in home-manager, switch to home-manager instead base_modules = [agenix.nixosModule];
base_modules = [sops-nix.nixosModules.sops];
in { in {
# Windows with NixOS WSL # Windows with NixOS WSL
nixosConfigurations.Felia = nixpkgs.lib.nixosSystem { nixosConfigurations.Felia = nixpkgs.lib.nixosSystem {
@ -219,21 +214,21 @@
(lib.mapAttrsToList (name: value: "${name}${lib.optionalString (value != null) "=${value}"}") conf)); (lib.mapAttrsToList (name: value: "${name}${lib.optionalString (value != null) "=${value}"}") conf));
in "${mount_dest} ${confToBackendArg backend_args} ${s3fs-exec}#${bucket}"; in "${mount_dest} ${confToBackendArg backend_args} ${s3fs-exec}#${bucket}";
personalStorage = [ personalStorage = [
# (autofs-s3fs_entry { (autofs-s3fs_entry {
# mount_dest = "hot"; mount_dest = "hot";
# backend_args = { backend_args = {
# "-fstype" = "fuse"; "-fstype" = "fuse";
# use_cache = "/tmp"; use_cache = "/tmp";
# del_cache = null; del_cache = null;
# allow_other = null; allow_other = null;
# url = "https://f5i0.ph.idrivee2-32.com"; url = "https://f5i0.ph.idrivee2-32.com";
# # TODO: builtins.readFile requires a Git-controlled file # TODO: builtins.readFile requires a Git-controlled file
# passwd_file = (pkgs.writeText "env.s3fs.idrive" (builtins.readFile passwd_file = (pkgs.writeText "env.s3fs.idrive" (builtins.readFile
# "${proj_root}//secrets/env.s3fs" ./../../secrets/env.s3fs
# )); ));
# }; };
# bucket = "hungtr-hot"; bucket = "hungtr-hot";
# }) })
]; ];
persoConf = pkgs.writeText "personal" (builtins.concatStringsSep "\n" personalStorage); persoConf = pkgs.writeText "personal" (builtins.concatStringsSep "\n" personalStorage);
in { in {

View File

@ -1,7 +1,7 @@
[note] # Settings that reflect the creation of a new note [note] # Settings that reflect the creation of a new note
language = "en" language = "en"
default-title = "Untitled" default-title = "Untitled"
filename = "{{date now 'timestamp'}}" # Loyal to my current style: 202208201345 filename = "{{format-date now 'timestamp'}}" # Loyal to my current style: 202208201345
extension = "md" # might switch to mdx extension = "md" # might switch to mdx
[extra] [extra]