Created
June 9, 2021 18:48
-
-
Save jjuel/2f8a9b426981080164926be2f4190aaa to your computer and use it in GitHub Desktop.
My flake.nix for System Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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