Other config; added new tpm package for tmux
This commit is contained in:
parent
e6e927ae0d
commit
c82e83bf59
@ -1,14 +1,17 @@
|
|||||||
{ inputs, config, pkgs, ... }: {
|
{ inputs, config, pkgs, ... }:
|
||||||
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = (with pkgs; [
|
||||||
tmux
|
tmux
|
||||||
clang
|
clang
|
||||||
cargo
|
cargo
|
||||||
|
gnumake
|
||||||
neofetch
|
neofetch
|
||||||
spotify
|
spotify
|
||||||
];
|
bitwarden-cli
|
||||||
|
]);
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
@ -25,16 +28,6 @@
|
|||||||
|
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".mbsyncrc".source = ../dotfiles/.mbsyncrc;
|
|
||||||
".functions.zsh".source = ../dotfiles/.functions.zsh;
|
".functions.zsh".source = ../dotfiles/.functions.zsh;
|
||||||
|
|
||||||
# Emacs files
|
|
||||||
".emacs".source = ../dotfiles/.emacs;
|
|
||||||
".emacs.d/config.org".source = ../dotfiles/.emacs.d/config.org;
|
|
||||||
".emacs.d/terminal.org".source = ../dotfiles/.emacs.d/terminal.org;
|
|
||||||
".emacs.d/functions.org".source = ../dotfiles/.emacs.d/functions.org;
|
|
||||||
".emacs.d/email.org".source = ../dotfiles/.emacs.d/email.org;
|
|
||||||
".emacs.d/org.org".source = ../dotfiles/.emacs.d/org.org;
|
|
||||||
".emacs.d/lsp.org".source = ../dotfiles/.emacs.d/lsp.org;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
{ inputs, config, pkgs, ... }: {
|
{ inputs, lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
mypkgs = import ../packages/all-packages.nix {
|
||||||
|
inherit pkgs lib config;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = "jadenmaxwell";
|
username = "jadenmaxwell";
|
||||||
@ -11,5 +17,6 @@
|
|||||||
./zsh.nix
|
./zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.file.".tmux/plugins/tpm".source = "${mypkgs.tpm}";
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
isync
|
isync
|
||||||
ispell
|
ispell
|
||||||
ledger
|
ledger
|
||||||
|
texliveFull
|
||||||
mu
|
mu
|
||||||
|
|
||||||
fira-code
|
fira-code
|
||||||
@ -12,6 +13,7 @@
|
|||||||
|
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.emacs29;
|
||||||
extraPackages = epkgs: with epkgs; [
|
extraPackages = epkgs: with epkgs; [
|
||||||
mu4e
|
mu4e
|
||||||
vterm
|
vterm
|
||||||
@ -19,4 +21,15 @@
|
|||||||
nerd-icons
|
nerd-icons
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".emacs".source = ../dotfiles/.emacs;
|
||||||
|
".emacs.d/config.org".source = ../dotfiles/.emacs.d/config.org;
|
||||||
|
".emacs.d/terminal.org".source = ../dotfiles/.emacs.d/terminal.org;
|
||||||
|
".emacs.d/functions.org".source = ../dotfiles/.emacs.d/functions.org;
|
||||||
|
".emacs.d/email.org".source = ../dotfiles/.emacs.d/email.org;
|
||||||
|
".emacs.d/org.org".source = ../dotfiles/.emacs.d/org.org;
|
||||||
|
".emacs.d/lsp.org".source = ../dotfiles/.emacs.d/lsp.org;
|
||||||
|
".mbsyncrc".source = ../dotfiles/.mbsyncrc;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
feh
|
feh
|
||||||
|
microsoft-edge
|
||||||
|
nextcloud-client
|
||||||
|
bitwarden
|
||||||
];
|
];
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
@ -112,19 +112,8 @@
|
|||||||
vim
|
vim
|
||||||
git
|
git
|
||||||
picom
|
picom
|
||||||
microsoft-edge
|
|
||||||
nextcloud-client
|
|
||||||
bitwarden-cli
|
|
||||||
bitwarden
|
|
||||||
];
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
|
||||||
fira-code
|
|
||||||
fira-code-symbols
|
|
||||||
meslo-lgs-nf
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.emacs.enable = true;
|
services.emacs.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
{
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
|
# Path fix for GUI applications.
|
||||||
|
launchd.user.envVariables.PATH = config.environment.systemPath;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
@ -13,6 +14,9 @@
|
|||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
brews = [
|
||||||
|
"coreutils"
|
||||||
|
];
|
||||||
casks = [
|
casks = [
|
||||||
"microsoft-edge"
|
"microsoft-edge"
|
||||||
"bitwarden"
|
"bitwarden"
|
||||||
|
3
packages/all-packages.nix
Normal file
3
packages/all-packages.nix
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{ pkgs, lib, config, ... }: rec {
|
||||||
|
tpm = pkgs.callPackage ./tpm {};
|
||||||
|
}
|
24
packages/tpm/default.nix
Normal file
24
packages/tpm/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec {
|
||||||
|
pname = "tpm";
|
||||||
|
version = "3.1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "tmux-plugins";
|
||||||
|
repo = "tpm";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-CeI9Wq6tHqV68woE11lIY4cLoNY8XWyXyMHTDmFKJKI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
cp -rv $src/ $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A tmux package manager. Installs and loads tmux plugins.";
|
||||||
|
homepage = "https://github.com/tmux-plugins/tpm";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user