From 4f3efae46a91aae61e3d0d979670d388902d33a9 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Sun, 12 May 2024 11:33:54 -0300 Subject: update stuff to make new framework laptop work. --- flake.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index e42b86d..0ea81e5 100644 --- a/flake.nix +++ b/flake.nix @@ -35,16 +35,14 @@ url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; }; - mixrank.url = "git+ssh://git@gitlab.com/mixrank/mixrank?ref=2024-05-06-hosts-in-nix"; + #mixrank.url = "git+ssh://git@gitlab.com/mixrank/mixrank?ref=2024-05-06-hosts-in-nix"; }; - outputs = { self, nixpkgs, home-manager, agenix, mixrank, ... } @ inputs : + outputs = { self, nixpkgs, home-manager, agenix, ... } @ inputs : let + inherit (builtins) listToAttrs readDir attrNames; system = "x86_64-linux"; - hosts = [ - "hanekawa" # notebook - "kunagisa" # workstation - ]; + hosts = attrNames (readDir ./hosts); defaultNixosSystem = host: nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs; }; @@ -53,11 +51,11 @@ ./users/leonardo.nix home-manager.nixosModules.home-manager agenix.nixosModules.default - mixrank.nixosModules.${system}.dev-machine + # mixrank.nixosModules.${system}.dev-machine ]; }; in { - nixosConfigurations = builtins.listToAttrs + nixosConfigurations = listToAttrs (map (host: {name = host; value = defaultNixosSystem host; }) hosts); }; } -- cgit v1.2.3