52 lines
1.7 KiB
Nix
Raw Permalink Normal View History

2024-04-01 14:21:20 +02:00
{
2024-04-06 06:12:36 +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.
'';
2024-04-01 14:21:20 +02:00
inputs = {
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-04-06 06:12:36 +02:00
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
2024-04-01 14:21:20 +02:00
};
2024-04-06 06:12:36 +02:00
outputs = { self, 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});
overlays = import ./overlays { inherit inputs; };
nixosConfigurations = {
your-host = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./hosts/your-host ];
};
};
homeConfigurations = {
"your-name@your-host" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home/your-name/your-host.nix ];
};
2024-04-01 14:21:20 +02:00
};
};
}