mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
refactor: dynamically manage most imports
This commit is contained in:
parent
6279713ab5
commit
c8089780d7
17 changed files with 171 additions and 225 deletions
|
|
@ -1,10 +1,9 @@
|
|||
{ self, inputs, outputs, lib, ... }:
|
||||
{ self, inputs, lib, ... }:
|
||||
let
|
||||
profilesPath = "${self}/profiles";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
|
||||
"${profilesPath}/nixos/server"
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -13,16 +12,14 @@ in
|
|||
{
|
||||
home-manager.users.swarsel.imports = [
|
||||
"${profilesPath}/home/server"
|
||||
] ++ (builtins.attrValues outputs.homeManagerModules);
|
||||
];
|
||||
}
|
||||
|
||||
] ++ (builtins.attrValues outputs.nixosModules) ++ (builtins.attrValues outputs.homeManagerModules);
|
||||
];
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = lib.mkForce "/root/.dotfiles/secrets/sync/secrets.yaml";
|
||||
};
|
||||
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"sync.swarsel.win" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue