diff options
| author | Andrew <admonty1@protonmail.com> | 2025-08-18 15:40:09 -0400 |
|---|---|---|
| committer | Andrew <admonty1@protonmail.com> | 2025-08-18 15:40:09 -0400 |
| commit | 16c0b7ce0cf0a6286554a3bbe60c636871fb75c9 (patch) | |
| tree | ef38bd560f9c08121c4c567997a22359c22b7582 /flake.nix | |
| download | nixos-16c0b7ce0cf0a6286554a3bbe60c636871fb75c9.tar.gz nixos-16c0b7ce0cf0a6286554a3bbe60c636871fb75c9.tar.bz2 nixos-16c0b7ce0cf0a6286554a3bbe60c636871fb75c9.zip | |
initial commit
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 51 |
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; }; + }; + }; + + }; +} |
