init
This commit is contained in:
commit
2278bffff9
77 changed files with 1174 additions and 0 deletions
7
Modules/System/Application/Gaming/Steam/default.nix
Normal file
7
Modules/System/Application/Gaming/Steam/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./steam.nix
|
||||
];
|
||||
}
|
||||
20
Modules/System/Application/Gaming/Steam/steam.nix
Normal file
20
Modules/System/Application/Gaming/Steam/steam.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.steam;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.steam = {
|
||||
enable = lib.mkEnableOption "Enable steam (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.steam;
|
||||
description = "Package to install for steam.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
7
Modules/System/Application/Gaming/default.nix
Normal file
7
Modules/System/Application/Gaming/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./Steam
|
||||
];
|
||||
}
|
||||
20
Modules/System/Application/Grub/all-grub.nix
Normal file
20
Modules/System/Application/Grub/all-grub.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.all-grub;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.all-grub = {
|
||||
enable = lib.mkEnableOption "Enable all-grub (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.all-grub;
|
||||
description = "Package to install for all-grub.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
8
Modules/System/Application/Grub/default.nix
Normal file
8
Modules/System/Application/Grub/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./all-grub.nix
|
||||
./minegrub.nix
|
||||
];
|
||||
}
|
||||
20
Modules/System/Application/Grub/minegrub.nix
Normal file
20
Modules/System/Application/Grub/minegrub.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.minegrub;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.minegrub = {
|
||||
enable = lib.mkEnableOption "Enable minegrub (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.minegrub;
|
||||
description = "Package to install for minegrub.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./flatpak.nix
|
||||
./wireshark.nix
|
||||
];
|
||||
}
|
||||
20
Modules/System/Application/Special-Applications/flatpak.nix
Normal file
20
Modules/System/Application/Special-Applications/flatpak.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.flatpak;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.flatpak = {
|
||||
enable = lib.mkEnableOption "Enable flatpak (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.flatpak;
|
||||
description = "Package to install for flatpak.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.wireshark;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.wireshark = {
|
||||
enable = lib.mkEnableOption "Enable wireshark (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.wireshark;
|
||||
description = "Package to install for wireshark.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
10
Modules/System/Application/default.nix
Normal file
10
Modules/System/Application/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./cli
|
||||
./Gaming
|
||||
./Grub
|
||||
./Special-Applications
|
||||
];
|
||||
}
|
||||
7
Modules/System/Desktops/KDE/default.nix
Normal file
7
Modules/System/Desktops/KDE/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./kde.nix
|
||||
];
|
||||
}
|
||||
20
Modules/System/Desktops/KDE/kde.nix
Normal file
20
Modules/System/Desktops/KDE/kde.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.kde;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.kde = {
|
||||
enable = lib.mkEnableOption "Enable kde (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.kde;
|
||||
description = "Package to install for kde.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
7
Modules/System/Desktops/default.nix
Normal file
7
Modules/System/Desktops/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./KDE
|
||||
];
|
||||
}
|
||||
20
Modules/System/Programming-Tools/c-compiler.nix
Normal file
20
Modules/System/Programming-Tools/c-compiler.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.c-compiler;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.c-compiler = {
|
||||
enable = lib.mkEnableOption "Enable c-compiler (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.c-compiler;
|
||||
description = "Package to install for c-compiler.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
11
Modules/System/Programming-Tools/default.nix
Normal file
11
Modules/System/Programming-Tools/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./c-compiler.nix
|
||||
./go.nix
|
||||
./lua.nix
|
||||
./python.nix
|
||||
./rust.nix
|
||||
];
|
||||
}
|
||||
20
Modules/System/Programming-Tools/go.nix
Normal file
20
Modules/System/Programming-Tools/go.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.go;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.go = {
|
||||
enable = lib.mkEnableOption "Enable go (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.go;
|
||||
description = "Package to install for go.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
20
Modules/System/Programming-Tools/lua.nix
Normal file
20
Modules/System/Programming-Tools/lua.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.lua;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.lua = {
|
||||
enable = lib.mkEnableOption "Enable lua (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.lua;
|
||||
description = "Package to install for lua.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
20
Modules/System/Programming-Tools/python.nix
Normal file
20
Modules/System/Programming-Tools/python.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.python;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.python = {
|
||||
enable = lib.mkEnableOption "Enable python (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.python;
|
||||
description = "Package to install for python.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
20
Modules/System/Programming-Tools/rust.nix
Normal file
20
Modules/System/Programming-Tools/rust.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.system.rust;
|
||||
in
|
||||
{
|
||||
options.nyx-module.system.rust = {
|
||||
enable = lib.mkEnableOption "Enable rust (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.rust;
|
||||
description = "Package to install for rust.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
9
Modules/System/default.nix
Normal file
9
Modules/System/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./Application
|
||||
./Desktops
|
||||
./Programming-Tools
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue