sisyphus/nixos/flake.nix

57 lines
1.3 KiB
Nix
Raw Normal View History

2023-03-06 21:00:44 +01:00
{
2023-03-22 22:12:39 +01:00
description = "System configuration of my machines using flakes";
2023-04-04 11:23:33 +02:00
2023-03-06 21:00:44 +01:00
inputs = {
2023-03-07 23:12:34 +01:00
nixpkgs.url = "nixpkgs/nixos-22.11";
2023-04-04 11:23:33 +02:00
2023-03-22 22:12:39 +01:00
devshell = {
url = "github:numtide/devshell";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
2023-03-06 21:00:44 +01:00
};
2023-03-22 22:12:39 +01:00
flake-utils.url = "github:numtide/flake-utils";
home-manager = {
url = "github:nix-community/home-manager/release-22.11";
inputs = {
nixpkgs.follows = "nixpkgs";
utils.follows = "flake-utils";
2023-03-06 21:00:44 +01:00
};
};
2023-03-22 22:12:39 +01:00
utils = {
url = "github:gytis-ivaskevicius/flake-utils-plus";
inputs.flake-utils.follows = "flake-utils";
};
};
2023-03-06 21:00:44 +01:00
2023-03-22 22:12:39 +01:00
outputs = inputs@{
self, nixpkgs,
devshell, flake-utils, home-manager, utils,
... }:
let
system = "x86_64-linux";
in
utils.lib.mkFlake {
inherit self inputs;
2023-04-04 11:23:33 +02:00
channelsConfig = {
allowUnfree = true;
2023-03-15 19:47:58 +01:00
};
2023-04-04 11:23:33 +02:00
hostDefaults = {
inherit system;
modules = [
home-manager.nixosModule
2023-04-04 12:08:13 +02:00
./modules
2023-04-04 11:23:33 +02:00
];
};
hosts = {
2023-04-11 18:01:53 +02:00
Tibo-NixDesk.modules = [ ./hosts/Tibo-NixDesk ];
2023-04-04 11:23:33 +02:00
Tibo-NixFat.modules = [ ./hosts/Tibo-NixFat ];
Tibo-NixTest.modules = [ ./hosts/Tibo-NixTest ];
2023-03-24 11:15:51 +01:00
};
2023-03-06 21:00:44 +01:00
};
}