Compare commits
2 Commits
2016-07-13
...
2016-07-15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6b939ffa9 | ||
|
|
aa48575f58 |
6
activation-manuelle/laptop.nix
Normal file
6
activation-manuelle/laptop.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Gestion spécifique pour PC portable
|
||||||
|
powerManagement.cpuFreqGovernor = pkgs.lib.mkIf config.r6d.config-generator.laptop "powersave";
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./activation-manuelle/auto-upgrade.nix
|
./activation-manuelle/auto-upgrade.nix
|
||||||
|
./activation-manuelle/laptop.nix
|
||||||
./activation-manuelle/locate.nix
|
./activation-manuelle/locate.nix
|
||||||
./activation-manuelle/fail2ban.nix
|
./activation-manuelle/fail2ban.nix
|
||||||
./activation-manuelle/nix-serve-client.nix
|
./activation-manuelle/nix-serve-client.nix
|
||||||
@@ -104,7 +105,6 @@ in
|
|||||||
r6d.config-generator.nix-serve-server = true;
|
r6d.config-generator.nix-serve-server = true;
|
||||||
})
|
})
|
||||||
(mkIf (pfl.isDubronetwork && pfl.isWorkstation) {
|
(mkIf (pfl.isDubronetwork && pfl.isWorkstation) {
|
||||||
r6d.config-generator.nix-serve-server = true;
|
|
||||||
r6d.config-generator.virtualbox = true;
|
r6d.config-generator.virtualbox = true;
|
||||||
})
|
})
|
||||||
(mkIf pfl.isPrunetwork {
|
(mkIf pfl.isPrunetwork {
|
||||||
@@ -158,6 +158,8 @@ in
|
|||||||
r6d.profiles.isDubronetwork = true;
|
r6d.profiles.isDubronetwork = true;
|
||||||
r6d.profiles.isHome = true;
|
r6d.profiles.isHome = true;
|
||||||
r6d.profiles.isWorkstation = true;
|
r6d.profiles.isWorkstation = true;
|
||||||
|
|
||||||
|
r6d.config-generator.nix-serve-server = true;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user