pinwheel: Set configuration-manager.system from pkgs.system

This commit is contained in:
Alexander Heldt
2023-10-23 21:43:46 +02:00
parent 3dc2ced280
commit d65a9d81dc
3 changed files with 7 additions and 6 deletions

View File

@@ -34,10 +34,9 @@
outputs = { self, ... }@inputs: { outputs = { self, ... }@inputs: {
nixosConfigurations = { nixosConfigurations = {
pinwheel = let pinwheel = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
in inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; };
specialArgs = { inherit inputs system; };
modules = [ modules = [
./hosts/pinwheel/configuration.nix ./hosts/pinwheel/configuration.nix
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default

View File

@@ -1,4 +1,4 @@
{ system, pkgs, ... }: { pkgs, ... }:
{ {
imports = imports =
[ [
@@ -72,7 +72,7 @@
config-manager = { config-manager = {
flakePath = "/home/alex/config"; flakePath = "/home/alex/config";
system=system; system=pkgs.system;
}; };
mod = { mod = {

View File

@@ -1,5 +1,7 @@
{ inputs, pkgs, lib, system, config, ...}: { inputs, pkgs, lib, config, ...}:
let let
system = config.config-manager.system;
hyprlandEnabled = config.mod.hyprland.enable; hyprlandEnabled = config.mod.hyprland.enable;
grimblast = inputs.hyprland-contrib.packages.${system}.grimblast; grimblast = inputs.hyprland-contrib.packages.${system}.grimblast;