feat: new host homeserver
This commit is contained in:
parent
0c28afc6c5
commit
f2712b4822
4 changed files with 134 additions and 1 deletions
18
flake.nix
18
flake.nix
|
@ -3,6 +3,10 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs";
|
||||
apple-silicon = {
|
||||
url = "github:tpwrules/nixos-apple-silicon";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
|
@ -16,11 +20,12 @@
|
|||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
apple-silicon,
|
||||
flake-utils,
|
||||
home-manager,
|
||||
nur,
|
||||
...
|
||||
}:
|
||||
}@inputs:
|
||||
let
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
|
@ -29,6 +34,7 @@
|
|||
];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
overlays = [
|
||||
apple-silicon.overlays.apple-silicon-overlay
|
||||
nur.overlays.default
|
||||
];
|
||||
in
|
||||
|
@ -42,6 +48,16 @@
|
|||
./nixos/hosts/laptop/hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
homeserver = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
./nixos/common.nix
|
||||
./nixos/hosts/homeserver/default.nix
|
||||
./nixos/hosts/homeserver/hardware-configuration.nix
|
||||
apple-silicon.nixosModules.apple-silicon-support
|
||||
];
|
||||
specialArgs = inputs;
|
||||
};
|
||||
};
|
||||
homeConfigurations = nixpkgs.lib.foldl' (
|
||||
acc: system:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue