gitPath added
This commit is contained in:
parent
bd71c0bba3
commit
c3f1aa2c0b
3 changed files with 10 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
|||
programs.kdeconnect.enable = true;
|
||||
myOptions = {
|
||||
other = {
|
||||
system = {
|
||||
gitPath = "/home/lars/nichts";
|
||||
};
|
||||
home-manager = {
|
||||
enable = true;
|
||||
enableDirenv = true;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
with lib; let
|
||||
cfg = config.myOptions.programs.zsh;
|
||||
username = config.myOptions.other.system.username;
|
||||
gitPath = config.myOptions.other.system.gitPath;
|
||||
in {
|
||||
options.myOptions.programs.zsh = {
|
||||
enable = mkEnableOption "zsh";
|
||||
|
@ -54,7 +55,7 @@ in {
|
|||
cd = "z";
|
||||
nv = "nvim";
|
||||
#TODO fix hardcoding of git repo path and profile name
|
||||
update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"$HOME/nichts#${config.myOptions.other.system.hostname}\" --log-format internal-json |& nom --json";
|
||||
update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"${gitPath}#${config.myOptions.other.system.hostname}\" --log-format internal-json |& nom --json";
|
||||
|
||||
} // cfg.extraAliases;
|
||||
initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof";
|
||||
|
|
|
@ -15,6 +15,11 @@ in {
|
|||
description = "username for this system";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
gitPath = mkOption {
|
||||
description = "path to the flake directory";
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue