mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: move all darwin configuration to darwinModules
This commit is contained in:
parent
7b8c2bcfcc
commit
ceff366d15
3 changed files with 18 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
flake.darwinModules.commonModules =
|
||||
{ lib, modulesFromDir, ... }:
|
||||
|
||||
let
|
||||
commonModules =
|
||||
{ pkgs, hostname, ... }:
|
||||
{
|
||||
services.nix-daemon.enable = true;
|
||||
|
|
@ -23,4 +25,17 @@
|
|||
# https://github.com/nix-community/home-manager/issues/4026
|
||||
users.users."leana".home = "/Users/leana";
|
||||
};
|
||||
|
||||
# per host configuration
|
||||
named = lib.mapAttrs' (name: value: {
|
||||
name = "named-" + name;
|
||||
inherit value;
|
||||
}) (modulesFromDir ./named);
|
||||
in
|
||||
|
||||
{
|
||||
flake.darwinModules = lib.mergeAttrsList [
|
||||
{ inherit commonModules; }
|
||||
named
|
||||
];
|
||||
}
|
||||
|
|
|
|||
10
nix/darwinModules/named/bismuth/default.nix
Normal file
10
nix/darwinModules/named/bismuth/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.vim
|
||||
pkgs.gnumake
|
||||
pkgs.gnused
|
||||
pkgs.cachix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue