52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
stylix.url = "github:danth/stylix";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixos-hardware, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkg = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
nixosConfigurations = {
|
|
laptop = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/laptop/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
inputs.stylix.nixosModules.stylix
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-x13-yoga
|
|
];
|
|
};
|
|
|
|
server = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/server/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
nixos-hardware.nixosModules.system76
|
|
];
|
|
};
|
|
|
|
tablet = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/tablet/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
nixos-hardware.nixosModules.microsoft-surface-pro-intel
|
|
];
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|