Flake : Make const a set.

This commit is contained in:
Dmitry Voronin 2024-04-15 00:41:40 +03:00 committed by Dmitry Voronin
parent a191472955
commit 8c31e4b05f
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -100,7 +100,7 @@
outputs = { self, nixpkgs, nix-on-droid, home-manager, stylix, ... } @inputs: {
# Constant values.
nixosModules.const = {
const = {
droidStateVersion = "22.11";
stateVersion = "23.11";
timeZone = "Europe/Moscow";
@ -123,7 +123,7 @@
modules = [
./host/${hostname}/Configuration.nix
{ networking.hostName = hostname; }
{ system.stateVersion = self.nixosModules.const.stateVersion; }
{ system.stateVersion = self.const.stateVersion; }
inputs.self.nixosModules.common
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
@ -133,7 +133,7 @@
pkgs = nixpkgs.legacyPackages.${system}.pkgs;
config = self.nixosConfigurations.${hostname}.config;
in {
const = self.nixosModules.const;
const = self.const;
flake = self;
inputs = inputs;
key = import ./part/Key.nix {};
@ -255,14 +255,14 @@
# Android.
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
modules = [
{ system.stateVersion = inputs.self.nixosModules.const.droidStateVersion; }
{ system.stateVersion = inputs.self.const.droidStateVersion; }
./module/NixOnDroid.nix
];
extraSpecialArgs = let
pkgs = nixpkgs.legacyPackages."aarch64-linux".pkgs;
in {
const = self.nixosModules.const;
const = self.const;
flake = self;
inputs = inputs;
key = import ./part/Key.nix {};