2024-05-01 20:46:28 +00:00
|
|
|
{
|
|
|
|
description = "A simple home-manager flake using Aux";
|
|
|
|
|
|
|
|
inputs = {
|
2024-05-11 20:31:50 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2024-05-01 20:46:28 +00:00
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
|
|
|
|
# The `follows` keyword in inputs is used for inheritance.
|
|
|
|
# we do this in order to prevent duplication of the nixpkgs input, and potential
|
2024-05-01 21:40:06 +00:00
|
|
|
# issues with different versions of given packages.
|
2024-05-01 20:46:28 +00:00
|
|
|
# However, it should be noted that this can lead to having to rebuild packages from source.
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
2024-05-01 22:00:23 +00:00
|
|
|
inputs@{ nixpkgs, home-manager, ... }:
|
2024-05-01 20:46:28 +00:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
username = builtins.abort "You need to fill in your username"; # Set this variable equal to your username
|
|
|
|
in
|
|
|
|
{
|
|
|
|
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
|
|
|
|
# Specify your home configuration modules here, for example,
|
|
|
|
# the path to your home.nix.
|
2024-05-01 22:00:23 +00:00
|
|
|
modules = [
|
|
|
|
./home.nix
|
|
|
|
|
|
|
|
{ home.username = username; }
|
|
|
|
];
|
2024-05-01 20:46:28 +00:00
|
|
|
|
|
|
|
# Optionally use extraSpecialArgs
|
|
|
|
# to pass through arguments to home.nix
|
2024-05-01 22:00:23 +00:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-05-01 20:46:28 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|