# vim: ts=2 { system, pkgs, nixpkgs, sysLib, yambar_cpu, yambar_memory, strip_js_comments, river_init_lesser, grades, shell-library, # external deps user_js, neovim_config, snap-sync, templates, # modules impermanence, home-manager, agenix, ... }: let homeManagerConfig = { home-manager = { useGlobalPkgs = true; useUserPackages = true; users.soispha = import ../../home-manager; extraSpecialArgs = { inherit pkgs sysLib # extra information system # bins yambar_cpu yambar_memory strip_js_comments river_init_lesser grades shell-library # external deps user_js neovim_config snap-sync # modules impermanence ; }; }; }; ageConfig = import ../../secrets; impermanenceConfig = import ../../system/impermanence; defaultModules = [ agenix.nixosModules.default ageConfig home-manager.nixosModules.home-manager homeManagerConfig impermanence.nixosModules.impermanence impermanenceConfig ]; defaultSpecialArgs = { nixpkgs-as-input = nixpkgs; inherit templates sysLib; }; in { tiamat = nixpkgs.lib.nixosSystem { inherit system pkgs; specialArgs = defaultSpecialArgs; modules = [ ../../hosts/tiamat/configuration.nix ] ++ defaultModules; }; mammun = nixpkgs.lib.nixosSystem { inherit system pkgs; specialArgs = defaultSpecialArgs; modules = [ ../../hosts/mammun/configuration.nix ] ++ defaultModules; }; lahmu = nixpkgs.lib.nixosSystem { inherit system pkgs; specialArgs = defaultSpecialArgs; modules = [ ../../hosts/lahmu/configuration.nix ] ++ defaultModules; }; spawn = nixpkgs.lib.nixosSystem { specialArgs = defaultSpecialArgs; modules = [../../hosts/spawn/configuration.nix]; }; }