Compare commits

..

No commits in common. "0ad475e6bfda3cee1fc29aa02ea51765c3096068" and "6cde9353ab5b4802089896b0acb8f85b098b1857" have entirely different histories.

4 changed files with 17 additions and 44 deletions

View file

@ -25,11 +25,7 @@
}; };
outputs = outputs =
{ { home-manager, nixpkgs, ... }@inputs:
home-manager,
nixpkgs,
...
}@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};

View file

@ -6,21 +6,9 @@
}: }:
let let
inherit (lib) inherit (lib) types mkOption;
types ollamaPackage =
mkOption if config.programs.neovim.ollama.type == "amd" then pkgs.ollama-rocm else pkgs.ollama-cuda;
mkIf
mkEnableOption
;
ollamaPackage = mkIf config.programs.neovim.ollama.enable (
if config.programs.neovim.ollama.type == "amd" then
pkgs.ollama-rocm
else if config.programs.neovim.ollama.type == "nvidia" then
pkgs.ollama-cuda
else
pkgs.ollama
);
in in
{ {
options.programs.neovim = { options.programs.neovim = {
@ -40,22 +28,20 @@ in
}; };
}; };
ollama = { ollama.type = mkOption {
enable = mkEnableOption "enable"; default = "amd";
type = mkOption { description = "The type of ollama package to install, AMD GPU accelerated or NVIDIA GPU accelerated.";
default = "amd"; example = "amd";
description = "The type of ollama package to install, AMD GPU accelerated or NVIDIA GPU accelerated."; type = types.enum [
example = "amd"; "amd"
type = types.enum [ "nvidia"
"amd" ];
"nvidia"
];
};
}; };
}; };
config = { config = {
programs.neovim = { programs.neovim = {
enable = true;
withNodeJs = true; withNodeJs = true;
withPython3 = true; withPython3 = true;

View file

@ -42,10 +42,10 @@
## Start wallpaper daemon and set one. ## Start wallpaper daemon and set one.
# #
OUTPUT_1="DP-2" OUTPUT_1="DP-2"
IMAGE_1="/mnt/internal/personal/wallpapers/edited/1440-bicycle.jpg" IMAGE_1="/mnt/internal/personal/wallpapers/wallhaven-vqlvm8.jpg"
OUTPUT_2="DP-3" OUTPUT_2="DP-3"
IMAGE_2="/mnt/internal/personal/wallpapers/edited/1080-bycicle.jpg" IMAGE_2="/mnt/internal/personal/wallpapers/wallhaven-2yl6px.jpg"
function load_wallpapers() { function load_wallpapers() {
swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1; swww img -t any --transition-bezier 0.0,0.0,1.0,1.0 --transition-duration .8 --transition-step 255 --transition-fps 60 -o $OUTPUT_1 $IMAGE_1;
@ -117,10 +117,6 @@
# MODULES # # MODULES #
# #
programs.neovim = {
enable = true;
};
modules.hyprland = { modules.hyprland = {
# Enable scripts # Enable scripts
scripts = { scripts = {

View file

@ -106,13 +106,8 @@
# MODULES # # MODULES #
# #
# Enable neovim # Set the hostname for nixd in neovim
programs.neovim = { programs.neovim.nixd.hostname = "wizlap";
enable = true;
# Set the hostname for nixd in neovim
nixd.hostname = "wizlap";
};
# Add monitor configuration to hyprland # Add monitor configuration to hyprland
modules.hyprland = { modules.hyprland = {