{ description = "Nixos config flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # Home-Manager home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; # Stylix - system-wide colorscheming and typography for NixOS # See: https://github.com/danth/stylix stylix.url = "github:danth/stylix"; # NixOS profiles to optimize settings for different hardware nixos-hardware.url = "github:NixOS/nixos-hardware/master"; }; outputs = { self, nixpkgs, home-manager, stylix, ... }@inputs: { nixosConfigurations = { # Test host in VirtualBox vbox-test = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; modules = [ ./hosts/vbox-test/configuration.nix inputs.home-manager.nixosModules.default ]; }; # Lenovo Thinkpad P14s Gen 2 p14s = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; modules = [ stylix.nixosModules.stylix ./hosts/p14s/configuration.nix # Model picked up from # https://github.com/NixOS/nixos-hardware/blob/master/flake.nix nixos-hardware.nixosModules.lenovo-thinkpad-p14s-amd-gen2 # Home-Manager #inputs.home-manager.nixosModules.default home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.jan = import ./hosts/p14s/home.nix; } ]; }; # Other hosts }; }; }