24 lines
412 B
Nix
24 lines
412 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
cyplo,
|
|
...
|
|
}:
|
|
let
|
|
username =
|
|
if cyplo ? username
|
|
then "${cyplo.username}"
|
|
else "cyryl";
|
|
in
|
|
{
|
|
nix.settings = {
|
|
trusted-substituters = [
|
|
"https://helix.cachix.org"
|
|
];
|
|
trusted-public-keys = [
|
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
|
];
|
|
};
|
|
home-manager.users."${username}" = {...}: {imports = [./home.nix];};
|
|
}
|