Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0dd2698082 | ||
|
|
9d5db185b3 | ||
|
|
3fcc75fc55 |
@@ -9,10 +9,11 @@ in
|
|||||||
|
|
||||||
{
|
{
|
||||||
# The NixOS release to be compatible with for stateful data such as databases.
|
# 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)
|
# 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
|
# On autorise les paquets non-libres
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ in
|
|||||||
|
|
||||||
system.autoUpgrade.enable = flags.auto-upgrade;
|
system.autoUpgrade.enable = flags.auto-upgrade;
|
||||||
nix = {
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|||||||
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal 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
9
flake.nix
Normal 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 ;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user