Compare commits

..

No commits in common. "d5c455cf37180edef01e0ed1bdeb8ad7ba314406" and "20d33b048342a2a66f0b9f904341103cd1439a00" have entirely different histories.

6 changed files with 11 additions and 46 deletions

View File

@ -12,9 +12,5 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.file.projects.source = link "${config.home.homeDirectory}/Documents/projects/"; home.file.projects.source = link "${config.home.homeDirectory}/Documents/projects/";
snowhawk.tmux.sessionizer.paths = [
config.home.file.projects.target
];
}; };
} }

View File

@ -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"
];
};
}

View File

@ -11,19 +11,6 @@ in
snowhawk.tmux.sessionizer = { snowhawk.tmux.sessionizer = {
enable = lib.mkEnableOption "tmux-sessionizer home-manager module"; 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 { pkg = lib.mkOption {
type = lib.types.package; type = lib.types.package;
description = '' description = ''
@ -48,7 +35,7 @@ in
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else 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 fi
if [[ -z $selected ]]; then if [[ -z $selected ]]; then

View File

@ -22,10 +22,5 @@ in
home.sessionPath = [ home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin" "${config.home.homeDirectory}/.cargo/bin"
]; ];
snowhawk.tmux.sessionizer.paths = [
"~"
"~/.config"
];
}; };
} }

View File

@ -8,7 +8,6 @@
snowhawk = { snowhawk = {
alacritty.enable = true; alacritty.enable = true;
macos.enable = true; macos.enable = true;
sources = true;
ssh = { ssh = {
enable = true; enable = true;
homeNetwork = true; homeNetwork = true;
@ -42,6 +41,11 @@
fzf fzf
]; ];
home.file = {
"src/nixpkgs".source = inputs.nixpkgs;
"src/home-manager".source = inputs.home-manager;
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View File

@ -25,7 +25,6 @@ in
xivlauncher.enable = true; xivlauncher.enable = true;
flameshot.enable = true; flameshot.enable = true;
tldr.enable = true; tldr.enable = true;
sources.enable = true;
}; };
snowhawk.ssh = { snowhawk.ssh = {
enable = true; enable = true;
@ -87,6 +86,11 @@ in
nomacs nomacs
]; ];
home.file = {
"src/nixpkgs".source = inputs.nixpkgs;
"src/home-manager".source = inputs.home-manager;
};
# wayland.windowManager.hyprland = { # wayland.windowManager.hyprland = {
# enable = true; # enable = true;
# package = pkgs.hyprland; # package = pkgs.hyprland;