66 lines
1.5 KiB
Nix
66 lines
1.5 KiB
Nix
{
|
|
description = "Nixos Config Flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
};
|
|
|
|
nixos-hardware = {
|
|
url = "github:NixOS/nixos-hardware/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
outputs =
|
|
{ self,
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
home-manager,
|
|
nixvim,
|
|
nixos-hardware,
|
|
...
|
|
}@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
configPath = "/etc/nixos";
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
system = system;
|
|
config.allowUnfree = true;
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
eva-01 = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs pkgs-unstable configPath;};
|
|
system = system;
|
|
modules = [
|
|
./eva-01/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-x1-nano-gen1
|
|
];
|
|
};
|
|
|
|
eva-03 = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs pkgs-unstable configPath;};
|
|
system = system;
|
|
modules = [
|
|
./eva-03/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|