rework home.nix

This commit is contained in:
♥ Minnie ♥ 2023-07-23 08:27:44 +08:00
parent f8a85b19cb
commit 4632614919
6 changed files with 24 additions and 33 deletions

View file

@ -1,32 +0,0 @@
{ inputs, pkgs, ... }:
{
imports = [
./picom.nix
];
nixpkgs.overlays = [
(final: prev: {
xmobar = inputs.xmobar-config.packages.${pkgs.system}.xmobar-config;
})
];
home.packages = with pkgs; [
dmenu
feh
unstable.wezterm
xmobar
];
xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ./xmonad/src/xmonad.hs;
};
home.file.".xinitrc".source = ./xinitrc;
xdg.configFile = {
wezterm = { source = ./wezterm; recursive = true; };
};
}

View file

@ -12,12 +12,14 @@
# 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:
# User services
./services/picom
# User programs # User programs
./programs/discord ./programs/discord
./programs/mangohud ./programs/mangohud
# Common programs # Common programs
../common/desktop
../common/programs/git ../common/programs/git
../common/programs/zsh ../common/programs/zsh
../common/programs/nvim ../common/programs/nvim
@ -63,12 +65,33 @@
# Install some packages # Install some packages
packages = with pkgs; [ packages = with pkgs; [
# Stable user programs
bitwarden bitwarden
dmenu
feh
spotify spotify
prismlauncher prismlauncher
xmobar
# Unstable user programs
unstable.wezterm
]; ];
}; };
# Setup our window manager
xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ../../pkgs/xmonad-config/src/xmonad.hs;
};
# Copy some configuration files to $XDG_CONFIG_HOME
xdg.configFile = {
wezterm = { source = ./programs/wezterm/config; recursive = true; };
};
# Setup our desktop environment
home.file.".xinitrc".source = ./xinitrc;
# Nicely reload system units when changing configs # Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch"; systemd.user.startServices = "sd-switch";