extract state version

This commit is contained in:
Cyryl Płotnicki 2022-12-02 13:43:26 +00:00
parent 4c94c3375c
commit 8ef222bf9a

View file

@ -1,4 +1,8 @@
{ config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }: { { config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }:
let
stateVersion = "22.05";
username = "cyryl";
in {
imports = [ imports = [
./common-hardware.nix ./common-hardware.nix
./common-services.nix ./common-services.nix
@ -29,7 +33,7 @@
i18n.defaultLocale = "en_GB.UTF-8"; i18n.defaultLocale = "en_GB.UTF-8";
users.users.cyryl = { users.users."${username}" = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
"adbusers" "adbusers"
@ -94,5 +98,5 @@
''; '';
}; };
system = { stateVersion = "22.05"; }; system = { inherit stateVersion; };
} }