nixos-config/flake.nix

44 lines
1 KiB
Nix
Raw Normal View History

2023-05-08 04:17:40 +05:30
{
description = "No, I don't understand how this works, so please don't ask";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-05-11 08:02:06 +05:30
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
2023-05-13 17:56:54 +05:30
stylix.url = "github:danth/stylix";
2023-05-08 04:17:40 +05:30
};
2023-05-13 17:56:54 +05:30
outputs = { self, nixpkgs, home-manager, nix-doom-emacs, stylix, ... }:
2023-05-08 04:17:40 +05:30
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
homeConfigurations = {
emmet = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./user/home.nix
2023-05-11 08:02:06 +05:30
nix-doom-emacs.hmModule
2023-05-13 17:56:54 +05:30
stylix.homeManagerModules.stylix
];
};
};
2023-05-08 04:17:40 +05:30
nixosConfigurations = {
snowfire = lib.nixosSystem {
inherit system;
modules = [
./system/configuration.nix
];
};
};
};
}