this repo has no description
0
fork

Configure Feed

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

Merge remote-tracking branch 'origin/main' into nixos

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