Skip to content

How to export dotfiles as a flake output #7550

Closed Answered by osbm
osbm asked this question in Q&A
Discussion options

You must be logged in to vote

I found it!!!!

its actually:

ymir-dotfiles = self.nixosConfigurations.ymir.config.home-manager.users.osbm.home-files;

Here, i also overwrite each systems architecture so it is able to generate dotfiles on all architectures.

      packages = forAllSystems (system:
        let
          makeNixosConfigWithSystemOverride = configName: nixpkgs.lib.nixosSystem {
            specialArgs = { inherit inputs outputs; };
            modules = [
              ./hosts/${configName}/configuration.nix
              { nixpkgs.hostPlatform = nixpkgs.lib.mkForce system; }
            ];
          };
          dotfilesMachineNames = [ "ymir" "pochita" "tartarus" "wallfacer" ];
        in
        builtins.l…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by osbm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant