add wayland

This commit is contained in:
2025-07-23 23:20:42 +02:00
parent 8c640ffe87
commit 484999d2b2
41 changed files with 1612 additions and 25 deletions

View File

@@ -0,0 +1,26 @@
set bell-style none
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
set colored-stats on
set completion-ignore-case on
set editing-mode emacs
"\e[A":history-search-backward
"\e[B":history-search-forward
$if term=linux
"\e[1~": beginning-of-line
"\e[4~": end-of-line
$endif
$if term=xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
$endif
$if term=rxvt-unicode
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif

View File

@@ -5,6 +5,8 @@
imports = [
./grub.nix
./packages.nix
./ssh.nix
./tty.nix
./users.nix
];
}

View File

@@ -14,6 +14,13 @@
pkgs.git
pkgs.neovim
pkgs.unzip
pkgs.sops
pkgs.ssh-to-age
];
services = {
locate = {
enable = true;
package = pkgs.plocate;
};
};
}

17
modules/core/ssh.nix Normal file
View File

@@ -0,0 +1,17 @@
{
...
}:
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
AllowUsers = null;
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}

27
modules/core/tty.nix Normal file
View File

@@ -0,0 +1,27 @@
{
config,
pkgs,
...
}@attrs:
let
cfg = config.services.getty;
in
{
environment = {
etc = {
"inputrc".source = ./config/etc/inputrc;
};
shellAliases = {
ls = "ls --color=auto";
ll = "ls --color=auto -lha";
grep = "grep --color=auto";
ip = "ip -color=auto";
vi = "nvim";
};
variables = {
EDITOR = "nvim";
HISTSIZE = 20000;
HISTTIMEFORMAT = "%F %T ";
};
};
}

View File

@@ -13,6 +13,9 @@
description = "Admin account";
extraGroups = [
"wheel"
"networkmanager"
"audio"
"video"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAKMJ3TkEmRQcX7RQijNa2km6a2xXJk6M6FERh7C9nTJ"