2024-12-01 03:34:59 +01:00
|
|
|
{ config, lib, pkgs, clan-core, ... }:
|
2024-11-30 20:44:50 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
# Enables the OpenSSH server for remote access
|
|
|
|
clan-core.clanModules.sshd
|
|
|
|
# Set a root password
|
|
|
|
clan-core.clanModules.root-password
|
|
|
|
clan-core.clanModules.user-password
|
|
|
|
clan-core.clanModules.state-version
|
2024-12-01 03:34:59 +01:00
|
|
|
# users
|
|
|
|
../users
|
2024-11-30 20:44:50 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Locale service discovery and mDNS
|
|
|
|
services.avahi.enable = true;
|
|
|
|
|
|
|
|
# generate a random password for our user below
|
|
|
|
# can be read using `clan secrets get <machine-name>-user-password` command
|
|
|
|
clan.user-password.user = "user";
|
|
|
|
users.users.user = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"networkmanager"
|
|
|
|
"video"
|
|
|
|
"input"
|
|
|
|
];
|
|
|
|
uid = 1000;
|
|
|
|
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
|
|
|
};
|
2024-12-01 03:34:59 +01:00
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.ddrescue
|
|
|
|
pkgs.gptfdisk
|
|
|
|
pkgs.ms-sys
|
|
|
|
pkgs.nvme-cli
|
|
|
|
pkgs.parted
|
|
|
|
pkgs.pciutils
|
|
|
|
pkgs.smartmontools
|
|
|
|
pkgs.testdisk
|
|
|
|
pkgs.usbutils
|
|
|
|
];
|
|
|
|
|
2024-11-30 20:44:50 +01:00
|
|
|
}
|