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-03-06 21:00:44 +01:00
|
|
|
|
|
|
|
inputs = {
|
2023-03-07 23:12:34 +01:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
2023-03-06 21:00:44 +01: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;
|
|
|
|
homeManagerConfigurations = {
|
|
|
|
tdpeuter = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
./users/tdpeuter/home.nix
|
|
|
|
{
|
|
|
|
home = {
|
|
|
|
username = "tdpeuter";
|
|
|
|
homeDirectory = "/home/tdpeuter";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-03-15 19:47:58 +01:00
|
|
|
};
|
2023-03-22 22:12:39 +01:00
|
|
|
nixosConfigurations = {
|
|
|
|
Tibo-NixFat = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [ ./hosts/Tibo-NixFat ];
|
|
|
|
};
|
|
|
|
Tibo-NixTest = nixpkgs.lib.nixossSytem {
|
|
|
|
inherit system;
|
|
|
|
modules = [ ./hosts/Tibo-NixTest ];
|
|
|
|
};
|
|
|
|
};
|
2023-03-06 21:00:44 +01:00
|
|
|
};
|
|
|
|
}
|