{ description = "My Nixos system configuration"; inputs = { nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, home-manager, ... } @ attrs: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages."${system}"; in { nixosConfigurations.thinklappi = nixpkgs.lib.nixosSystem { inherit system; specialArgs = attrs; modules = [ ./hosts/thinklappi home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.sils = import ./users/sils; home-manager.extraSpecialArgs = {inherit nixpkgs system;}; } ]; }; devShells."${system}" = { default = pkgs.mkShell { packages = with pkgs; [ nil statix alejandra ]; }; }; }; }