chore(nix): Use singleton where possible

This commit is contained in:
Donovan Glover 2024-04-08 04:11:19 -04:00
parent 045c489222
commit f02f2cfd03
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,7 +1,7 @@
{ nix-config, pkgs, lib, config, ... }:
let
inherit (lib) mkOption mkEnableOption mkIf;
inherit (lib) mkOption mkEnableOption mkIf singleton;
inherit (lib.types) nullOr str listOf;
inherit (pkgs.nixVersions) nix_2_19;
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowZolaPort noRoot;
@ -129,10 +129,10 @@ in
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [{
sharedModules = singleton {
home.stateVersion = "22.11";
programs.man.generateCaches = true;
}];
};
users.${username}.home = {
inherit username;