62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "flake:nixpkgs/nixos-21.11";
|
|
nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable";
|
|
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/v1.3.1";
|
|
simple-nixos-mailserver = {
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-21.11";
|
|
inputs = {
|
|
nixpkgs.follows = "nixpkgs-unstable";
|
|
nixpkgs-21_11.follows = "nixpkgs";
|
|
};
|
|
};
|
|
dogetipbot-telegram = {
|
|
url = "gitlab:nyanloutre/dogetipbot-telegram/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
ipmihddtemp = {
|
|
url = "gitlab:nyanloutre/ipmihddtemp/master";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ self, utils, nixpkgs, nixpkgs-unstable, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: utils.lib.mkFlake {
|
|
|
|
inherit self inputs;
|
|
|
|
supportedSystems = [ "x86_64-linux" ];
|
|
|
|
channels.nixpkgs.patches = [
|
|
(nixpkgs.legacyPackages."x86_64-linux".fetchpatch {
|
|
name = "jellyfin-ffmpeg.patch";
|
|
url = "https://github.com/NixOS/nixpkgs/pull/151617.patch";
|
|
sha256 = "sha256-wyHZf5diFV36h9qiSrvhpRlYGJRiXxPYqxwDEz7obvk=";
|
|
})
|
|
];
|
|
|
|
hostDefaults.modules = [
|
|
nixpkgs.nixosModules.notDetected
|
|
{
|
|
nix.generateRegistryFromInputs = true;
|
|
nix.linkInputs = true;
|
|
nix.generateNixPathFromInputs = true;
|
|
}
|
|
];
|
|
|
|
hosts.loutreos.modules = [
|
|
simple-nixos-mailserver.nixosModule
|
|
dogetipbot-telegram.nixosModule
|
|
ipmihddtemp.nixosModule
|
|
./systems/LoutreOS/configuration.nix
|
|
];
|
|
|
|
hosts.paul-fixe = {
|
|
channelName = "nixpkgs-unstable";
|
|
modules = [
|
|
./systems/PC-Fixe/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|