mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Format code
This commit is contained in:
31
flake.nix
31
flake.nix
@@ -32,21 +32,22 @@
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||
nixosConfigurations = let
|
||||
mkSystem = entrypoint: nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
entrypoint
|
||||
{ nix.registry.nixpkgs.flake = nixpkgs; }
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
mkSystem = entrypoint:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
entrypoint
|
||||
{ nix.registry.nixpkgs.flake = nixpkgs; }
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
in {
|
||||
pc = mkSystem ./nixos-configurations/pc;
|
||||
laptop = mkSystem ./nixos-configurations/laptop;
|
||||
|
||||
Reference in New Issue
Block a user