34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpgs.follows = "nixos-cosmic/nixpkgs";
|
|
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixos-cosmic, ... }@inputs: {
|
|
# use "nixos", or your hostname as the name of the configuration
|
|
# it's a better practice than "default" shown in the video
|
|
nixosConfigurations.framework = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/framework/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
{
|
|
nix.settings = {
|
|
substituters = ["https://cosmic.cachix.org/"];
|
|
trusted-public-keys = ["cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="];
|
|
};
|
|
}
|
|
nixos-cosmic.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
}
|