@ -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
];
defaultUser = config.users.users.carsten.name;
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 @@
networking.hostName = "eagle";
networking.hostName = "falcon";
@ -20,6 +20,7 @@
shell = pkgs.bash;
nix.settings.build-cores = 4;
vm-guest = true;
@ -1,6 +1,7 @@
{ pkgs, config, ... }: {
services.gitea = rec {
appName = "Init System: Gitea";
package = pkgs.unstable.gitea;
database = {
type = "postgres";
@ -12,7 +13,11 @@
mailerPasswordFile = config.sops.secrets.gitea_mailer_passwd.path;
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
'';