Compare commits
2 Commits
2019-07-13
...
2020-03-15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7681f7774e | ||
|
|
fe0ea31e30 |
4
Makefile
4
Makefile
@@ -35,7 +35,7 @@ optimise:
|
||||
$(TIME) nix optimise-store
|
||||
|
||||
rebuild-build:
|
||||
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
||||
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos
|
||||
$(TIME) time nixos-rebuild build --fallback --show-trace
|
||||
|
||||
rebuild-switch:
|
||||
@@ -58,7 +58,7 @@ store-repair:
|
||||
$(TIME) nix-store --verify --check-contents --repair
|
||||
|
||||
upgrade:
|
||||
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
||||
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos
|
||||
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
||||
|
||||
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
||||
|
||||
@@ -21,7 +21,6 @@ mkIf (flags.developpement && flags.graphical) {
|
||||
# Gestion des sources
|
||||
#gitg # interface pour utiliser git (historique, commit)
|
||||
gitstats # génère un site web statique avec des statistiques
|
||||
gitAndTools.gitFull # pour gitk
|
||||
git-cola # interface pour utiliser git (historique, commit)
|
||||
|
||||
## Visualisation & outils de diff
|
||||
|
||||
@@ -12,7 +12,7 @@ mkIf true {
|
||||
# Paquets
|
||||
environment.systemPackages = with pkgs; [
|
||||
byobu # permet de se déconnecter d'un terminal sans l'arréter
|
||||
git gitAndTools.tig gti # outil de gestion de version
|
||||
gitAndTools.gitFull gitAndTools.tig gti # outil de gestion de version
|
||||
gnumake # pour décrire les recettes de compilation
|
||||
gnupg # GPG
|
||||
htop # monitoring
|
||||
|
||||
@@ -25,7 +25,6 @@ mkIf flags.developpement {
|
||||
|
||||
# Gestion des sources
|
||||
cloc # outil pour compter les lignes de code source
|
||||
git gitAndTools.gitSVN # git et git-svn
|
||||
mercurial
|
||||
subversion
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ in
|
||||
nix.buildCores = 0;
|
||||
|
||||
# The NixOS release to be compatible with for stateful data such as databases.
|
||||
system.stateVersion = "19.03";
|
||||
system.stateVersion = "19.09";
|
||||
|
||||
# copies the NixOS configuration file (usually /etc/nixos/configuration.nix) and links it from the resulting system (getting to /run/current-system/configuration.nix)
|
||||
system.copySystemConfiguration = true;
|
||||
|
||||
14
options.nix
14
options.nix
@@ -63,7 +63,7 @@ let
|
||||
|
||||
ipAddress = mkOption {
|
||||
description = "Adresse IP.";
|
||||
type = lib.types.string;
|
||||
type = lib.types.str;
|
||||
};
|
||||
nix-serve-server = mkEnableOption "nix-serve server.";
|
||||
nix-serve-client = {
|
||||
@@ -80,18 +80,18 @@ let
|
||||
dnsFQDN = mkOption {
|
||||
example = "device.example.net.";
|
||||
description = "DNS name of host pointing to tunnel IP.";
|
||||
type = lib.types.string;
|
||||
type = lib.types.str;
|
||||
};
|
||||
connectToAddress = mkOption {
|
||||
default = "";
|
||||
example = "192.168.1.1";
|
||||
description = "External address to connect from another node.";
|
||||
type = lib.types.string;
|
||||
type = lib.types.str;
|
||||
};
|
||||
vpnAddress = mkOption {
|
||||
example = "192.168.69.69/24";
|
||||
description = "VPN local node IP address.";
|
||||
type = lib.types.string;
|
||||
type = lib.types.str;
|
||||
};
|
||||
vpnCidrLength = mkOption {
|
||||
default = 24;
|
||||
@@ -106,7 +106,7 @@ let
|
||||
ConnecTo = bar
|
||||
'';
|
||||
description = "Configuration supplémentaire pour tinc.";
|
||||
type = lib.types.string;
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -129,7 +129,7 @@ let
|
||||
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;
|
||||
type = lib.types.str;
|
||||
default = "hd0,1";
|
||||
};
|
||||
};
|
||||
@@ -137,7 +137,7 @@ let
|
||||
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;
|
||||
type = lib.types.str;
|
||||
default = "/dev/sda2";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user