2024-05-08 22:28:06 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2024-04-21 19:57:10 -04:00
|
|
|
|
2024-05-03 18:49:17 -04:00
|
|
|
let
|
2024-06-05 10:41:46 -04:00
|
|
|
flameshot = import ../../common/programs/flameshot.nix {inherit config;};
|
2024-07-05 13:28:32 -04:00
|
|
|
arrpc = import ../../common/programs/arrpc.nix {};
|
2024-05-29 14:42:02 -04:00
|
|
|
_s1 = import ../../common/sops.nix { inherit config; };
|
2024-05-25 22:05:34 -04:00
|
|
|
files = import ../../common/files.nix { inherit config; };
|
2024-05-26 11:09:22 -04:00
|
|
|
shell = import ../../common/shell.nix { inherit config pkgs; };
|
|
|
|
p = import ../../common/pkgs.nix { inherit pkgs config; };
|
2024-05-25 22:55:59 -04:00
|
|
|
_p1 = p.dev ++ p.gui ++ p.general ++ p.scripts ++ p.gaming;
|
2024-05-08 22:28:06 -04:00
|
|
|
zshInitArgs = [
|
|
|
|
"source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme"
|
|
|
|
"source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
|
|
"[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh"
|
|
|
|
"setopt globstarshort"
|
|
|
|
];
|
|
|
|
_z1 = lib.concatMapStrings (x: x + "\n") zshInitArgs;
|
2024-07-05 11:29:22 -04:00
|
|
|
DES = import ../../common/desktopEntries.nix {};
|
2024-05-03 18:49:17 -04:00
|
|
|
in
|
2024-04-21 19:57:10 -04:00
|
|
|
{
|
2024-06-01 23:21:32 -04:00
|
|
|
nixpkgs.config.allowInsecurePredicate = (pkg: true);
|
2024-05-29 14:42:02 -04:00
|
|
|
imports = [
|
2024-05-27 22:37:25 -04:00
|
|
|
inputs.sops-nix.homeManagerModules.sops
|
2024-05-29 14:42:02 -04:00
|
|
|
];
|
|
|
|
sops = _s1;
|
2024-05-03 18:49:17 -04:00
|
|
|
programs.zsh.enable = true;
|
2024-04-24 19:39:08 -04:00
|
|
|
programs.zsh.oh-my-zsh.enable = true;
|
2024-05-08 22:28:06 -04:00
|
|
|
programs.zsh.initExtra = builtins.trace _z1 _z1;
|
2024-05-23 15:41:29 -04:00
|
|
|
programs.java.enable = true;
|
|
|
|
programs.java.package = pkgs.temurin-bin-17;
|
2024-05-08 22:28:06 -04:00
|
|
|
programs.zoxide.enable = true;
|
|
|
|
programs.zoxide.enableZshIntegration = true;
|
2024-05-26 11:09:22 -04:00
|
|
|
programs.git.enable = true;
|
|
|
|
programs.git.userName = "sadan";
|
|
|
|
programs.git.userEmail = "117494111+sadan4@users.noreply.github.com";
|
|
|
|
programs.git.extraConfig = {
|
2024-05-26 11:53:07 -04:00
|
|
|
gpg.format = "ssh";
|
2024-05-26 11:55:58 -04:00
|
|
|
user = {
|
|
|
|
signingkey = "~/.ssh/id_ed25519";
|
2024-05-26 11:09:22 -04:00
|
|
|
};
|
|
|
|
commit.gpgsign = true;
|
|
|
|
core.autocrlf = "input";
|
|
|
|
pull.rebase = true;
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
rerere.enabled = true;
|
|
|
|
};
|
2024-05-07 20:23:23 -04:00
|
|
|
|
2024-05-03 18:49:17 -04:00
|
|
|
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
2024-04-21 19:57:10 -04:00
|
|
|
# Home Manager needs a bit of information about you and the paths it should
|
2024-04-21 21:15:02 -04:00
|
|
|
# nixpkg.config.allowUnfree = true;
|
2024-04-21 19:57:10 -04:00
|
|
|
# manage.
|
|
|
|
home.username = "meyer";
|
|
|
|
home.homeDirectory = "/home/meyer";
|
2024-05-08 22:28:06 -04:00
|
|
|
|
2024-05-05 01:15:43 -04:00
|
|
|
|
|
|
|
services = {
|
2024-07-05 13:28:32 -04:00
|
|
|
inherit arrpc flameshot;
|
2024-05-05 01:15:43 -04:00
|
|
|
};
|
2024-04-21 19:57:10 -04:00
|
|
|
# This value determines the Home Manager release that your configuration is
|
|
|
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
|
|
|
# introduces backwards incompatible changes.
|
|
|
|
#
|
|
|
|
# You should not change this value, even if you update Home Manager. If you do
|
|
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
|
|
# release notes.
|
|
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
2024-05-25 22:55:59 -04:00
|
|
|
home.packages = _p1;
|
2024-04-21 19:57:10 -04:00
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
2024-05-25 22:05:34 -04:00
|
|
|
home.file = files;
|
2024-04-21 19:57:10 -04:00
|
|
|
|
|
|
|
# Home Manager can also manage your environment variables through
|
|
|
|
# 'home.sessionVariables'. If you don't want to manage your shell through Home
|
|
|
|
# Manager then you have to manually source 'hm-session-vars.sh' located at
|
|
|
|
# either
|
|
|
|
#
|
|
|
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# /etc/profiles/per-user/meyer/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
2024-05-25 22:55:59 -04:00
|
|
|
home.shellAliases = shell.dev.aliases;
|
|
|
|
home.sessionPath = shell.dev.path;
|
|
|
|
home.sessionVariables = shell.dev.env;
|
2024-07-05 11:29:22 -04:00
|
|
|
xdg.desktopEntries = DES;
|
2024-04-21 19:57:10 -04:00
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
}
|