Compare commits
2 Commits
2017-04-16
...
2017-04-27
| Author | SHA1 | Date | |
|---|---|---|---|
| ddac52530b | |||
| fe6f3136f7 |
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.graphical {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf profiles.isDesktopEnvironment {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.officeSuite && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.conception-assistee && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.cartographie && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
# TODO: ménage
|
||||
mkIf (cfg.internetSuite && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (true && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.developpement-elm && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.developpement-haskell && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.developpement-java && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.jetbrains-licensed && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.developpement-rust && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.developpement && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.edition-musique && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.edition-photo && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.edition-video && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.jeux && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
# TODO ranger le spécifique pulseaudio
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (true && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf (cfg.securitySuite && cfg.graphical) {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.officeSuite {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.conception-assistee {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.cartographie {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
# TODO: ménage
|
||||
mkIf cfg.internetSuite {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.developpement-elm {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.developpement-haskell {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.developpement-java {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.jetbrains-licensed {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.developpement-rust {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.developpement {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.edition-musique {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.edition-photo {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.edition-video {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.jeux {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.multimediaSuite {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.securitySuite {
|
||||
|
||||
3
base.nix
3
base.nix
@@ -5,12 +5,15 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
# moulinette de configuration
|
||||
./config-generator.nix
|
||||
./options.nix
|
||||
|
||||
# subfolders
|
||||
./applications/graphical/default.nix
|
||||
|
||||
@@ -6,6 +6,8 @@ let
|
||||
pfl = config.r6d.profiles;
|
||||
comp = config.r6d.computers;
|
||||
host = config.networking.hostName;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
{
|
||||
@@ -16,7 +18,6 @@ in
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
#* Utilisé pour afecter des capacités aux machines
|
||||
r6d.profiles = {
|
||||
# Domaine
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.auto-upgrade {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
# TODO: rc.lua par défaut (système)
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
# TODO: ménage
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.laptop {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,12 +5,14 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
# Utilisation d'adresse IPv6 temporaire
|
||||
|
||||
|
||||
## https://blog.linitx.com/control-privacy-addressing-ipv6-linux/
|
||||
## http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/x1092.html
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf false {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
78
options.nix
Normal file
78
options.nix
Normal file
@@ -0,0 +1,78 @@
|
||||
{ config, lib, pkgs, r6d, ... }:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkTextOption mkIf mkMerge mkOption singleton types;
|
||||
|
||||
# TODO: Anglish :)
|
||||
machineOptions = types.submodule {
|
||||
options = {
|
||||
|
||||
configuration-flags = types.submodule r6d.config-generator;
|
||||
profiles = types.submodule r6d.profiles;
|
||||
|
||||
ipAddress = mkOption {
|
||||
description = "Adresse IP";
|
||||
type = lib.types.string;
|
||||
};
|
||||
nix-serve-server = mkEnableOption "nix-serve server";
|
||||
nix-serve-client = mkEnableOption "nix-serve client";
|
||||
|
||||
tinc = {
|
||||
enable = mkEnableOption "Enable tinc service";
|
||||
connectToAddress = mkOption {
|
||||
default = "";
|
||||
example = "192.168.1.1";
|
||||
description = "External address to connect from another node.";
|
||||
type = lib.types.string;
|
||||
};
|
||||
vpnAddress = mkOption {
|
||||
example = "192.168.69.69/24";
|
||||
description = "VPN local node IP address.";
|
||||
type = lib.types.string;
|
||||
};
|
||||
vpnCidrLength = mkOption {
|
||||
default = 24;
|
||||
example = 24;
|
||||
description = "VPN netmask length.";
|
||||
type = lib.types.int;
|
||||
};
|
||||
extraConfig = mkOption {
|
||||
default = "";
|
||||
example = ''
|
||||
Mode = router
|
||||
ConnecTo = bar
|
||||
'';
|
||||
description = "Configuration supplémentaire pour tinc";
|
||||
type = lib.types.string;
|
||||
};
|
||||
};
|
||||
|
||||
windowsBoot = {
|
||||
enable = mkEnableOption "Activation du démarrage de Windows par Grub";
|
||||
drive = mkOption {
|
||||
description = "Lecteur sur lequel est présent le système Windows (au format GRUB)";
|
||||
type = lib.types.string;
|
||||
default = "hd0,1";
|
||||
};
|
||||
};
|
||||
windowsMount ={
|
||||
enable = mkEnableOption "Montage de la partition data Windows";
|
||||
device = mkOption {
|
||||
description = "Lecteur sur lequel est présent le disque de data Windows";
|
||||
type = lib.types.string;
|
||||
default = "/dev/sda2";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
r6d.machines = mkOption {
|
||||
type = types.attrsOf machineOptions;
|
||||
description = ''
|
||||
Machines directory.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.docker {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.elasticsearch {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.developpement-haskell {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
# TODO: ménage
|
||||
mkIf cfg.hydra-builder {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
|
||||
|
||||
#### https://github.com/NixOS/hydra/issues/413
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.kibana {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.locate {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
# TODO: ajouter option
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.print {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.pulseaudio {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.scanner {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf true {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.virtualbox {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf profiles.isDesktopEnvironment {
|
||||
|
||||
@@ -5,6 +5,8 @@ let
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
annuaire = config.r6d.machines;
|
||||
currentMachine = annuaire."${config.networking.hostName}";
|
||||
in
|
||||
|
||||
mkIf cfg.xmonad {
|
||||
|
||||
Reference in New Issue
Block a user