extract state version
This commit is contained in:
parent
4c94c3375c
commit
8ef222bf9a
1 changed files with 7 additions and 3 deletions
|
@ -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; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue