nixos-config/home-manager/stvnliu/home.nix

91 lines
2.1 KiB
Nix

{ config, pkgs, ... }: {
imports = [
#./hypr
./shells
../../common/variables.nix
./services
./wechat
./editors.nix
./gtk.nix
#./ags
./xdg.nix
./stylix.nix
#./dwl
./scripts
./programs
./packages
];
#services.pass-secret-service.enable = true;
nixpkgs = {
# You can add overlays here
overlays = [
(_final: prev: {
ags = prev.ags.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.libdbusmenu-gtk3 ];
});
})
];
# Configure your nixpkgs instance
config = {
cudaSupport = true;
permittedInsecurePackages = [
"dotnet-core-combined"
"dotnet-sdk-6.0.428"
"dotnet-sdk-7.0.410"
"dotnet-sdk-wrapped-6.0.428"
];
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
};
home = {
username = "${config.myUserName}";
homeDirectory = "/home/${config.myUserName}";
# copy wallpaper from assets
file = { "wallpaper.jpg".source = config.myWallPaperPath; };
};
home.packages = with pkgs; [
prismlauncher
protonvpn-gui
vlc
clash-verge-rev
rhythmbox
qq
shotwell
mpv
kdePackages.kdenlive
obsidian
heroic
];
myAutostartCommands = [
"${pkgs.clash-verge-rev}/bin/clash-verge"
];
programs = {
obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [ wlrobs input-overlay ];
};
home-manager.enable = true;
firefox = {
enable = true;
package = with pkgs;
(librewolf.override {
nativeMessagingHosts = [ passff-host ];
hasMozSystemDirPatch = true;
});
};
thunderbird = {
enable = true;
profiles.default = { isDefault = true; };
};
};
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "24.05";
}