mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-03-13 14:28:12 +01:00
hosts: add server
Usage: nix build .#nixosConfigurations.server.config.system.build.digitalOceanImage
This commit is contained in:
parent
4f1cde5571
commit
c9fe3ee590
@ -95,6 +95,12 @@
|
||||
specialArgs.nix-config = self;
|
||||
modules = listFilesRecursive ./hosts/iso;
|
||||
};
|
||||
|
||||
server = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs.nix-config = self;
|
||||
modules = listFilesRecursive ./hosts/server;
|
||||
};
|
||||
};
|
||||
|
||||
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
||||
|
14
hosts/server/configuration.nix
Normal file
14
hosts/server/configuration.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/digital-ocean-image.nix")
|
||||
];
|
||||
|
||||
environment.systemPackages = [ pkgs.neovim ];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user