diff --git a/flake.lock b/flake.lock index c260a9c..e2c44db 100644 --- a/flake.lock +++ b/flake.lock @@ -115,16 +115,15 @@ ] }, "locked": { - "lastModified": 1742382197, - "narHash": "sha256-5OtFbbdKAkWDVuzjs1J9KwdFuDxsEvz0FZX3xR2jEUM=", + "lastModified": 1742373336, + "narHash": "sha256-oEF5dBlq8wGD3mkJ5PmFS1PGb28uYmvuy1IH6roIGkQ=", "owner": "lnl7", "repo": "nix-darwin", - "rev": "643b57fd32135769f809913663130a95fe6db49e", + "rev": "2d9b63316926aa130a5a51136d93b9be28808f26", "type": "github" }, "original": { "owner": "lnl7", - "ref": "refs/pull/1335/merge", "repo": "nix-darwin", "type": "github" } diff --git a/flake.nix b/flake.nix index 217b7cc..65d0e31 100644 --- a/flake.nix +++ b/flake.nix @@ -86,9 +86,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; darwin = { - # TODO: Move back once https://github.com/LnL7/nix-darwin/issues/1392 is resolved - # url = "github:lnl7/nix-darwin"; - url = "github:lnl7/nix-darwin?ref=refs/pull/1335/merge"; + url = "github:lnl7/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; }; agenix = { diff --git a/modules/system/sane-defaults.nix b/modules/system/sane-defaults.nix index ae4a097..918b34d 100644 --- a/modules/system/sane-defaults.nix +++ b/modules/system/sane-defaults.nix @@ -52,6 +52,7 @@ let experimental-features = [ "nix-command" "flakes" + "repl-flake" "auto-allocate-uids" ]; trusted-users = lib.optionals (!adminNeedsPassword) [ username ]; @@ -116,8 +117,9 @@ let darwinConfig = lib.optionalAttrs (!isLinux) { system.stateVersion = 4; + services.nix-daemon.enable = true; - security.pam.services.sudo_local.touchIdAuth = true; + security.pam.enableSudoTouchIdAuth = true; users.users.${username}.home = "/Users/${username}"; # Every macOS ARM machine can emulate x86.