My Nix Configuration

[zaphod] Configure default users

Changed files
+2 -36
systems
x86_64-linux
zaphod
users
thehedgehog
+2 -7
systems/x86_64-linux/zaphod/default.nix
···
-
{ ... }: {
+
{ inputs, ... }: {
imports = [
-
# Common Config
-
../default.nix
-
-
# My user, also a default.
-
../../users/thehedgehog
-
# Machine specific configs
./bootloader.nix
./console.nix
···
# Agenix secrets
# ./secret-files.nix
];
+
py.users.default.enable = true;
fileSystems = {
"/" = {
fsType = "btrfs";
-29
users/thehedgehog/default.nix
···
-
{ pkgs, ... }:
-
{
-
users.users.thehedgehog = {
-
description = "The Hedgehog";
-
isNormalUser = true;
-
extraGroups = [
-
"adbusers"
-
"wheel"
-
"networkmanager"
-
"video"
-
"docker"
-
"wireshark"
-
"input"
-
];
-
hashedPassword = "$6$6EtuZhVOJdfI9DYP$1Qnd7R8qdN.E5yE2kDQCNg2zgJ5cIjNBKsIW/qJgb8wcKlUpIoVg/fEKvBkAgCiLyojVG2kzfu4J9LR8rA8a2/";
-
shell = pkgs.fish;
-
openssh = {
-
authorizedKeys = {
-
keyFiles = [
-
../../home/programs/ssh/yubikey-new.pub
-
../../home/programs/ssh/yubikey-main.pub
-
../../home/programs/ssh/yubikey-back.pub
-
../../home/programs/ssh/backup.pub
-
];
-
keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP532AB5mkNvE29MkDDY8HEf8ZdktGWiI0PzLrvbmLQe" ];
-
};
-
};
-
};
-
}