Hey everyone,
So recently I’ve been really missing home-manager news
since I feel out of the loop with updates.
In my dotfiles’ update script, I use this to build and use home-manager:
# Rebuild user configuration
rebuild_user_config()
{
# Update user flake.lock
if [ "$1" == "--update" ]
then
echo -e "\nUpdating user flake.lock.."
(cd users/; nix flake update)
fi
# Rebuild user configuration
echo -e "\nRebuilding user configuration.."
nix build ./users#homeConfigurations.nixos.activationPackage
if [[ -f result/activate ]]; then
./result/activate && rm -rd result
fi
}
However I’m not actually sure how to do anything other than use it. Ideally I’d add another function to the script so that when I do ./update.sh --news
it’d allow me to run the news command.
Here’s the flake that script is referring to - users/flake.nix
:
{
description = "User configuration flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nur, ... }@inputs: {
homeConfigurations = {
nixos = inputs.home-manager.lib.homeManagerConfiguration rec {
username = "ashe";
homeDirectory = "/home/ashe";
system = "x86_64-linux";
configuration = {
imports = [ ./home.nix ];
nixpkgs = {
config.allowUnfree = true;
overlays = [
nur.overlay
];
};
};
};
};
};
}
Has anyone else had experience with home-manager news? I wouldn’t be so reliant if there was a website with the same simple update notices but I think it’d be more reliable to simply get home-manager news working with my dotfiles.