blob: 7f0ec8b45b1985d98e80d5bf3e044fb586a499d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
pkgs,
lib,
config,
inputs,
...
}: {
imports = [
inputs.home-manager.nixosModules."home-manager"
];
config = {
age.secrets = {
id_ed25519 = {
file = ../secrets/id_ed25519.age;
mode = "600";
owner = "tzlil";
group = "users";
};
# password.file = ../secrets/password.age;
};
users.users.tzlil = {
isNormalUser = true;
description = "Me";
extraGroups = ["wheel"];
packages = [pkgs.git];
shell = pkgs.fish;
hashedPassword = "$6$FAQYKz3OCtRNOP7h$XsApvP.r./Jv5MRI1idDI9BMnA26xxEvXFlE61Zls.QA3EK2x76XsetdpxSlgViylnRwRuq5XQMc3GeAJ7tum1";
# passwordFile = config.age.secrets.password.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMDyzrs9sbstv3KFK5FV8qYlSknnEy8Cn+qch4dJLmHA"
];
};
nix.settings.allowed-users = ["root" "tzlil"];
nix.settings.trusted-users = ["root" "tzlil"];
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;
userKnownHostsFile = builtins.toFile "known_hosts" "
pc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINu5lRKb1Ao4uj1tAV10QHKIvXfC8ncQ65b+oJtxrd1e
";
matchBlocks."*".identityFile = config.age.secrets."id_ed25519".path;
};
};
};
}
|