Compare commits

..

13 Commits

Author SHA1 Message Date
6bf53d872c nso 2017-04-13 22:44:51 +02:00
78c2e17328 ajout config 2017-04-13 22:30:10 +02:00
766b28e25a nsp 2017-04-11 16:27:25 +02:00
c9e664d353 nsp 2017-04-11 16:24:00 +02:00
b51b2588de essai build iso 2017-04-11 15:53:22 +02:00
Yves Dubromelle
42db758638 munin: postfix commande ppour donner les droits de lecture à munin 2017-04-11 15:14:41 +02:00
System administrator
07d8924ecd gparted: coquille, était "parted" 2017-04-11 13:46:29 +02:00
System administrator
2dc04d849b encore une modification de port pour hoogle 2017-04-11 13:46:29 +02:00
184de980a5 munin: EXPERIMENTAL est membre du groupe postfix pour grapher les mails 2017-04-11 01:08:30 +02:00
System administrator
f16e4d8934 changement du port de hoogle (conflit au boulot) 2017-04-06 08:55:26 +02:00
e204ffb841 ajout d'un client pour la sauvegarde nuagique 2017-04-01 09:26:09 +02:00
8c0a18a55b awesome: ajout clementine sur maj + F6 2017-04-01 07:51:28 +02:00
fd834eb186 munin: update mail address 2017-03-30 00:08:18 +02:00
9 changed files with 65 additions and 5 deletions

View File

@@ -41,6 +41,9 @@ download-sources:
# https://nixos.org/wiki/Download_all_sources # https://nixos.org/wiki/Download_all_sources
nix-store -r $$(grep -l outputHash $$(nix-store -qR $$(nix-instantiate '<nixpkgs>' -A geeqie) | grep '.drv$$')) nix-store -r $$(grep -l outputHash $$(nix-store -qR $$(nix-instantiate '<nixpkgs>' -A geeqie) | grep '.drv$$'))
build-iso:
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=/etc/nixos/base/iso-image/livecd-minimal.nix
##--------- Commandes spécifiques pour GIT ##--------- Commandes spécifiques pour GIT
push: submodules-push push: submodules-push

View File

@@ -12,7 +12,7 @@ mkIf cfg.graphical {
# Paquets # Paquets
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Gestion de FS # Gestion de FS
parted # Gestion graphique de partitions gparted # Gestion graphique de partitions
unetbootin # création de clefs USB bootables unetbootin # création de clefs USB bootables
]; ];
} }

View File

@@ -20,5 +20,8 @@ environment.systemPackages = with pkgs; [
## Mail & Discussion (texte, audio) ## Mail & Discussion (texte, audio)
mutt mutt
## Sauvegarde nuagique (cloud storage)
rclone
]; ];
} }

View File

@@ -0,0 +1,7 @@
all:
nixos-generate-config --root /mnt
git config --global user.email "nixos-live@example.org"
git config --global user.name "NixOS Live"
cd /mnt/etc/nixos && git init . && git add . && git commit -m "initial commit"
cd /mnt/etc/nixos && git submodule add http://gogs.prunetwork.fr:80/nixos-config/nixos-template-base.git base
cd /mnt/etc/nixos && git submodule add https://gogs.prunetwork.fr/Capgemini-CDS-Arkea/template-nixos.git capgemini-cmb

View File

@@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
{
imports = [
capgemini-cmb/default.nix
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
nixos-template-base/base.nix
];
# Custom name
isoImage.isoName = pkgs.lib.mkForce "${config.isoImage.isoBaseName}-capgemini-${config.system.nixosLabel}-${pkgs.stdenv.system}.iso";
# Avoid having the terminal flooded by kernel audit messages
boot.kernelParams = [ "audit=0" ];
# Files to copy to the liveCD
isoImage.contents = [
{
source = ./Makefile.installation;
target = "/custom/Makefile";
}
];
environment.shellAliases = { nixos-generate-custom-config = "cd /iso/custom/ && make";};
networking.hostName = "nixos-livecd.corp.capgemini.com";
}

View File

@@ -341,11 +341,12 @@ globalkeys = awful.util.table.join(
awful.key({ modkey }, "F5", function () awful.util.spawn("spacefm") end), awful.key({ modkey }, "F5", function () awful.util.spawn("spacefm") end),
awful.key({ modkey }, "F6", function () awful.util.spawn("vlc") end), awful.key({ modkey }, "F6", function () awful.util.spawn("vlc") end),
awful.key({ modkey }, "F7", function () awful.util.spawn("claws-mail") end), awful.key({ modkey }, "F7", function () awful.util.spawn("claws-mail") end),
awful.key({ modkey }, "F11", function () awful.util.spawn("xrandr-auto") end),
awful.key({ modkey }, "F12", function () awful.util.spawn("slock") end), awful.key({ modkey }, "F12", function () awful.util.spawn("slock") end),
awful.key({ modkey, "Shift" }, "F1", function () awful.util.spawn("claws-mail") end), awful.key({ modkey, "Shift" }, "F1", function () awful.util.spawn("claws-mail") end),
awful.key({ modkey, "Shift" }, "F3", function () awful.util.spawn("pcmanfm") end), awful.key({ modkey, "Shift" }, "F3", function () awful.util.spawn("pcmanfm") end),
awful.key({ modkey }, "F10", function () awful.util.spawn("xrandr-auto-2") end), awful.key({ modkey, "Shift" }, "F6", function () awful.util.spawn("clementine") end),
awful.key({ modkey }, "F11", function () awful.util.spawn("xrandr-auto") end) awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("xrandr-auto-2") end)
-- awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-left") end), -- awful.key({ modkey, "Shift" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-left") end),
-- awful.key({ modkey, "Control" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-right") end), -- awful.key({ modkey, "Control" }, "F11", function () awful.util.spawn("/home/taeradan/bin/xrandr-right") end),

17
release.nix Normal file
View File

@@ -0,0 +1,17 @@
{ supportedSystems ? [ "x86_64-linux" ]
, nixpkgs ? import <nixpkgs> {}
, config ? import ./config-generator.nix
, ...
}:
with (import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; });
{
#r6d.base = import ./r6d-base.nix;
r6d = {
#= import ./iso-image/configuration.nix;
applications.terminal.cao = import ./applications/terminal/cao.nix {
config = self.config;
};
};
}

View File

@@ -11,6 +11,6 @@ mkIf cfg.developpement-haskell {
services.hoogle = { services.hoogle = {
enable = true; enable = true;
# port 8080 port = 10080;
}; };
} }

View File

@@ -27,6 +27,12 @@ mkIf true {
path = with pkgs; [ munin lm_sensors ]; path = with pkgs; [ munin lm_sensors ];
serviceConfig.TimeoutStartSec = "3min"; serviceConfig.TimeoutStartSec = "3min";
}; };
users.extraUsers.munin = {
#extraGroups = [ "postfix" "root" ];
extraGroups = [ "postfix" ];
};
# chmod a+rX -Rv /var/lib/postfix/queue/
## Munin server -- generate /var/www/munin ## Munin server -- generate /var/www/munin
services.munin-cron = { services.munin-cron = {
@@ -36,7 +42,7 @@ mkIf true {
address 127.0.0.1 address 127.0.0.1
''; '';
extraGlobalConfig = '' extraGlobalConfig = ''
contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/public/services/munin-muttrc -s "Munin notification for ''${var:host}" jean-pierre@ocean.prunetwork.fr contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/public/services/munin-muttrc -s "Munin notification for ''${var:host}" root@prunetwork.fr
''; '';
}; };