This commit is contained in:
meml0rz
2024-11-12 00:25:04 +01:00
parent 424a595652
commit 3a49731f16

View File

@ -11,32 +11,22 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = inputs@{ nixpkgs, nixpkgs-stable, home-manager, nixvim, ... }: {
outputs = { self, nixpkgs, nixpkgs-stable, nixvim, home-manager, ... }:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
in {
nixosConfigurations = { nixosConfigurations = {
poggers = lib.nixosSystem { poggers = nixpkgs.lib.nixosSystem {
inherit system; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.users.fabian = import ./modules/home.nix; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jdoe = import ./home.nix;
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit nixvim; inherit inputs nixvim
inherit pkgs-stable;
}; };
} }
]; ];
specialArgs = {
inherit pkgs-stable;
inherit nixvim;
};
}; };
}; };
}; };