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

12
flake.lock generated
View File

@@ -154,11 +154,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1711261295, "lastModified": 1711462743,
"narHash": "sha256-5DUNQl9BSmLxgGLbF05G7hi/UTk9DyZq8AuEszhQA7Q=", "narHash": "sha256-3wKGpHy9Kyh98DrziqC/s//60Q0pE17NgbY93L0uWng=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "5d2d3e421ade554b19b4dbb0d11a04023378a330", "rev": "a6717b1afee7ae955c61eefdf0ce8f864ef78115",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -260,11 +260,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1711163522, "lastModified": 1711333969,
"narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=", "narHash": "sha256-5PiWGn10DQjMZee5NXzeA6ccsv60iLu+Xtw+mfvkUAs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4", "rev": "57e6b3a9e4ebec5aa121188301f04a6b8c354c9b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -40,7 +40,7 @@
wmType = "x11"; # x11 or wayland wmType = "x11"; # x11 or wayland
browser = "vivaldi"; # Default browser browser = "vivaldi"; # Default browser
term = "kitty"; # Default terminal command term = "kitty"; # Default terminal command
editor = "emacsclient"; # Default editor editor = "vim"; # Default editor
spawnEditor = spawnEditor =
if (editor == "emacsclient") then if (editor == "emacsclient") then
"emacsclient -c -a 'emacs'" "emacsclient -c -a 'emacs'"

View File

@@ -72,7 +72,6 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim
wget wget
zsh zsh
git 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;
};
}

View File

@@ -1,5 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.dmenu ];
}

View File

@@ -1,5 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.rofi ];
}

View File

@@ -1,5 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.kitty ];
}