Merge branch 'nix' into nix-work
This commit is contained in:
@ -13,7 +13,8 @@
|
||||
nil
|
||||
# neovim
|
||||
|
||||
(pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
# (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
pkgs.nerd-fonts.fira-code
|
||||
|
||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||
# echo "Hello, ${config.home.username}!"
|
||||
@ -48,7 +49,8 @@
|
||||
# EDITOR = "nvim";
|
||||
#};
|
||||
|
||||
# home.shellAliases = {
|
||||
#home.shellAliases = {
|
||||
# "ll" = "ls -la";
|
||||
# "t" = "tmuxp";
|
||||
# "tl" = "tmuxp load";
|
||||
# };
|
||||
|
||||
33
nix/flake.lock
generated
33
nix/flake.lock
generated
@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732482255,
|
||||
"narHash": "sha256-GUffLwzawz5WRVfWaWCg78n/HrBJrOG7QadFY6rtV8A=",
|
||||
"lastModified": 1740579671,
|
||||
"narHash": "sha256-Dwt/3KknOQ4bgFG5YjqDT7oWRy27rPpDjAi2P0ok1zw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "a9953635d7f34e7358d5189751110f87e3ac17da",
|
||||
"rev": "53c587d263f94aaf6a281745923c76bbec62bcf3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -20,13 +20,33 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-darwin": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1740452771,
|
||||
"narHash": "sha256-/tI1vFJ7/dXJqUmI+s0EV1F0DPe6dZvT444mrLUkrlU=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "42be12b510253d750138ec90c66decc282298b44",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1732014248,
|
||||
"narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=",
|
||||
"lastModified": 1740367490,
|
||||
"narHash": "sha256-WGaHVAjcrv+Cun7zPlI41SerRtfknGQap281+AakSAw=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "23e89b7da85c3640bbc2173fe04f4bd114342367",
|
||||
"rev": "0196c0175e9191c474c26ab5548db27ef5d34b05",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -39,6 +59,7 @@
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,18 +3,54 @@
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, ... }:
|
||||
outputs = { self, nix-darwin, nixpkgs, home-manager, ... }:
|
||||
let
|
||||
#system = "x86_64-darwin";
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
configuration = { pkgs, ... }: {
|
||||
environment.systemPackages =
|
||||
[
|
||||
pkgs.vim
|
||||
];
|
||||
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
services.nix-daemon.enable = true;
|
||||
# nix.package = pkgs.nix;
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
programs.zsh.enable = true; # default shell on catalina
|
||||
|
||||
# Set Git commit hash for darwin-version.
|
||||
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 4;
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = system;
|
||||
};
|
||||
in {
|
||||
# Build darwin flake using:
|
||||
# $ darwin-rebuild build --flake .#Martins-MacBook-Pro
|
||||
darwinConfigurations."Martins-MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
||||
modules = [ configuration ];
|
||||
};
|
||||
|
||||
# Expose the package set, including overlays, for convenience.
|
||||
darwinPackages = self.darwinConfigurations."Martins-MacBook-Pro".pkgs;
|
||||
|
||||
homeConfigurations = {
|
||||
"moustachioed" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
@ -22,9 +58,20 @@
|
||||
modules = [
|
||||
./user/profiles/moustachioedBook.nix
|
||||
./common.nix
|
||||
./user/task.nix
|
||||
./user/task_home.nix
|
||||
];
|
||||
};
|
||||
|
||||
"martin" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
modules = [
|
||||
./user/profiles/martin.nix
|
||||
./common.nix
|
||||
./user/task_home.nix
|
||||
];
|
||||
};
|
||||
|
||||
"pan" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
|
||||
@ -20,10 +20,39 @@
|
||||
difftastic.enable = true;
|
||||
|
||||
extraConfig = {
|
||||
core = {
|
||||
editor = "nvim";
|
||||
column.ui = "auto";
|
||||
branch.sort = "-committerdate";
|
||||
tag.sort = "version:refname";
|
||||
diff = {
|
||||
algorithm = "histogram";
|
||||
colorMoved = "plain";
|
||||
mnemonicPrefix = "true";
|
||||
renames = "true";
|
||||
};
|
||||
push.default = "matching";
|
||||
pull.rebase = "true";
|
||||
push = {
|
||||
default = "simple";
|
||||
autoSetupRemote = "true";
|
||||
followTags = "true";
|
||||
};
|
||||
fetch = {
|
||||
prune = "true";
|
||||
pruneTags = "true";
|
||||
all = "true";
|
||||
};
|
||||
help.autocorrect = "prompt";
|
||||
commit.verbose = "true";
|
||||
rerere = {
|
||||
enabled = "true";
|
||||
autoupdate = "true";
|
||||
};
|
||||
rebase = {
|
||||
autoSquas = "true";
|
||||
autoStash = "true";
|
||||
updateRefs = "true";
|
||||
};
|
||||
merge.conflictstyle = "zdiff3";
|
||||
core.editor = "nvim";
|
||||
init.defaultBranch = "main";
|
||||
merge.conflicstyle = "zdiff3";
|
||||
fetch.prune = true;
|
||||
|
||||
@ -8,12 +8,14 @@
|
||||
vimAlias = true;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
aerial-nvim
|
||||
zen-mode-nvim
|
||||
vim-commentary
|
||||
vim-repeat
|
||||
vim-surround
|
||||
targets-vim
|
||||
delimitMate
|
||||
vim-startify
|
||||
# vim-startify
|
||||
vim-windowswap
|
||||
vim-nix
|
||||
plenary-nvim
|
||||
@ -29,12 +31,17 @@
|
||||
cmp-path
|
||||
cmp-cmdline
|
||||
cmp-nvim-lsp
|
||||
cmp-nvim-lsp-signature-help
|
||||
cmp_yanky
|
||||
cmp-git
|
||||
nvim-lspconfig
|
||||
lspkind-nvim
|
||||
copilot-lua
|
||||
copilot-cmp
|
||||
image-nvim
|
||||
img-clip-nvim
|
||||
markdown-preview-nvim
|
||||
vim-markdown
|
||||
(nvim-treesitter.withPlugins (p: [ p.awk p.bash p.c p.c_sharp p.cpp p.css p.diff p.dockerfile p.doxygen p.git_config p.gitcommit p.go p.gomod p.gosum p.gotmpl p.helm p.haskell p.html p.http p.java p.javascript p.json p.latex p.lua p.markdown p.markdown_inline p.matlab p.nix p.printf p.python p.regex p.rust p.sql p.strace p.supercollider p.svelte p.swift p.terraform p.tmux p.toml p.typescript p.vim p.xml p.yaml p.zig ]))
|
||||
];
|
||||
|
||||
@ -51,6 +58,7 @@
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nodejs-slim
|
||||
marksman
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
13
nix/user/profiles/martin.nix
Normal file
13
nix/user/profiles/martin.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.username = "martin";
|
||||
home.homeDirectory = "/Users/martin";
|
||||
|
||||
home.stateVersion = "24.05"; # Please read the comment before changing.
|
||||
|
||||
programs.git = {
|
||||
userName = "Martin";
|
||||
userEmail = "git@pander-on.de";
|
||||
};
|
||||
}
|
||||
@ -79,7 +79,7 @@
|
||||
du-dust
|
||||
glow
|
||||
ripgrep-all
|
||||
#nerdfonts
|
||||
llm
|
||||
];
|
||||
|
||||
home.sessionVariables = lib.mkMerge [ {
|
||||
|
||||
@ -39,6 +39,15 @@
|
||||
report.low.labels="ID,Active,Age,Deps,P,E,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
report.low.sort="energy+,urgency-";
|
||||
|
||||
context.today.read = "-deferred and (prio:H or +next)";
|
||||
context.today.write = "prio:H or +next";
|
||||
context.deferred.read = "+deferred";
|
||||
context.deferred.write = "+deferred";
|
||||
context.customer.read = "+cust";
|
||||
context.customer.write = "+cust";
|
||||
context.low_energy.read = "+low";
|
||||
context.low_energy.write = "+low";
|
||||
|
||||
uda.taskwarrior-tui.task-report.show-info = false;
|
||||
uda.taskwarrior-tui.selection.reverse = "yes";
|
||||
};
|
||||
|
||||
37
nix/user/task_home.nix
Normal file
37
nix/user/task_home.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{config, pkgs, lib, ...}:
|
||||
|
||||
{
|
||||
programs.taskwarrior = {
|
||||
enable = true;
|
||||
colorTheme = "light-256";
|
||||
package = pkgs.taskwarrior3;
|
||||
config = {
|
||||
weekstart = "monday";
|
||||
|
||||
uda.priority.values = "H,M,,L";
|
||||
urgency.uda.priority.L.coefficient = -0.5;
|
||||
urgency.user.tag.deferred.coefficient = -15.0;
|
||||
urgency.user.tag.cust.coefficient = 5.0;
|
||||
|
||||
context.today.read = "-deferred and (prio:H or +next)";
|
||||
context.today.write = "prio:H or +next";
|
||||
context.deferred.read = "+deferred";
|
||||
context.deferred.write = "+deferred";
|
||||
context.low_energy.read = "+low";
|
||||
context.low_energy.write = "+low";
|
||||
|
||||
uda.taskwarrior-tui.task-report.show-info = false;
|
||||
uda.taskwarrior-tui.selection.reverse = "yes";
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
taskwarrior-tui
|
||||
];
|
||||
|
||||
home.shellAliases = lib.mkMerge [ {
|
||||
t = "task";
|
||||
tt = "taskwarrior-tui";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user