Compare commits
2 Commits
bb756b32f7
...
b17bc19cfd
Author | SHA1 | Date | |
---|---|---|---|
b17bc19cfd | |||
3e1b60d7c3 |
@ -14,7 +14,7 @@ in {
|
||||
};
|
||||
to = {
|
||||
type = "git";
|
||||
url = "file://${config.home.homeDirectory}/nixfiles";
|
||||
url = "file://${config.nixfiles.path}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -61,5 +61,12 @@ in
|
||||
default = (lib.hasAttrByPath [ "nixfiles" "meta" "wayland" ] osConfig) && osConfig.nixfiles.meta.wayland;
|
||||
example = true;
|
||||
};
|
||||
path = lib.mkOption {
|
||||
description = "The absolute path of the nixfiles flake";
|
||||
type = lib.types.str;
|
||||
default = "${config.home.homeDirectory}/nixfiles";
|
||||
defaultText = "\${config.home.homeDirectory}/nixfiles";
|
||||
example = "/etc/nixos";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -298,7 +298,12 @@ in
|
||||
"$mod, mouse_up, workspace, e-1"
|
||||
|
||||
# show this file (help)
|
||||
("$mod, slash, exec, ${terminal} -e ${pkgs.neovim}/bin/nvim '+set nomodifiable' '+noremap q :q<CR>' " + args.vars.self.outPath + "/home/hyprland.nix")
|
||||
("$mod, slash, exec, ${terminal} -e ${pkgs.neovim}/bin/nvim '+set nomodifiable' '+noremap q :q<CR>' "
|
||||
+ lib.escapeShellArg (args.vars.self.outPath + "/home/sessions/hyprland/default.nix"))
|
||||
|
||||
# edit this file
|
||||
("$mod SHIFT, slash, exec, ${terminal} -e ${pkgs.neovim}/bin/nvim "
|
||||
+ lib.escapeShellArg (config.nixfiles.path + "/home/sessions/hyprland/default.nix"))
|
||||
];
|
||||
|
||||
# repeat, ignore mods
|
||||
|
Loading…
x
Reference in New Issue
Block a user