Compare commits
No commits in common. "343f3d481f7fab97726e93c22cf4f0403a31d5e9" and "fba46e0d0de0152bf987549380afd8c0268c26a1" have entirely different histories.
343f3d481f
...
fba46e0d0d
3 changed files with 4 additions and 43 deletions
|
@ -1,21 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (lib.modules) mkIf;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
flake.modules.homeManager.rafiq =
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
hostName,
|
|
||||||
hostConfig,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
mkIf (pkgs.system == "aarch64-darwin" || pkgs.system == "x86_64-darwin") {
|
|
||||||
home.file."Library/Application Support/aichat/config.yaml".text = ''
|
|
||||||
model: gemini:gemini-2.0-flash
|
|
||||||
clients:
|
|
||||||
- type: gemini
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -30,21 +30,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
flake.modules.darwin.default =
|
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
imports = [ inputs.sops-nix.darwinModules.sops ];
|
|
||||||
config = {
|
|
||||||
sops = {
|
|
||||||
age.sshKeyPaths = [ "${config.users.users.${username}.home}/.ssh/id_ed25519" ];
|
|
||||||
secrets."keys/gemini".sopsFile = secrets + "/keys.yaml";
|
|
||||||
};
|
|
||||||
environment.shellInit = # sh
|
|
||||||
''
|
|
||||||
export GEMINI_API_KEY=$(sudo cat ${config.sops.secrets."keys/gemini".path})
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
flake.modules.homeManager.default.persistDirs = [ ".config/sops/age" ];
|
flake.modules.homeManager.default.persistDirs = [ ".config/sops/age" ];
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
|
@ -8,12 +8,9 @@ in
|
||||||
nix.settings.trusted-users = [ "@wheel" ];
|
nix.settings.trusted-users = [ "@wheel" ];
|
||||||
users.users.${cfg.admin.username}.extraGroups = [ "wheel" ];
|
users.users.${cfg.admin.username}.extraGroups = [ "wheel" ];
|
||||||
};
|
};
|
||||||
flake.modules.darwin.default.security = {
|
flake.modules.darwin.default.security.pam.services.sudo_local = {
|
||||||
sudo.extraConfig = "%admin ALL = (ALL) NOPASSWD: ALL";
|
|
||||||
pam.services.sudo_local = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
reattach = true;
|
reattach = true;
|
||||||
touchIdAuth = true;
|
touchIdAuth = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue