Skip to content

Instantly share code, notes, and snippets.

@kclejeune
Last active December 27, 2021 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kclejeune/1fba78976af73d4c4f03250b3fb33e74 to your computer and use it in GitHub Desktop.
Save kclejeune/1fba78976af73d4c4f03250b3fb33e74 to your computer and use it in GitHub Desktop.
home manager flake
{
description = "home manager system configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
homeConfigurations = {
server = home-manager.lib.homeManagerConfiguration rec {
system = "x86_64-linux";
username = "username";
homeDirectory = "/home/${username}";
extraSpecialArgs = { inherit inputs; };
configuration = {
imports = [ ./home.nix ];
nixpkgs.overlays = [
# overlays could go here if you wanted
];
};
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment