nixos/flake.nix
MichaelFisher1997 946fe2357d updated
2025-01-04 02:24:04 +00:00

45 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
inputs = {
# This points to the same nixpkgs that nixos-cosmic is using by default.
# If you want to stick to a stable channel, you can switch "nixpkgs" to "nixpkgs-stable".
nixpkgs.follows = "nixos-cosmic/nixpkgs";
# The main input: NixOS COSMIC
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
};
outputs = { self, nixpkgs, nixos-cosmic }:
{
nixosConfigurations = {
# Replace "my-hostname" with your actual hostname
hypr-nix = nixpkgs.lib.nixosSystem {
# Point to an existing configuration file or create a new one
modules = [
# Set up the COSMIC binary cache (substituter)
{
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
];
};
}
# Import the default COSMIC NixOS module
nixos-cosmic.nixosModules.default
# Your existing configuration typically youd have:
./configuration.nix
# Optionally, you could enable COSMIC right here:
{
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
}
];
};
};
};
}