diff options
author | Linnnus <[email protected]> | 2023-09-05 09:48:04 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-05 09:48:04 +0200 |
commit | 7d4ab89f1e6264e124109bf25eafaafdf1aec02a (patch) | |
tree | b6af29bfe66c231b1a71bb05c9df211afe4cf341 /flake.nix |
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e9b375b --- /dev/null +++ b/flake.nix @@ -0,0 +1,43 @@ +{ + inputs = { + nixpkgs = { + url = "github:NixOS/nixpkgs/nixos-22.11"; + }; + home-manager = { + url = "github:nix-community/home-manager/release-22.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-darwin = { + url = "github:LnL7/nix-darwin"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { nixpkgs, home-manager, nix-darwin, ... }@inputs: + { + darwinConfigurations = { + muhammed = nix-darwin.lib.darwinSystem { + inherit inputs; + system = "aarch64-darwin"; + modules = [ + { _module.args = { flakeInputs = inputs; }; } + ./hosts/muhammed/configuration.nix + home-manager.darwinModules.home-manager + ./use-cases/default.nix + ]; + }; + }; + + nixosConfigurations = { + ahmed = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + { _module.args = { inherit inputs; }; } + ./hosts/ahmed/configuration.nix + home-manager.nixosModules.home-manager + ./use-cases/default.nix + ]; + }; + }; + }; +} |