52 lines
976 B
Nix
52 lines
976 B
Nix
{
|
|
description = "My System Configs";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
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 {
|
|
homeConfigurations = {
|
|
daniel = home-manager.lib.homeManagerConfiguration {
|
|
inherit system pkgs;
|
|
|
|
username = "daniel";
|
|
homeDirectory = "/home/daniel";
|
|
configuration = {
|
|
imports = [
|
|
./user/dingbox/home.nix
|
|
];
|
|
};
|
|
stateVersion = "21.05";
|
|
};
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
dingbox = lib.nixosSystem {
|
|
inherit system;
|
|
|
|
modules = [
|
|
./hosts/dingbox/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|