2024-08-28 15:35:11 +02:00
|
|
|
{
|
|
|
|
description = ''
|
|
|
|
For questions just DM me on X: https://twitter.com/@m3tam3re
|
|
|
|
There is also some NIXOS content on my YT channel: https://www.youtube.com/@m3tam3re
|
|
|
|
|
|
|
|
One of the best ways to learn NIXOS is to read other peoples configurations. I have personally learned a lot from Gabriel Fontes configs:
|
|
|
|
https://github.com/Misterio77/nix-starter-configs
|
|
|
|
https://github.com/Misterio77/nix-config
|
|
|
|
|
|
|
|
Please also check out the starter configs mentioned above.
|
|
|
|
'';
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-09-10 13:59:56 +02:00
|
|
|
|
2024-10-24 13:29:49 +02:00
|
|
|
colmena.url = "github:zhaofengli/colmena";
|
|
|
|
|
2024-09-23 14:30:14 +02:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
|
2024-09-17 14:28:40 +02:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-10 13:59:56 +02:00
|
|
|
dotfiles = {
|
|
|
|
url = "git+https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-08-28 15:35:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
2024-09-23 14:30:14 +02:00
|
|
|
agenix,
|
2024-08-28 15:35:11 +02:00
|
|
|
home-manager,
|
|
|
|
nixpkgs,
|
2024-10-24 13:29:49 +02:00
|
|
|
nixpkgs-stable,
|
2024-08-28 15:35:11 +02:00
|
|
|
...
|
|
|
|
} @ inputs: let
|
|
|
|
inherit (self) outputs;
|
|
|
|
systems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
|
|
in {
|
|
|
|
packages =
|
|
|
|
forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
|
|
|
|
overlays = import ./overlays {inherit inputs;};
|
2024-10-10 14:52:28 +02:00
|
|
|
homeManagerModules = import ./modules/home-manager;
|
2024-08-28 15:35:11 +02:00
|
|
|
nixosConfigurations = {
|
2024-09-03 16:07:03 +02:00
|
|
|
m3-kratos-vm = nixpkgs.lib.nixosSystem {
|
2024-08-28 15:35:11 +02:00
|
|
|
specialArgs = {inherit inputs outputs;};
|
2024-09-17 14:28:40 +02:00
|
|
|
modules = [
|
|
|
|
./hosts/m3-kratos
|
|
|
|
inputs.disko.nixosModules.disko
|
2024-09-23 14:30:14 +02:00
|
|
|
agenix.nixosModules.default
|
2024-09-17 14:28:40 +02:00
|
|
|
];
|
2024-08-28 15:35:11 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
homeConfigurations = {
|
2024-09-03 16:07:03 +02:00
|
|
|
"m3tam3re@m3-kratos-vm" = home-manager.lib.homeManagerConfiguration {
|
2024-08-28 15:35:11 +02:00
|
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
|
|
modules = [./home/m3tam3re/m3tam3re.nix];
|
|
|
|
};
|
|
|
|
};
|
2024-10-24 13:29:49 +02:00
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
};
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
};
|
|
|
|
m3-kratos-vm = {
|
|
|
|
deployment = {
|
|
|
|
targetHost = "m3-kratos-vm";
|
|
|
|
targetUser = "m3tam3re";
|
|
|
|
tags = ["vm"];
|
|
|
|
};
|
|
|
|
imports = [
|
|
|
|
./hosts/m3-kratos
|
|
|
|
inputs.disko.nixosModules.disko
|
|
|
|
agenix.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-08-28 15:35:11 +02:00
|
|
|
};
|
|
|
|
}
|