From 3925cf2bb704645de9d00d2131ddb08712d4f620 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Mon, 3 Nov 2025 22:16:55 +0100 Subject: primo commit --- flake.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..5d6a616 --- /dev/null +++ b/flake.nix @@ -0,0 +1,37 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + nixos-hardware.url = "github:nixos/nixos-hardware/master"; + home-manager.url = "github:nix-community/home-manager/master"; + + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = {nixpkgs, home-manager, ...} @ inputs: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + nixosConfigurations."hermes" = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs system; }; + modules = [ ./hermes/nixos ]; + }; + + nixosConfigurations."odino" = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs system; }; + modules = [ ./odino/nixos ]; + }; + + homeConfigurations."hermes" = home-manager.lib.homeManagerConfiguration { + extraSpecialArgs = { inherit inputs; }; + pkgs = pkgs; + modules = [ ./hermes/home-manager ]; + }; + + homeConfigurations."odino" = home-manager.lib.homeManagerConfiguration { + extraSpecialArgs = { inherit inputs; }; + pkgs = pkgs; + modules = [ ./odino/home-manager ]; + }; + }; +} -- cgit v1.3