refactor: clean up config
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -2,25 +2,34 @@
|
||||
description = "0x29a NixOS flake config";
|
||||
|
||||
inputs = {
|
||||
|
||||
# the main nix package collection
|
||||
nixpkgs = {
|
||||
url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
# home manager for dotfiles
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||||
|
||||
# nixos system config
|
||||
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {inherit inputs;};
|
||||
|
||||
modules = [
|
||||
# import host specific configs
|
||||
./hosts/default/configuration.nix
|
||||
# import host specific hardware configs
|
||||
./hosts/default/hardware-configuration.nix
|
||||
{ home-manager.users.aaron = import ./hosts/default/home.nix; }
|
||||
home-manager.nixosModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user