add helix on work mac

This commit is contained in:
Cyryl Płotnicki 2024-10-02 15:32:22 +01:00
parent aa507c0814
commit 6c9a7b9a0a
3 changed files with 17 additions and 2 deletions

View file

@ -1,2 +1,3 @@
https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/6 https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/6
`nix run nix-darwin -- switch --flake '.#cushy'`

View file

@ -21,6 +21,12 @@ in {
inherit config; inherit config;
cyplo.username = username; cyplo.username = username;
}) })
(import ../../helix {
inherit pkgs;
inherit lib;
inherit config;
cyplo.username = username;
})
]; ];
services.nix-daemon.enable = true; services.nix-daemon.enable = true;

View file

@ -2,8 +2,16 @@
config, config,
pkgs, pkgs,
lib, lib,
cyplo,
... ...
}: { }:
let
username =
if cyplo ? username
then "${cyplo.username}"
else "cyryl";
in
{
nix.settings = { nix.settings = {
trusted-substituters = [ trusted-substituters = [
"https://helix.cachix.org" "https://helix.cachix.org"
@ -12,5 +20,5 @@
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
]; ];
}; };
home-manager.users.cyryl = {...}: {imports = [./home.nix];}; home-manager.users."${username}" = {...}: {imports = [./home.nix];};
} }