mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-02 03:39:32 +00:00
~
This commit is contained in:
parent
f2644a48ad
commit
4c35ee5504
6 changed files with 50 additions and 33 deletions
|
@ -1,12 +1,12 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
trusted-users = [ "root" "rae" ];
|
||||
};
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = import ../overlays.nix inputs;
|
||||
};
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
trusted-users = [ "root" "rae" ];
|
||||
};
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = import ../overlays.nix inputs;
|
||||
};
|
||||
|
||||
users.users.rae = {
|
||||
isNormalUser = true;
|
||||
|
@ -14,6 +14,25 @@
|
|||
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
knownHosts =
|
||||
let
|
||||
host = name: key: {
|
||||
name = name;
|
||||
value = {
|
||||
hostNames = [ name ];
|
||||
publicKey = key;
|
||||
};
|
||||
};
|
||||
in builtins.listToAttrs [
|
||||
(host "git.sr.ht" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60")
|
||||
(host "github.com" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl")
|
||||
(host "hackclub.app" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ3pezDUZG+4bPRZg2znAuuMp42AL+rc1HGUltnNf8cA")
|
||||
(host "verygay.world" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICMql669TiEneexyQsUWfCo9ouEJwk3f21d9chpBqFge")
|
||||
];
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "gr928-8x16-thin"; # https://adeverteuil.github.io/linux-console-fonts-screenshots/
|
||||
|
|
|
@ -84,26 +84,6 @@
|
|||
# misc
|
||||
blueman.enable = true;
|
||||
flatpak.enable = true;
|
||||
openssh = {
|
||||
enable = true;
|
||||
knownHosts =
|
||||
let
|
||||
host = name: key: {
|
||||
name = name;
|
||||
value = {
|
||||
hostNames = [ name ];
|
||||
publicKey = key;
|
||||
};
|
||||
};
|
||||
in {
|
||||
|
||||
} // builtins.listToAttrs [
|
||||
(host "git.sr.ht" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60")
|
||||
(host "github.com" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl")
|
||||
(host "hackclub.app" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ3pezDUZG+4bPRZg2znAuuMp42AL+rc1HGUltnNf8cA")
|
||||
(host "verygay.world" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICMql669TiEneexyQsUWfCo9ouEJwk3f21d9chpBqFge")
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
|
|
@ -6,9 +6,24 @@
|
|||
../base.nix
|
||||
];
|
||||
|
||||
networking.hostName = "near";
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPyZFWvrboUTM/dKzz5kQHEKjNqI410VJUGiVckhjOve rae@ioides"
|
||||
];
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
services.openssh = {
|
||||
ports = [ 22 ];
|
||||
banner = "I won't hold it against you";
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
networking = {
|
||||
hostName = "near";
|
||||
firewall.allowedTCPPorts = [ 22 ];
|
||||
};
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue