initial commit
This commit is contained in:
83
home.nix
Normal file
83
home.nix
Normal file
@ -0,0 +1,83 @@
|
||||
{ config, lib, pkgs, username,homeDir, ... }:
|
||||
|
||||
{
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "${homeDir}";
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
home.packages = with pkgs;[
|
||||
polybar
|
||||
sxhkd
|
||||
alacritty
|
||||
nitrogen
|
||||
nerdfonts
|
||||
rofi
|
||||
firefox
|
||||
neovim
|
||||
activate-linux
|
||||
bspwm
|
||||
dunst
|
||||
];
|
||||
|
||||
home.file = {
|
||||
# ".screenrc".source = dotfiles/screenrc;
|
||||
".config/bspwm/bspwmrc".source = lib.mkDefault dotfiles/config/bspwm/bspwmrc;
|
||||
".config/sxhkd".source = lib.mkDefault dotfiles/config/sxhkd;
|
||||
".config/polybar".source = dotfiles/config/polybar;
|
||||
".config/nitrogen".source = lib.mkDefault dotfiles/config/nitrogen;
|
||||
".config/alacritty".source = dotfiles/config/alacritty;
|
||||
".config/nvim/init.vim".source = dotfiles/config/nvim/init.vim;
|
||||
".config/nvim/plugin/stdheader.vim".source = dotfiles/config/nvim/plugin/stdheader.vim;
|
||||
".local/share/nvim/site/autoload/plug.vim".source = dotfiles/local/share/nvim/site/autoload/plug.vim;
|
||||
".xinitrc".source = dotfiles/xinitrc;
|
||||
".vimrc".source = dotfiles/vimrc;
|
||||
".bashrc".source = dotfiles/bashrc;
|
||||
|
||||
|
||||
# ".gradle/gradle.properties".text = ''
|
||||
# org.gradle.daemon.idletimeout=3600000
|
||||
# '';
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "tomoron@student.42angouleme.fr";
|
||||
userName = "tomoron";
|
||||
extraConfig.init.defaultBranch="master";
|
||||
aliases = {
|
||||
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";
|
||||
back = "reset HEAD~";
|
||||
};
|
||||
};
|
||||
|
||||
services.picom = {
|
||||
enable = true;
|
||||
backend = lib.mkDefault "glx";
|
||||
vSync = true;
|
||||
settings = {
|
||||
blur = {
|
||||
method = lib.mkDefault "gaussian";
|
||||
size = lib.mkDefault 20;
|
||||
deviation = lib.mkDefault 5.0;
|
||||
};
|
||||
corner-radius=20;
|
||||
rounded-corners-exclude = [
|
||||
"window_type = 'dock'"
|
||||
"class_g = 'Dunst'"
|
||||
];
|
||||
blur-background-exclude = [
|
||||
"class_g = 'activate-linux'"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
Reference in New Issue
Block a user