add wayland
This commit is contained in:
26
modules/core/config/etc/inputrc
Normal file
26
modules/core/config/etc/inputrc
Normal 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
|
||||
@@ -5,6 +5,8 @@
|
||||
imports = [
|
||||
./grub.nix
|
||||
./packages.nix
|
||||
./ssh.nix
|
||||
./tty.nix
|
||||
./users.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
17
modules/core/ssh.nix
Normal 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
27
modules/core/tty.nix
Normal 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 ";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -13,6 +13,9 @@
|
||||
description = "Admin account";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"audio"
|
||||
"video"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAKMJ3TkEmRQcX7RQijNa2km6a2xXJk6M6FERh7C9nTJ"
|
||||
|
||||
Reference in New Issue
Block a user