add helix on work mac
This commit is contained in:
parent
aa507c0814
commit
6c9a7b9a0a
3 changed files with 17 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/6
|
||||
|
||||
`nix run nix-darwin -- switch --flake '.#cushy'`
|
||||
|
|
|
@ -21,6 +21,12 @@ in {
|
|||
inherit config;
|
||||
cyplo.username = username;
|
||||
})
|
||||
(import ../../helix {
|
||||
inherit pkgs;
|
||||
inherit lib;
|
||||
inherit config;
|
||||
cyplo.username = username;
|
||||
})
|
||||
];
|
||||
services.nix-daemon.enable = true;
|
||||
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
cyplo,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
let
|
||||
username =
|
||||
if cyplo ? username
|
||||
then "${cyplo.username}"
|
||||
else "cyryl";
|
||||
in
|
||||
{
|
||||
nix.settings = {
|
||||
trusted-substituters = [
|
||||
"https://helix.cachix.org"
|
||||
|
@ -12,5 +20,5 @@
|
|||
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
||||
];
|
||||
};
|
||||
home-manager.users.cyryl = {...}: {imports = [./home.nix];};
|
||||
home-manager.users."${username}" = {...}: {imports = [./home.nix];};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue