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 = {
|
2023-08-10 17:53:45 +00:00
|
|
|
nixpkgs = {
|
|
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
# url = "git+file:///home/laurent/Documents/nixpkgs?shallow=1";
|
|
|
|
};
|
2022-12-21 21:37:21 +00:00
|
|
|
|
2023-04-23 13:38:34 +00:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote";
|
2023-08-10 17:53:45 +00:00
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
2023-04-23 13:38:34 +00:00
|
|
|
};
|
|
|
|
|
2023-03-14 13:12:21 +00:00
|
|
|
agenix = {
|
|
|
|
url = "github:yaxitech/ragenix";
|
2023-08-27 13:59:18 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
2023-03-14 13:12:21 +00:00
|
|
|
};
|
|
|
|
|
2022-12-21 21:37:21 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
2023-08-27 13:59:18 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2022-12-21 21:37:21 +00:00
|
|
|
};
|
2023-05-28 13:35:16 +00:00
|
|
|
|
2023-08-27 13:59:18 +00:00
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-08-10 17:53:45 +00:00
|
|
|
|
2023-08-27 13:59:18 +00:00
|
|
|
nixos-hardware = { url = "github:nixos/nixos-hardware"; };
|
2023-05-28 21:48:36 +00:00
|
|
|
|
2023-08-27 13:59:18 +00:00
|
|
|
flake-utils = { url = "github:numtide/flake-utils"; };
|
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 = {
|
|
|
|
extra-substituters =
|
|
|
|
[ "https://nix-community.cachix.org" "https://hyprland.cachix.org" ];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-05-28 13:35:16 +00:00
|
|
|
outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager
|
2023-09-17 14:01:59 +00:00
|
|
|
, nixos-hardware, ... }@inputs:
|
2022-12-19 22:35:54 +00:00
|
|
|
|
2023-03-19 13:26:56 +00:00
|
|
|
(flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
2023-03-19 14:13:24 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
packages = [
|
2023-05-16 19:10:41 +00:00
|
|
|
pkgs.nixfmt # formatting
|
|
|
|
pkgs.git # version control
|
2023-07-04 17:08:32 +00:00
|
|
|
pkgs.update-nix-fetchgit # auto update fetchs
|
2023-05-16 19:10:41 +00:00
|
|
|
agenix.packages.${system}.ragenix # secrets
|
|
|
|
pkgs.sbctl # secure boot
|
2023-03-19 14:13:24 +00:00
|
|
|
];
|
|
|
|
};
|
2023-03-19 13:26:56 +00:00
|
|
|
})) // {
|
2022-12-19 22:35:54 +00:00
|
|
|
|
2023-05-27 16:11:03 +00:00
|
|
|
# neodymium laptop
|
|
|
|
nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-09-17 14:01:59 +00:00
|
|
|
specialArgs = inputs;
|
2023-05-27 16:11:03 +00:00
|
|
|
modules = [
|
2023-06-21 17:45:19 +00:00
|
|
|
./hosts/neodymium
|
2023-05-27 16:11:03 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
agenix.nixosModules.default
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
2023-05-28 13:35:16 +00:00
|
|
|
nixos-hardware.nixosModules.common-cpu-amd
|
|
|
|
nixos-hardware.nixosModules.common-gpu-nvidia-disable
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
2023-05-27 16:11:03 +00:00
|
|
|
];
|
|
|
|
};
|
2022-12-20 10:33:21 +00:00
|
|
|
|
2023-05-27 16:11:03 +00:00
|
|
|
# hydrogen vps
|
|
|
|
nixosConfigurations.hydrogen = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2023-06-21 17:45:19 +00:00
|
|
|
./hosts/hydrogen
|
2023-05-27 16:11:03 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
agenix.nixosModules.default
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
|
|
|
];
|
2022-12-20 10:33:21 +00:00
|
|
|
};
|
|
|
|
};
|
2022-12-19 22:35:54 +00:00
|
|
|
}
|