setup home-manager
This commit is contained in:
parent
b49a8088cc
commit
d108086e94
|
@ -11,7 +11,14 @@
|
||||||
# inputs.nix-colors.homeManagerModules.default
|
# inputs.nix-colors.homeManagerModules.default
|
||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# Programs
|
||||||
|
./programs/discocss.nix
|
||||||
|
./programs/git.nix
|
||||||
|
./programs/mangohud.nix
|
||||||
|
./programs/nvim.nix
|
||||||
|
./programs/zsh.nix
|
||||||
|
# Services
|
||||||
|
./services/picom.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
@ -40,20 +47,31 @@
|
||||||
allowUnfreePredicate = (_: true);
|
allowUnfreePredicate = (_: true);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Enable home-manager
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
# TODO: Set your username
|
|
||||||
home = {
|
home = {
|
||||||
username = "your-username";
|
username = "sajenim";
|
||||||
homeDirectory = "/home/your-username";
|
homeDirectory = "/home/sajenim";
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
wezterm
|
||||||
|
discord
|
||||||
|
spotify
|
||||||
|
unstable.prismlauncher
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add stuff for your user as you see fit:
|
# Setup user configuration
|
||||||
# programs.neovim.enable = true;
|
xdg.configFile = {
|
||||||
# home.packages = with pkgs; [ steam ];
|
awesome = { source = ../config/awesome; recursive = true; };
|
||||||
|
wezterm = { source = ../config/wezterm; recursive = true; };
|
||||||
# Enable home-manager and git
|
};
|
||||||
programs.home-manager.enable = true;
|
|
||||||
programs.git.enable = true;
|
|
||||||
|
|
||||||
# Nicely reload system units when changing configs
|
# Nicely reload system units when changing configs
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
|
|
12
home-manager/programs/discocss.nix
Normal file
12
home-manager/programs/discocss.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.discocss = {
|
||||||
|
enable = true;
|
||||||
|
discordAlias = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile = {
|
||||||
|
discocss = { source = ../../config/discocss; recursive = true; };
|
||||||
|
};
|
||||||
|
}
|
9
home-manager/programs/git.nix
Normal file
9
home-manager/programs/git.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "sajenim";
|
||||||
|
userEmail = "its.jassy@pm.me";
|
||||||
|
};
|
||||||
|
}
|
13
home-manager/programs/mangohud.nix
Normal file
13
home-manager/programs/mangohud.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.mangohud = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
gpu_temp = true;
|
||||||
|
gpu_core_clock = true;
|
||||||
|
cpu_temp = true;
|
||||||
|
cpu_mhz = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -49,4 +49,8 @@
|
||||||
nvim-web-devicons # Provides icons
|
nvim-web-devicons # Provides icons
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile = {
|
||||||
|
nvim = { source = ../../config/nvim; recursive = true; };
|
||||||
|
};
|
||||||
}
|
}
|
14
home-manager/services/picom.nix
Normal file
14
home-manager/services/picom.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.picom = {
|
||||||
|
enable = true;
|
||||||
|
shadow = true;
|
||||||
|
settings = {
|
||||||
|
corner-radius = 5;
|
||||||
|
rounded-corners-exclude = [
|
||||||
|
"window_type = 'dock'"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue