summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..c7ccd06
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,51 @@
+{
+ description = "Skullhead's Flake";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ stylix = {
+ url = "github:nix-community/stylix";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs =
+ {
+ self,
+ nixpkgs,
+ home-manager,
+ stylix,
+ ...
+ }@inputs:
+ let
+ lib = nixpkgs.lib;
+ system = "x86_64-linux";
+ pkgs = import nixpkgs {
+ inherit system;
+ config.allowUnfree = true;
+ };
+ in
+ {
+ nixosConfigurations = {
+ home = lib.nixosSystem {
+ inherit system;
+ modules = [ ./configuration.nix ];
+ };
+ };
+ homeConfigurations = {
+ andrew = home-manager.lib.homeManagerConfiguration {
+ inherit pkgs;
+ modules = [
+ stylix.homeModules.stylix
+ ./home.nix
+ ];
+ extraSpecialArgs = { inherit inputs; };
+ };
+ };
+
+ };
+}