this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Initial check in of nix-darwin flake

+114
+32
.config/nix-darwin/configuration.nix
··· 1 + { self, host, pkgs, ... }: { 2 + # List packages installed in system profile. To search by name, run: 3 + # $ nix-env -qaP | grep wget 4 + environment.systemPackages = []; 5 + 6 + # Auto upgrade nix package and the daemon service. 7 + services.nix-daemon.enable = true; 8 + nix.package = pkgs.lix; 9 + 10 + # Necessary for using flakes on this system. 11 + nix.settings.experimental-features = "nix-command flakes"; 12 + 13 + /* TODO: use home-manager for this stuff instead 14 + programs = { 15 + fish.enable = true; 16 + man.enable = true; 17 + }; 18 + #*/ 19 + 20 + security.pam.enableSudoTouchIdAuth = true; 21 + 22 + # Set Git commit hash for darwin-version. 23 + system.configurationRevision = self.rev or self.dirtyRev or null; 24 + 25 + # Used for backwards compatibility, please read the changelog before changing. 26 + # $ darwin-rebuild changelog 27 + system.stateVersion = 4; 28 + 29 + # The platform the configuration will be used on. 30 + # TODO: base this off hostname or something 31 + nixpkgs.hostPlatform = "aarch64-darwin"; 32 + }
+49
.config/nix-darwin/flake.lock
··· 1 + { 2 + "nodes": { 3 + "nix-darwin": { 4 + "inputs": { 5 + "nixpkgs": [ 6 + "nixpkgs" 7 + ] 8 + }, 9 + "locked": { 10 + "lastModified": 1720515095, 11 + "narHash": "sha256-MvRtrTwdWfs5P1Ggpkxzrhoh6IbQn+g9SwxJOHvDhQ0=", 12 + "owner": "Enzime", 13 + "repo": "nix-darwin", 14 + "rev": "da0b8b10b0587806c15653325491760d4d2668df", 15 + "type": "github" 16 + }, 17 + "original": { 18 + "owner": "Enzime", 19 + "ref": "default-flake-location", 20 + "repo": "nix-darwin", 21 + "type": "github" 22 + } 23 + }, 24 + "nixpkgs": { 25 + "locked": { 26 + "lastModified": 1720058333, 27 + "narHash": "sha256-gM2RCi5XkxmcsZ44pUkKIYBiBMfZ6u7MdcZcykmccrs=", 28 + "owner": "NixOS", 29 + "repo": "nixpkgs", 30 + "rev": "6842b061970bf96965d66fcc86a28e1f719aae95", 31 + "type": "github" 32 + }, 33 + "original": { 34 + "owner": "NixOS", 35 + "ref": "nixpkgs-unstable", 36 + "repo": "nixpkgs", 37 + "type": "github" 38 + } 39 + }, 40 + "root": { 41 + "inputs": { 42 + "nix-darwin": "nix-darwin", 43 + "nixpkgs": "nixpkgs" 44 + } 45 + } 46 + }, 47 + "root": "root", 48 + "version": 7 49 + }
+33
.config/nix-darwin/flake.nix
··· 1 + { 2 + description = "Default darwin flake"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 6 + 7 + nix-darwin = { 8 + # https://github.com/LnL7/nix-darwin/pull/741 9 + url = "github:Enzime/nix-darwin/default-flake-location"; 10 + inputs.nixpkgs.follows = "nixpkgs"; 11 + }; 12 + }; 13 + 14 + outputs = { self, nix-darwin, nixpkgs } @ inputs: 15 + let 16 + hosts = [ 17 + "MacBook-Pro" 18 + ]; 19 + # This feels... inelegant, there must be some better way to do it 20 + forEachHost = result: builtins.listToAttrs (map (host: { 21 + name = host; 22 + value = result host; 23 + }) hosts); 24 + in { 25 + darwinConfigurations = forEachHost (host: nix-darwin.lib.darwinSystem { 26 + modules = [ ./configuration.nix ]; 27 + specialArgs = { inherit self host; }; 28 + }); 29 + 30 + # Expose the package set, including overlays, for convenience. 31 + darwinPackages = forEachHost (host: self.darwinConfigurations."${host}".pkgs); 32 + }; 33 + }