From 16c0b7ce0cf0a6286554a3bbe60c636871fb75c9 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 18 Aug 2025 15:40:09 -0400 Subject: initial commit --- flake.nix | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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; }; + }; + }; + + }; +} -- cgit v1.3.1