Compare commits
15 Commits
2018-03-24
...
2019-05-26
| Author | SHA1 | Date | |
|---|---|---|---|
| 19258654cf | |||
| 7a7bcc99f2 | |||
| dddc3e79e0 | |||
| 1e8b78d720 | |||
| 366eebee8a | |||
| 5ecdc764ac | |||
|
|
a5e03f769b | ||
|
|
c642afb7e6 | ||
|
|
1127daa925 | ||
|
|
328eabc735 | ||
|
|
f2247b6e3e | ||
|
|
0073763f32 | ||
| e2ba892109 | |||
| 0c47de1cb1 | |||
| 8dcdea29c1 |
13
Makefile
13
Makefile
@@ -24,10 +24,17 @@ clean-log:
|
||||
full-auto: submodules-update upgrade clean optimise
|
||||
@date
|
||||
|
||||
list-installed-packages:
|
||||
@# source : https://functor.tokyo/blog/2018-02-20-show-packages-installed-on-nixos
|
||||
@# https://www.domenkozar.com/2014/01/02/getting-started-with-nix-package-manager/
|
||||
@#nixos-option environment.systemPackages
|
||||
nixos-option environment.systemPackages | head -2 | tail -1 | sed -e 's/ /\n/g' | cut -d- -f2- | sort | uniq| sed -e 's/"$$//'
|
||||
|
||||
optimise:
|
||||
$(TIME) nix-store --optimise
|
||||
$(TIME) nix optimise-store
|
||||
|
||||
rebuild-build:
|
||||
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
||||
$(TIME) time nixos-rebuild build --fallback --show-trace
|
||||
|
||||
rebuild-switch:
|
||||
@@ -50,6 +57,7 @@ store-repair:
|
||||
$(TIME) nix-store --verify --check-contents --repair
|
||||
|
||||
upgrade:
|
||||
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
|
||||
$(TIME) nixos-rebuild switch --upgrade --fallback --show-trace
|
||||
|
||||
##--------- Commandes spécifiques pour NixOS -- Opérations non courantes
|
||||
@@ -104,3 +112,6 @@ tmpfs-umount:
|
||||
tmpfs-destroy: tmpfs-umount
|
||||
rmdir /mnt/tmpfs
|
||||
|
||||
##- Test awesome
|
||||
test-awesome:
|
||||
Xephyr :5 & sleep 1; DISPLAY=:5 awesome
|
||||
|
||||
@@ -39,6 +39,7 @@ mkIf currentMachine.profiles.isDesktopEnvironment {
|
||||
fira # police créée pour Firefox
|
||||
fira-code # idem fira-mono + ligatures pour la programmation
|
||||
fira-mono # dérivée de fira en monospace
|
||||
font-awesome_5 # Jeux de police, utilisé avec Latex
|
||||
hack-font # police monospace créée explicitement pour coder
|
||||
hasklig # police dérivée de source-code-pro mais avec des ligatures
|
||||
];
|
||||
|
||||
@@ -13,6 +13,6 @@ mkIf (flags.developpement-haskell && flags.graphical) {
|
||||
environment.systemPackages = with pkgs; [
|
||||
] ++ (with pkgs.haskellPackages; [
|
||||
# Haskell lib
|
||||
threadscope # visualisation des threads (<bidule>.eventlog)
|
||||
#threadscope # visualisation des threads (<bidule>.eventlog)
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ mkIf (flags.radio && flags.graphical) {
|
||||
# Paquets
|
||||
environment.systemPackages = with pkgs; [
|
||||
## GUI
|
||||
gqrx # GUI
|
||||
#gnuradio # Software Defined Radio (SDR) software
|
||||
gnuradio-with-packages
|
||||
gqrx # GUI
|
||||
gnuradio # Software Defined Radio (SDR) software
|
||||
gnuradio-with-packages # Software Defined Radio (SDR) software
|
||||
|
||||
## A Trier
|
||||
#
|
||||
|
||||
@@ -19,8 +19,9 @@ mkIf flags.developpement-haskell {
|
||||
] ++ (with pkgs.haskellPackages; [
|
||||
# Haskell lib
|
||||
autoproc # ? procmail
|
||||
darcs # gestionnaire de version éponyme
|
||||
ghc-mod # outil d'analyse de code haskell utilisé par IDE
|
||||
#brittany # formatteur de code
|
||||
#darcs # gestionnaire de version éponyme
|
||||
#ghc-mod # outil d'analyse de code haskell utilisé par IDE
|
||||
hindent # indentation code
|
||||
hlint # qualite de code, analyse statique de code + astuces & bonnes pratiques
|
||||
#postgrest # mapper HTTP <-> PostgreSQL
|
||||
@@ -29,7 +30,7 @@ mkIf flags.developpement-haskell {
|
||||
turtle # genre shell-scripting
|
||||
|
||||
# Application perso
|
||||
hahp
|
||||
#hahp
|
||||
pandoc-filter-graphviz # filtre pour utiliser graphviz à partir de pandoc
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ in
|
||||
nix.buildCores = 0;
|
||||
|
||||
# The NixOS release to be compatible with for stateful data such as databases.
|
||||
system.stateVersion = "18.03";
|
||||
system.stateVersion = "19.03";
|
||||
|
||||
# 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;
|
||||
@@ -27,7 +27,8 @@ in
|
||||
boot.cleanTmpDir = true;
|
||||
|
||||
# Activation des pages de manuel
|
||||
programs.man.enable = true;
|
||||
documentation.man.enable = true;
|
||||
|
||||
|
||||
# Paquets
|
||||
environment = {
|
||||
|
||||
@@ -33,7 +33,7 @@ mkIf true {
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="audio", MODE="0666", SYMLINK+="rtl_sdr"
|
||||
'';
|
||||
|
||||
security.pam.enableU2F = true;
|
||||
security.pam.u2f.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libu2f-host
|
||||
|
||||
@@ -13,7 +13,7 @@ mkIf flags.docker {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Ecosystème Docker
|
||||
docker
|
||||
python36Packages.docker_compose
|
||||
docker-compose
|
||||
];
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
@@ -18,9 +18,8 @@ mkIf flags.nixos-manual {
|
||||
# Services
|
||||
|
||||
## documentation sur ctrl + alt + F8
|
||||
services.nixosManual = {
|
||||
documentation.nixos = {
|
||||
enable = true;
|
||||
showManual = true;
|
||||
};
|
||||
|
||||
# Réseau
|
||||
|
||||
@@ -26,6 +26,9 @@ mkIf true {
|
||||
# Use kernel sandbox mechanisms where possible in unprivilegied processes
|
||||
# Systrace on OpenBSD, Seccomp on Linux, seatbelt on MacOSX/Darwin, rlimit elsewhere.
|
||||
UsePrivilegeSeparation sandbox
|
||||
|
||||
# Permet de gérer le nombre de connexions multiplexées en simultané
|
||||
MaxSessions 200
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ mkIf true {
|
||||
gnupg opensc pcsctools libu2f-host yubikey-personalization
|
||||
];
|
||||
|
||||
security.pam.enableU2F = true;
|
||||
security.pam.u2f.enable = true;
|
||||
|
||||
/*users.extraUsers.joko = {
|
||||
isNormalUser = true;
|
||||
|
||||
Reference in New Issue
Block a user