fix flakePath

This commit is contained in:
Bryan Ramos 2024-01-27 15:19:23 -05:00
parent a5e30b7bca
commit a9bd04ae6e
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,7 @@
{ flakePath, ... }:
{
nixup = "sudo nixos-rebuild switch --flake /etc/nixos/.#desktop";
nixup = "sudo nixos-rebuild switch --flake ${flakePath}/.#desktop";
chat = "weechat";
open = "xdg-open";
}

View file

@ -3,6 +3,7 @@
with lib;
let
cfg = config.modules.bash;
flakePath = builtins.toString config.user.defaultFlakePath;
in
{ options.modules.bash = { enable = mkEnableOption "bash"; };
@ -14,7 +15,7 @@ in
initExtra = import ./config/prompt.nix;
profileExtra = import ./config/bashprofile.nix;
bashrcExtra = import ./config/bashrc.nix;
shellAliases = import ./config/alias.nix;
shellAliases = import ./config/alias.nix { inherit flakePath; };
};
programs = {