diff --git a/README.md b/README.md index a27c0b0..ece11ea 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,11 @@ To use this repository as base configuration for your new machine running: ### macOS -- [Install Nix](https://nixos.org/download.html#nix-install-macos) (must be multi-user) +- [Install Nix](https://haskell.flake.page/nix) - Install [nix-darwin](https://github.com/LnL7/nix-darwin) - This will create a `~/.nixpkgs/darwin-configuration.nix`, but we do not need that. - Clone this repo anywhere +- Edit `flake.nix` to use your system hostname in the `darwinConfigurations` set - Edit `users/config.nix` to contain your users - Run `nix run .#activate`.[^cleanup] That's it. Re-open your terminal. diff --git a/flake.lock b/flake.lock index 37e8d13..651231c 100644 --- a/flake.lock +++ b/flake.lock @@ -457,11 +457,11 @@ }, "nixos-flake": { "locked": { - "lastModified": 1679069823, - "narHash": "sha256-/U+drC6YoSMTj7xqaGaB/CD2NRhiCxuoNDzKLtDC0g0=", + "lastModified": 1679070374, + "narHash": "sha256-249YWmYfUjmUoG0C77ljJe2oEYpRTfeEYYJR6EYwlrY=", "owner": "srid", "repo": "nixos-flake", - "rev": "e6990befad71e9864fc4f1725429c408ccfc54d2", + "rev": "190ba3480793a8441a79bca827d8fede1d99ce6f", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index a814321..429ae41 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,7 @@ agenix.url = "github:ryantm/agenix"; nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-flake.url = "github:srid/nixos-flake"; + # nixos-flake.url = "path:/Users/srid/code/nixos-flake"; # CI server hci.url = "github:hercules-ci/hercules-ci-agent"; @@ -68,7 +69,7 @@ # Configurations for my (only) macOS machine (using nix-darwin) darwinConfigurations = { - default = self.lib.mkARMMacosSystem { + appreciate = self.lib.mkARMMacosSystem { imports = [ self.darwinModules.default # Defined in nix-darwin/default.nix ./nixos/hercules.nix