Skip to content

Commit

Permalink
chore(nix): Move activation script into appropriate file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Feb 29, 2024
1 parent e3e7364 commit dbed4d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ in {
file."${config.home.homeDirectory}/.xprofile".text = ''
export XDG_DATA_DIRS="$XDG_DATA_DIRS:/home/mat/.nix-profile/share"
'';

activation.opDirPermissions = "chmod 700 ${config.xdg.configHome}/op";
# symlink ~/.steam to ~/_steam so that Spider-Man Modding Tool can see the directory
activation.symlinkSteamDir =
"mkdir -p ${config.home.homeDirectory}/.steam && test ! -d ${config.home.homeDirectory}/_steam && ln -s ${config.home.homeDirectory}/.steam ${config.home.homeDirectory}/_steam || :";
}; # Please read the comment before changing.
};

xdg.enable = true;
# link config files, if a dedicated module exists (below)
Expand Down
1 change: 1 addition & 0 deletions home-manager/modules/op-shell-plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ in {
(map (package: builtins.baseNameOf (lib.getExe package)) cfg.plugins)}
'';
in mkIf cfg.enable (mkMerge [{
activation.opDirPermissions = "chmod 700 ${config.xdg.configHome}/op";
home.packages = [ pkgs._1password ] ++ cfg.plugins;
programs = {
fish.interactiveShellInit = ''
Expand Down

0 comments on commit dbed4d1

Please sign in to comment.