diff options
| author | Shubham Saini <me@ubh.sh> | 2023-09-25 10:25:31 +0000 |
|---|---|---|
| committer | Shubham Saini <me@ubh.sh> | 2023-09-25 10:25:31 +0000 |
| commit | dad139cd5b4d575d29aa5b3ace3003fc51332c10 (patch) | |
| tree | a5df9e48bf3d890d242fe0876a858219803ca6a1 /flake.nix | |
init
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..7f3d0b9 --- /dev/null +++ b/flake.nix | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | { | ||
| 2 | description = "My nix config"; | ||
| 3 | inputs = { | ||
| 4 | nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; | ||
| 5 | |||
| 6 | home-manager = { | ||
| 7 | url = "github:nix-community/home-manager/release-23.05"; | ||
| 8 | inputs.nixpkgs.follows = "nixpkgs"; | ||
| 9 | }; | ||
| 10 | }; | ||
| 11 | |||
| 12 | outputs = { self, nixpkgs, home-manager, ... }: { | ||
| 13 | nixosConfigurations = { | ||
| 14 | oracle = nixpkgs.lib.nixosSystem { | ||
| 15 | system = "x86_64-linux"; | ||
| 16 | modules = [ | ||
| 17 | { | ||
| 18 | imports = [ ./hosts/oracle/configuration.nix ]; | ||
| 19 | } | ||
| 20 | home-manager.nixosModules.home-manager | ||
| 21 | { | ||
| 22 | home-manager.useGlobalPkgs = true; | ||
| 23 | home-manager.useUserPackages = true; | ||
| 24 | home-manager.users.shubh = { | ||
| 25 | imports = [ ./home.nix ]; | ||
| 26 | }; | ||
| 27 | } | ||
| 28 | ]; | ||
| 29 | }; | ||
| 30 | }; | ||
| 31 | }; | ||
| 32 | } | ||
