Simplify input arguments to outputs
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -18,18 +18,17 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs2211, nixos-hardware, home-manager, agenix, ... }: {
|
outputs = { self, ... } @inputs : {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
pinwheel = let
|
pinwheel = let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in nixpkgs.lib.nixosSystem {
|
in inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
specialArgs = { inherit inputs system; };
|
||||||
specialArgs = { inherit system agenix; };
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/pinwheel/configuration.nix
|
./hosts/pinwheel/configuration.nix
|
||||||
agenix.nixosModules.default
|
inputs.agenix.nixosModules.default
|
||||||
nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
|
||||||
home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
@@ -38,7 +37,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
sombrero = nixpkgs2211.lib.nixosSystem {
|
sombrero = inputs.nixpkgs2211.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
modules = [ ./hosts/sombrero/configuration.nix ];
|
modules = [ ./hosts/sombrero/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ system, config, pkgs, agenix, ... }:
|
{ inputs, system, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
agenix.packages."${system}".default
|
inputs.agenix.packages."${system}".default
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|||||||
Reference in New Issue
Block a user