refactor(flake): add user registry and multi-user host support
Separate user identity (data) from the reusable modules, and let a host declare any number of users instead of exactly one. - users/registry.nix: per-user identity (name, email, groups, authorized and signing keys) as the single source of identity; no user data is hardcoded in the modules. - mkHost takes a `users` set keyed by username; per-user identity is injected into each home config via the `identity` module arg (extraSpecialArgs is per-host, so it cannot carry per-user data). - modules/users.nix builds accounts from the registry; modules/ssh.nix no longer defines authorized keys (the registry owns them); home/git.nix and home/desktop.nix read `identity`; users/emmathorpe/work.nix drops its now-redundant git identity override. - Restructure the tree: users/, home/, modules/, hosts/, lib/ replace the former lyrathorpe/ and system/ layout. - Add standalone homeConfigurations (the portable subset: shell, git, editor, claude) and an exported homeModules output for use on machines not managed by this flake, or as an input to other flakes. Behaviour-preserving for existing hosts: lyrathorpe-mbp and emmathorpe-edaas evaluate to identical derivations; lyrathorpe-t400, lyrathorpe-macpro31 and lyrathorpe-rpi5 differ only by de-duplicating a repeated authorized_keys entry. Fixes the SSH authorized-key leak (one user's key was applied to every account), the hardcoded default git identity, and the hardcoded EDaaS linger setting.
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
system/modules/firmware/*
|
modules/firmware/*
|
||||||
|
|
||||||
# vim swap files
|
# vim swap files
|
||||||
*.swp
|
*.swp
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
# Provides mkFlake: the systems/perSystem scaffolding used below.
|
# Provides mkFlake: the systems/perSystem scaffolding used below.
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||||
# Declarative Firefox add-ons (e.g. the Catppuccin theme); see lyrathorpe/user.nix.
|
# Declarative Firefox add-ons (e.g. the Catppuccin theme); see modules/users.nix.
|
||||||
firefox-addons = {
|
firefox-addons = {
|
||||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
url = "github:cachix/git-hooks.nix";
|
url = "github:cachix/git-hooks.nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
# Declarative Neovim (the editor; see lyrathorpe/home/editor.nix). Release
|
# Declarative Neovim (the editor; see home/editor.nix). Release
|
||||||
# branch matched to the pinned nixpkgs (26.05); follows our nixpkgs to keep a
|
# branch matched to the pinned nixpkgs (26.05); follows our nixpkgs to keep a
|
||||||
# single nixpkgs in the closure. editor.nix sets programs.nixvim.nixpkgs.source
|
# single nixpkgs in the closure. editor.nix sets programs.nixvim.nixpkgs.source
|
||||||
# to this same input so the home module doesn't warn about the pin.
|
# to this same input so the home module doesn't warn about the pin.
|
||||||
@@ -97,6 +97,12 @@
|
|||||||
"lens-desktop"
|
"lens-desktop"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Identity registry: who each user is (name, email, keys, groups), keyed
|
||||||
|
# by username. Threaded into the system layer as the `userRegistry`
|
||||||
|
# specialArg and into each user's home config as the `identity` module
|
||||||
|
# arg. See users/registry.nix, modules/users.nix, home/git.nix.
|
||||||
|
userRegistry = import ./users/registry.nix;
|
||||||
|
|
||||||
# nixpkgs + nix-daemon settings shared by NixOS and Darwin hosts.
|
# nixpkgs + nix-daemon settings shared by NixOS and Darwin hosts.
|
||||||
commonModule = {
|
commonModule = {
|
||||||
nixpkgs.overlays = overlays;
|
nixpkgs.overlays = overlays;
|
||||||
@@ -112,9 +118,9 @@
|
|||||||
|
|
||||||
# Shared scaffolding for every NixOS host: common user, settings, home-manager.
|
# Shared scaffolding for every NixOS host: common user, settings, home-manager.
|
||||||
baseModules = [
|
baseModules = [
|
||||||
./lyrathorpe/user.nix
|
./modules/users.nix
|
||||||
./system/modules/common-nixos.nix
|
./modules/common-nixos.nix
|
||||||
./system/modules/features.nix
|
./modules/features.nix
|
||||||
commonModule
|
commonModule
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
@@ -126,18 +132,19 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# mkHost :: { system, username, fullName, modules, homeModules } -> nixosSystem
|
# mkHost :: { system, modules, users, portable } -> nixosSystem
|
||||||
# Builds one machine by appending its host-specific modules to the shared
|
# Builds one machine by appending its host-specific modules to the shared
|
||||||
# baseModules. The user identity (username/fullName) is threaded through
|
# baseModules. `users` is an attrset keyed by username; each value carries
|
||||||
# specialArgs so user.nix and the home modules stay host-agnostic, and the
|
# that user's home-module list and optional per-host-user system bits
|
||||||
# home-manager profile is keyed by the host's username.
|
# (e.g. linger). Per-user identity is injected into each home config via
|
||||||
|
# the `identity` module arg (extraSpecialArgs is per-host, so it cannot
|
||||||
|
# carry per-user data); the system layer reads the global `userRegistry`
|
||||||
|
# restricted to this host's `hostUsers` set.
|
||||||
mkHost =
|
mkHost =
|
||||||
{
|
{
|
||||||
system,
|
system,
|
||||||
username,
|
|
||||||
fullName,
|
|
||||||
modules,
|
modules,
|
||||||
homeModules,
|
users,
|
||||||
# Host form factor. Laptops inherit the default; a desktop host sets
|
# Host form factor. Laptops inherit the default; a desktop host sets
|
||||||
# `portable = false` to drop mobile components (battery block,
|
# `portable = false` to drop mobile components (battery block,
|
||||||
# brightness keys) from the home-manager Sway config.
|
# brightness keys) from the home-manager Sway config.
|
||||||
@@ -148,8 +155,7 @@
|
|||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit
|
inherit
|
||||||
inputs
|
inputs
|
||||||
username
|
userRegistry
|
||||||
fullName
|
|
||||||
portable
|
portable
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
@@ -157,16 +163,15 @@
|
|||||||
baseModules
|
baseModules
|
||||||
++ modules
|
++ modules
|
||||||
++ [
|
++ [
|
||||||
|
{ _module.args.hostUsers = users; }
|
||||||
{
|
{
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = { inherit inputs portable; };
|
||||||
inherit
|
home-manager.users = lib.mapAttrs (name: spec: {
|
||||||
inputs
|
imports = spec.homeModules;
|
||||||
username
|
_module.args.identity = userRegistry.${name} // {
|
||||||
fullName
|
username = name;
|
||||||
portable
|
};
|
||||||
;
|
}) users;
|
||||||
};
|
|
||||||
home-manager.users.${username}.imports = homeModules;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -185,19 +190,20 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# mkDarwinHost :: { system, username, fullName, modules, homeModules } -> darwinSystem
|
# mkDarwinHost :: { system, username, modules, homeModules } -> darwinSystem
|
||||||
# Darwin counterpart of mkHost. macOS already owns the login user, so we
|
# Darwin counterpart of mkHost. macOS already owns the login user, so we
|
||||||
# only attach the platform and home-manager; no NixOS user module here.
|
# only attach the platform and home-manager; no NixOS user module here.
|
||||||
|
# Stays single-user (macOS owns the account); identity is still sourced
|
||||||
|
# from the registry so the shared home modules behave as on NixOS.
|
||||||
mkDarwinHost =
|
mkDarwinHost =
|
||||||
{
|
{
|
||||||
system,
|
system,
|
||||||
username,
|
username,
|
||||||
fullName,
|
|
||||||
modules,
|
modules,
|
||||||
homeModules,
|
homeModules,
|
||||||
}:
|
}:
|
||||||
nix-darwin.lib.darwinSystem {
|
nix-darwin.lib.darwinSystem {
|
||||||
specialArgs = { inherit inputs username fullName; };
|
specialArgs = { inherit inputs username; };
|
||||||
modules =
|
modules =
|
||||||
darwinBaseModules
|
darwinBaseModules
|
||||||
++ modules
|
++ modules
|
||||||
@@ -206,40 +212,44 @@
|
|||||||
nixpkgs.hostPlatform = system;
|
nixpkgs.hostPlatform = system;
|
||||||
# macOS owns the account; point home-manager at its home dir.
|
# macOS owns the account; point home-manager at its home dir.
|
||||||
users.users.${username}.home = "/Users/${username}";
|
users.users.${username}.home = "/Users/${username}";
|
||||||
home-manager.extraSpecialArgs = { inherit inputs username fullName; };
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
home-manager.users.${username}.imports = homeModules;
|
home-manager.users.${username} = {
|
||||||
|
imports = homeModules;
|
||||||
|
_module.args.identity = userRegistry.${username} // {
|
||||||
|
inherit username;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Host table — declarative registry of every machine. To add a host:
|
# Host table — declarative registry of every machine. To add a host:
|
||||||
# give it a name, its `system`, the owning user, and the module lists.
|
# give it a name, its `system`, its `users` set (each user's home-module
|
||||||
# mapAttrs below turns each entry into a nixosConfiguration of the same name.
|
# list, plus optional per-host-user bits like linger), and the system
|
||||||
|
# `modules`. mapAttrs below turns each entry into a nixosConfiguration of
|
||||||
|
# the same name. Per-user home configs compose ./home (the shared bundle)
|
||||||
|
# with any per-user modules (e.g. ./users/emmathorpe/work.nix).
|
||||||
hosts = {
|
hosts = {
|
||||||
lyrathorpe-mbp = {
|
lyrathorpe-mbp = {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
username = "lyrathorpe";
|
|
||||||
fullName = "Lyra Thorpe";
|
|
||||||
modules = [
|
modules = [
|
||||||
./system/machine/MBP-Asahi/configuration.nix
|
./hosts/MBP-Asahi/configuration.nix
|
||||||
./system/modules/laptop.nix
|
./modules/laptop.nix
|
||||||
nixos-apple-silicon.nixosModules.default
|
nixos-apple-silicon.nixosModules.default
|
||||||
./lyrathorpe/swaywm.nix
|
./modules/sway.nix
|
||||||
];
|
];
|
||||||
homeModules = [
|
users.lyrathorpe.homeModules = [
|
||||||
./lyrathorpe/home
|
./home
|
||||||
./lyrathorpe/home/desktop.nix
|
./home/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
lyrathorpe-t400 = {
|
lyrathorpe-t400 = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
username = "lyrathorpe";
|
|
||||||
fullName = "Lyra Thorpe";
|
|
||||||
modules = [
|
modules = [
|
||||||
./system/machine/T400/configuration.nix
|
./hosts/T400/configuration.nix
|
||||||
./system/modules/laptop.nix
|
./modules/laptop.nix
|
||||||
./system/modules/ssh.nix
|
./modules/ssh.nix
|
||||||
# No t400-specific profile exists; compose the generic ThinkPad +
|
# No t400-specific profile exists; compose the generic ThinkPad +
|
||||||
# laptop/SSD/Intel building blocks (tp_smapi/acpi_call for battery
|
# laptop/SSD/Intel building blocks (tp_smapi/acpi_call for battery
|
||||||
# thresholds, SSD + microcode defaults).
|
# thresholds, SSD + microcode defaults).
|
||||||
@@ -247,78 +257,76 @@
|
|||||||
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
./lyrathorpe/swaywm.nix
|
./modules/sway.nix
|
||||||
];
|
];
|
||||||
homeModules = [
|
users.lyrathorpe.homeModules = [
|
||||||
./lyrathorpe/home
|
./home
|
||||||
./lyrathorpe/home/desktop.nix
|
./home/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
lyrathorpe-macpro31 = {
|
lyrathorpe-macpro31 = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
username = "lyrathorpe";
|
|
||||||
fullName = "Lyra Thorpe";
|
|
||||||
portable = false;
|
portable = false;
|
||||||
modules = [
|
modules = [
|
||||||
./system/machine/MacPro31/configuration.nix
|
./hosts/MacPro31/configuration.nix
|
||||||
./system/modules/desktop.nix
|
./modules/desktop.nix
|
||||||
./system/modules/ssh.nix
|
./modules/ssh.nix
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
./lyrathorpe/swaywm.nix
|
./modules/sway.nix
|
||||||
];
|
];
|
||||||
homeModules = [
|
users.lyrathorpe.homeModules = [
|
||||||
./lyrathorpe/home
|
./home
|
||||||
./lyrathorpe/home/desktop.nix
|
./home/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
emmathorpe-edaas = {
|
emmathorpe-edaas = {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
username = "emmathorpe";
|
|
||||||
fullName = "Emma Thorpe";
|
|
||||||
modules = [
|
modules = [
|
||||||
./system/machine/EDaaS/configuration.nix
|
./hosts/EDaaS/configuration.nix
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
./lyrathorpe/swaywm.nix
|
./modules/sway.nix
|
||||||
];
|
|
||||||
homeModules = [
|
|
||||||
./lyrathorpe/home
|
|
||||||
./lyrathorpe/home/work.nix
|
|
||||||
];
|
];
|
||||||
|
users.emmathorpe = {
|
||||||
|
homeModules = [
|
||||||
|
./home
|
||||||
|
./users/emmathorpe/work.nix
|
||||||
|
];
|
||||||
|
# Keep the systemd --user instance alive without a login session so
|
||||||
|
# the renovate-review home timer fires on schedule.
|
||||||
|
linger = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
lyrathorpe-rpi5 = {
|
lyrathorpe-rpi5 = {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
username = "lyrathorpe";
|
|
||||||
fullName = "Lyra Thorpe";
|
|
||||||
portable = false;
|
portable = false;
|
||||||
# Headless server: Docker host + nginx reverse proxy. No swaywm.nix
|
# Headless server: Docker host + nginx reverse proxy. No sway.nix
|
||||||
# (no desktop); the raspberry-pi-5 profile supplies kernel/firmware,
|
# (no desktop); the raspberry-pi-5 profile supplies kernel/firmware,
|
||||||
# ssh.nix adds key-only sshd.
|
# ssh.nix adds key-only sshd.
|
||||||
modules = [
|
modules = [
|
||||||
./system/machine/RPi5/configuration.nix
|
./hosts/RPi5/configuration.nix
|
||||||
inputs.nixos-hardware.nixosModules.raspberry-pi-5
|
inputs.nixos-hardware.nixosModules.raspberry-pi-5
|
||||||
./system/modules/ssh.nix
|
./modules/ssh.nix
|
||||||
];
|
];
|
||||||
homeModules = [ ./lyrathorpe/home ];
|
users.lyrathorpe.homeModules = [ ./home ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Darwin host table — macOS machines built via mkDarwinHost. The shared
|
# Darwin host table — macOS machines built via mkDarwinHost. The shared
|
||||||
# ./lyrathorpe/home modules (shell, git, editor) are reused; the Linux-only
|
# ./home bundle (shell, git, editor) is reused directly; the Linux-only
|
||||||
# desktop/sway modules are intentionally left out.
|
# desktop/sway modules are intentionally left out.
|
||||||
darwinHosts = {
|
darwinHosts = {
|
||||||
lyrathorpe-mac = {
|
lyrathorpe-mac = {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
username = "lyrathorpe";
|
username = "lyrathorpe";
|
||||||
fullName = "Lyra Thorpe";
|
|
||||||
modules = [
|
modules = [
|
||||||
./system/machine/Darwin/configuration.nix
|
./hosts/Darwin/configuration.nix
|
||||||
];
|
];
|
||||||
homeModules = [
|
homeModules = [
|
||||||
./lyrathorpe/home
|
./home
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -409,6 +417,70 @@
|
|||||||
# Realise the host tables: each entry becomes a {nixos,darwin}Configuration.
|
# Realise the host tables: each entry becomes a {nixos,darwin}Configuration.
|
||||||
flake.nixosConfigurations = lib.mapAttrs (_name: mkHost) hosts;
|
flake.nixosConfigurations = lib.mapAttrs (_name: mkHost) hosts;
|
||||||
flake.darwinConfigurations = lib.mapAttrs (_name: mkDarwinHost) darwinHosts;
|
flake.darwinConfigurations = lib.mapAttrs (_name: mkDarwinHost) darwinHosts;
|
||||||
|
|
||||||
|
# Reusable home modules, exported so this config can be consumed off these
|
||||||
|
# hosts -- by a standalone home-manager on a non-NixOS machine, or as an
|
||||||
|
# input to someone else's flake. `default` is the portable bundle
|
||||||
|
# (shell + git + editor + claude). Consumers must supply the module args
|
||||||
|
# these expect: `inputs` always; `identity` (see users/registry.nix) for
|
||||||
|
# git/desktop; `portable` for sway. `desktop`/`sway` additionally require
|
||||||
|
# a NixOS host that provides the Sway/Firefox binary -- they are not
|
||||||
|
# standalone-portable.
|
||||||
|
flake.homeModules = {
|
||||||
|
default = ./home;
|
||||||
|
shell = ./home/shell.nix;
|
||||||
|
git = ./home/git.nix;
|
||||||
|
editor = ./home/editor.nix;
|
||||||
|
claude = ./home/claude.nix;
|
||||||
|
desktop = ./home/desktop.nix;
|
||||||
|
sway = ./home/sway.nix;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Standalone home-manager configurations: the portable bundle built for a
|
||||||
|
# machine NOT managed by this flake (`home-manager switch --flake
|
||||||
|
# .#"<user>@<system>"`). Only the portable subset is exposed; the desktop
|
||||||
|
# suite stays NixOS-only. homeConfigurations are not per-system, so the
|
||||||
|
# system is encoded in the attribute name, and home.username/homeDirectory
|
||||||
|
# are set explicitly (the NixOS module sets them automatically; standalone
|
||||||
|
# does not).
|
||||||
|
flake.homeConfigurations =
|
||||||
|
let
|
||||||
|
mkHome =
|
||||||
|
{
|
||||||
|
system,
|
||||||
|
name,
|
||||||
|
}:
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system overlays;
|
||||||
|
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) unfreePackages;
|
||||||
|
};
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
portable = true;
|
||||||
|
identity = userRegistry.${name} // {
|
||||||
|
username = name;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./home
|
||||||
|
{
|
||||||
|
home.username = name;
|
||||||
|
home.homeDirectory = "/home/${name}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
"lyrathorpe@x86_64-linux" = mkHome {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
name = "lyrathorpe";
|
||||||
|
};
|
||||||
|
"lyrathorpe@aarch64-linux" = mkHome {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
name = "lyrathorpe";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
# Graphical desktop layer: GUI apps, Wayland session env, and cursor theme.
|
# Graphical desktop layer: GUI apps, Wayland session env, and cursor theme.
|
||||||
# Imported only on hosts that run Sway (MBP, T400, Mac Pro); never pulled onto
|
# Imported only on hosts that run Sway (MBP, T400, Mac Pro); never pulled onto
|
||||||
# the headless WSL host. Login (and the Sway session launch) is handled by the
|
# the headless WSL host. Login (and the Sway session launch) is handled by the
|
||||||
# greetd/ReGreet greeter -- see ../swaywm.nix -- so there is no tty1 autostart.
|
# greetd/ReGreet greeter -- see ../modules/sway.nix -- so there is no tty1
|
||||||
|
# autostart.
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
username,
|
identity,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@@ -89,7 +90,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Firefox is themed at the browser level (it does not follow the GTK theme).
|
# Firefox is themed at the browser level (it does not follow the GTK theme).
|
||||||
# The system installs the binary (programs.firefox in ../user.nix); here
|
# The system installs the binary (programs.firefox in ../modules/users.nix); here
|
||||||
# home-manager owns only the profile, hence package = null. Apply the
|
# home-manager owns only the profile, hence package = null. Apply the
|
||||||
# Catppuccin Mocha theme add-on (only the mauve accent is packaged upstream;
|
# Catppuccin Mocha theme add-on (only the mauve accent is packaged upstream;
|
||||||
# the rest of the desktop uses blue) and make content + UI dark.
|
# the rest of the desktop uses blue) and make content + UI dark.
|
||||||
@@ -101,7 +102,7 @@
|
|||||||
# stateVersion<26.05 default-change warning (the new XDG path depends on
|
# stateVersion<26.05 default-change warning (the new XDG path depends on
|
||||||
# Firefox's own profile support).
|
# Firefox's own profile support).
|
||||||
configPath = ".mozilla/firefox";
|
configPath = ".mozilla/firefox";
|
||||||
profiles.${username} = {
|
profiles.${identity.username} = {
|
||||||
id = 0;
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
extensions = {
|
extensions = {
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
# Version control: git + delta pager + commitizen + lazygit. The work host
|
# Version control: git + delta pager + commitizen + lazygit. The committer
|
||||||
# layers commit signing and an email override on top (see work.nix).
|
# identity (name, email, signing key) comes from the per-user `identity` arg,
|
||||||
|
# derived from the registry (users/registry.nix) by mkHost.
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
fullName,
|
identity,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
ctp = import ../catppuccin-mocha.nix;
|
ctp = import ../lib/catppuccin-mocha.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
@@ -18,10 +19,10 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitFull;
|
package = pkgs.gitFull;
|
||||||
settings = {
|
settings = {
|
||||||
user.name = fullName;
|
user.name = identity.fullName;
|
||||||
# Personal identity. mkDefault so the work module overrides it on the work
|
# Identity from the registry. mkDefault so a host-specific module can still
|
||||||
# host (and to merge cleanly with that plain definition there).
|
# override it without conflicting.
|
||||||
user.email = lib.mkDefault "iam@emmathe.dev";
|
user.email = lib.mkDefault identity.email;
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
|
|
||||||
@@ -77,14 +78,11 @@ in
|
|||||||
cc = "!cz commit";
|
cc = "!cz commit";
|
||||||
};
|
};
|
||||||
|
|
||||||
# SSH commit signing. This personal key is the default; the work module
|
# SSH commit signing, key from the registry. mkDefault on the key and on
|
||||||
# (work.nix) overrides it with the work key on the EDaaS host, the same way
|
# gpgsign so a host without that key in its ssh-agent can override gpgsign
|
||||||
# user.email is overridden -- so mkDefault here lets that plain definition
|
# to false rather than fail every commit.
|
||||||
# win instead of conflicting. gpgsign is mkDefault too, so a host without
|
|
||||||
# the key in its ssh-agent can override it to false rather than fail every
|
|
||||||
# commit.
|
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
user.signingkey = lib.mkDefault "key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDxHvdMTOzpFWUFMtCP7C/4tIOUO3GIO2QPvaifSnWH lyrathorpe@Lyra-MBA";
|
user.signingkey = lib.mkDefault identity.signingKey;
|
||||||
commit.gpgsign = lib.mkDefault true;
|
commit.gpgsign = lib.mkDefault true;
|
||||||
tag.gpgsign = lib.mkDefault true;
|
tag.gpgsign = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# Shared Catppuccin Mocha palette: raw 6-hex strings, no leading "#".
|
# Shared Catppuccin Mocha palette: raw 6-hex strings, no leading "#".
|
||||||
ctp = import ../catppuccin-mocha.nix;
|
ctp = import ../lib/catppuccin-mocha.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# Imported via ./desktop.nix, so only graphical hosts get it.
|
# Imported via ./desktop.nix, so only graphical hosts get it.
|
||||||
#
|
#
|
||||||
# The compositor binary, PAM and the polkit *daemon* come from the system-level
|
# The compositor binary, PAM and the polkit *daemon* come from the system-level
|
||||||
# programs.sway (see ../swaywm.nix); package = null below reuses it instead of
|
# programs.sway (see ../modules/sway.nix); package = null below reuses it instead of
|
||||||
# pulling a second Sway. The polkit authentication *agent* (the thing that draws
|
# pulling a second Sway. The polkit authentication *agent* (the thing that draws
|
||||||
# the GUI auth dialog) is a user service started here. home-manager owns the user
|
# the GUI auth dialog) is a user service started here. home-manager owns the user
|
||||||
# config (~/.config/sway) and wires the systemd user session (sway-session.target),
|
# config (~/.config/sway) and wires the systemd user session (sway-session.target),
|
||||||
@@ -20,7 +20,7 @@ let
|
|||||||
# Catppuccin Mocha (shared with the ReGreet greeter). Raw hex; prefix "#"
|
# Catppuccin Mocha (shared with the ReGreet greeter). Raw hex; prefix "#"
|
||||||
# where a consumer needs it -- Sway/i3status/dunst want "#", foot/swaylock do
|
# where a consumer needs it -- Sway/i3status/dunst want "#", foot/swaylock do
|
||||||
# not.
|
# not.
|
||||||
ctp = import ../catppuccin-mocha.nix;
|
ctp = import ../lib/catppuccin-mocha.nix;
|
||||||
|
|
||||||
# Focused-window screenshot -> swappy editor (the dotfiles' grimshot.sh logic).
|
# Focused-window screenshot -> swappy editor (the dotfiles' grimshot.sh logic).
|
||||||
# Full store paths so it needs nothing on PATH.
|
# Full store paths so it needs nothing on PATH.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# Default nix-darwin host. Minimal macOS baseline; the user environment
|
# Default nix-darwin host. Minimal macOS baseline; the user environment
|
||||||
# (shell, git, editor) is carried by the shared ./lyrathorpe/home modules,
|
# (shell, git, editor) is carried by the shared ./home modules,
|
||||||
# the same ones used by the Linux hosts. nixpkgs.hostPlatform is set by
|
# the same ones used by the Linux hosts. nixpkgs.hostPlatform is set by
|
||||||
# mkDarwinHost in flake.nix.
|
# mkDarwinHost in flake.nix.
|
||||||
{ pkgs, username, ... }:
|
{ pkgs, username, ... }:
|
||||||
@@ -62,12 +62,11 @@
|
|||||||
|
|
||||||
features.swayDesktop.enable = false;
|
features.swayDesktop.enable = false;
|
||||||
|
|
||||||
# Keep this user's systemd --user instance running without an open login
|
# NOTE: this user's systemd --user lingering -- so the home-manager renovate
|
||||||
# session, so the home-manager user timer (renovate-review.nix) fires on
|
# timer fires without an open login session -- is enabled from the host table
|
||||||
# schedule even when no terminal is attached. On WSL the timer still only runs
|
# in flake.nix (users.emmathorpe.linger = true) and applied by
|
||||||
# while the distro itself is up; Persistent=true catches up a missed run at
|
# modules/users.nix.
|
||||||
# next start.
|
|
||||||
users.users.emmathorpe.linger = true;
|
|
||||||
# programs.nix-ld is enabled for all NixOS hosts in common-nixos.nix.
|
# programs.nix-ld is enabled for all NixOS hosts in common-nixos.nix.
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
# - ATI Radeon HD 2600 XT -> "radeon" (older) or "amdgpu" KMS
|
# - ATI Radeon HD 2600 XT -> "radeon" (older) or "amdgpu" KMS
|
||||||
# - NVIDIA GeForce 8800 GT -> "nouveau" KMS
|
# - NVIDIA GeForce 8800 GT -> "nouveau" KMS
|
||||||
# These come up automatically via the in-tree drivers + KMS, and the graphics
|
# These come up automatically via the in-tree drivers + KMS, and the graphics
|
||||||
# stack itself is enabled by swaywm.nix. If a card needs to be forced, add it
|
# stack itself is enabled by modules/sway.nix. If a card needs to be forced, add it
|
||||||
# here, e.g. `services.xserver.videoDrivers = [ "radeon" ];` (or "nouveau"),
|
# here, e.g. `services.xserver.videoDrivers = [ "radeon" ];` (or "nouveau"),
|
||||||
# and/or `boot.initrd.kernelModules = [ "radeon" ];` in
|
# and/or `boot.initrd.kernelModules = [ "radeon" ];` in
|
||||||
# hardware-configuration.nix for early KMS.
|
# hardware-configuration.nix for early KMS.
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
# (which selects by the local hostname) resolves without an explicit -H flag.
|
# (which selects by the local hostname) resolves without an explicit -H flag.
|
||||||
networking.hostName = "lyrathorpe-rpi5";
|
networking.hostName = "lyrathorpe-rpi5";
|
||||||
|
|
||||||
# Headless server: the Sway desktop is intentionally not set up. swaywm.nix is
|
# Headless server: the Sway desktop is intentionally not set up. modules/sway.nix is
|
||||||
# not imported and features.swayDesktop.enable defaults to false (declared in
|
# not imported and features.swayDesktop.enable defaults to false (declared in
|
||||||
# system/modules/features.nix), so this host keeps plain TTY/SSH login.
|
# system/modules/features.nix), so this host keeps plain TTY/SSH login.
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# Catppuccin Mocha palette. Raw 6-digit hex (no leading "#"); consumers add a
|
# Catppuccin Mocha palette. Raw 6-digit hex (no leading "#"); consumers add a
|
||||||
# "#" where their format needs it. Shared by the Sway desktop theming
|
# "#" where their format needs it. Shared by the Sway desktop theming
|
||||||
# (home/sway.nix) and the ReGreet greeter (swaywm.nix) so the two stay in sync.
|
# (home/sway.nix) and the ReGreet greeter (modules/sway.nix) so the two stay in sync.
|
||||||
{
|
{
|
||||||
base = "1e1e2e";
|
base = "1e1e2e";
|
||||||
mantle = "181825";
|
mantle = "181825";
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
username,
|
|
||||||
fullName,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
users.users.${username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
home = "/home/${username}";
|
|
||||||
description = fullName;
|
|
||||||
extraGroups = [
|
|
||||||
"wheel"
|
|
||||||
"docker"
|
|
||||||
];
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDxHvdMTOzpFWUFMtCP7C/4tIOUO3GIO2QPvaifSnWH lyrathorpe@Lyra-MBA"
|
|
||||||
];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
programs.firefox = lib.mkIf (config.features.swayDesktop.enable == true) {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
programs.thunderbird = lib.mkIf (config.features.swayDesktop.enable == true) {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# shared ./workstation.nix base and swaps the mobile Wi-Fi backend for wired
|
# shared ./workstation.nix base and swaps the mobile Wi-Fi backend for wired
|
||||||
# NetworkManager. A desktop host also sets `portable = false` in its host-table
|
# NetworkManager. A desktop host also sets `portable = false` in its host-table
|
||||||
# entry (flake.nix), which drops the battery block and brightness keybindings
|
# entry (flake.nix), which drops the battery block and brightness keybindings
|
||||||
# from the Sway bar -- see lyrathorpe/home/sway.nix.
|
# from the Sway bar -- see home/sway.nix.
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./workstation.nix ];
|
imports = [ ./workstation.nix ];
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
# baseModules in flake.nix). Declaring the flags here -- rather than inside the
|
# baseModules in flake.nix). Declaring the flags here -- rather than inside the
|
||||||
# module that implements them -- means a host can read or set a flag without
|
# module that implements them -- means a host can read or set a flag without
|
||||||
# importing the (often large) implementation module. In particular,
|
# importing the (often large) implementation module. In particular,
|
||||||
# features.swayDesktop.enable is read by lyrathorpe/user.nix on every host, but a
|
# features.swayDesktop.enable is read by modules/users.nix on every host, but a
|
||||||
# headless host (e.g. the Pi) must be able to leave it at its default without
|
# headless host (e.g. the Pi) must be able to leave it at its default without
|
||||||
# pulling in lyrathorpe/swaywm.nix. The implementation lives in swaywm.nix,
|
# pulling in modules/sway.nix. The implementation lives in modules/sway.nix,
|
||||||
# gated on this flag.
|
# gated on this flag.
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# flake.nix. Shared graphical-workstation settings live in ./workstation.nix;
|
# flake.nix. Shared graphical-workstation settings live in ./workstation.nix;
|
||||||
# the only laptop-specific bit is the Wi-Fi backend. Mobile home-manager
|
# the only laptop-specific bit is the Wi-Fi backend. Mobile home-manager
|
||||||
# components (battery block, brightness keys) are gated by the `portable` flag
|
# components (battery block, brightness keys) are gated by the `portable` flag
|
||||||
# threaded through mkHost -- see lyrathorpe/home/sway.nix.
|
# threaded through mkHost -- see home/sway.nix.
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./workstation.nix ];
|
imports = [ ./workstation.nix ];
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# Key-only SSH hardening, imported by the hosts that run sshd (T400, Mac Pro,
|
||||||
|
# RPi5). The host config still does `services.openssh.enable = true` and opens
|
||||||
|
# port 22 next to where it documents the listening service; this module only
|
||||||
|
# tightens the policy so a host opting into sshd cannot accidentally ship
|
||||||
|
# password/root login. Authorized keys are owned per-user by the identity
|
||||||
|
# registry (users/registry.nix, applied via modules/users.nix), not here.
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.openssh.settings = {
|
||||||
|
PasswordAuthentication = false; # keys only
|
||||||
|
KbdInteractiveAuthentication = false; # no keyboard-interactive fallback
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.features.swayDesktop;
|
cfg = config.features.swayDesktop;
|
||||||
# Catppuccin Mocha (shared with the Sway desktop, see lyrathorpe/home/sway.nix).
|
# Catppuccin Mocha (shared with the Sway desktop, see home/sway.nix).
|
||||||
ctp = import ./catppuccin-mocha.nix;
|
ctp = import ../lib/catppuccin-mocha.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# The features.swayDesktop.enable option is declared in
|
# The features.swayDesktop.enable option is declared in
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
# System-level user accounts, built from the identity registry
|
||||||
|
# (users/registry.nix). `hostUsers` is the host's user set, threaded by mkHost
|
||||||
|
# from the flake host table; `userRegistry` is the global identity table passed
|
||||||
|
# as a specialArg. Every account's identity -- description, groups, authorized
|
||||||
|
# keys -- comes from its registry entry, so no user data is hardcoded here and a
|
||||||
|
# host may declare any number of users.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
hostUsers,
|
||||||
|
userRegistry,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
users.users = lib.mapAttrs (
|
||||||
|
name: spec:
|
||||||
|
let
|
||||||
|
id = userRegistry.${name};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/home/${name}";
|
||||||
|
description = id.fullName;
|
||||||
|
inherit (id) extraGroups;
|
||||||
|
openssh.authorizedKeys.keys = id.sshAuthorizedKeys;
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
}
|
||||||
|
# Keep this user's systemd --user instance running without an open login
|
||||||
|
# session (e.g. for home-manager user timers). Only emitted when the host
|
||||||
|
# table opts in, so hosts that don't set it leave linger entirely unmanaged.
|
||||||
|
// lib.optionalAttrs (spec ? linger) { inherit (spec) linger; }
|
||||||
|
) hostUsers;
|
||||||
|
|
||||||
|
programs.firefox = lib.mkIf (config.features.swayDesktop.enable == true) {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
programs.thunderbird = lib.mkIf (config.features.swayDesktop.enable == true) {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Key-only SSH hardening, imported by the hosts that run sshd (T400, Mac Pro).
|
|
||||||
# The host config still does `services.openssh.enable = true` and opens port 22
|
|
||||||
# next to where it documents the listening service; this module only tightens
|
|
||||||
# the policy and installs the authorized key, so a host opting into sshd cannot
|
|
||||||
# accidentally ship password/root login.
|
|
||||||
{ username, ... }:
|
|
||||||
{
|
|
||||||
services.openssh.settings = {
|
|
||||||
PasswordAuthentication = false; # keys only
|
|
||||||
KbdInteractiveAuthentication = false; # no keyboard-interactive fallback
|
|
||||||
PermitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
# The key permitted to log in as the primary user. Add more entries here as
|
|
||||||
# new client machines are provisioned.
|
|
||||||
users.users.${username}.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDxHvdMTOzpFWUFMtCP7C/4tIOUO3GIO2QPvaifSnWH lyrathorpe@Lyra-MBA"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
# Home-manager module for the work (EDaaS/WSL) profile: corporate git signing,
|
# Home-manager module for the work (EDaaS/WSL) profile: corporate work toolchain
|
||||||
# work toolchain packages and tmux tweaks. Imported only by the work host.
|
# packages and tmux tweaks. Imported only by the work host. The corporate git
|
||||||
|
# identity (email + signing key) is the emmathorpe entry in the identity
|
||||||
|
# registry (users/registry.nix), applied by the shared home/git.nix.
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -12,15 +14,6 @@
|
|||||||
# programs.ssh (shell.nix) take it over. The ssh-agent below still runs.
|
# programs.ssh (shell.nix) take it over. The ssh-agent below still runs.
|
||||||
programs.ssh.enable = lib.mkForce false;
|
programs.ssh.enable = lib.mkForce false;
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
settings = {
|
|
||||||
commit.gpgsign = true;
|
|
||||||
tag.gpgsign = true;
|
|
||||||
gpg.format = "ssh";
|
|
||||||
user.signingkey = "key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAJMVgeRKnfX1G8coU3nAobI485aeUpGTMqH7+zbKI8o emma.thorpe@cloud.com";
|
|
||||||
user.email = "emma.thorpe@citrix.com";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.kubectl
|
pkgs.kubectl
|
||||||
pkgs.argo-rollouts
|
pkgs.argo-rollouts
|
||||||
@@ -66,7 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# LSP servers only relevant to work: C# (omnisharp) and Helm charts (helm_ls).
|
# LSP servers only relevant to work: C# (omnisharp) and Helm charts (helm_ls).
|
||||||
# The shared editor (lyrathorpe/home/editor.nix) carries the universal ones;
|
# The shared editor (home/editor.nix) carries the universal ones;
|
||||||
# these are gated to this host so the heavy omnisharp closure stays off the
|
# these are gated to this host so the heavy omnisharp closure stays off the
|
||||||
# personal machines. Tree-sitter grammars (highlighting) remain global there.
|
# personal machines. Tree-sitter grammars (highlighting) remain global there.
|
||||||
programs.nixvim.plugins.lsp.servers = {
|
programs.nixvim.plugins.lsp.servers = {
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# User identity registry -- pure data, no machinery. Keyed by username.
|
||||||
|
#
|
||||||
|
# Each entry describes WHO a user is (display name, email, authorized/signing
|
||||||
|
# keys, supplementary groups). The reusable modules read this indirectly:
|
||||||
|
# - system: modules/users.nix builds users.users.* from `userRegistry`
|
||||||
|
# (specialArg) restricted to the host's `hostUsers` set.
|
||||||
|
# - home: home/git.nix and home/desktop.nix read the per-user `identity`
|
||||||
|
# module arg, which mkHost derives from the matching registry entry.
|
||||||
|
#
|
||||||
|
# The login name is injected by mkHost as `identity.username`, so it is not
|
||||||
|
# repeated inside each entry here.
|
||||||
|
{
|
||||||
|
lyrathorpe = {
|
||||||
|
fullName = "Lyra Thorpe";
|
||||||
|
email = "iam@emmathe.dev";
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
];
|
||||||
|
sshAuthorizedKeys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDxHvdMTOzpFWUFMtCP7C/4tIOUO3GIO2QPvaifSnWH lyrathorpe@Lyra-MBA"
|
||||||
|
];
|
||||||
|
signingKey = "key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDxHvdMTOzpFWUFMtCP7C/4tIOUO3GIO2QPvaifSnWH lyrathorpe@Lyra-MBA";
|
||||||
|
};
|
||||||
|
|
||||||
|
emmathorpe = {
|
||||||
|
fullName = "Emma Thorpe";
|
||||||
|
email = "emma.thorpe@citrix.com";
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
];
|
||||||
|
# No personal authorized key on file yet. The previous shared user module
|
||||||
|
# applied Lyra's key to every account, including this one -- a defect. Leave
|
||||||
|
# this empty until a real key is provisioned; SSH login is moot on the WSL
|
||||||
|
# host (entered via wsl.exe, not sshd).
|
||||||
|
sshAuthorizedKeys = [ ];
|
||||||
|
signingKey = "key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAJMVgeRKnfX1G8coU3nAobI485aeUpGTMqH7+zbKI8o emma.thorpe@cloud.com";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user