/ flake.nix
flake.nix
 1  {
 2    description = "Personal flake";
 3  
 4    inputs = {
 5      nixpkgs.url = "nixpkgs/nixos-25.05";
 6      home-manager.url = "github:nix-community/home-manager/release-25.05";
 7      home-manager.inputs.nixpkgs.follows = "nixpkgs";
 8      nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
 9    };
10  
11    outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }:
12      let
13        lib = nixpkgs.lib;
14        system = "x86_64-linux";
15        pkgs = nixpkgs.legacyPackages.${system};
16      in
17      {
18        nixosConfigurations = {
19          krebmachine = lib.nixosSystem {
20            inherit system;
21            modules = [ ./configuration.nix ];
22            #configuration = { nixpkgs.config.allowUnfree = true; };
23          };
24        };
25        homeConfigurations = {
26          mrkrebs = home-manager.lib.homeManagerConfiguration {
27            pkgs = import nixpkgs {
28              inherit system;
29              config.allowUnfree = true;
30            };
31            modules = [ ./home.nix ];
32          };
33        };
34      };
35  }