mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-04-23 18:58:41 +02: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, ... }:
|
{ nix-config, pkgs, lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption mkEnableOption mkIf;
|
inherit (lib) mkOption mkEnableOption mkIf singleton;
|
||||||
inherit (lib.types) nullOr str listOf;
|
inherit (lib.types) nullOr str listOf;
|
||||||
inherit (pkgs.nixVersions) nix_2_19;
|
inherit (pkgs.nixVersions) nix_2_19;
|
||||||
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowZolaPort noRoot;
|
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowZolaPort noRoot;
|
||||||
@ -129,10 +129,10 @@ in
|
|||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
|
||||||
sharedModules = [{
|
sharedModules = singleton {
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
programs.man.generateCaches = true;
|
programs.man.generateCaches = true;
|
||||||
}];
|
};
|
||||||
|
|
||||||
users.${username}.home = {
|
users.${username}.home = {
|
||||||
inherit username;
|
inherit username;
|
||||||
|
Loading…
Reference in New Issue
Block a user