setup home-manager

This commit is contained in:
♥ Minnie ♥ 2023-04-07 07:19:41 +08:00
parent b49a8088cc
commit d108086e94
7 changed files with 81 additions and 11 deletions

View file

@ -11,7 +11,14 @@
# inputs.nix-colors.homeManagerModules.default
# 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 = {
@ -41,19 +48,30 @@
};
};
# TODO: Set your username
# Enable home-manager
programs.home-manager.enable = true;
home = {
username = "your-username";
homeDirectory = "/home/your-username";
username = "sajenim";
homeDirectory = "/home/sajenim";
sessionVariables = {
EDITOR = "nvim";
};
packages = with pkgs; [
wezterm
discord
spotify
unstable.prismlauncher
];
};
# Add stuff for your user as you see fit:
# programs.neovim.enable = true;
# home.packages = with pkgs; [ steam ];
# Enable home-manager and git
programs.home-manager.enable = true;
programs.git.enable = true;
# Setup user configuration
xdg.configFile = {
awesome = { source = ../config/awesome; recursive = true; };
wezterm = { source = ../config/wezterm; recursive = true; };
};
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";

View file

@ -0,0 +1,12 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
programs.discocss = {
enable = true;
discordAlias = false;
};
xdg.configFile = {
discocss = { source = ../../config/discocss; recursive = true; };
};
}

View file

@ -0,0 +1,9 @@
{ inputs, outputs, lib, config, pkgs, ... }:
{
programs.git = {
enable = true;
userName = "sajenim";
userEmail = "its.jassy@pm.me";
};
}

View 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;
};
};
}

View file

@ -49,4 +49,8 @@
nvim-web-devicons # Provides icons
];
};
xdg.configFile = {
nvim = { source = ../../config/nvim; recursive = true; };
};
}

View 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'"
];
};
};
}