{ description = "Nixos config flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; home-manager.url = "github:nix-community/home-manager/release-24.11"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; sops-nix.url = "github:Mic92/sops-nix"; sops-nix.inputs.nixpkgs.follows = "nixpkgs"; musnix.url = "github:musnix/musnix"; musnix.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { nixpkgs, nixpkgs-unstable, home-manager, sops-nix, musnix, ... } @ inputs: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; overlays = [ # make unstable packages available via overlay (final: prev: { unstable = nixpkgs-unstable.legacyPackages.${prev.system}; }) ]; config = { allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "discord" "samsung-UnifiedLinuxDriver" "steam" "steam-unwrapped" "stm32cubemx" ]; }; }; in { nixosConfigurations."MaxNixosLaptop" = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs pkgs system; }; modules = [ ./hosts/MaxNixosLaptop/configuration.nix sops-nix.nixosModules.sops home-manager.nixosModules.default { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; } musnix.nixosModules.musnix ]; }; }; }