mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -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";
|
chat = "weechat";
|
||||||
open = "xdg-open";
|
open = "xdg-open";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.bash;
|
cfg = config.modules.bash;
|
||||||
|
flakePath = builtins.toString config.user.defaultFlakePath;
|
||||||
|
|
||||||
in
|
in
|
||||||
{ options.modules.bash = { enable = mkEnableOption "bash"; };
|
{ options.modules.bash = { enable = mkEnableOption "bash"; };
|
||||||
|
|
@ -14,7 +15,7 @@ in
|
||||||
initExtra = import ./config/prompt.nix;
|
initExtra = import ./config/prompt.nix;
|
||||||
profileExtra = import ./config/bashprofile.nix;
|
profileExtra = import ./config/bashprofile.nix;
|
||||||
bashrcExtra = import ./config/bashrc.nix;
|
bashrcExtra = import ./config/bashrc.nix;
|
||||||
shellAliases = import ./config/alias.nix;
|
shellAliases = import ./config/alias.nix { inherit flakePath; };
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK2ROz7EVvE+nzF5k9EYZ2v3JhBzk058uh3QJTzcG4t70fkZgh9y56AOx26eXlKQWuuV05e8EkWRuVI8gfA2ROI="
|
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK2ROz7EVvE+nzF5k9EYZ2v3JhBzk058uh3QJTzcG4t70fkZgh9y56AOx26eXlKQWuuV05e8EkWRuVI8gfA2ROI="
|
||||||
];
|
];
|
||||||
|
|
||||||
flakeDefaultPath = /etc/nixos;
|
defaultFlakePath = /etc/nixos;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue