Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mrjones2014/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Mar 11, 2024
2 parents 3c0b17e + d75a513 commit d64b359
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions home-manager/modules/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ in {
onEvent = "fish_postexec";
body = "tput cup $LINES";
};
clone = {
description = "Clone a git repository, then cd into it.";
body = "cd $HOME/git && git clone $argv && cd $(basename $argv .git)";
};
nix-clean = ''
nix-env --delete-generations old
nix-store --gc
Expand Down
6 changes: 5 additions & 1 deletion nixos-modules/allowed-unfree.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, lib, ... }: {
{ lib, ... }: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"obsidian"
Expand All @@ -17,6 +17,10 @@
# however VS Code should NOT be installed on this system!
# Use VS Codium instead: https://github.com/VSCodium/vscodium
"vscode"

# CUDA support (e.g. for Ollama)
"cudatoolkit"
"cuda_cudart"
];
}

6 changes: 4 additions & 2 deletions nixos-modules/ollama.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ pkgs, ... }: {
imports = [ ./open-webui.nix ];
services.ollama.enable = true;
services.ollama = {
enable = true;
acceleration = "cuda";
};
environment.systemPackages = [ pkgs.oterm ];
}

0 comments on commit d64b359

Please sign in to comment.