From e6103c3153b2875a056e4057220c038da9d198b8 Mon Sep 17 00:00:00 2001 From: lsoriano-mcm Date: Fri, 6 Jun 2025 07:39:53 -0500 Subject: [PATCH] upd --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 2 +- nixos/macos/darwin.nix | 13 +++++++------ 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index dd50568..ef9991d 100644 --- a/flake.lock +++ b/flake.lock @@ -75,6 +75,26 @@ "type": "github" } }, + "darwin": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1749194393, + "narHash": "sha256-vt6hM9DNywnXXuW1qPDLzECmbDcmxhh58wpb0EEQjAo=", + "owner": "lnl7", + "repo": "nix-darwin", + "rev": "19346808c445f23b08652971be198b9df6c33edc", + "type": "github" + }, + "original": { + "owner": "lnl7", + "repo": "nix-darwin", + "type": "github" + } + }, "devshell": { "inputs": { "nixpkgs": [ @@ -903,6 +923,7 @@ "root": { "inputs": { "ags": "ags", + "darwin": "darwin", "home-manager": "home-manager", "hyprland": "hyprland", "nix-neovim": "nix-neovim", diff --git a/flake.nix b/flake.nix index 4ba81e7..557afbd 100644 --- a/flake.nix +++ b/flake.nix @@ -54,7 +54,7 @@ }; }; darwinConfigurations = { - hostname = darwin.lib.darwinSystem { + macos = darwin.lib.darwinSystem { system = "aarch64-darwin"; modules = [ ./nixos/macos/darwin.nix diff --git a/nixos/macos/darwin.nix b/nixos/macos/darwin.nix index 9ac8784..b837341 100644 --- a/nixos/macos/darwin.nix +++ b/nixos/macos/darwin.nix @@ -4,12 +4,13 @@ environment.systemPackages = [pkgs.vim]; # Auto upgrade nix package and the daemon service. - services.nix-daemon.enable = true; - services.karabiner-elements.enable = true; + # services.nix-daemon.enable = true; + # services.karabiner-elements.enable = true; # nix.package = pkgs.nix; # Necessary for using flakes on this system. nix.settings.experimental-features = "nix-command flakes"; + nix.settings.trusted-users = ["@groups" "biscuit"]; # Create /etc/zshrc that loads the nix-darwin environment. programs.zsh.enable = true; # default shell on catalina @@ -17,13 +18,13 @@ # Used for backwards compatibility, please read the changelog before changing. # $ darwin-rebuild changelog - system.stateVersion = 4; + system.stateVersion = 5; # The platform the configuration will be used on. nixpkgs.hostPlatform = "aarch64-darwin"; - users.users.davish = { - name = "davish"; - home = "/Users/davish"; + users.users.lsoriano = { + name = "lsoriano"; + home = "/Users/lsoriano"; }; }