2024-04-21 14:15:40 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-10-02 15:32:22 +01:00
|
|
|
cyplo,
|
2024-04-21 14:15:40 +01:00
|
|
|
...
|
2024-10-02 15:32:22 +01:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
username =
|
|
|
|
if cyplo ? username
|
|
|
|
then "${cyplo.username}"
|
|
|
|
else "cyryl";
|
|
|
|
in
|
|
|
|
{
|
2024-04-21 14:15:40 +01:00
|
|
|
nix.settings = {
|
|
|
|
trusted-substituters = [
|
|
|
|
"https://helix.cachix.org"
|
|
|
|
];
|
2024-04-21 16:20:04 +01:00
|
|
|
trusted-public-keys = [
|
2024-04-21 14:15:40 +01:00
|
|
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
|
|
|
];
|
|
|
|
};
|
2024-10-02 15:32:22 +01:00
|
|
|
home-manager.users."${username}" = {...}: {imports = [./home.nix];};
|
2024-04-21 14:15:40 +01:00
|
|
|
}
|