2021-09-08 19:43:08 +02:00
|
|
|
{
|
|
|
|
description = "My awesome system config";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = github:nixos/nixpkgs/release-21.05;
|
|
|
|
unstable.url = github:nixos/nixpkgs/nixos-unstable;
|
|
|
|
utils.url = github:gytis-ivaskevicius/flake-utils-plus/release-1.2.0-without-deprecated-code;
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = github:nix-community/home-manager;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-09-09 21:55:28 +02:00
|
|
|
outputs = inputs@{ self, utils, home-manager, nixpkgs, ...}:
|
2021-09-08 20:30:19 +02:00
|
|
|
utils.lib.mkFlake {
|
2021-09-08 19:43:08 +02:00
|
|
|
inherit self inputs;
|
|
|
|
|
|
|
|
# Channel definitions.
|
|
|
|
# Channels are automatically generated from nixpkgs inputs
|
|
|
|
# e.g the inputs which contain `legacyPackages` attribute are used.
|
|
|
|
channelsConfig.allowUnfree = true;
|
|
|
|
|
|
|
|
hostDefaults.modules = [
|
2021-09-08 20:30:19 +02:00
|
|
|
home-manager.nixosModules.home-manager
|
2021-09-09 21:55:28 +02:00
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|
2021-09-08 19:43:08 +02:00
|
|
|
./modules
|
|
|
|
];
|
|
|
|
|
|
|
|
hosts.nixos-laptop.modules = [
|
|
|
|
./hosts/nixos-laptop
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|