this repo has no description
0
fork

Configure Feed

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

init commit

Cameron Taylor a2f5fe90

+330
+41
configuration.nix
··· 1 + imports = [ <home-manager/nix-darwin> ]; 2 + 3 + { config, pkgs, ... }: 4 + 5 + { 6 + 7 + # List packages installed in system profile. To search by name, run: 8 + # $ nix-env -qaP | grep wget 9 + environment.systemPackages = 10 + [ pkgs.vim 11 + ]; 12 + 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 + ''; 20 + 21 + # Use a custom configuration.nix location. 22 + # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix 23 + # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; 24 + 25 + # Auto upgrade nix package and the daemon service. 26 + services.nix-daemon.enable = true; 27 + # nix.package = pkgs.nix; 28 + 29 + # Create /etc/zshrc that loads the nix-darwin environment. 30 + programs.zsh.enable = true; # default shell on catalina 31 + programs.fish.enable = true; 32 + 33 + # Used for backwards compatibility, please read the changelog before changing. 34 + # $ darwin-rebuild changelog 35 + system.stateVersion = 4; 36 + 37 + users.users.mofin = { 38 + name = "Cameron Taylor"; 39 + home = "/Users/mofin"; 40 + }; 41 + }
+69
flake.lock
··· 1 + { 2 + "nodes": { 3 + "home-manager": { 4 + "inputs": { 5 + "nixpkgs": [ 6 + "nixpkgs" 7 + ] 8 + }, 9 + "locked": { 10 + "lastModified": 1723986931, 11 + "narHash": "sha256-Fy+KEvDQ+Hc8lJAV3t6leXhZJ2ncU5/esxkgt3b8DEY=", 12 + "owner": "nix-community", 13 + "repo": "home-manager", 14 + "rev": "2598861031b78aadb4da7269df7ca9ddfc3e1671", 15 + "type": "github" 16 + }, 17 + "original": { 18 + "owner": "nix-community", 19 + "repo": "home-manager", 20 + "type": "github" 21 + } 22 + }, 23 + "nix-darwin": { 24 + "inputs": { 25 + "nixpkgs": [ 26 + "nixpkgs" 27 + ] 28 + }, 29 + "locked": { 30 + "lastModified": 1723859949, 31 + "narHash": "sha256-kiaGz4deGYKMjJPOji/JVvSP/eTefrIA3rAjOnOpXl4=", 32 + "owner": "LnL7", 33 + "repo": "nix-darwin", 34 + "rev": "076b9a905af8a52b866c8db068d6da475839d97b", 35 + "type": "github" 36 + }, 37 + "original": { 38 + "owner": "LnL7", 39 + "repo": "nix-darwin", 40 + "type": "github" 41 + } 42 + }, 43 + "nixpkgs": { 44 + "locked": { 45 + "lastModified": 1724015816, 46 + "narHash": "sha256-hVESnM7Eiz93+4DeiE0a1TwMeaeph1ytRJ5QtqxYRWg=", 47 + "owner": "NixOS", 48 + "repo": "nixpkgs", 49 + "rev": "9aa35efbea27d320d0cdc5f922f0890812affb60", 50 + "type": "github" 51 + }, 52 + "original": { 53 + "owner": "NixOS", 54 + "ref": "nixpkgs-unstable", 55 + "repo": "nixpkgs", 56 + "type": "github" 57 + } 58 + }, 59 + "root": { 60 + "inputs": { 61 + "home-manager": "home-manager", 62 + "nix-darwin": "nix-darwin", 63 + "nixpkgs": "nixpkgs" 64 + } 65 + } 66 + }, 67 + "root": "root", 68 + "version": 7 69 + }
+152
flake.nix
··· 1 + { 2 + # darwin-rebuild switch --flake ~/.config/nix 3 + description = "Darwin config"; 4 + 5 + inputs = { 6 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 7 + nix-darwin.url = "github:LnL7/nix-darwin"; 8 + nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; 9 + home-manager.url = "github:nix-community/home-manager"; 10 + home-manager.inputs.nixpkgs.follows = "nixpkgs"; 11 + }; 12 + 13 + outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, ... }: 14 + let 15 + configuration = { pkgs, ... }: { 16 + # List packages installed in system profile. To search by name, run: 17 + # $ nix-env -qaP | grep wget 18 + environment.systemPackages = 19 + [ 20 + pkgs.vim 21 + pkgs.home-manager 22 + ]; 23 + 24 + homebrew = { 25 + enable = true; 26 + onActivation.cleanup = "uninstall"; 27 + 28 + taps = []; 29 + brews = [ 30 + "bat" 31 + "bottom" 32 + "ccache" 33 + "cmake" 34 + "cowsay" 35 + "dust" 36 + "earthly" 37 + "emscripten" 38 + "eza" 39 + "ffmpeg" 40 + "flyctl" 41 + "fossil" 42 + "fzf" 43 + "git" 44 + "git-delta" 45 + "git-filter-repo" 46 + "git-game" 47 + "git-lfs" 48 + "git-town" 49 + "gitoxide" 50 + "htop" 51 + "jpeg" 52 + "jq" 53 + "libmypaint" 54 + "libusb" 55 + "mbedtls@2" 56 + "nano" 57 + "neofetch" 58 + "neovim" 59 + "ninja" 60 + "nyancat" 61 + "openal-soft" 62 + "opencv" 63 + "oxipng" 64 + "pcre" 65 + "pillow" 66 + "pipx" 67 + "python-tk@3.12" 68 + "qt@5" 69 + "railway" 70 + "rust" 71 + "sapling" 72 + "sevenzip" 73 + "spicetify-cli" 74 + "starship" 75 + "sugarjar" 76 + "wiggle" 77 + "yarn" 78 + "yt-dlp" 79 + "zbar" 80 + "zlib" 81 + "zola" 82 + "zoxide" 83 + "zsh-autosuggestions" 84 + ]; 85 + casks = [ 86 + "ableton-live-intro@11" 87 + "dolphin@dev" 88 + "love" 89 + "obsidian" 90 + "warp" 91 + "bitwarden" 92 + "obs" 93 + "reaper" 94 + "wezterm" 95 + ]; 96 + }; 97 + 98 + # Auto upgrade nix package and the daemon service. 99 + services.nix-daemon.enable = true; 100 + # nix.package = pkgs.nix; 101 + 102 + # Necessary for using flakes on this system. 103 + nix.settings.experimental-features = "nix-command flakes"; 104 + 105 + # Create /etc/zshrc that loads the nix-darwin environment. 106 + programs.zsh.enable = true; # default shell on catalina 107 + programs.fish.enable = true; 108 + 109 + # Set Git commit hash for darwin-version. 110 + system.configurationRevision = self.rev or self.dirtyRev or null; 111 + 112 + # Used for backwards compatibility, please read the changelog before changing. 113 + # $ darwin-rebuild changelog 114 + system.stateVersion = 4; 115 + 116 + # The platform the configuration will be used on. 117 + nixpkgs.hostPlatform = "aarch64-darwin"; 118 + 119 + security.pam.enableSudoTouchIdAuth = true; 120 + 121 + }; 122 + in 123 + { 124 + # Build darwin flake using: 125 + # $ darwin-rebuild build --flake .#Camerons-MacBook-Pro 126 + darwinConfigurations."Camerons-MacBook-Pro" = nix-darwin.lib.darwinSystem { 127 + modules = [ configuration ]; 128 + }; 129 + 130 + darwinConfigurations = { 131 + hostname = nix-darwin.lib.darwinSystem { 132 + system = "aarch64-darwin"; 133 + modules = [ 134 + ./configuration.nix 135 + 136 + home-manager.darwinModules.home-manager 137 + { 138 + home-manager.useGlobalPkgs = true; 139 + home-manager.useUserPackages = true; 140 + home-manager.users.mofin = import ./home.nix; 141 + 142 + # Optionally, use home-manager.extraSpecialArgs to pass 143 + # arguments to home.nix 144 + } 145 + ]; 146 + }; 147 + }; 148 + 149 + # Expose the package set, including overlays, for convenience. 150 + darwinPackages = self.darwinConfigurations."Camerons-MacBook-Pro".pkgs; 151 + }; 152 + }
+68
home.nix
··· 1 + { config, pkgs, ... }: 2 + 3 + { 4 + # Home Manager needs a bit of information about you and the paths it should 5 + # manage. 6 + 7 + # This value determines the Home Manager release that your configuration is 8 + # compatible with. This helps avoid breakage when a new Home Manager release 9 + # introduces backwards incompatible changes. 10 + # 11 + # You should not change this value, even if you update Home Manager. If you do 12 + # want to update the value, then make sure to first check the Home Manager 13 + # release notes. 14 + home.stateVersion = "23.05"; # Please read the comment before changing. 15 + 16 + # The home.packages option allows you to install Nix packages into your 17 + # environment. 18 + home.packages = [ 19 + # # Adds the 'hello' command to your environment. It prints a friendly 20 + # # "Hello, world!" when run. 21 + pkgs.hello 22 + 23 + # # It is sometimes useful to fine-tune packages, for example, by applying 24 + # # overrides. You can do that directly here, just don't forget the 25 + # # parentheses. Maybe you want to install Nerd Fonts with a limited number of 26 + # # fonts? 27 + # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) 28 + 29 + # # You can also create simple shell scripts directly inside your 30 + # # configuration. For example, this adds a command 'my-hello' to your 31 + # # environment: 32 + # (pkgs.writeShellScriptBin "my-hello" '' 33 + # echo "Hello, ${config.home.username}!" 34 + # '') 35 + ]; 36 + 37 + # Home Manager is pretty good at managing dotfiles. The primary way to manage 38 + # plain files is through 'home.file'. 39 + home.file = { 40 + # # Building this configuration will create a copy of 'dotfiles/screenrc' in 41 + # # the Nix store. Activating the configuration will then make '~/.screenrc' a 42 + # # symlink to the Nix store copy. 43 + # ".screenrc".source = dotfiles/screenrc; 44 + 45 + # # You can also set the file content immediately. 46 + # ".gradle/gradle.properties".text = '' 47 + # org.gradle.console=verbose 48 + # org.gradle.daemon.idletimeout=3600000 49 + # ''; 50 + }; 51 + 52 + # You can also manage environment variables but you will have to manually 53 + # source 54 + # 55 + # ~/.nix-profile/etc/profile.d/hm-session-vars.sh 56 + # 57 + # or 58 + # 59 + # /etc/profiles/per-user/davish/etc/profile.d/hm-session-vars.sh 60 + # 61 + # if you don't want to manage your shell through Home Manager. 62 + home.sessionVariables = { 63 + # EDITOR = "emacs"; 64 + }; 65 + 66 + # Let Home Manager install and manage itself. 67 + programs.home-manager.enable = true; 68 + }