2024-10-20 00:30:58 +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";
|
2025-01-13 09:13:01 +01:00
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
|
2025-01-28 09:57:26 +01:00
|
|
|
nixpkgs-d016996.url = "github:nixos/nixpkgs/d0169965cf1ce1cd68e50a63eabff7c8b8959743";
|
2024-11-07 10:50:13 +01:00
|
|
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
2024-10-20 00:30:58 +02:00
|
|
|
|
2024-11-14 12:17:43 +01:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
|
2024-11-16 19:58:59 +01:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-11-07 13:35:17 +01:00
|
|
|
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
2024-12-06 10:16:17 +01:00
|
|
|
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
|
2024-11-07 13:35:17 +01:00
|
|
|
|
2024-10-20 00:30:58 +02:00
|
|
|
dotfiles = {
|
|
|
|
url = "git+https://code.m3tam3re.com/m3tam3re/dotfiles.git";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
2024-11-14 12:17:43 +01:00
|
|
|
agenix,
|
2024-10-20 00:30:58 +02:00
|
|
|
dotfiles,
|
|
|
|
home-manager,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
} @ 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});
|
2024-11-07 10:50:13 +01:00
|
|
|
overlays = import ./overlays {inherit inputs outputs;};
|
2024-10-20 00:30:58 +02:00
|
|
|
homeManagerModules = import ./modules/home-manager;
|
|
|
|
nixosConfigurations = {
|
2024-12-06 07:16:50 +01:00
|
|
|
m3-ares = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs outputs;
|
|
|
|
hostname = "m3-ares";
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
./hosts/m3-ares
|
|
|
|
agenix.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
2025-01-15 18:19:03 +01:00
|
|
|
m3-atlas = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/m3-atlas
|
|
|
|
inputs.disko.nixosModules.disko
|
|
|
|
agenix.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
2024-10-20 00:30:58 +02:00
|
|
|
m3-kratos = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs outputs;
|
|
|
|
hostname = "m3-kratos";
|
|
|
|
};
|
2024-11-14 12:17:43 +01:00
|
|
|
modules = [
|
|
|
|
./hosts/m3-kratos
|
|
|
|
agenix.nixosModules.default
|
|
|
|
];
|
2024-10-20 00:30:58 +02:00
|
|
|
};
|
2024-11-16 19:58:59 +01:00
|
|
|
m3-helios = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs outputs;};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/m3-helios
|
|
|
|
inputs.disko.nixosModules.disko
|
|
|
|
agenix.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
2024-10-20 00:30:58 +02:00
|
|
|
};
|
|
|
|
homeConfigurations = {
|
2024-12-06 07:16:50 +01:00
|
|
|
"m3tam3re@m3-ares" = home-manager.lib.homeManagerConfiguration {
|
2024-10-20 00:30:58 +02:00
|
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs outputs;
|
2024-12-06 07:16:50 +01:00
|
|
|
hostname = "m3-ares";
|
2024-10-20 00:30:58 +02:00
|
|
|
};
|
2024-12-06 07:16:50 +01:00
|
|
|
modules = [./home/m3tam3re/m3tam3re-ares.nix];
|
2024-10-20 00:30:58 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|