home-manager/home/default.nix

78 lines
1.7 KiB
Nix
Raw Normal View History

2023-07-31 18:08:25 +00:00
{
config,
pkgs,
lib,
options,
specialArgs,
modulesPath,
2023-07-31 18:47:35 +00:00
wallpaper,
2023-07-31 18:08:25 +00:00
}: {
nixpkgs.config.allowUnfreePredicate = _: true;
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;
};
# Symlinks
2023-07-31 18:47:35 +00:00
#home.file = {
# ".wallpaper".source = "${wallpaper.override { preset = "gruvbox-dark"; width = 3840; height = 2160;}}/share/wallpapers/nixos-wallpaper.png";
# #".wallpaper".source = ./wallpaper;
#};
2023-07-31 18:08:25 +00:00
# TODO: Change for Laptop
targets.genericLinux.enable = false; # Enable on non-nixos ditros
# Keyboard Layout
home.keyboard.layout = "at"; # NOTE: Set by Hyprland config
# Programs (additional programs)
home.packages = import ./packages.nix {inherit pkgs;};
# Services
services = {
copyq.enable = true;
};
# Programs
programs = {
home-manager.enable = true; # Allow home-manager to manage itself
mpv.enable = true;
obs-studio.enable = true;
yt-dlp.enable = true;
bash = import ./bash.nix {enable = true;};
2023-08-02 14:29:58 +00:00
vscode = import ./vscode.nix {
enable = true;
inherit pkgs;
};
2023-07-31 18:08:25 +00:00
git = import ./git.nix {enable = true;};
thunderbird = import ./thunderbird.nix {enable = true;};
neovim = import ./nvim {
enable = true;
inherit pkgs;
};
firefox = import ./firefox.nix {
enable = true;
nur = config.nur;
};
};
xdg.mimeApps = {
enable = true;
defaultApplications = {"video/*" = ["mpv.desktop"];};
};
# Gnome settings
2023-07-31 18:47:35 +00:00
dconf.settings = import ./gnome.nix {
inherit lib;
inherit wallpaper;
};
2023-07-31 18:08:25 +00:00
}