Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
/ darp6 Public archive

Nix flake for bare setup of a System76 Darter Pro laptop

Notifications You must be signed in to change notification settings

mwilsoncoding/darp6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

darp6

Nix flake for bare setup of a System76 Darter Pro laptop

How to use

Write your own system flake that lists this repository as an input:

{
  description = "My laptop";

  inputs.darp6.url = github:mwilsoncoding/darp6/latest-sha-0000000000;

  inputs.nixpkgs.url = ...; # your preference

  outputs = { self, nixpkgs, darp6 }: {

    nixosConfigurations.nixtop = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        nixpkgs.nixosModules.notDetected
        darp6.nixosModules.system76AcpiDkms
        darp6.nixosModules.system76IoDkms
        darp6.nixosModules.compatibleKernel
        ({pkgs, lib, ...}: {
          system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;

          imports = [ ./hardware-configuration.nix ];

          boot.loader.systemd-boot.enable = true;
          boot.loader.efi.canTouchEfiVariables = true;

          nix = {
            package = pkgs.nixFlakes;
            extraOptions = ''
              experimental-features = nix-command flakes
            '';
            registry.nixpkgs.flake = nixpkgs;
          };

          ...

        })
      ];
    };
  };
}

About

Nix flake for bare setup of a System76 Darter Pro laptop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages