···218218 # Before changing this value read the documentation for this option
219219 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
220220 system.stateVersion = "24.05"; # Did you read the comment?
221221-222222-}
221221+}
···11+{
22+ config,
33+ pkgs,
44+ ...
55+}: {
66+ # Home Manager needs a bit of information about you and the paths it should
77+ # manage.
88+99+ # This value determines the Home Manager release that your configuration is
1010+ # compatible with. This helps avoid breakage when a new Home Manager release
1111+ # introduces backwards incompatible changes.
1212+ #
1313+ # You should not change this value, even if you update Home Manager. If you do
1414+ # want to update the value, then make sure to first check the Home Manager
1515+ # release notes.
1616+ home.stateVersion = "23.05"; # Please read the comment before changing.
1717+1818+ # The home.packages option allows you to install Nix packages into your
1919+ # environment.
2020+ home.packages = [
2121+ # # Adds the 'hello' command to your environment. It prints a friendly
2222+ # # "Hello, world!" when run.
2323+ pkgs.hello
2424+2525+ # # It is sometimes useful to fine-tune packages, for example, by applying
2626+ # # overrides. You can do that directly here, just don't forget the
2727+ # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
2828+ # # fonts?
2929+ # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
3030+3131+ # # You can also create simple shell scripts directly inside your
3232+ # # configuration. For example, this adds a command 'my-hello' to your
3333+ # # environment:
3434+ # (pkgs.writeShellScriptBin "my-hello" ''
3535+ # echo "Hello, ${config.home.username}!"
3636+ # '')
3737+ ];
3838+3939+ # Home Manager is pretty good at managing dotfiles. The primary way to manage
4040+ # plain files is through 'home.file'.
4141+ home.file = {
4242+ # # Building this configuration will create a copy of 'dotfiles/screenrc' in
4343+ # # the Nix store. Activating the configuration will then make '~/.screenrc' a
4444+ # # symlink to the Nix store copy.
4545+ # ".screenrc".source = dotfiles/screenrc;
4646+4747+ # # You can also set the file content immediately.
4848+ # ".gradle/gradle.properties".text = ''
4949+ # org.gradle.console=verbose
5050+ # org.gradle.daemon.idletimeout=3600000
5151+ # '';
5252+ };
5353+5454+ # You can also manage environment variables but you will have to manually
5555+ # source
5656+ #
5757+ # ~/.nix-profile/etc/profile.d/hm-session-vars.sh
5858+ #
5959+ # or
6060+ #
6161+ # /etc/profiles/per-user/davish/etc/profile.d/hm-session-vars.sh
6262+ #
6363+ # if you don't want to manage your shell through Home Manager.
6464+ home.sessionVariables = {
6565+ # EDITOR = "emacs";
6666+ };
6767+6868+ # Let Home Manager install and manage itself.
6969+ programs.home-manager.enable = true;
7070+}
+37
nix-darwin-configuration.nix
···11+{
22+ config,
33+ pkgs,
44+ ...
55+}: {
66+ imports = [<home-manager/nix-darwin>];
77+88+ # List packages installed in system profile. To search by name, run:
99+ # $ nix-env -qaP | grep wget
1010+ environment.systemPackages = [
1111+ pkgs.vim
1212+ ];
1313+1414+ nixpkgs.hostPlatform = "aarch64-darwin";
1515+ nix.settings.experimental-features = "nix-command flakes";
1616+1717+ # Use a custom configuration.nix location.
1818+ # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
1919+ # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
2020+2121+ # Auto upgrade nix package and the daemon service.
2222+ services.nix-daemon.enable = true;
2323+ # nix.package = pkgs.nix;
2424+2525+ # Create /etc/zshrc that loads the nix-darwin environment.
2626+ programs.zsh.enable = true; # default shell on catalina
2727+ programs.fish.enable = true;
2828+2929+ # Used for backwards compatibility, please read the changelog before changing.
3030+ # $ darwin-rebuild changelog
3131+ system.stateVersion = 4;
3232+3333+ users.users.mofin = {
3434+ name = "Cameron Taylor";
3535+ home = "/Users/mofin";
3636+ };
3737+}