mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
chore(nix): Use singleton where possible
This commit is contained in:
parent
045c489222
commit
f02f2cfd03
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user