Compare commits

..

3 Commits

Author SHA1 Message Date
Yves Dubromelle
0dd2698082 stateVersion devrait être propre à chaque machine (fixé à l'installation) 2023-09-07 09:50:17 +02:00
Yves Dubromelle
9d5db185b3 nux instable recommandé pour les flakes 2023-09-07 09:50:16 +02:00
Yves Dubromelle
3fcc75fc55 tentative conversion flake 2023-09-07 09:50:16 +02:00
10 changed files with 49 additions and 14 deletions

View File

@@ -19,6 +19,6 @@ mkIf (flags.conception-assistee && flags.graphical) {
## Électricité & Électronique
fritzing # schéma de câblages "jolis"
kicad # ensemble d'outils de conception électronique
qucs-s # simulateur de circuits électroniques
qucs # simulateur de circuits électroniques
];
}

View File

@@ -30,8 +30,5 @@ environment.systemPackages = with pkgs; [
transmission-gtk
transmission-qt
transgui
# Téléchargement de vidéos
media-downloader
];
}

View File

@@ -26,5 +26,8 @@ mkIf (flags.developpement && flags.graphical) {
## Visualisation & outils de diff
#gource # visualisation en mouvement de l'historique git
meld # outil de comparaison graphique
# Editeur texte
atom
];
}

View File

@@ -39,6 +39,7 @@ mkIf true {
## Montage de filesystem
curlftpfs # ftp
exfat # Pour monter les FAT avec Fuse
hubicfuse # montage hubic
ntfs3g # ntfs
samba # partages windows
squashfsTools # squashfs

View File

@@ -32,15 +32,9 @@ mkIf true {
wget # client HTTP console
which # pour connaitre le chemin d'un exécutable
helix # Éditeur post-moderne
# outils pour l'édition Nix
nixd # LSP pour Nix
nixfmt
nixfmt-tree
nil # LSP pour Nix
nodePackages.bash-language-server # LSP pour Bash
delta # visionneur de différences
kitty.terminfo
rio.terminfo
];
programs = {
gnupg.agent.enable = true;

View File

@@ -9,10 +9,11 @@ in
{
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "19.09";
#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;
# https://github.com/NixOS/nixpkgs/issues/97252
#system.copySystemConfiguration = true;
# On autorise les paquets non-libres
nixpkgs.config.allowUnfree = true;

View File

@@ -13,6 +13,7 @@ in
system.autoUpgrade.enable = flags.auto-upgrade;
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1659981942,
"narHash": "sha256-uCFiP/B/NXOWzhN6TKfMbSxtVMk1bVnCrnJRjCF6RmU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "39d7f929fbcb1446ad7aa7441b04fb30625a4190",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

9
flake.nix Normal file
View File

@@ -0,0 +1,9 @@
{
description = "Module NixOS de base Grudunet";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }: {
nixosModules.default = import ./base.nix ;
};
}

View File

@@ -1,5 +1,7 @@
{pkgs, ... }:
let
lib = with import <nixpkgs> {}; pkgs.lib;
lib = pkgs.lib;
profiles = {
isDesktopEnvironment = {