58 lines
1.8 KiB
Nix
58 lines
1.8 KiB
Nix
{
|
|
description = "Bruhns system flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpgs.follows = "nixos-cosmic/nixpkgs";
|
|
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
zen-browser.url = "github:youwen5/zen-browser-flake";
|
|
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
nixos-cosmic,
|
|
nixos-hardware,
|
|
...
|
|
} @ 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
|
|
nixos-hardware.nixosModules.framework-13-7040-amd
|
|
];
|
|
};
|
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/desktop/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
|
|
];
|
|
};
|
|
};
|
|
}
|