41 lines
1.2 KiB
Nix
Executable file
41 lines
1.2 KiB
Nix
Executable file
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
gtkapps.url = "github:JackMechem/gtkapps";
|
|
gtkbar.url = "github:JackMechem/gtkbar";
|
|
|
|
zen-browser = {
|
|
url = "github:0xc000022070/zen-browser-flake";
|
|
# IMPORTANT: we're using "libgbm" and is only available in unstable so ensure
|
|
# to have it up-to-date or simply don't specify the nixpkgs input
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs, ... }@inputs:
|
|
{
|
|
# use "nixos", or your hostname as the name of the configuration
|
|
# it's a better practice than "default" shown in the video
|
|
nixosConfigurations.t480 = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/t480/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
];
|
|
};
|
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/desktop/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
}
|