diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-01-10 20:53:25 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-01-10 20:53:25 +0100 |
commit | 69ead0a3409dd97695f8d7a678fe38cd0c09f713 (patch) | |
tree | c962c3e90221e61bf95d5ec447a203bae2792280 /common.nix | |
parent | e329c27056d48dfc3c28d6f5297e0275b1c49cba (diff) |
more bcachefs changes
Diffstat (limited to 'common.nix')
-rw-r--r-- | common.nix | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -62,12 +62,6 @@ in # enable fast dbus services.dbus.implementation = "broker"; - # ensure we scrub the btrfs sometimes - services.btrfs.autoScrub = { - enable = true; - interval = "weekly"; - }; - # allow all firmware hardware.enableAllFirmware = true; @@ -80,8 +74,9 @@ in services.openssh = { # enable with public key only auth enable = true; - settings.PasswordAuthentication = false; - settings.KbdInteractiveAuthentication = false; + settings.PasswordAuthentication = true; + settings.KbdInteractiveAuthentication = true; + ettings.PermitRootLogin = "yes"; # only ed25519 keys, make them persistent hostKeys = [{ @@ -458,10 +453,10 @@ in users.users.root = { # init password - hashedPassword = builtins.readFile "/data/nixos/password.secret"; + hashedPassword = builtins.readFile "/mnt/data/nixos/password.secret"; # use same keys as my main user - openssh.authorizedKeys.keys = pkgs.lib.splitString "\n" (builtins.readFile "/home/cullmann/.ssh/authorized_keys"); + # openssh.authorizedKeys.keys = pkgs.lib.splitString "\n" (builtins.readFile "/home/cullmann/.ssh/authorized_keys"); }; home-manager.users.root = { @@ -490,7 +485,7 @@ in extraGroups = [ "vboxusers" "wheel" ]; # init password - hashedPassword = builtins.readFile "/data/nixos/password.secret"; + hashedPassword = builtins.readFile "/mnt/data/nixos/password.secret"; }; home-manager.users.cullmann = { |