40 lines
864 B
Nix
40 lines
864 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
|
|
];
|
|
};
|
|
};
|
|
}
|