home-manager/home.nix

53 lines
1.1 KiB
Nix

{
config,
lib,
options,
specialArgs,
modulesPath,
}: {
home.stateVersion = "23.05";
home.username = "kristian";
home.homeDirectory = "/home/kristian";
home.sessionVariables = {
# Electron programms won't render correctly under wayland without this
NIXOS_OZONE_WL = 1;
};
# Keyboard Layout
home.keyboard.layout = "at";
imports = [
./modules/bash.nix
./modules/direnv.nix
./modules/firefox.nix
./modules/fonts.nix
./modules/git.nix
./modules/gnome.nix
./modules/gpg.nix
./modules/nvim
./modules/packages.nix
./modules/thunderbird.nix
./modules/vscode.nix
./modules/mpv.nix
];
# Programs
programs = {
home-manager.enable = true; # Allow home-manager to manage itself
obs-studio.enable = true;
yt-dlp.enable = true;
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"image/png" = ["org.gnome.eog.desktop"];
"image/jpeg" = ["org.gnome.eog.desktop"];
"video/webm" = ["mpv.desktop"];
"application/pdf" = ["org.gnome.Evince.desktop"];
};
};
}