Skip to content

mmai/guix-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental guix flake

Guix 1.3.0 for NixOS 22.05

This is basically a flake adaptation of @pukkamustard's pull request for nixkpkgs

Beware, although it seems to works well on my machine (x86_64 architecture), it has not been fully tested. It is probably safer to use this method.

Below is an example of a nixos configuration using this flake.

A reboot may be necessary for the guix command to be available.

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
  inputs.guix.url = "github:mmai/guix-flake";

  outputs = { self, nixpkgs, guix }: 
  let
    system = "x86_64-linux";
  in {
    nixosConfigurations = {

      myhostname = nixpkgs.lib.nixosSystem {
        system = system;
        modules = [ 
          nixpkgs.nixosModules.notDetected
	        guix.nixosModule
          ( { config, pkgs, ... }:
            { imports = [ ./hardware-configuration.nix ];

              nix = {
                package = pkgs.nixUnstable;
                extraOptions = ''
                  experimental-features = nix-command flakes
                '';
              };

              nixpkgs.overlays = [ guix.overlay ];
              services.guix.enable = true;
            })
        ];
      };

    };
  };
}

Test on a local container

  • start the guix container on the local machine : make local
  • ssh to the vm : make root

About

A NixOS flake for Guix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors