this repo has no description
0
fork

Configure Feed

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

alejandra format

+126 -40
+14 -18
configuration.nix
··· 1 - imports = [ <home-manager/nix-darwin> ]; 2 - 3 - { config, pkgs, ... }: 4 - 5 1 { 2 + config, 3 + pkgs, 4 + ... 5 + }: { 6 + imports = [<home-manager/nix-darwin>]; 6 7 7 8 # List packages installed in system profile. To search by name, run: 8 9 # $ nix-env -qaP | grep wget 9 - environment.systemPackages = 10 - [ pkgs.vim 11 - ]; 12 - 10 + environment.systemPackages = [ 11 + pkgs.vim 12 + ]; 13 13 14 - nix.extraOptions = '' 15 - auto-optimise-store = true 16 - experimental-features = nix-command flakes 17 - '' + lib.optionalString (pkgs.system == "aarch64-darwin") '' 18 - extra-platforms = x86_64-darwin aarch64-darwin 19 - ''; 14 + nixpkgs.hostPlatform = "aarch64-darwin"; 15 + nix.settings.experimental-features = "nix-command flakes"; 20 16 21 17 # Use a custom configuration.nix location. 22 18 # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix ··· 27 23 # nix.package = pkgs.nix; 28 24 29 25 # Create /etc/zshrc that loads the nix-darwin environment. 30 - programs.zsh.enable = true; # default shell on catalina 26 + programs.zsh.enable = true; # default shell on catalina 31 27 programs.fish.enable = true; 32 28 33 29 # Used for backwards compatibility, please read the changelog before changing. ··· 35 31 system.stateVersion = 4; 36 32 37 33 users.users.mofin = { 38 - name = "Cameron Taylor"; 39 - home = "/Users/mofin"; 40 - }; 34 + name = "Cameron Taylor"; 35 + home = "/Users/mofin"; 36 + }; 41 37 }
+79
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "alejandra": { 4 + "inputs": { 5 + "fenix": "fenix", 6 + "flakeCompat": "flakeCompat", 7 + "nixpkgs": [ 8 + "nixpkgs" 9 + ] 10 + }, 11 + "locked": { 12 + "lastModified": 1660592437, 13 + "narHash": "sha256-xFumnivtVwu5fFBOrTxrv6fv3geHKF04RGP23EsDVaI=", 14 + "owner": "kamadorueda", 15 + "repo": "alejandra", 16 + "rev": "e7eac49074b70814b542fee987af2987dd0520b5", 17 + "type": "github" 18 + }, 19 + "original": { 20 + "owner": "kamadorueda", 21 + "ref": "3.0.0", 22 + "repo": "alejandra", 23 + "type": "github" 24 + } 25 + }, 26 + "fenix": { 27 + "inputs": { 28 + "nixpkgs": [ 29 + "alejandra", 30 + "nixpkgs" 31 + ], 32 + "rust-analyzer-src": "rust-analyzer-src" 33 + }, 34 + "locked": { 35 + "lastModified": 1657607339, 36 + "narHash": "sha256-HaqoAwlbVVZH2n4P3jN2FFPMpVuhxDy1poNOR7kzODc=", 37 + "owner": "nix-community", 38 + "repo": "fenix", 39 + "rev": "b814c83d9e6aa5a28d0cf356ecfdafb2505ad37d", 40 + "type": "github" 41 + }, 42 + "original": { 43 + "owner": "nix-community", 44 + "repo": "fenix", 45 + "type": "github" 46 + } 47 + }, 48 + "flakeCompat": { 49 + "flake": false, 50 + "locked": { 51 + "lastModified": 1650374568, 52 + "narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=", 53 + "owner": "edolstra", 54 + "repo": "flake-compat", 55 + "rev": "b4a34015c698c7793d592d66adbab377907a2be8", 56 + "type": "github" 57 + }, 58 + "original": { 59 + "owner": "edolstra", 60 + "repo": "flake-compat", 61 + "type": "github" 62 + } 63 + }, 3 64 "home-manager": { 4 65 "inputs": { 5 66 "nixpkgs": [ ··· 58 119 }, 59 120 "root": { 60 121 "inputs": { 122 + "alejandra": "alejandra", 61 123 "home-manager": "home-manager", 62 124 "nix-darwin": "nix-darwin", 63 125 "nixpkgs": "nixpkgs" 126 + } 127 + }, 128 + "rust-analyzer-src": { 129 + "flake": false, 130 + "locked": { 131 + "lastModified": 1657557289, 132 + "narHash": "sha256-PRW+nUwuqNTRAEa83SfX+7g+g8nQ+2MMbasQ9nt6+UM=", 133 + "owner": "rust-lang", 134 + "repo": "rust-analyzer", 135 + "rev": "caf23f29144b371035b864a1017dbc32573ad56d", 136 + "type": "github" 137 + }, 138 + "original": { 139 + "owner": "rust-lang", 140 + "ref": "nightly", 141 + "repo": "rust-analyzer", 142 + "type": "github" 64 143 } 65 144 } 66 145 },
+26 -18
flake.nix
··· 1 1 { 2 - # darwin-rebuild switch --flake ~/.config/nix 3 - description = "Darwin config"; 2 + # darwin-rebuild switch --flake ~/.config/nix 3 + description = "Darwin config"; 4 4 5 5 inputs = { 6 6 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 7 7 nix-darwin.url = "github:LnL7/nix-darwin"; 8 8 nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; 9 + 9 10 home-manager.url = "github:nix-community/home-manager"; 10 11 home-manager.inputs.nixpkgs.follows = "nixpkgs"; 12 + 13 + alejandra.url = "github:kamadorueda/alejandra/3.0.0"; 14 + alejandra.inputs.nixpkgs.follows = "nixpkgs"; 11 15 }; 12 16 13 - outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, ... }: 14 - let 15 - configuration = { pkgs, ... }: { 17 + outputs = inputs @ { 18 + self, 19 + nix-darwin, 20 + nixpkgs, 21 + home-manager, 22 + alejandra, 23 + ... 24 + }: let 25 + configuration = {pkgs, ...}: { 16 26 # List packages installed in system profile. To search by name, run: 17 27 # $ nix-env -qaP | grep wget 18 - environment.systemPackages = 19 - [ 20 - pkgs.vim 21 - pkgs.home-manager 22 - ]; 28 + environment.systemPackages = [ 29 + pkgs.vim 30 + pkgs.home-manager 31 + pkgs.alejandra 32 + ]; 23 33 24 34 homebrew = { 25 35 enable = true; 26 36 onActivation.cleanup = "uninstall"; 27 37 28 38 taps = []; 29 - brews = [ 39 + brews = [ 30 40 "bat" 31 41 "bottom" 32 42 "ccache" ··· 86 96 "ableton-live-intro@11" 87 97 "dolphin@dev" 88 98 "love" 89 - "obsidian" 99 + "obsidian" 90 100 "warp" 91 101 "bitwarden" 92 102 "obs" ··· 103 113 nix.settings.experimental-features = "nix-command flakes"; 104 114 105 115 # Create /etc/zshrc that loads the nix-darwin environment. 106 - programs.zsh.enable = true; # default shell on catalina 116 + programs.zsh.enable = true; # default shell on catalina 107 117 programs.fish.enable = true; 108 118 109 119 # Set Git commit hash for darwin-version. ··· 117 127 nixpkgs.hostPlatform = "aarch64-darwin"; 118 128 119 129 security.pam.enableSudoTouchIdAuth = true; 120 - 121 130 }; 122 - in 123 - { 131 + in { 124 132 # Build darwin flake using: 125 133 # $ darwin-rebuild build --flake .#Camerons-MacBook-Pro 126 134 darwinConfigurations."Camerons-MacBook-Pro" = nix-darwin.lib.darwinSystem { 127 - modules = [ configuration ]; 135 + modules = [configuration]; 128 136 }; 129 137 130 138 darwinConfigurations = { ··· 149 157 # Expose the package set, including overlays, for convenience. 150 158 darwinPackages = self.darwinConfigurations."Camerons-MacBook-Pro".pkgs; 151 159 }; 152 - } 160 + }
+6 -4
home.nix
··· 1 - { config, pkgs, ... }: 2 - 3 1 { 2 + config, 3 + pkgs, 4 + ... 5 + }: { 4 6 # Home Manager needs a bit of information about you and the paths it should 5 7 # manage. 6 8 ··· 19 21 # # Adds the 'hello' command to your environment. It prints a friendly 20 22 # # "Hello, world!" when run. 21 23 pkgs.hello 22 - 24 + 23 25 # # It is sometimes useful to fine-tune packages, for example, by applying 24 26 # # overrides. You can do that directly here, just don't forget the 25 27 # # parentheses. Maybe you want to install Nerd Fonts with a limited number of ··· 65 67 66 68 # Let Home Manager install and manage itself. 67 69 programs.home-manager.enable = true; 68 - } 70 + }
+1
rebuild.sh
··· 1 + #! /bin/bash