gross
This commit is contained in:
51
flake.nix
Normal file
51
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user