add tb-shared home config
This commit is contained in:
23
flake.lock
generated
23
flake.lock
generated
@@ -39,7 +39,28 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"tb-shared": "tb-shared"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tb-shared": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1752439128,
|
||||||
|
"narHash": "sha256-r7zEmbio/qRHxmv4YX1NQeiaDCgVZkjo0JqpejRJOPA=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "ef906fc107492e64212b765557722b42093be996",
|
||||||
|
"revCount": 8,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://g.t1.xyz/tb/nix-shared.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://g.t1.xyz/tb/nix-shared.git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
16
flake.nix
16
flake.nix
@@ -3,23 +3,31 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tb-shared = {
|
||||||
|
url = "git+https://g.t1.xyz/tb/nix-shared.git";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }:
|
outputs = { nixpkgs, home-manager, tb-shared, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
homeConfigurations."tbingmann" = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations."tbingmann" = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify the path to your home configuration module
|
# Specify the path to your home configuration module
|
||||||
modules = [ ./home.nix ];
|
modules = [
|
||||||
|
tb-shared.homeManagerModules.default
|
||||||
|
./home.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
77
home.nix
77
home.nix
@@ -8,9 +8,6 @@
|
|||||||
# Basic configuration
|
# Basic configuration
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
|
|
||||||
# Let Home Manager install and manage itself
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
# Configure PATH for all shells, including non-interactive ones
|
# Configure PATH for all shells, including non-interactive ones
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"${config.home.homeDirectory}/.local/bin"
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
@@ -49,7 +46,44 @@
|
|||||||
nix
|
nix
|
||||||
eza
|
eza
|
||||||
|
|
||||||
|
# Version control
|
||||||
|
git
|
||||||
|
delta
|
||||||
|
|
||||||
|
# Languages and runtimes
|
||||||
|
python3
|
||||||
|
|
||||||
|
# System tools
|
||||||
|
coreutils
|
||||||
|
findutils
|
||||||
|
gnused
|
||||||
|
gawk
|
||||||
|
|
||||||
|
# Networking tools
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
|
||||||
|
# Archive tools
|
||||||
|
unzip
|
||||||
|
zip
|
||||||
|
|
||||||
|
# Process management
|
||||||
|
htop
|
||||||
|
btop
|
||||||
|
|
||||||
|
# JSON/YAML tools
|
||||||
|
jq
|
||||||
|
yq
|
||||||
|
|
||||||
|
bash
|
||||||
|
bash-completion
|
||||||
|
|
||||||
|
ncdu
|
||||||
|
screen
|
||||||
|
|
||||||
|
|
||||||
ripgrep
|
ripgrep
|
||||||
|
gnupg
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bash configuration
|
# Bash configuration
|
||||||
@@ -80,23 +114,32 @@
|
|||||||
|
|
||||||
"np" = "nix-portable nix run nixpkgs#bashInteractive --offline";
|
"np" = "nix-portable nix run nixpkgs#bashInteractive --offline";
|
||||||
};
|
};
|
||||||
|
|
||||||
# History configuration
|
|
||||||
historyControl = [
|
|
||||||
"erasedups"
|
|
||||||
"ignoredups"
|
|
||||||
"ignorespace"
|
|
||||||
];
|
|
||||||
historyFileSize = 1000000;
|
|
||||||
historySize = 1000000;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Direnv configuration
|
# Git configuration
|
||||||
programs.direnv = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
userName = "Timo Bingmann";
|
||||||
|
userEmail = "tbingmann@ebay.com";
|
||||||
|
|
||||||
# Add hook to .bashrc
|
extraConfig = {
|
||||||
enableBashIntegration = true;
|
credential.helper = "store --file ~/.git-credentials";
|
||||||
|
|
||||||
|
commit.gpgsign = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# GnuPG configuration
|
||||||
|
programs.gpg = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
enableScDaemon = false;
|
||||||
|
enableSshSupport = false;
|
||||||
|
pinentry = {
|
||||||
|
package = pkgs.pinentry-curses;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user