diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1ea7430 --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ +  description = "Nix Configuration"; + +  inputs = { +    # Nixpkgs +    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + +    # Home manager +    home-manager = { +      url = "github:nix-community/home-manager"; +      inputs.nixpkgs.follows = "nixpkgs"; +    }; +  }; + +  outputs = { self, nixpkgs, ... }@inputs: { +    # nixos-rebuild --flake .#machine +    nixosConfigurations = { +      z = nixpkgs.lib.nixosSystem { +        system = "x86_64-linux"; +        specialArgs = { inherit inputs; }; +        modules = [ +          ./machines/z/configuration.nix +          inputs.home-manager.nixosModules.default +        ]; +      }; +    }; +  }; +} | 
