Compare commits
No commits in common. "d5c455cf37180edef01e0ed1bdeb8ad7ba314406" and "20d33b048342a2a66f0b9f904341103cd1439a00" have entirely different histories.
d5c455cf37
...
20d33b0483
6 changed files with 11 additions and 46 deletions
|
@ -12,9 +12,5 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.file.projects.source = link "${config.home.homeDirectory}/Documents/projects/";
|
||||
|
||||
snowhawk.tmux.sessionizer.paths = [
|
||||
config.home.file.projects.target
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
{ lib, inputs, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.snowhawk.sources;
|
||||
in
|
||||
{
|
||||
options.snowhawk.sources = {
|
||||
enable = lib.mkEnableOption "nix sources home-manager module";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.file = {
|
||||
"src/nixpkgs".source = inputs.nixpkgs;
|
||||
"src/home-manager".source = inputs.home-manager;
|
||||
};
|
||||
|
||||
snowhawk.tmux.sessionizer.paths = [
|
||||
"~/src"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -11,19 +11,6 @@ in
|
|||
snowhawk.tmux.sessionizer = {
|
||||
enable = lib.mkEnableOption "tmux-sessionizer home-manager module";
|
||||
|
||||
paths = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
description = ''
|
||||
list of paths to select with tmux-sessionizer
|
||||
'';
|
||||
default = [ ];
|
||||
example = [
|
||||
"~"
|
||||
"~/projects"
|
||||
"~/src"
|
||||
];
|
||||
};
|
||||
|
||||
pkg = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = ''
|
||||
|
@ -48,7 +35,7 @@ in
|
|||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
else
|
||||
selected=$(${find} -L ${lib.escapeShellArgs cfg.paths} -mindepth 1 -maxdepth 1 -type d | ${fzf})
|
||||
selected=$(${find} -L ~/projects ~/ ~/.config ~/src -mindepth 1 -maxdepth 1 -type d | ${fzf})
|
||||
fi
|
||||
|
||||
if [[ -z $selected ]]; then
|
||||
|
|
|
@ -22,10 +22,5 @@ in
|
|||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
];
|
||||
|
||||
snowhawk.tmux.sessionizer.paths = [
|
||||
"~"
|
||||
"~/.config"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
snowhawk = {
|
||||
alacritty.enable = true;
|
||||
macos.enable = true;
|
||||
sources = true;
|
||||
ssh = {
|
||||
enable = true;
|
||||
homeNetwork = true;
|
||||
|
@ -42,6 +41,11 @@
|
|||
fzf
|
||||
];
|
||||
|
||||
home.file = {
|
||||
"src/nixpkgs".source = inputs.nixpkgs;
|
||||
"src/home-manager".source = inputs.home-manager;
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "23.11";
|
||||
|
|
|
@ -25,7 +25,6 @@ in
|
|||
xivlauncher.enable = true;
|
||||
flameshot.enable = true;
|
||||
tldr.enable = true;
|
||||
sources.enable = true;
|
||||
};
|
||||
snowhawk.ssh = {
|
||||
enable = true;
|
||||
|
@ -87,6 +86,11 @@ in
|
|||
nomacs
|
||||
];
|
||||
|
||||
home.file = {
|
||||
"src/nixpkgs".source = inputs.nixpkgs;
|
||||
"src/home-manager".source = inputs.home-manager;
|
||||
};
|
||||
|
||||
# wayland.windowManager.hyprland = {
|
||||
# enable = true;
|
||||
# package = pkgs.hyprland;
|
||||
|
|
Loading…
Reference in a new issue