nixos-config/flake.nix

111 lines
3.2 KiB
Nix
Raw 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";
# transmission 4.0.5 downgrade to fix tracker bug
nixpkgs-4a3fc4cf7.url = "github:nixos/nixpkgs/4a3fc4cf736b7d2d288d7a8bf775ac8d4c0920b4";
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-10-28 22:18:03 +01:00
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
nixpkgs-4a3fc4cf7,
simple-nixos-mailserver,
dogetipbot-telegram,
ipmihddtemp
}@inputs: {
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
nixosConfigurations.loutreos = nixpkgs.lib.nixosSystem rec {
2024-05-14 09:52:39 +02:00
system = "x86_64-linux";
specialArgs = {
2024-10-28 22:18:03 +01:00
inputs = inputs;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
2024-12-12 16:50:50 +01:00
config.permittedInsecurePackages = [
"aspnetcore-runtime-6.0.36"
"aspnetcore-runtime-wrapped-6.0.36"
"dotnet-sdk-6.0.428"
"dotnet-sdk-wrapped-6.0.428"
];
};
pkgs-4a3fc4cf7 = import nixpkgs-4a3fc4cf7 {
inherit system;
};
};
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
};
}