mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
fix flakePath
This commit is contained in:
parent
a5e30b7bca
commit
a9bd04ae6e
3 changed files with 6 additions and 3 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK2ROz7EVvE+nzF5k9EYZ2v3JhBzk058uh3QJTzcG4t70fkZgh9y56AOx26eXlKQWuuV05e8EkWRuVI8gfA2ROI="
|
||||
];
|
||||
|
||||
flakeDefaultPath = /etc/nixos;
|
||||
defaultFlakePath = /etc/nixos;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue