Skip to content

Instantly share code, notes, and snippets.

@jjuel
Created June 9, 2021 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjuel/2f8a9b426981080164926be2f4190aaa to your computer and use it in GitHub Desktop.
Save jjuel/2f8a9b426981080164926be2f4190aaa to your computer and use it in GitHub Desktop.
My flake.nix for System Configuration
description = "JSJ's System Config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.05";
home-manager.url = "github:nix-community/home-manager/release-21.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
nixos = lib.nixosSystem {
inherit system;
modules = [
./system/configuration.nix
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment