38 lines
752 B
Nix
38 lines
752 B
Nix
# /etc/nixos/flake.nix
|
|
{
|
|
description = "flake for Yura-PC";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
ollama = {
|
|
url = "github:MordragT/nixos";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ollama, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
overlays = [ ollama.overlays.default ];
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
Yura-PC = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./configuration.nix
|
|
];
|
|
specialArgs = {
|
|
inherit pkgs;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|