Files
home/flake.nix
2024-09-13 10:46:05 +01:00

41 lines
883 B
Nix

{
description = "Home Manager configuration for ppetru";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager }:
let
username = "ppetru";
homeDirectory = "/home/${username}";
system = "x86_64-linux";
stateVersion = "24.05";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
home = (import ./home.nix {
inherit homeDirectory pkgs stateVersion system username;
});
in {
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
home
];
};
home = home;
};
}