From 3fcc75fc557250f2b7eb2b0771530d5e316ea2aa Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Tue, 9 Aug 2022 12:16:37 +0200 Subject: [PATCH] tentative conversion flake --- configuration/environment.nix | 3 ++- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 9 +++++++++ lib.nix | 4 +++- 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/configuration/environment.nix b/configuration/environment.nix index 7bc17ee..e9fba18 100644 --- a/configuration/environment.nix +++ b/configuration/environment.nix @@ -12,7 +12,8 @@ in 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; diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9868bb0 --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1d48ad8 --- /dev/null +++ b/flake.nix @@ -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 ; + }; +} diff --git a/lib.nix b/lib.nix index ab38ed1..736876e 100644 --- a/lib.nix +++ b/lib.nix @@ -1,5 +1,7 @@ +{pkgs, ... }: + let - lib = with import {}; pkgs.lib; + lib = pkgs.lib; profiles = { isDesktopEnvironment = {