Cleanup, Zsh ctrl bindings, Gitea update

main
Carsten Kragelund 2023-04-27 12:44:57 +02:00
parent 988f19998c
commit ebb1a656af
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
8 changed files with 31 additions and 15 deletions

@ -104,14 +104,6 @@
})
nixos-wsl.nixosModules.wsl
{
wsl = {
enable = true;
wslConf.automount.root = "/mnt";
defaultUser = "carsten";
startMenuLaunchers = true;
};
}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;

@ -10,8 +10,14 @@
../common
];
wsl = {
enable = true;
wslConf.automount.root = "/mnt";
defaultUser = config.users.users.carsten.name;
startMenuLaunchers = true;
};
graphical = false;
nix.settings.build-cores = 12;
networking.hostName = "buzzard";
# This value determines the NixOS release from which the default

@ -36,10 +36,6 @@ with pkgs;
package = pkgs.nixFlakes;
settings = {
# Maximum number of concurrent tasks during one build
# TODO: Dont put in common
build-cores = 12;
# Maximum number of jobs that Nix will try to build in parallel
max-jobs = "auto";
@ -48,6 +44,8 @@ with pkgs;
# Enable flakes
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ config.users.users.carsten.name or "" ];
};
};

@ -10,6 +10,7 @@
../common
];
nix.settings.build-cores = 12;
networking.hostName = "eagle";
# This value determines the NixOS release from which the default

@ -10,6 +10,7 @@
../common
];
nix.settings.build-cores = 12;
networking.hostName = "falcon";
# This value determines the NixOS release from which the default

@ -20,6 +20,7 @@
];
shell = pkgs.bash;
};
nix.settings.build-cores = 4;
graphical = false;
vm-guest = true;

@ -1,6 +1,7 @@
{ pkgs, config, ... }: {
services.gitea = rec {
enable = true;
appName = "Init System: Gitea";
package = pkgs.unstable.gitea;
database = {
type = "postgres";
@ -12,7 +13,11 @@
mailerPasswordFile = config.sops.secrets.gitea_mailer_passwd.path;
settings = {
server.SSH_PORT = 22007;
session.COOKIE_SECURE = true;
session = {
COOKIE_SECURE = true;
PROVIDER = "db";
};
service.REGISTER_EMAIL_CONFIRM = true;
mailer = {
ENABLED = true;
SMTP_ADDR = "mail.pid1.sh";

@ -7,7 +7,19 @@
path = "${config.xdg.dataHome}/zsh/zsh_history";
};
initExtra = ''
PROMPT='%n@%m %~ %# '
PROMPT='%2~ %# '
### ctrl+arrows
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word
### ctrl+delete
bindkey "\e[3;5~" kill-word
### ctrl+backspace
bindkey '^H' backward-kill-word
### ctrl+shift+delete
bindkey "\e[3;6~" kill-line
'';
};