nixos-config/profiles/wsl/home.nix

68 lines
1.9 KiB
Nix
Raw Normal View History

{ config, pkgs, userSettings, ... }:
2023-08-16 20:44:01 +05:30
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = userSettings.username;
home.homeDirectory = "/home/"+userSettings.username;
2023-08-16 20:44:01 +05:30
programs.home-manager.enable = true;
imports = [
../../user/shell/sh.nix # My zsh and bash config
../../user/shell/cli-collection.nix # Useful CLI apps
../../user/app/doom-emacs/doom.nix # My doom emacs config
../../user/app/ranger/ranger.nix # My ranger file manager config
../../user/app/git/git.nix # My git config
../../user/style/stylix.nix # Styling and themes for my apps
];
home.stateVersion = "22.11"; # Please read the comment before changing.
home.packages = with pkgs; [
# Core
zsh
git
2023-08-21 04:25:05 +05:30
syncthing
2023-08-16 20:44:01 +05:30
# Office
2023-09-27 07:20:20 +05:30
libreoffice-fresh
2023-08-16 20:44:01 +05:30
# Various dev packages
texinfo
libffi zlib
nodePackages.ungit
];
2023-08-21 04:25:05 +05:30
services.syncthing.enable = true;
2023-08-16 20:44:01 +05:30
xdg.enable = true;
xdg.userDirs = {
enable = true;
createDirectories = true;
music = "${config.home.homeDirectory}/Media/Music";
videos = "${config.home.homeDirectory}/Media/Videos";
pictures = "${config.home.homeDirectory}/Media/Pictures";
templates = "${config.home.homeDirectory}/Templates";
download = "${config.home.homeDirectory}/Downloads";
documents = "${config.home.homeDirectory}/Documents";
desktop = null;
publicShare = null;
extraConfig = {
XDG_DOTFILES_DIR = "${config.home.homeDirectory}/.dotfiles";
XDG_ARCHIVE_DIR = "${config.home.homeDirectory}/Archive";
XDG_ORG_DIR = "${config.home.homeDirectory}/Org";
XDG_BOOK_DIR = "${config.home.homeDirectory}/Media/Books";
};
};
xdg.mime.enable = true;
xdg.mimeApps.enable = true;
home.sessionVariables = {
EDITOR = userSettings.editor;
2023-08-16 20:44:01 +05:30
};
2024-04-28 02:04:36 +05:30
news.display = "silent";
2023-08-16 20:44:01 +05:30
}