init
This commit is contained in:
commit
2278bffff9
77 changed files with 1174 additions and 0 deletions
10
Modules/System/Application/cli/default.nix
Normal file
10
Modules/System/Application/cli/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./docker.nix
|
||||
./openssh.nix
|
||||
./vm.nix
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
20
Modules/System/Application/cli/docker.nix
Normal file
20
Modules/System/Application/cli/docker.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.docker;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.docker = {
|
||||
enable = lib.mkEnableOption "Enable docker (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.docker;
|
||||
description = "Package to install for docker.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
20
Modules/System/Application/cli/openssh.nix
Normal file
20
Modules/System/Application/cli/openssh.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.openssh;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.openssh = {
|
||||
enable = lib.mkEnableOption "Enable openssh (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.openssh;
|
||||
description = "Package to install for openssh.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
20
Modules/System/Application/cli/vm.nix
Normal file
20
Modules/System/Application/cli/vm.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.vm;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.vm = {
|
||||
enable = lib.mkEnableOption "Enable vm (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.vm;
|
||||
description = "Package to install for vm.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
20
Modules/System/Application/cli/zsh.nix
Normal file
20
Modules/System/Application/cli/zsh.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.zsh;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.zsh = {
|
||||
enable = lib.mkEnableOption "Enable zsh (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.zsh;
|
||||
description = "Package to install for zsh.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue