mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
add yq, alphabetize stuff
This commit is contained in:
parent
0490f8bb7a
commit
0d51070a1a
4 changed files with 72 additions and 69 deletions
1
.#programs.nix
Symbolic link
1
.#programs.nix
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
willem@zeus.44981
|
65
home.nix
65
home.nix
|
@ -1,9 +1,41 @@
|
||||||
{ config, pkgs, lib, inputs, ... }:
|
{ config, pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
homeDirectory = config.home.homeDirectory;
|
|
||||||
emacsCommand = "emacsclient -c -nw";
|
emacsCommand = "emacsclient -c -nw";
|
||||||
|
homeDirectory = config.home.homeDirectory;
|
||||||
in {
|
in {
|
||||||
|
home = {
|
||||||
|
username = "willem";
|
||||||
|
homeDirectory = "/Users/willem";
|
||||||
|
stateVersion = "22.11";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/nix/nix.conf".text = ''
|
||||||
|
allow-dirty = true
|
||||||
|
experimental-features = flakes nix-command
|
||||||
|
builders-use-substitutes = true
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.file.".gnupg/gpg-agent.conf".text = ''
|
||||||
|
pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac"
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.keyboard = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "colemak";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.language = {
|
||||||
|
base = "en_CA.UTF-8";
|
||||||
|
messages = "en_US.UTF-8";
|
||||||
|
ctype = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = emacsCommand;
|
||||||
|
VISUAL = emacsCommand;
|
||||||
|
};
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ ./emacs.nix ./launchd.nix ./packages.nix ./programs.nix ./apps.nix ];
|
[ ./emacs.nix ./launchd.nix ./packages.nix ./programs.nix ./apps.nix ];
|
||||||
|
|
||||||
|
@ -13,35 +45,4 @@ in {
|
||||||
builtins.elem (lib.getName pkg) [ "discord" "unrar" "zoom" ];
|
builtins.elem (lib.getName pkg) [ "discord" "unrar" "zoom" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
|
||||||
username = "willem";
|
|
||||||
homeDirectory = "/Users/willem";
|
|
||||||
stateVersion = "22.11";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.language = {
|
|
||||||
base = "en_CA.UTF-8";
|
|
||||||
messages = "en_US.UTF-8";
|
|
||||||
ctype = "en_US.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.keyboard = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "colemak";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
EDITOR = emacsCommand;
|
|
||||||
VISUAL = emacsCommand;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".gnupg/gpg-agent.conf".text = ''
|
|
||||||
pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac"
|
|
||||||
'';
|
|
||||||
|
|
||||||
home.file.".config/nix/nix.conf".text = ''
|
|
||||||
allow-dirty = true
|
|
||||||
experimental-features = flakes nix-command
|
|
||||||
builders-use-substitutes = true
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
37
packages.nix
37
packages.nix
|
@ -3,39 +3,40 @@
|
||||||
{
|
{
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
|
colima
|
||||||
coreutils
|
coreutils
|
||||||
gnused
|
gnused
|
||||||
spoof-mac
|
|
||||||
colima
|
|
||||||
pinentry_mac
|
|
||||||
iterm2
|
iterm2
|
||||||
zoom-us
|
|
||||||
karabiner-elements
|
karabiner-elements
|
||||||
|
pinentry_mac
|
||||||
|
spoof-mac
|
||||||
|
zoom-us
|
||||||
(pkgs.callPackage ./spotify-mac.nix { inherit config lib pkgs; })
|
(pkgs.callPackage ./spotify-mac.nix { inherit config lib pkgs; })
|
||||||
] ++ [ discord pkgsCustom.vlc pkgsCustom.qbittorrent ]
|
] ++ [ discord pkgsCustom.vlc pkgsCustom.qbittorrent ]
|
||||||
++ [ docker docker-compose ] ++ [
|
++ [ docker docker-compose ] ++ [
|
||||||
comma
|
|
||||||
automake
|
|
||||||
autoconf
|
autoconf
|
||||||
cmake
|
automake
|
||||||
bash
|
bash
|
||||||
rustup
|
|
||||||
curl
|
|
||||||
pv
|
|
||||||
wget
|
|
||||||
htop
|
|
||||||
bat
|
bat
|
||||||
|
cmake
|
||||||
|
comma
|
||||||
|
curl
|
||||||
fd
|
fd
|
||||||
gawk
|
gawk
|
||||||
ripgrep
|
htop
|
||||||
jq
|
jq
|
||||||
|
nix-review
|
||||||
nmap
|
nmap
|
||||||
unzip
|
openssh
|
||||||
|
pv
|
||||||
|
ripgrep
|
||||||
|
rsync
|
||||||
|
rustup
|
||||||
|
tldr
|
||||||
unp
|
unp
|
||||||
unrar
|
unrar
|
||||||
rsync
|
unzip
|
||||||
openssh
|
wget
|
||||||
tldr
|
yq
|
||||||
nix-review
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
38
programs.nix
38
programs.nix
|
@ -2,26 +2,14 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
|
||||||
|
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv = { enable = true; };
|
nix-direnv = { enable = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
gpg = {
|
exa = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gnupg;
|
enableAliases = true;
|
||||||
homedir = "${config.home.homeDirectory}/.gnupg";
|
|
||||||
settings = {
|
|
||||||
use-agent = true;
|
|
||||||
default-key = "860B5C62BF1FCE4272D26BF8C3DE5DF6198DACBD";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
java = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.jdk;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
|
@ -42,14 +30,19 @@
|
||||||
userEmail = "willem@leit.so";
|
userEmail = "willem@leit.so";
|
||||||
};
|
};
|
||||||
|
|
||||||
zoxide = {
|
gpg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
package = pkgs.gnupg;
|
||||||
|
homedir = "${config.home.homeDirectory}/.gnupg";
|
||||||
|
settings = {
|
||||||
|
use-agent = true;
|
||||||
|
default-key = "860B5C62BF1FCE4272D26BF8C3DE5DF6198DACBD";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
exa = {
|
java = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAliases = true;
|
package = pkgs.jdk;
|
||||||
};
|
};
|
||||||
|
|
||||||
starship = {
|
starship = {
|
||||||
|
@ -103,6 +96,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
@ -113,7 +111,6 @@
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
export PATH=${pkgs.pinentry_mac.out}/Applications/pinentry-mac.app/Contents/MacOS:$PATH
|
export PATH=${pkgs.pinentry_mac.out}/Applications/pinentry-mac.app/Contents/MacOS:$PATH
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
eval $(gpg-agent --daemon -q 2>/dev/null)
|
eval $(gpg-agent --daemon -q 2>/dev/null)
|
||||||
'';
|
'';
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
|
@ -133,5 +130,8 @@
|
||||||
l = "ls -1";
|
l = "ls -1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.enable = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue