blob: d4c3af5f7d1e84ac8927922f97c070b35e347a1d [file] [log] [blame]
Giorgi Lekveishvilib455d952024-09-03 23:40:53 +04001{
2 description = "Your new nix config";
3
4 inputs = {
5 # Nixpkgs
6 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
7
8 # Home manager
9 home-manager.url = "github:nix-community/home-manager/release-24.05";
10 home-manager.inputs.nixpkgs.follows = "nixpkgs";
11 };
12
13 outputs = {
14 self,
15 nixpkgs,
16 home-manager,
17 ...
18 } @ inputs: let
19 inherit (self) outputs;
20 in {
21 # NixOS configuration entrypoint
22 # Available through 'nixos-rebuild --flake .#your-hostname'
23 nixosConfigurations = {
24 # FIXME replace with your hostname
25 dodo-nx1 = nixpkgs.lib.nixosSystem {
26 specialArgs = {inherit inputs outputs;};
27 # > Our main nixos configuration file <
28 modules = [./nixos/configuration.nix];
29 };
30 };
31
32 # Standalone home-manager configuration entrypoint
33 # Available through 'home-manager --flake .#your-username@your-hostname'
34 homeConfigurations = {
35 # FIXME replace with your username@hostname
36 "gio@dodo-nx1" = home-manager.lib.homeManagerConfiguration {
37 pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
38 extraSpecialArgs = {inherit inputs outputs;};
39 # > Our main home-manager configuration file <
40 modules = [./home-manager/home.nix];
41 };
42 };
43 };
44}