Something went wrong. Try again.
NixOS / Nix-darwin / Home Manager dotfiles for my devices
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ inputs, lib, self, ...}:let common = pkgs: { nix = { registry = lib.mapAttrs (_: flake: { inherit flake; }) inputs; # Or should this be mkDefault? package = lib.mkForce pkgs.nix; settings = { experimental-features = [ "flakes" "nix-command" "pipe-operators" ]; flake-registry = ""; nix-path = [ ]; }; }; };in{ flake.modules = { darwin.nix = { pkgs, ... }: { imports = [ (common pkgs) self.modules.darwin.store-garbage-collect ]; nix.channel.enable = false; }; homeManager.nix = { config, pkgs, ... }: { imports = [ (common pkgs) self.modules.homeManager.store-garbage-collect "${inputs.home-manager}/modules/services/nix-gc.nix" ]; sops.secrets."gh_ro_public_api_key" = { }; sops.templates."nix-gh-ro-access.conf" = { content = '' access-tokens = github.com=${config.sops.placeholder.gh_ro_public_api_key} ''; }; nix.extraOptions = '' !include ${config.sops.templates."nix-gh-ro-access.conf".path} ''; }; nixos.nix = { pkgs, ... }: { imports = [ (common pkgs) self.modules.nixos.store-garbage-collect ]; nix.channel.enable = false; }; };}