This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/flake.nix

36 lines
905 B
Nix
Raw Normal View History

2022-06-10 05:22:53 +02:00
{
description = "My system config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
home-manager.url = "github:nix-community/home-manager/release-22.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
i15 = lib.nixosSystem {
inherit system;
2022-07-12 02:34:04 +02:00
modules = [
./system/configuration.nix
./system/i15-hardware-configuration.nix
];
};
monolith = lib.nixosSystem {
inherit system;
modules = [
./system/configuration.nix
./system/monolith-hardware-configuration.nix
];
2022-06-10 05:22:53 +02:00
};
};
};
}