Generate flake and wire up default config

This commit is contained in:
2022-12-29 00:59:30 +00:00
commit a7f86f9935
4 changed files with 240 additions and 0 deletions

45
flake.nix Normal file
View File

@ -0,0 +1,45 @@
{
description = "NixOS/Darwin system configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
home-manager.url = "github:nix-community/home-manager/release-22.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }: {
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
homeManagerConfigurations = {
jordan = home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
username = "jordan";
homeDirectory = "/home/jordan";
configuration = {
imports = ]
./users/jordan/home.nix
];
};
};
};
nixosConfigurations = {
atlas = lib.nixosSystem {
inherit system;
modules = [
./system/configuration.nix
];
};
};
};
};
}