Skip to content

Instantly share code, notes, and snippets.

@kesor
Last active January 17, 2025 18:09
Show Gist options
  • Save kesor/a5f6cb75da110271824fb08fee3e3c41 to your computer and use it in GitHub Desktop.
Save kesor/a5f6cb75da110271824fb08fee3e3c41 to your computer and use it in GitHub Desktop.
home manager flake.nix on ubuntu
{
description = "Home Manager configuration";
inputs = {
# nixpkgsUnstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
systems.url = "github:nix-systems/default";
catppuccin.url = "github:catppuccin/nix";
ghostty.url = "github:ghostty-org/ghostty";
homeManager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = {
url = "github:numtide/flake-utils";
inputs = {
systems.follows = "systems";
};
};
nixgl = {
url = "github:nix-community/nixGL";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};
outputs = {
nixgl,
catppuccin,
ghostty,
nixpkgs,
homeManager,
...
}@inputs: let
system = "x86_64-linux";
customPkgOverlays = f: p: {
ez-eza = p.callPackage ./derivations/ez-eza.nix {};
# displaylink = p.callPackage ./derivations/displaylink {};
};
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay customPkgOverlays ];
config = {
romcSupport = true;
allowUnfree = true;
};
};
in {
homeConfigurations = {
"evgeny" = homeManager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs; inherit nixgl; inherit ghostty; };
modules = (import ./modules) ++ [
./home.nix
catppuccin.homeManagerModules.catppuccin
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment