2024-05-09 00:48:35 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2021-12-21 22:55:20 +01:00
|
|
|
|
2021-12-04 13:13:13 +01:00
|
|
|
users.users.julien = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/julien";
|
2024-05-09 00:48:35 +02:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
config.users.groups.keys.name
|
|
|
|
"networkmanager"
|
|
|
|
"davfs2"
|
|
|
|
"adbusers"
|
|
|
|
"audio"
|
|
|
|
"pipewire"
|
|
|
|
"dialout"
|
|
|
|
"video"
|
2024-12-09 09:52:19 +01:00
|
|
|
"docker"
|
2024-05-09 00:48:35 +02:00
|
|
|
];
|
2024-04-04 17:37:40 +02:00
|
|
|
shell = pkgs.fish;
|
2024-05-09 00:48:35 +02:00
|
|
|
hashedPasswordFile = config.age.secrets.julien-password.path;
|
2024-12-24 15:07:42 +01:00
|
|
|
openssh.authorizedPrincipals = [ "julien" ];
|
2025-03-13 00:17:08 +01:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMAa0wll9ildhgPiV0DhgJXXtw3TQr5VkNxxxPspHSbX julien@gallifrey"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIADCpuBL/kSZShtXD6p/Nq9ok4w1DnlSoxToYgdOvUqo julien@telecom"
|
|
|
|
];
|
2021-12-04 13:13:13 +01:00
|
|
|
};
|
|
|
|
|
2023-01-05 17:12:02 +01:00
|
|
|
nix.settings.allowed-users = [ "julien" ];
|
2023-07-26 19:32:57 +02:00
|
|
|
nix.settings.trusted-users = [ "julien" ];
|
|
|
|
|
2024-05-09 00:48:35 +02:00
|
|
|
age.secrets.julien-password.file = ../secrets/user-julien-password.age;
|
2021-12-04 13:13:13 +01:00
|
|
|
}
|