mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nixos: move shared modules to common
This commit is contained in:
parent
6a5e526566
commit
fcf6ed1dff
6 changed files with 11 additions and 13 deletions
|
|
@ -10,6 +10,14 @@ let
|
|||
commonModules =
|
||||
{ pkgs, hostname, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
self.nixosModules.home-manager
|
||||
self.nixosModules.sudo-conf
|
||||
self.nixosModules.system-nixconf
|
||||
self.nixosModules.unfree-predicate
|
||||
];
|
||||
|
||||
services.nix-daemon.enable = true;
|
||||
|
||||
networking.hostName = hostname;
|
||||
|
|
@ -36,12 +44,11 @@ let
|
|||
named = lib.mapAttrs' (name: path: {
|
||||
name = "named-" + name;
|
||||
value.imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
|
||||
self.darwinModules.commonModules
|
||||
self.nixosModules.sharedModules
|
||||
|
||||
self.nixosModules.fish-vendor-completions
|
||||
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
extraSpecialArgs.hostname = name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue