nixos-config/flake.nix

87 lines
2.6 KiB
Nix
Raw Permalink Normal View History

2021-10-11 10:43:57 +02:00
{
inputs = {
2024-06-08 11:21:16 +02:00
nixpkgs.url = "flake:nixpkgs/nixos-24.05";
2021-10-19 14:31:05 +02:00
nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable";
2021-11-03 19:43:27 +01:00
simple-nixos-mailserver = {
2024-06-08 11:21:16 +02:00
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
2021-12-20 08:45:45 +01:00
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
2024-06-08 11:21:16 +02:00
nixpkgs-24_05.follows = "nixpkgs";
2021-12-20 08:45:45 +01:00
};
2021-11-03 19:43:27 +01:00
};
dogetipbot-telegram = {
url = "gitlab:nyanloutre/dogetipbot-telegram/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-11-03 20:10:03 +01:00
ipmihddtemp = {
url = "gitlab:nyanloutre/ipmihddtemp/master";
inputs.nixpkgs.follows = "nixpkgs";
2021-11-03 20:10:03 +01:00
};
2021-10-11 10:43:57 +02:00
};
2024-05-14 09:52:39 +02:00
outputs = { self, nixpkgs, nixpkgs-unstable, simple-nixos-mailserver, dogetipbot-telegram, ipmihddtemp }: {
2021-11-03 21:44:09 +01:00
2024-06-09 18:24:04 +02:00
packages.x86_64-linux = (import ./pkgs nixpkgs.legacyPackages.x86_64-linux);
2024-05-14 09:52:39 +02:00
nixosConfigurations.paul-fixe = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
2021-10-14 13:49:55 +02:00
modules = [
2024-05-14 09:52:39 +02:00
nixpkgs-unstable.nixosModules.notDetected
{
nixpkgs.config.allowUnfree = true;
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
registry = {
nixpkgs.to = {
type = "path";
path = nixpkgs-unstable.legacyPackages.x86_64-linux.path;
};
};
};
}
2021-10-14 13:49:55 +02:00
./systems/PC-Fixe/configuration.nix
];
};
2024-05-14 09:52:39 +02:00
2024-05-14 10:38:08 +02:00
nixosConfigurations.loutreos = nixpkgs.lib.nixosSystem {
2024-05-14 09:52:39 +02:00
system = "x86_64-linux";
2024-05-14 10:38:08 +02:00
specialArgs = { inherit nixpkgs-unstable; };
2024-05-14 09:52:39 +02:00
modules = [
nixpkgs-unstable.nixosModules.notDetected
simple-nixos-mailserver.nixosModule
dogetipbot-telegram.nixosModule
ipmihddtemp.nixosModule
{
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
registry = {
nixpkgs.to = {
type = "path";
path = nixpkgs.legacyPackages.x86_64-linux.path;
};
};
};
2024-07-14 16:14:45 +02:00
systemd.services.watcharr = {
description = "Watcharr";
after = [ "network.target" ];
environment = {
PORT = "3005";
WATCHARR_DATA = "/var/lib/watcharr";
};
serviceConfig = {
DynamicUser = true;
StateDirectory = "watcharr";
ExecStart = "${self.packages.x86_64-linux.watcharr}/bin/Watcharr";
PrivateTmp = true;
};
wantedBy = [ "multi-user.target" ];
};
2024-05-14 09:52:39 +02:00
}
./systems/LoutreOS/configuration.nix
];
};
2021-10-11 10:43:57 +02:00
};
}