66 lines
1.9 KiB
Nix
66 lines
1.9 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "flake:nixpkgs/nixos-22.11";
|
|
nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable";
|
|
nixpkgs-photoprism.url = "github:Stunkymonkey/nixpkgs/photoprism-module-init";
|
|
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/v1.3.1";
|
|
simple-nixos-mailserver = {
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11";
|
|
inputs = {
|
|
nixpkgs.follows = "nixpkgs-unstable";
|
|
nixpkgs-22_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";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ self, utils, nixpkgs, nixpkgs-unstable, nixpkgs-photoprism, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: utils.lib.mkFlake {
|
|
|
|
inherit self inputs;
|
|
|
|
supportedSystems = [ "x86_64-linux" ];
|
|
|
|
# Patch example
|
|
|
|
# channels.nixpkgs-unstable.patches = [
|
|
# (nixpkgs-unstable.legacyPackages."x86_64-linux".fetchpatch {
|
|
# name = "electron-cash.patch";
|
|
# url = "https://github.com/NixOS/nixpkgs/pull/160607.patch";
|
|
# sha256 = nixpkgs.lib.fakeHash;
|
|
# })
|
|
# ];
|
|
|
|
hostDefaults.modules = [
|
|
nixpkgs.nixosModules.notDetected
|
|
{
|
|
nix.generateRegistryFromInputs = true;
|
|
nix.linkInputs = true;
|
|
nix.generateNixPathFromInputs = true;
|
|
}
|
|
];
|
|
|
|
hosts.loutreos.modules = [
|
|
"${nixpkgs-photoprism}/nixos/modules/services/web-apps/photoprism.nix"
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|