2022-12-19 22:35:54 +00:00
|
|
|
{
|
2022-12-20 10:33:21 +00:00
|
|
|
description = "Laureηt's infrastructure";
|
2022-12-19 22:35:54 +00:00
|
|
|
|
|
|
|
inputs = {
|
2024-01-01 12:34:54 +00:00
|
|
|
# core stuff
|
2023-08-10 17:53:45 +00:00
|
|
|
nixpkgs = {
|
2024-01-16 16:39:00 +00:00
|
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
# url = "git+file:///home/laurent/Documents/github.com/NixOS/nixpkgs?shallow=1";
|
2023-08-10 17:53:45 +00:00
|
|
|
};
|
2023-11-29 14:40:36 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-04-23 13:38:34 +00:00
|
|
|
};
|
2024-01-01 12:34:54 +00:00
|
|
|
systems = {
|
|
|
|
url = "github:nix-systems/default-linux";
|
|
|
|
};
|
2023-04-23 13:38:34 +00:00
|
|
|
|
2024-01-01 12:34:54 +00:00
|
|
|
# modules
|
|
|
|
flake-parts = {
|
|
|
|
url = "github:hercules-ci/flake-parts";
|
|
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
|
|
};
|
2023-03-14 13:12:21 +00:00
|
|
|
agenix = {
|
2024-01-13 14:55:00 +00:00
|
|
|
url = "github:ryantm/agenix";
|
2023-08-27 13:59:18 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-13 14:55:00 +00:00
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
|
|
inputs.systems.follows = "systems";
|
2023-03-14 13:12:21 +00:00
|
|
|
};
|
2024-01-01 12:34:54 +00:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-anywhere = {
|
|
|
|
url = "github:nix-community/nixos-anywhere";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
};
|
|
|
|
treefmt-nix = {
|
|
|
|
url = "github:numtide/treefmt-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote";
|
|
|
|
};
|
|
|
|
nixos-hardware = {
|
2024-10-04 18:55:36 +00:00
|
|
|
url = "github:NixOS/nixos-hardware";
|
2024-01-01 12:34:54 +00:00
|
|
|
};
|
2024-01-12 19:39:28 +00:00
|
|
|
impermanence = {
|
|
|
|
url = "github:nix-community/impermanence";
|
|
|
|
};
|
2024-10-05 21:32:39 +00:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-05-28 21:48:36 +00:00
|
|
|
|
2024-06-15 14:39:17 +00:00
|
|
|
# home stuff
|
2023-12-30 19:14:31 +00:00
|
|
|
wallpaper = {
|
2024-10-04 20:19:03 +00:00
|
|
|
url = "https://images.unsplash.com/photo-1487856374269-301dc48a3c31?q=100&w=1920";
|
2023-12-30 19:14:31 +00:00
|
|
|
flake = false;
|
|
|
|
};
|
2024-06-15 14:39:17 +00:00
|
|
|
catppuccin = {
|
2024-06-17 21:37:27 +00:00
|
|
|
url = "github:catppuccin/nix";
|
2024-03-31 14:30:34 +00:00
|
|
|
};
|
2023-12-30 19:14:31 +00:00
|
|
|
|
2024-01-12 16:02:47 +00:00
|
|
|
# cesium nginx sites
|
2024-07-21 17:49:46 +00:00
|
|
|
website = {
|
|
|
|
url = "git+https://git.fainsin.bzh/Laurent/website";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
2024-01-01 12:34:54 +00:00
|
|
|
resume = {
|
|
|
|
url = "git+https://git.fainsin.bzh/Laurent/resume";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
projet-intelligence-artificielle-multimedia = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-intelligence-artificielle-multimedia";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
projet-modelisation-geometrique = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-modelisation-geometrique";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
projet-systemes-algorithmes-repartis = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-systemes-algorithmes-repartis";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
projet-audionumerique = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-audionumerique";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
projet-oral-japonais = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-oral-japonais";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
projet-oral-anglais = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/projet-oral-anglais";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
TP-calcul-parallele = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/TP-calcul-parallele";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
2024-01-02 11:13:22 +00:00
|
|
|
TP-reinforcement-learning = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/TP-reinforcement-learning";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
2024-09-07 13:09:28 +00:00
|
|
|
TP-traitement-audio-visuel = {
|
|
|
|
url = "git+https://git.fainsin.bzh/ENSEEIHT/TP-traitement-audio-visuel";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
};
|
2022-12-21 19:29:15 +00:00
|
|
|
|
2023-08-12 18:23:45 +00:00
|
|
|
nixConfig = {
|
2023-12-13 16:27:30 +00:00
|
|
|
extra-substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
2023-08-12 18:23:45 +00:00
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-15 15:09:44 +00:00
|
|
|
outputs = {
|
|
|
|
agenix,
|
|
|
|
flake-parts,
|
|
|
|
treefmt-nix,
|
|
|
|
...
|
|
|
|
} @ inputs:
|
|
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
2023-12-29 22:37:51 +00:00
|
|
|
systems = import inputs.systems;
|
2023-12-15 15:09:44 +00:00
|
|
|
|
|
|
|
imports = [
|
|
|
|
flake-parts.flakeModules.easyOverlay
|
|
|
|
treefmt-nix.flakeModule
|
|
|
|
];
|
|
|
|
|
|
|
|
perSystem = {
|
|
|
|
pkgs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: rec {
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
|
|
|
|
treefmt = {
|
|
|
|
projectRootFile = "flake.nix";
|
|
|
|
programs = {
|
|
|
|
alejandra.enable = true;
|
|
|
|
deadnix.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-19 14:13:24 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
packages = [
|
2023-12-15 15:09:44 +00:00
|
|
|
formatter # defined above
|
2023-05-16 19:10:41 +00:00
|
|
|
pkgs.git # version control
|
2023-12-31 13:33:54 +00:00
|
|
|
pkgs.sbctl # secure boot utils
|
2024-04-24 07:57:48 +00:00
|
|
|
agenix.packages.${system}.agenix # secrets
|
2023-03-19 14:13:24 +00:00
|
|
|
];
|
|
|
|
};
|
2023-12-15 15:09:44 +00:00
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
|
2023-12-15 16:02:50 +00:00
|
|
|
flake.nixosConfigurations = import ./hosts {inherit inputs;};
|
2023-12-15 15:09:44 +00:00
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
}
|