2024-09-16 14:13:01 +02:00
|
|
|
{
|
|
|
|
description = "Configuration Home Manager jaajesque";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
2024-11-18 09:55:20 +01:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-09-16 14:13:01 +02:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-16 14:59:29 +02:00
|
|
|
|
2024-09-26 11:49:20 +02:00
|
|
|
caddy = {
|
|
|
|
url = "github:GaspardCulis/nixos-caddy-ovh";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-20 13:36:27 +02:00
|
|
|
disko = {
|
2024-09-20 16:16:28 +02:00
|
|
|
url = "github:nix-community/disko";
|
2024-09-20 13:36:27 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-23 16:58:45 +02:00
|
|
|
deploy-rs = {
|
|
|
|
url = "github:serokell/deploy-rs";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-26 14:09:28 +02:00
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-16 14:59:29 +02:00
|
|
|
# Hyprland
|
|
|
|
hyprland = {
|
|
|
|
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
|
|
follows = "hy3/hyprland";
|
|
|
|
};
|
|
|
|
hy3 = {
|
|
|
|
url = "github:outfoxxed/hy3";
|
|
|
|
};
|
2024-09-21 13:25:01 +02:00
|
|
|
|
|
|
|
end-rs = {
|
2024-10-18 13:24:18 +02:00
|
|
|
url = "github:Dr-42/end-rs";
|
2024-09-21 13:25:01 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-01 08:44:51 +02:00
|
|
|
|
|
|
|
anyrun = {
|
|
|
|
url = "github:anyrun-org/anyrun";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
anixrun = {
|
|
|
|
url = "github:GaspardCulis/anixrun";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-11-01 20:36:25 +01:00
|
|
|
|
|
|
|
# SteamOS
|
|
|
|
jovian = {
|
|
|
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-16 14:13:01 +02:00
|
|
|
};
|
|
|
|
|
2024-09-20 09:20:19 +02:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2024-09-20 13:36:27 +02:00
|
|
|
disko,
|
2024-09-23 17:27:19 +02:00
|
|
|
deploy-rs,
|
2024-09-26 14:09:28 +02:00
|
|
|
sops-nix,
|
2024-09-20 09:20:19 +02:00
|
|
|
home-manager,
|
2024-11-01 20:36:25 +01:00
|
|
|
jovian,
|
2024-11-05 22:52:56 +01:00
|
|
|
nixos-hardware,
|
2024-09-20 09:20:19 +02:00
|
|
|
...
|
2024-09-20 16:01:22 +02:00
|
|
|
} @ inputs: let
|
2024-09-20 09:20:19 +02:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2024-11-05 22:52:56 +01:00
|
|
|
in rec {
|
2024-09-20 13:36:27 +02:00
|
|
|
nixosConfigurations = {
|
|
|
|
Zephyrus = nixpkgs.lib.nixosSystem {
|
2024-09-20 16:20:17 +02:00
|
|
|
extraArgs = {inherit inputs;};
|
2024-09-20 13:36:27 +02:00
|
|
|
modules = [
|
|
|
|
./hosts/Zephyrus
|
|
|
|
disko.nixosModules.disko
|
2024-11-18 09:55:20 +01:00
|
|
|
nixos-hardware.nixosModules.asus-zephyrus-ga503
|
2024-09-20 15:16:34 +02:00
|
|
|
home-manager.nixosModules.home-manager
|
2024-11-01 20:36:25 +01:00
|
|
|
jovian.nixosModules.jovian
|
2024-09-20 13:36:27 +02:00
|
|
|
];
|
|
|
|
};
|
2024-09-23 16:57:09 +02:00
|
|
|
|
|
|
|
OVHCloud = nixpkgs.lib.nixosSystem {
|
|
|
|
extraArgs = {inherit inputs;};
|
|
|
|
modules = [
|
|
|
|
./hosts/OVHCloud
|
|
|
|
disko.nixosModules.disko
|
2024-09-26 14:09:28 +02:00
|
|
|
sops-nix.nixosModules.sops
|
2024-09-26 10:17:09 +02:00
|
|
|
home-manager.nixosModules.home-manager
|
2024-09-23 16:57:09 +02:00
|
|
|
];
|
|
|
|
};
|
2024-11-04 14:39:20 +01:00
|
|
|
|
2024-11-05 22:52:56 +01:00
|
|
|
pi4 = nixpkgs.lib.nixosSystem {
|
2024-11-04 14:39:20 +01:00
|
|
|
extraArgs = {inherit inputs;};
|
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = [
|
2024-11-05 22:52:56 +01:00
|
|
|
./hosts/pi4
|
2024-11-05 23:40:18 +01:00
|
|
|
"${nixpkgs}/nixos/modules/profiles/minimal.nix"
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
sops-nix.nixosModules.sops
|
2024-11-04 14:39:20 +01:00
|
|
|
];
|
|
|
|
};
|
2024-09-20 13:36:27 +02:00
|
|
|
};
|
|
|
|
|
2024-09-20 15:16:34 +02:00
|
|
|
homeConfigurations = {
|
|
|
|
"gaspard" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
2024-09-16 14:13:01 +02:00
|
|
|
|
2024-09-20 16:01:22 +02:00
|
|
|
extraSpecialArgs = {inherit inputs;};
|
2024-09-20 15:16:34 +02:00
|
|
|
modules = [
|
|
|
|
./users/gaspard.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
"culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
|
2024-09-20 16:01:22 +02:00
|
|
|
extraSpecialArgs = {inherit inputs;};
|
2024-09-20 15:16:34 +02:00
|
|
|
modules = [
|
|
|
|
./users/culisg.nix
|
|
|
|
];
|
|
|
|
};
|
2024-09-16 14:13:01 +02:00
|
|
|
};
|
2024-09-20 09:12:41 +02:00
|
|
|
|
2024-11-06 00:58:57 +01:00
|
|
|
deploy.nodes = {
|
|
|
|
OVHCloud = {
|
|
|
|
hostname = "gasdev.fr";
|
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
|
|
|
sshUser = "root";
|
|
|
|
sshOpts = ["-p" "22"];
|
|
|
|
sudo = "";
|
|
|
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.OVHCloud;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
pi4 = {
|
|
|
|
hostname = "10.8.0.31";
|
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
|
|
|
sshUser = "root";
|
|
|
|
sshOpts = ["-p" "22"];
|
|
|
|
sudo = "";
|
|
|
|
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.pi4;
|
|
|
|
};
|
2024-09-23 17:27:19 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-05 22:52:56 +01:00
|
|
|
images.pi4 =
|
|
|
|
(self.nixosConfigurations.pi4.extendModules {
|
|
|
|
modules = [
|
|
|
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
|
|
|
{
|
|
|
|
disabledModules = ["profiles/base.nix"];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
})
|
|
|
|
.config
|
|
|
|
.system
|
|
|
|
.build
|
|
|
|
.sdImage;
|
|
|
|
packages.x86_64-linux.pi4-image = images.pi4;
|
|
|
|
packages.aarch64-linux.pi4-image = images.pi4;
|
|
|
|
|
2024-09-23 17:27:19 +02:00
|
|
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
|
|
|
|
2024-09-20 09:12:41 +02:00
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
2024-09-26 10:31:34 +02:00
|
|
|
packages = with pkgs; [
|
|
|
|
alejandra
|
2024-09-20 09:12:41 +02:00
|
|
|
git
|
|
|
|
helix
|
|
|
|
nil
|
2024-10-02 08:44:59 +02:00
|
|
|
pkgs.sops
|
2024-09-26 10:31:34 +02:00
|
|
|
pkgs.home-manager
|
|
|
|
pkgs.deploy-rs
|
2024-09-20 09:12:41 +02:00
|
|
|
];
|
2024-09-20 09:20:19 +02:00
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
export EDITOR=hx
|
|
|
|
'';
|
2024-09-20 09:12:41 +02:00
|
|
|
};
|
2024-09-16 14:13:01 +02:00
|
|
|
};
|
|
|
|
}
|