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

97 lines
2.3 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 = {
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
rhythmbox
qq
shotwell
mpv
kdenlive
obsidian
heroic
rustdesk
];
myAutostartCommands = [
#"${pkgs.clash-verge-rev}/bin/clash-verge"
];
programs = {
obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [ wlrobs input-overlay droidcam-obs ];
};
home-manager.enable = true;
firefox = {
enable = true;
package = with pkgs;
(firefox-devedition.override {
nativeMessagingHosts = [
(passff-host.overrideAttrs (_old: {
dontStrip = true;
patchPhase = ''
sed -i 's#COMMAND = "pass"#COMMAND = "${
pass.withExtensions (ext: with ext; [ pass-otp pass-import ])
}/bin/pass"#' src/passff.py'';
}))
];
});
};
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";
}