mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
39 lines
843 B
Nix
39 lines
843 B
Nix
{
|
|
description = "Modular NixOS Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-22.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager }:
|
|
let
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
|
|
in
|
|
{
|
|
nixosConfigurations.socrates = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./sysConfig
|
|
];
|
|
};
|
|
|
|
homeConfigurations.bryan = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [
|
|
./homeConfig/home.nix
|
|
];
|
|
};
|
|
};
|
|
}
|