Compare commits
8 Commits
07eb4664f9
...
c1e031efa9
| Author | SHA1 | Date | |
|---|---|---|---|
| c1e031efa9 | |||
| 19f213ca8c | |||
| a0ebb3f259 | |||
| 3a994a3b8d | |||
| 3b4c0e4a63 | |||
| b15dd4ce86 | |||
| db5514062c | |||
| 7b500ee994 |
@@ -1,7 +1,12 @@
|
|||||||
#+title: My dotfiles
|
#+title: My dotfiles
|
||||||
|
|
||||||
My dotfiles for which I am using =nix=.
|
* Quick start for home-manger only (no need to pull this repo)
|
||||||
The structure is managed by [[https://snowfall.org/guides/lib/quickstart/][Snowfall lib]]
|
- Install nix using the https://github.com/DeterminateSystems/nix-installer
|
||||||
|
- Then run
|
||||||
|
#+begin_src shell
|
||||||
|
nix run nixpkgs#home-manager switch --flake git+https://gitlab.julian-mutter.de/julian/dotfiles.git#julian@quickstart
|
||||||
|
#+end_src
|
||||||
|
- Done
|
||||||
|
|
||||||
* Machine selection
|
* Machine selection
|
||||||
=home-manager= automatically searches for =user= or =user@hostname= config in the flake, so specify one of those or you will have to manually specify them:
|
=home-manager= automatically searches for =user= or =user@hostname= config in the flake, so specify one of those or you will have to manually specify them:
|
||||||
|
|||||||
@@ -164,9 +164,9 @@
|
|||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"julian@v3ms07" = lib.homeManagerConfiguration {
|
"julian@quickstart" = lib.homeManagerConfiguration {
|
||||||
modules = [
|
modules = [
|
||||||
./homes/julian/v3ms07
|
./homes/julian/quickstart
|
||||||
./homes/julian/hm-standalone-config.nix
|
./homes/julian/hm-standalone-config.nix
|
||||||
];
|
];
|
||||||
pkgs = pkgsFor.x86_64-linux;
|
pkgs = pkgsFor.x86_64-linux;
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ with lib; {
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; {
|
with lib; {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
@@ -91,7 +90,7 @@
|
|||||||
# Code formatting
|
# Code formatting
|
||||||
conform-nvim = {
|
conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.formatters_by_ft = with pkgs; {
|
settings.formatters_by_ft = {
|
||||||
lua = ["stylua"];
|
lua = ["stylua"];
|
||||||
python = ["black"];
|
python = ["black"];
|
||||||
nix = ["nixfmt"];
|
nix = ["nixfmt"];
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
programs.opencode = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.opencode;
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
watchexec # Run command when any file in current dir changes
|
watchexec # Run command when any file in current dir changes
|
||||||
android-tools # adb
|
android-tools # adb
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.zoxide.enable = true;
|
|
||||||
programs.zoxide.enableFishIntegration = true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
exiftool
|
exiftool
|
||||||
unar # extract archives
|
unar # extract archives
|
||||||
|
|||||||
32
homes/julian/quickstart.nix
Normal file
32
homes/julian/quickstart.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Quick configuration for setting up basic things on a standalone home-manager device
|
||||||
|
# If you want to adapt it to a specific device, copy this file with the correct hostname
|
||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
../global
|
||||||
|
|
||||||
|
../features/fish
|
||||||
|
../features/direnv
|
||||||
|
../features/neovim
|
||||||
|
../features/yazi
|
||||||
|
../features/emacs
|
||||||
|
../features/nix-helper
|
||||||
|
../features/tmux
|
||||||
|
];
|
||||||
|
|
||||||
|
is-nixos = false;
|
||||||
|
|
||||||
|
home.sessionPath = ["/snap/bin"];
|
||||||
|
|
||||||
|
# Essential packages
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
bat
|
||||||
|
dust
|
||||||
|
fd
|
||||||
|
ripgrep
|
||||||
|
fzf
|
||||||
|
lazygit
|
||||||
|
mc
|
||||||
|
tree
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
../global
|
|
||||||
|
|
||||||
../features/fish
|
|
||||||
../features/direnv
|
|
||||||
../features/neovim
|
|
||||||
../features/yazi
|
|
||||||
../features/emacs
|
|
||||||
../features/nix-helper
|
|
||||||
];
|
|
||||||
|
|
||||||
is-nixos = false;
|
|
||||||
|
|
||||||
home.sessionPath = ["/snap/bin"];
|
|
||||||
}
|
|
||||||
@@ -101,10 +101,17 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Ollama used by open-webui as llm backend
|
# Ollama used by open-webui as llm backend
|
||||||
# services.ollama = {
|
services.ollama = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# # acceleration = "rocm";
|
# acceleration = "rocm";
|
||||||
# };
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nextjs-ollama-llm-ui = {
|
||||||
|
enable = true;
|
||||||
|
hostname = "192.168.3.118";
|
||||||
|
port = 3001;
|
||||||
|
};
|
||||||
# services.open-webui = {
|
# services.open-webui = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# port = 8080;
|
# port = 8080;
|
||||||
@@ -114,6 +121,7 @@
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
|
3001 # ollama-ui
|
||||||
];
|
];
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|||||||
@@ -2,19 +2,19 @@
|
|||||||
# For every flake input, aliases 'pkgs.inputs.${flake}' to
|
# For every flake input, aliases 'pkgs.inputs.${flake}' to
|
||||||
# 'inputs.${flake}.packages.${pkgs.system}' or
|
# 'inputs.${flake}.packages.${pkgs.system}' or
|
||||||
# 'inputs.${flake}.legacyPackages.${pkgs.system}'
|
# 'inputs.${flake}.legacyPackages.${pkgs.system}'
|
||||||
flake-inputs = final: _: {
|
# flake-inputs = final: _: {
|
||||||
inputs =
|
# inputs =
|
||||||
builtins.mapAttrs (
|
# builtins.mapAttrs (
|
||||||
_: flake: let
|
# _: flake: let
|
||||||
legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
|
# legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
|
||||||
packages = (flake.packages or {}).${final.system} or {};
|
# packages = (flake.packages or {}).${final.system} or {};
|
||||||
in
|
# in
|
||||||
if legacyPackages != {}
|
# if legacyPackages != {}
|
||||||
then legacyPackages
|
# then legacyPackages
|
||||||
else packages
|
# else packages
|
||||||
)
|
# )
|
||||||
inputs;
|
# inputs;
|
||||||
};
|
# };
|
||||||
|
|
||||||
input-flake-packages = final: prev: {
|
input-flake-packages = final: prev: {
|
||||||
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default; # TODO: change sheet-organizer package output
|
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default; # TODO: change sheet-organizer package output
|
||||||
@@ -26,11 +26,11 @@
|
|||||||
|
|
||||||
nixpkgs-stable-unstable = final: prev: {
|
nixpkgs-stable-unstable = final: prev: {
|
||||||
unstable = import inputs.nixpkgs-unstable {
|
unstable = import inputs.nixpkgs-unstable {
|
||||||
system = prev.system;
|
system = prev.stdenv.hostPlatform.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
stable = import inputs.nixpkgs {
|
stable = import inputs.nixpkgs {
|
||||||
system = prev.system;
|
system = prev.stdenv.hostPlatform.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user