···11# TODO: switch out some of these things for nix activation
22#
33-if command -qs yadm; and test (yadm config local.class) = personal
33+if command -qs yadm; and test "$(yadm config local.class)" = personal
44 set -gx HOMEBREW_CASK_OPTS "--appdir=$HOME/Applications"
55end
66
+5-2
.config/fish/conf.d/50-config.fish
···9494end
95959696# https://github.com/LnL7/nix-darwin/issues/122
9797-for profile in (string split " " $NIX_PROFILES)
9898- fish_add_path --global --prepend --move $profile/bin
9797+# Doesn't seem to affect NixOS the same way
9898+if test (uname) = Darwin
9999+ for profile in (string split " " $NIX_PROFILES)
100100+ fish_add_path --global --prepend --move $profile/bin
101101+ end
99102end
100103101104for pth in $PATH[-1..1]
+3
.config/fish/config.fish
···11+if status is-interactive
22+ # Commands to run in interactive sessions can go here
33+end
···3434 nix.settings = {
3535 repl-overlays = "/${config.xdg.configHome}/nix/repl-overlays.nix";
3636 # Use extra- to avoid overwriting settings from nix-darwin
3737- extra-experimental-features = [ "repl-flake" "pipe-operator" ];
3737+ extra-experimental-features = [
3838+ "repl-flake"
3939+ # TODO: lix doesn't seem to be taking effect properly in nixos-wsl
4040+ # "pipe-operator"
4141+ ];
38423943 # TODO: try out default-flake
4044 # https://github.com/nix-community/home-manager/issues/5753
···8488 xdg.configFile = {
8589 "fish/config.fish".enable = false;
8690 "nvim/init.lua".enable = false;
9191+ "git/config".enable = false;
87928893 # See ../flake.nix for why this exists. It would be nice to make it be a
8994 # relative path instead, but I guess this works, and it's needed since the
9095 # filename ".git" is special to git and can't be checked into the repo.
9196 ".git".source = mkOutOfStoreSymlink "/${config.xdg.dataHome}/yadm/repo.git";
9292-9397 };
94989599 # TODO: this should probably be handled by nix-homebrew and/or `brew completions link`
···171175 pinentry_mac
172176 swiftdefaultapps
173177 colima
178178+ ]
179179+ ++ lib.optionals stdenv.isLinux [
180180+ pinentry-curses
174181 ];
175182176183 home.sessionVariables = lib.mkIf
+3-1
.config/home-manager/macos-defaults.nix
···1515 # Predeclaring these allows one to depend on the other.
1616 # See https://nixos.org/manual/nixos/stable/index.html#sec-freeform-modules
1717 # TODO: maybe upstream to home-manager...
1818- options.targets.darwin.defaults = {
1818+ # Also TODO: declaring these seems to break nixos configuration.
1919+ /* options.targets.darwin.defaults = {
1920 "com.apple.AppleMultitouchTrackpad" = lib.mkOption {
2021 type = with lib.types; attrsOf anything;
2122 };
···2324 type = with lib.types; attrsOf anything;
2425 };
2526 };
2727+ */
26282729 config.targets.darwin = lib.mkIf pkgs.stdenv.isDarwin {
2830 # region macOS defaults
+45
.config/nixos/configuration.nix
···11+{ config, lib, pkgs, host, ... }:
22+{
33+ # TODO: when converting prismo, will probably import ./prismo.nix or something
44+ imports = [
55+ ./wsl.nix
66+ ];
77+88+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
99+ nix.package = pkgs.lix;
1010+1111+ time.timeZone = "America/New_York";
1212+1313+ environment = {
1414+ systemPackages = with pkgs; [
1515+ git
1616+ python3
1717+ vim
1818+ wget
1919+ ];
2020+2121+ etc = let homeDir = config.users.users.${host.user}.home; in {
2222+ # Symlink to dotfiles flake for easier activation
2323+ "nixos/flake.nix".source = "${homeDir}/.config/flake.nix";
2424+ };
2525+ };
2626+2727+ programs.fish.enable = true;
2828+2929+ users.users.${host.user} = {
3030+ isNormalUser = true;
3131+ extraGroups = [
3232+ # Enable sudo
3333+ "wheel"
3434+ ];
3535+ shell = pkgs.fish;
3636+ };
3737+3838+ # This value determines the NixOS release from which the default
3939+ # settings for stateful data, like file locations and database versions
4040+ # on your system were taken. It‘s perfectly fine and recommended to leave
4141+ # this value at the release version of the first install of this system.
4242+ # Before changing this value read the documentation for this option
4343+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
4444+ system.stateVersion = "24.05"; # Did you read the comment?
4545+}