···11+{
22+ osConfig,
33+ namespace,
44+ ...
55+}:
66+{
77+ # Enable fish through home-manager if enable on system.
88+ # This is required for home.sessionVariables and stuff to work.
99+ programs.fish.enable = osConfig.${namespace}.system.shell.default == "fish";
1010+}
···3333 example = "de";
3434 description = "Sets the keymap to be used by the system";
3535 };
3636+3737+ timezone = mkOption {
3838+ type = lib.types.str;
3939+ default = "Europe/Berlin";
4040+ example = "Europe/Berlin";
4141+ description = "Sets the timezone to be used by the system.";
4242+ };
3643 };
37443845 config = mkIf cfg.enable {
···5562 services.xserver = {
5663 xkb.layout = cfg.keymap;
5764 };
6565+6666+ time.timeZone = cfg.timezone;
5867 };
5968}
+8-1
modules/nixos/system/networking/default.nix
···1515 };
16161717 config = mkIf cfg.enable {
1818- networking.networkmanager.enable = true;
1818+ # Enable systemd-resolved DNS backend
1919+ services.resolved.enable = true;
2020+2121+ # Enable network manager and configure resolved as DNS backend
2222+ networking.networkmanager = {
2323+ enable = true;
2424+ dns = "systemd-resolved";
2525+ };
1926 };
2027}
···2727 isSystemUser = self.lib.mkBool false "Whether this user is considered a system user.";
2828 initialPassword =
2929 self.lib.mkOpt (types.nullOr types.str) null
3030- "Plaintext insecure initial user password, only recommended for testing.";
3030+ "Plaintext insecure initial user password, generally not recommended.";
3131 password =
3232 self.lib.mkOpt (types.nullOr types.str) null
3333- "Plaintext insecure user password, only recommended for testing.";
3333+ "Plaintext insecure user password, generally not recommended.";
3434 hashedPasswordFile =
3535 self.lib.mkOpt (types.nullOr types.str) null
3636 "Secure, hashed user password stored in a separate file, recommended for production.";
3737 hashedPassword =
3838 self.lib.mkOpt (types.nullOr types.str) null
3939- "Secure, hashed password, stored in plaintext, fine to use.";
3939+ "Hashed password, stored in plaintext, generally not recommended.";
4040 extraGroups =
4141 self.lib.mkOpt (types.listOf types.str) [ ]
4242 "List of additional groups this user belongs to.";
···8484 useUserPackages = true;
85858686 extraSpecialArgs = {
8787- inherit self system namespace;
8787+ inherit
8888+ inputs
8989+ self
9090+ system
9191+ namespace
9292+ ;
8893 };
89949095 users = lib.mapAttrs (