Add home.nix

- Change default editor to vim
- Add home.nix with some packages installed for the user
- Remove dmenu, rofi, and kitty nix files
This commit is contained in:
Sravan Balaji
2024-03-26 18:28:02 -04:00
parent a9191db00d
commit 14ee0fd81e
7 changed files with 79 additions and 23 deletions

View File

@@ -72,7 +72,6 @@
};
environment.systemPackages = with pkgs; [
vim
wget
zsh
git

View File

@@ -0,0 +1,72 @@
{ config, lib, pkgs, userSettings, ... }:
{
# Home Manager needs a bit of information about you and the paths it should manage
home.username = userSettings.username;
home.homeDirectory = "/home/" + userSettings.username;
programs.home-manager.enable = true;
home.stateVersion = "23.11";
home.packages = (with pkgs; [
# Shell / Terminal
zsh
kitty
vim
# Browser
vivaldi
# Launcher
dmenu
rofi
# Development
git
# Utilities
syncthing
# Office
xournalpp
# Gaming
wine
bottles
lutris
protonup-qt
# Media
gimp
mpv
blender
obs-studio
ffmpeg
]);
services.syncthing.enable = true;
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;
};
xdg.mime.enable = true;
xdg.mimeApps.enable = true;
home.sessionVariables = {
EDITOR = userSettings.editor;
SPAWNEDITOR = userSettings.spawnEditor;
TERM = userSettings.term;
BROWSER = userSettings.browser;
};
}