This commit is contained in:
2021-10-23 17:53:31 +01:00
parent 30148a6529
commit 7ebec48d40
17 changed files with 171 additions and 596 deletions

51
flake.nix Normal file
View File

@@ -0,0 +1,51 @@
{
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
];
};
};
};
}