Compare commits
5 commits
20db71996c
...
db89917840
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | db89917840 | ||
Bruno BELANYI | e08f3e5b2e | ||
Bruno BELANYI | d6e77b62b4 | ||
Bruno BELANYI | 898523d079 | ||
Bruno BELANYI | cbba752b54 |
7
.typos.toml
Normal file
7
.typos.toml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[default]
|
||||||
|
extend-ignore-re = [
|
||||||
|
# spellchecker:disable-line
|
||||||
|
"(?Rm)^.*(#|//|--)\\s*spellchecker:disable-line$",
|
||||||
|
# spellchecker:<on|off>
|
||||||
|
"(?s)(#|//|--)\\s*spellchecker:off.*?\\n\\s*(#|//|--)\\s*spellchecker:on",
|
||||||
|
]
|
|
@ -26,6 +26,10 @@
|
||||||
stylua = {
|
stylua = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typos = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -157,7 +157,7 @@ in
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Because I stilll need to play sysadmin
|
# Because I still need to play sysadmin
|
||||||
ssh-server.enable = true;
|
ssh-server.enable = true;
|
||||||
# Recipe manager
|
# Recipe manager
|
||||||
tandoor-recipes = {
|
tandoor-recipes = {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
" Use dark color scheme
|
" Use dark color scheme
|
||||||
colorscheme dark
|
colorscheme dark
|
||||||
|
|
||||||
" Make tridactyl open Vim in my prefered terminal
|
" Make tridactyl open Vim in my preferred terminal
|
||||||
set editorcmd @editorcmd@
|
set editorcmd @editorcmd@
|
||||||
|
|
||||||
" Remove editor file after use
|
" Remove editor file after use
|
||||||
|
|
|
@ -58,7 +58,7 @@ in
|
||||||
{
|
{
|
||||||
config.accounts.email.accounts = {
|
config.accounts.email.accounts = {
|
||||||
personal = lib.mkMerge [
|
personal = lib.mkMerge [
|
||||||
# Common configuraton
|
# Common configuration
|
||||||
(mkConfig {
|
(mkConfig {
|
||||||
domain = "belanyi.fr";
|
domain = "belanyi.fr";
|
||||||
address = "bruno";
|
address = "bruno";
|
||||||
|
@ -70,7 +70,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
gmail = lib.mkMerge [
|
gmail = lib.mkMerge [
|
||||||
# Common configuraton
|
# Common configuration
|
||||||
(mkConfig {
|
(mkConfig {
|
||||||
domain = "gmail.com";
|
domain = "gmail.com";
|
||||||
address = "brunobelanyi";
|
address = "brunobelanyi";
|
||||||
|
|
|
@ -30,7 +30,7 @@ in
|
||||||
});
|
});
|
||||||
|
|
||||||
default = { ${config.my.home.terminal.program} = { }; };
|
default = { ${config.my.home.terminal.program} = { }; };
|
||||||
defaultText = litteralExpression ''
|
defaultText = literalExpression ''
|
||||||
{ ''${config.my.home.terminal.program} = { }; };
|
{ ''${config.my.home.terminal.program} = { }; };
|
||||||
'';
|
'';
|
||||||
example = { xterm-256color = { }; };
|
example = { xterm-256color = { }; };
|
||||||
|
|
|
@ -109,13 +109,13 @@ local keys = {
|
||||||
{ "yoc", desc = "Cursor line" },
|
{ "yoc", desc = "Cursor line" },
|
||||||
{ "yod", desc = "Diff" },
|
{ "yod", desc = "Diff" },
|
||||||
{ "yof", "<cmd>FormatToggle<CR>", desc = "LSP Formatting" },
|
{ "yof", "<cmd>FormatToggle<CR>", desc = "LSP Formatting" },
|
||||||
{ "yoh", desc = "Search high-lighting" },
|
{ "yoh", desc = "Search high-lighting" }, -- spellchecker:disable-line
|
||||||
{ "yoi", desc = "Case insensitive search" },
|
{ "yoi", desc = "Case insensitive search" },
|
||||||
{ "yol", desc = "List mode" },
|
{ "yol", desc = "List mode" },
|
||||||
{ "yon", desc = "Line numbers" },
|
{ "yon", desc = "Line numbers" },
|
||||||
{ "yop", "<Plug>(qf_loc_toggle)", desc = "Location list" },
|
{ "yop", "<Plug>(qf_loc_toggle)", desc = "Location list" },
|
||||||
{ "yoq", "<Plug>(qf_qf_toggle)", desc = "Quickfix list" },
|
{ "yoq", "<Plug>(qf_qf_toggle)", desc = "Quickfix list" },
|
||||||
{ "yor", desc = "Relative line numbers" },
|
{ "yor", desc = "Relative line numbers" }, -- spellchecker:disable-line
|
||||||
{ "you", desc = "Cursor column" },
|
{ "you", desc = "Cursor column" },
|
||||||
{ "yov", desc = "Virtual editing" },
|
{ "yov", desc = "Virtual editing" },
|
||||||
{ "yow", desc = "Text wrapping" },
|
{ "yow", desc = "Text wrapping" },
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
" Basic configuraion {{{
|
" Basic configuration {{{
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Use UTF-8
|
" Use UTF-8
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
|
|
@ -42,7 +42,7 @@ end
|
||||||
|
|
||||||
--- shared LSP configuration callback
|
--- shared LSP configuration callback
|
||||||
--- @param client native client configuration
|
--- @param client native client configuration
|
||||||
--- @param bufnr int? buffer number of the attched client
|
--- @param bufnr int? buffer number of the attached client
|
||||||
M.on_attach = function(client, bufnr)
|
M.on_attach = function(client, bufnr)
|
||||||
-- Format on save
|
-- Format on save
|
||||||
lsp_format.on_attach(client, bufnr)
|
lsp_format.on_attach(client, bufnr)
|
||||||
|
|
|
@ -58,7 +58,7 @@ in
|
||||||
service = "some-service-name";
|
service = "some-service-name";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
description = "list of block configurations, merged with the defauls";
|
description = "list of block configurations, merged with the defaults";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,8 +12,7 @@ let
|
||||||
movementKeys = [ "Left" "Down" "Up" "Right" ];
|
movementKeys = [ "Left" "Down" "Up" "Right" ];
|
||||||
vimMovementKeys = [ "h" "j" "k" "l" ];
|
vimMovementKeys = [ "h" "j" "k" "l" ];
|
||||||
shutdownMode =
|
shutdownMode =
|
||||||
"(l)ock, (e)xit, switch_(u)ser, (h)ibernate, (r)eboot, (Shift+s)hutdown";
|
"(l)ock, (e)xit, switch_(u)ser, (h)ibernate, (r)eboot, (Shift+s)hutdown"; # spellchecker:disable-line
|
||||||
|
|
||||||
# Takes an attrset of bindings for movement keys, transforms it to Vim keys
|
# Takes an attrset of bindings for movement keys, transforms it to Vim keys
|
||||||
toVimKeyBindings =
|
toVimKeyBindings =
|
||||||
let
|
let
|
||||||
|
|
|
@ -49,7 +49,7 @@ in
|
||||||
})
|
})
|
||||||
(lib.optionalAttrs config.my.home.bluetooth.enable {
|
(lib.optionalAttrs config.my.home.bluetooth.enable {
|
||||||
block = "bluetooth";
|
block = "bluetooth";
|
||||||
mac = "F7:78:BA:76:52:F7";
|
mac = "F7:78:BA:76:52:F7"; # spellchecker:disable-line
|
||||||
format = " $icon MX Ergo{ $percentage|} ";
|
format = " $icon MX Ergo{ $percentage|} ";
|
||||||
disconnected_format = "";
|
disconnected_format = "";
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
cfg = config.my.home.wm.screen-lock;
|
cfg = config.my.home.wm.screen-lock;
|
||||||
|
|
||||||
notficationCmd =
|
notificationCmd =
|
||||||
let
|
let
|
||||||
duration = toString (cfg.notify.delay * 1000);
|
duration = toString (cfg.notify.delay * 1000);
|
||||||
notifyCmd = "${lib.getExe pkgs.libnotify} -u critical -t ${duration}";
|
notifyCmd = "${lib.getExe pkgs.libnotify} -u critical -t ${duration}";
|
||||||
|
@ -48,7 +48,7 @@ in
|
||||||
"-notify"
|
"-notify"
|
||||||
"${toString cfg.notify.delay}"
|
"${toString cfg.notify.delay}"
|
||||||
"-notifier"
|
"-notifier"
|
||||||
notficationCmd
|
notificationCmd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
# File types
|
# File types
|
||||||
mime.enable = true;
|
mime.enable = true;
|
||||||
# File associatons
|
# File associations
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,7 +12,7 @@ setopt rc_quotes
|
||||||
setopt auto_resume
|
setopt auto_resume
|
||||||
# Show history expansion before running a command
|
# Show history expansion before running a command
|
||||||
setopt hist_verify
|
setopt hist_verify
|
||||||
# Append commands to history as they are exectuted
|
# Append commands to history as they are executed
|
||||||
setopt inc_append_history_time
|
setopt inc_append_history_time
|
||||||
# Remove useless whitespace from commands
|
# Remove useless whitespace from commands
|
||||||
setopt hist_reduce_blanks
|
setopt hist_reduce_blanks
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
# This section must be *after* the one configured by `libinput`
|
# This section must be *after* the one configured by `libinput`
|
||||||
# for the `ScrollMethod` configuration to not be overriden
|
# for the `ScrollMethod` configuration to not be overridden
|
||||||
inputClassSections = lib.mkAfter [
|
inputClassSections = lib.mkAfter [
|
||||||
# MX Ergo
|
# MX Ergo
|
||||||
''
|
''
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Configuration that spans accross system and home, or are almagations of modules
|
# Configuration that spans across system and home, or are almagations of modules
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# A low-ressource, full-featured git forge.
|
# A low-resource, full-featured git forge.
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.services.forgejo;
|
cfg = config.my.services.forgejo;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# A low-ressource, full-featured git forge.
|
# A low-resource, full-featured git forge.
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.services.gitea;
|
cfg = config.my.services.gitea;
|
||||||
|
|
|
@ -59,14 +59,12 @@ let
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.attrs; # FIXME: forward type of virtualHosts
|
type = types.attrs; # FIXME: forward type of virtualHosts
|
||||||
example = litteralExample ''
|
example = {
|
||||||
{
|
|
||||||
locations."/socket" = {
|
locations."/socket" = {
|
||||||
proxyPass = "http://127.0.0.1:8096/";
|
proxyPass = "http://127.0.0.1:8096/";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
default = { };
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
Any extra configuration that should be applied to this virtual host.
|
Any extra configuration that should be applied to this virtual host.
|
||||||
|
@ -100,8 +98,7 @@ in
|
||||||
virtualHosts = mkOption {
|
virtualHosts = mkOption {
|
||||||
type = types.attrsOf virtualHostOption;
|
type = types.attrsOf virtualHostOption;
|
||||||
default = { };
|
default = { };
|
||||||
example = litteralExample ''
|
example = {
|
||||||
{
|
|
||||||
gitea = {
|
gitea = {
|
||||||
subdomain = "git";
|
subdomain = "git";
|
||||||
port = 8080;
|
port = 8080;
|
||||||
|
@ -118,8 +115,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
description = ''
|
description = ''
|
||||||
List of virtual hosts to set-up using default settings.
|
List of virtual hosts to set-up using default settings.
|
||||||
'';
|
'';
|
||||||
|
@ -163,25 +159,21 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
example = litteralExample ''
|
example = {
|
||||||
{
|
|
||||||
alice = {
|
alice = {
|
||||||
passwordHashFile = "/var/lib/nginx-sso/alice/password-hash.txt";
|
passwordHashFile = "/var/lib/nginx-sso/alice/password-hash.txt";
|
||||||
totpSecretFile = "/var/lib/nginx-sso/alice/totp-secret.txt";
|
totpSecretFile = "/var/lib/nginx-sso/alice/totp-secret.txt";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
description = "Definition of users";
|
description = "Definition of users";
|
||||||
};
|
};
|
||||||
|
|
||||||
groups = mkOption {
|
groups = mkOption {
|
||||||
type = with types; attrsOf (listOf str);
|
type = with types; attrsOf (listOf str);
|
||||||
example = litteralExample ''
|
example = {
|
||||||
{
|
|
||||||
root = [ "alice" ];
|
root = [ "alice" ];
|
||||||
users = [ "alice" "bob" ];
|
users = [ "alice" "bob" ];
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
description = "Groups of users";
|
description = "Groups of users";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,7 @@ in
|
||||||
example = "/run/secrets/password.env";
|
example = "/run/secrets/password.env";
|
||||||
description = ''
|
description = ''
|
||||||
The path to a file containing the PASSWORD environment variable
|
The path to a file containing the PASSWORD environment variable
|
||||||
definition for Podgrab's authentification.
|
definition for Podgrab's authentication.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ in
|
||||||
service = {
|
service = {
|
||||||
# Only allow registration of users through the CLI
|
# Only allow registration of users through the CLI
|
||||||
enableregistration = false;
|
enableregistration = false;
|
||||||
# Ues the host's timezone
|
# Use the host's timezone
|
||||||
timezone = config.time.timeZone;
|
timezone = config.time.timeZone;
|
||||||
# Use UNIX socket for serving the API
|
# Use UNIX socket for serving the API
|
||||||
unixsocket = socketPath;
|
unixsocket = socketPath;
|
||||||
|
|
|
@ -206,7 +206,7 @@ in
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
# Additional inteface is only used to get access to "LAN" from wireguard
|
# Additional interface is only used to get access to "LAN" from wireguard
|
||||||
(lib.mkIf cfg.internal.enable {
|
(lib.mkIf cfg.internal.enable {
|
||||||
networking.wg-quick.interfaces."${cfg.internal.name}" = mkInterface [
|
networking.wg-quick.interfaces."${cfg.internal.name}" = mkInterface [
|
||||||
"${cfg.net.v4.subnet}.0/${toString cfg.net.v4.mask}"
|
"${cfg.net.v4.subnet}.0/${toString cfg.net.v4.mask}"
|
||||||
|
|
|
@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation {
|
||||||
description = "Unified host lists, ready to be used by unbound";
|
description = "Unified host lists, ready to be used by unbound";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
This is a simple derivation based on StevenBlack's unified hosts list.
|
This is a simple derivation based on StevenBlack's unified hosts list.
|
||||||
The files have been modified for easy use wih unbound.
|
The files have been modified for easy use with unbound.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/StevenBlack/hosts";
|
homepage = "https://github.com/StevenBlack/hosts";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in a new issue