{ pkgs, lib, config, inputs, ... }: { imports = [ inputs.home-manager.nixosModules."home-manager" ]; config = { users.users.tzlil = { isNormalUser = true; description = "Me"; extraGroups = ["wheel"]; packages = [pkgs.git]; shell = pkgs.fish; hashedPassword = "$5$itsrHkJPRhLdik0x$RxCXp8KmiPVa1dMQhHMQsjLgvx27MmeQ9ZVybV8bzE8"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMDyzrs9sbstv3KFK5FV8qYlSknnEy8Cn+qch4dJLmHA" ]; }; nix.settings.allowed-users = ["root" "tzlil"]; nix.settings.trusted-users = ["root" "tzlil"]; age.secrets.id_ed25519 = { file = ../secrets/id_ed25519.age; mode = "600"; owner = "tzlil"; group = "users"; }; home-manager = { useGlobalPkgs = true; useUserPackages = true; backupFileExtension = "backup"; }; home-manager.users.tzlil = {pkgs, ...}@hm: { home = { stateVersion = "22.05"; username = "tzlil"; homeDirectory = "/home/tzlil"; }; programs.ssh = { enable = true; # knownHosts = { # pc = { # extraHostNames = [ "100.99.246.128" ]; # publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINu5lRKb1Ao4uj1tAV10QHKIvXfC8ncQ65b+oJtxrd1e"; # }; # }; matchBlocks."*".identityFile = config.age.secrets."id_ed25519".path; }; }; }; }