Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- salvo@nixos:~/.dotfiles/ > cat home.nix
- { config, inputs, lib, pkgs, ... }:
- let
- myAliases = {
- ll = "ls -al";
- ".." = "cd ..";
- };
- in
- {
- # Let Home Manager install and manage itself.
- programs.home-manager.enable = true;
- # Home Manager needs a bit of information about you and the paths it should
- # manage.
- home.username = "salvo";
- home.homeDirectory = "/home/salvo";
- # Git
- programs.git = {
- enable = true;
- userName = "salvoza";
- userEmail = "salvo@reaper.org";
- extraConfig = {
- init.defaultBranch = "main";
- safe.directory = ["/etc/nixos" "/home/salvo/.dotfiles"];
- };
- };
- wayland.windowManager.hyprland = {
- enable = true;
- # plugins = [
- # inputs.hyprland-plugins.packages."${pkgs.system}".borders-plus-plus
- # ];
- settings = {
- # "plugin:borders-plus-plus" = {
- # add_borders = 1; # 0 - 9
- #
- # # you can add up to 9 borders
- # "col.border_1" = "rgb(ffffff)";
- # "col.border_2" = "rgb(2222ff)";
- #
- # # -1 means "default" as in the one defined in general:border_size
- # border_size_1 = 10;
- # border_size_2 = -1;
- #
- # # makes outer edges match rounding of the parent. Turn on / off to better understand. Default = on.
- # natural_rounding = "yes";
- # exec-once = ''${startupScript}/bin/start'';
- # };
- };
- };
- home.stateVersion = "24.05"; # Please read the comment before changing.
- # The home.packages option allows you to install Nix packages into your
- # environment.
- home.packages = [
- ];
- # Home Manager is pretty good at managing dotfiles. The primary way to manage
- # plain files is through 'home.file'.
- home.file = {
- };
- home.sessionVariables = {
- # EDITOR = "vim";
- };
- programs.bash = {
- enable = false;
- shellAliases = myAliases;
- };
- programs.zsh = {
- enable = true;
- #enableAutosuggestions = true;
- autosuggestion.enable = true;
- syntaxHighlighting.enable = true;
- enableCompletion = true;
- shellAliases = myAliases;
- # initExtra = ''
- # PROMPT=" ◉ %U%F{magenta}%n%f%u@%U%F{blue}%m%f%u:%F{yellow}%~%f %F{green}→%f "
- # RPROMPT="%F{red}▂%f%F{yellow}▄%f%F{green}▆%f%F{cyan}█%f%F{blue}▆%f%F{magenta}▄%f%F{white}▂%f"
- # [ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
- # '';
- };
- programs.vim = {
- settings = {
- expandtab = true;
- history = 4000;
- tabstop = 2;
- shiftwidth = 2;
- softtabstop = 2;
- };
- };
- programs.kitty = {
- enable = true;
- font.name = "jetbrains-mono";
- font.size = 16;
- extraConfig = ''
- include /home/salvo/.config/kitty/dracula.conf
- include /home/salvo/.config/kitty/diff.conf
- '';
- };
- imports = [
- # ./kitty.nix
- # ./fonts.nix
- ];
- }
Add Comment
Please, Sign In to add comment