Skip to content

Instantly share code, notes, and snippets.

@shishi
Created November 26, 2025 08:59
Show Gist options
  • Select an option

  • Save shishi/c0a6203145ce7bce873fdf687a11569e to your computer and use it in GitHub Desktop.

Select an option

Save shishi/c0a6203145ce7bce873fdf687a11569e to your computer and use it in GitHub Desktop.
omarchy_nix
{
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
omarchy-nix = {
url = "github:henrysipp/omarchy-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, omarchy-nix, home-manager, ... }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
omarchy-nix.nixosModules.default
home-manager.nixosModules.home-manager #Add this import
{
# Configure omarchy
omarchy = {
full_name = "shishi";
email_address = "[email protected]";
theme = "tokyo-night";
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager = {
users.shishi = {
home.stateVersion = "25.05";
imports = [ omarchy-nix.homeManagerModules.default ]; # And this one
};
};
}
];
};
};
}
# you need this setting in /etc/nixos/configuration.nix
# nix.settings.experimental-features = ["nix-command" "flakes"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment