mirror of
https://github.com/callumio/nixfiles.git
synced 2026-08-06 20:49:17 +01:00
rename tree to modules
This commit is contained in:
parent
cc0d8d78d3
commit
7404996570
13 changed files with 72 additions and 51 deletions
|
|
@ -39,7 +39,7 @@
|
|||
inputs.flake-parts.flakeModules.easyOverlay
|
||||
inputs.pre-commit-hooks.flakeModule
|
||||
inputs.treefmt-nix.flakeModule
|
||||
(inputs.import-tree ./tree)
|
||||
(inputs.import-tree ./modules)
|
||||
];
|
||||
|
||||
systems = import inputs.systems;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{...}: {
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.boot = {
|
||||
boot = {
|
||||
loader = {
|
||||
|
|
@ -1,13 +1,17 @@
|
|||
{...}: {
|
||||
flake.nixosModules.deploy = {
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.deploy =
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
with lib;
|
||||
let
|
||||
cfg = config.c.services.remote-deploy;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.c.services.remote-deploy = {
|
||||
enable = mkEnableOption "Enable remote deployment with nixinate.";
|
||||
host = mkOption {
|
||||
|
|
@ -50,8 +54,7 @@
|
|||
config = mkIf cfg.enable {
|
||||
_module.args = {
|
||||
nixinate = {
|
||||
inherit
|
||||
(cfg)
|
||||
inherit (cfg)
|
||||
host
|
||||
buildOn
|
||||
port
|
||||
8
modules/gpg-pinentry-wayland.nix
Normal file
8
modules/gpg-pinentry-wayland.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.gpg-pinentry-wayland =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.dbus.packages = [ pkgs.gcr ];
|
||||
};
|
||||
}
|
||||
9
modules/hm.nix
Normal file
9
modules/hm.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.hm =
|
||||
{ ... }:
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
};
|
||||
}
|
||||
10
modules/keys.nix
Normal file
10
modules/keys.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.keys =
|
||||
{ lib, ... }:
|
||||
{
|
||||
options.keys = lib.mkOption {
|
||||
default = import ../lib/keys.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
{inputs, ...}: {
|
||||
{ inputs, ... }:
|
||||
{
|
||||
flake.nixosModules.nix-config = {
|
||||
nix = {
|
||||
registry.nixpkgs.flake = inputs.nixpkgs;
|
||||
8
modules/secrets.nix
Normal file
8
modules/secrets.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.secrets =
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ../secrets/secrets-configuration.nix ];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,12 +1,16 @@
|
|||
{...}: {
|
||||
flake.nixosModules.tailscale = {
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.tailscale =
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
with lib;
|
||||
let
|
||||
cfg = config.c.services.mesh;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.c.services.mesh = {
|
||||
enable = mkEnableOption "Enable tailscale daemon.";
|
||||
exitNode = mkOption {
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{...}: {
|
||||
flake.nixosModules.gpg-pinentry-wayland = {pkgs, ...}: {
|
||||
services.dbus.packages = [pkgs.gcr];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
{...}: {
|
||||
flake.nixosModules.hm = {...}: {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{...}: {
|
||||
flake.nixosModules.keys = {lib, ...}: {
|
||||
options.keys = lib.mkOption {
|
||||
default = import ../lib/keys.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{...}: {
|
||||
flake.nixosModules.secrets = {...}: {
|
||||
imports = [../secrets/secrets-configuration.nix];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue