From b86ae0dcb6427786c077e5e6372d90b3488670b9 Mon Sep 17 00:00:00 2001 From: Tasia Iso Date: Sat, 13 Apr 2024 21:42:05 +0200 Subject: [PATCH] :3 --- README.md | 7 ++++++ common/default-minimal.nix | 2 +- hosts/enry/configuration.nix | 6 ++--- hosts/enry/hardware-configuration.nix | 32 +++++++++++++++------------ hosts/phoenix/configuration.nix | 2 ++ 5 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..5115fa7 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +## phoenix + +phoenix ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJTqExIIZuW9yvK7mgveNK8KDGKaRswrjj/nwVDwUdeL + +## enry + +enry ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCPPE7U87PZ4+BQrdJtPuD/ibf9ubyPAqcRJe6Lpc2D \ No newline at end of file diff --git a/common/default-minimal.nix b/common/default-minimal.nix index caa86ec..d76aa1f 100644 --- a/common/default-minimal.nix +++ b/common/default-minimal.nix @@ -7,7 +7,7 @@ ... }: { imports = [ - ./packages/neovim.nix + # ./packages/neovim.nix ]; nixpkgs = { diff --git a/hosts/enry/configuration.nix b/hosts/enry/configuration.nix index 18efa42..cdf033d 100644 --- a/hosts/enry/configuration.nix +++ b/hosts/enry/configuration.nix @@ -59,9 +59,9 @@ enable = true; settings = { # Forbid root login through SSH. - PermitRootLogin = "no"; + PermitRootLogin = "yes"; # Use keys only. Remove if you want to SSH using password (not recommended) - PasswordAuthentication = false; + PasswordAuthentication = true; }; }; @@ -69,7 +69,7 @@ ]; hardware.enableRedistributableFirmware = true; - networking.wireless.enable = true; + # networking.wireless.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "23.11"; diff --git a/hosts/enry/hardware-configuration.nix b/hosts/enry/hardware-configuration.nix index 4ca1bf0..ab795a0 100644 --- a/hosts/enry/hardware-configuration.nix +++ b/hosts/enry/hardware-configuration.nix @@ -1,24 +1,28 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "usbhid" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["usbhid"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; - swapDevices = [ ]; + swapDevices = []; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hosts/phoenix/configuration.nix b/hosts/phoenix/configuration.nix index 687f72a..c701e76 100644 --- a/hosts/phoenix/configuration.nix +++ b/hosts/phoenix/configuration.nix @@ -77,6 +77,8 @@ configDir = lib.mkForce "/data/sync/configuration/"; }; + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + environment.systemPackages = with pkgs; [ bitwarden libreoffice-fresh