mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
The reasoning for this is that `fish_add_path` writes to a universal variable that is persisted independently of fish configuration files, and this can result in stale `fish_user_paths` entries when calls to `fish_add_path` are removed from the configuration. Using `set -p PATH` ensures that only the environment is written to.
50 lines
886 B
Nix
50 lines
886 B
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./modules/nix.nix
|
|
./modules/packages.nix
|
|
./modules/homebrew.nix
|
|
];
|
|
|
|
system.activationScripts.extraActivation = {
|
|
text = ''
|
|
set -eo pipefail
|
|
HOME="/var/root" ${pkgs.lib.getExe pkgs.nvd} --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
|
|
'';
|
|
};
|
|
|
|
security.pam.enableSudoTouchIdAuth = true;
|
|
|
|
environment.customIcons = {
|
|
enable = true;
|
|
icons = [
|
|
{
|
|
path = "/Applications/Notion.app";
|
|
icon = ./icons/notion.icns;
|
|
}
|
|
];
|
|
};
|
|
|
|
programs.fish.enable = true;
|
|
programs.zsh.enable = true;
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
};
|
|
|
|
users.ryanccn = import ./home;
|
|
};
|
|
|
|
users.users.ryanccn = {
|
|
home = "/Users/ryanccn";
|
|
};
|
|
|
|
system.stateVersion = 4;
|
|
}
|