Skip to content

Commit

Permalink
Add server config within the flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 12, 2023
1 parent 9057208 commit 1b1068b
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 3 deletions.
70 changes: 69 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
hosts.url = "github:StevenBlack/hosts";
nixos-hardware.url = "github:NixOS/nixos-hardware";

onelink.url = "github:Sigmanificient/1l.is";

nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

Expand All @@ -23,6 +25,7 @@
, nix-index-database
, nixos-hardware
, home-manager
, onelink
, hosts
, ecsls
, ...
Expand Down Expand Up @@ -86,6 +89,20 @@
./config/sigmachine.nix
];
};

Server = nixpkgs.lib.nixosSystem {
inherit system;

modules = [
hosts.nixosModule
{
services.onelink.enable = true;
}

./server/configuration.nix
./config/hardware-configuration.nix
];
};
};
};
}
2 changes: 0 additions & 2 deletions server/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{ ... }: {
imports = [
./hardware-configuration.nix


];

boot.cleanTmpDir = true;
Expand Down

0 comments on commit 1b1068b

Please sign in to comment.